/* "Top ArmPOS features" (central/partials/home/features.blade.php), after the pricing. The shape of
   Rio's reference (2026-10-14, Sortly's "Top Sortly Features"): a white panel with a fine border, the
   heading and a line, a grid of tiles (an icon at the top, the title and one line below), a small
   button, a note under it. In the homepage's scale and tokens (landing-home.css): the footer column
   (1216px), the plan cards' corners and shadow, the mint fill for the tiles, the navy ink, the site's
   primary button (.h-button--primary, green with navy text). */

/* Its own padding: landing.css pads every <section> by 5rem (CLAUDE.md, public-site traps) */
.h-feat {
    padding: 16px 32px 64px;
}

.h-feat__panel {
    max-width: 1216px;
    margin: 0 auto;
    padding: 56px 48px 44px;
    border: 1px solid rgb(21 30 49 / 0.06);
    border-radius: 24px;
    background: var(--h-card);
    box-shadow: 0 1px 2px rgb(21 30 49 / 0.04), 0 24px 48px -32px rgb(21 30 49 / 0.22);
    text-align: center;
}

.h-feat__lead {
    max-width: 640px;
    margin: 14px auto 0;
    font-size: 17px;
    line-height: 26px;
    color: var(--h-text);
}

.h-feat__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 44px 0 0;
    padding: 0;
    list-style: none;
    text-align: start;
}

.h-feat__tile {
    display: flex;
    flex-direction: column;
    min-height: 172px;
    padding: 20px 20px 22px;
    border: 1px solid var(--h-border);
    border-radius: 14px;
    background: var(--h-fill);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.h-feat__tile:hover {
    border-color: var(--h-300);
    background: var(--h-50);
}

.h-feat__icon {
    font-size: 20px;
    line-height: 1;
    color: var(--h-950);
}

.h-feat__name {
    margin: auto 0 0;
    padding-top: 28px;
    font-size: 15px;
    line-height: 21px;
    font-weight: 600;
    color: var(--h-950);
}

.h-feat__text {
    margin: 4px 0 0;
    font-size: 13.5px;
    line-height: 20px;
    color: var(--h-text);
}

.h-feat__cta {
    margin-top: 40px;
}

.h-feat__note {
    margin: 22px 0 0;
    font-size: 14px;
    line-height: 20px;
    color: var(--h-text);
}

.h-feat__note a {
    color: var(--h-600);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.h-feat__note a:hover {
    color: var(--h-700);
}

/* Draft 3's groups (point of sale, inventory, the whole business): the next group's heading keeps
   the panel's own top spacing from the grid above it. The only rule the groups add. */
.h-feat__grid + .h-h2 { margin-top: 64px; }

@media (max-width: 1023px) {
    .h-feat__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 639px) {
    .h-feat { padding: 8px 16px 48px; }
    .h-feat__panel { padding: 40px 20px 32px; border-radius: 20px; }
    .h-feat__lead { font-size: 15px; line-height: 23px; }
    .h-feat__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 32px; }
    .h-feat__grid + .h-h2 { margin-top: 44px; }
    .h-feat__tile { min-height: 0; }
    .h-feat__name { padding-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .h-feat__tile { transition: none; }
}
