/*
 * GiftLoop design system: "Evergreen" (see docs/DESIGN.md).
 * Components use the tokens below; never hard-code colors in templates.
 */

/* ---------- Fonts (self-hosted, latin subset, SIL OFL; see fonts/OFL-*.txt) ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("fonts/nunito-sans-latin.woff2") format("woff2");
  font-weight: 200 1000; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("fonts/nunito-sans-latin-italic.woff2") format("woff2");
  font-weight: 200 1000; font-style: italic; font-display: swap;
}

/* ---------- Tokens: light ---------- */
:root {
  color-scheme: light dark;

  --color-bg: #F7F8F5;
  --color-surface: #FFFFFF;
  --color-surface-sunken: #EEF2EE;
  --color-text: #17251E;
  --color-text-muted: #55635B;
  --color-border: #D6DDD7;          /* decorative dividers */
  --color-border-strong: #7A897F;   /* input outlines (>= 3:1) */

  --color-primary: #1F5A41;         /* evergreen: main actions, links */
  --color-primary-hover: #174732;
  --color-on-primary: #FFFFFF;
  --color-accent: #B02A4C;          /* berry: sparing emphasis, never errors */
  --color-on-accent: #FFFFFF;
  --color-gold: #E3B04B;            /* ribbon: decoration only, not text */
  --color-highlight: #F6E7C4;       /* info banners */
  --color-on-highlight: #4A3708;
  --color-claimed: #E2EFE7;         /* "you claimed" chip */
  --color-on-claimed: #1F5A41;

  --color-error: #B42318;
  --color-success: #1B6E45;
  --color-focus: #1F5A41;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;

  --text-sm: 1rem;
  --text-base: 1.125rem;
  --text-lg: 1.375rem;
  --text-xl: 1.75rem;
  --text-2xl: 2.25rem;

  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;

  --radius: 10px;
  --radius-pill: 999px;
  --tap: 2.75rem;                   /* minimum control height (44px) */
  --content-width: 34rem;           /* narrow pages: forms, sign-in */
  --page-width: 72rem;              /* wide pages and the site header */
  --sidebar-width: 22rem;           /* side column on wide pages, desktop only */
  /* Desktop breakpoint is 56rem (896px). Media queries can't read custom
     properties, so it is repeated literally below. */
}

/* ---------- Tokens: dark (follows the device setting) ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0F1A15;
    --color-surface: #17241D;
    --color-surface-sunken: #1E2E25;
    --color-text: #E8EFEA;
    --color-text-muted: #9DB0A5;
    --color-border: #2A3A31;
    --color-border-strong: #61766A;

    --color-primary: #5FBF8F;
    --color-primary-hover: #7FD0A6;
    --color-on-primary: #0B1A12;
    --color-accent: #F07A97;
    --color-on-accent: #2A0710;
    --color-gold: #E8BC5E;
    --color-highlight: #3A2F14;
    --color-on-highlight: #F1D79B;
    --color-claimed: #1E3A2C;
    --color-on-claimed: #8FE0B5;

    --color-error: #FF8A7A;
    --color-success: #6FD3A0;
    --color-focus: #5FBF8F;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-body); font-size: var(--text-base); line-height: 1.5;
  color: var(--color-text); background: var(--color-bg);
}
h1, h2, h3 {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.15; text-wrap: balance;
}
h1 { font-size: var(--text-2xl); margin: var(--space-2) 0 var(--space-4); }
h2 { font-size: var(--text-xl); margin: var(--space-5) 0 var(--space-3); }
h3 { font-size: var(--text-lg); margin: var(--space-4) 0 var(--space-2); }
a { color: var(--color-primary); text-underline-offset: .15em; }
a:hover { color: var(--color-primary-hover); }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
/* Text for screen readers only. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Forms ---------- */
label { display: block; font-weight: 700; margin-bottom: var(--space-1); }
.hint { display: block; color: var(--color-text-muted); font-size: var(--text-sm); font-weight: 400; }
.field { margin-bottom: var(--space-5); }
input[type=email], input[type=password], input[type=text], input[type=number], input[type=date],
select, textarea {
  width: 100%; min-height: var(--tap); font: inherit; padding: .6rem .75rem;
  color: var(--color-text); background: var(--color-surface);
  border: 1px solid var(--color-border-strong); border-radius: var(--radius);
}
textarea { resize: vertical; }
input[type=file] { font: inherit; font-size: var(--text-sm); }
fieldset { border: none; padding: 0; margin-inline: 0; min-width: 0; }
legend { font-weight: 700; padding: 0; margin-bottom: var(--space-1); }
/* Radio/checkbox with its label; the whole row is the tap target. */
.choice {
  display: flex; align-items: center; gap: var(--space-3);
  min-height: var(--tap); margin: 0; font-weight: 400; cursor: pointer;
}
.choice input { width: 1.25rem; height: 1.25rem; margin: 0; flex: none; accent-color: var(--color-primary); }
[aria-invalid="true"] { border-color: var(--color-error); border-width: 2px; }
.row { display: flex; gap: var(--space-3); }
.row > * { flex: 1; }

/* ---------- Buttons ---------- */
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--tap); padding: .6rem 1.2rem;
  font: 700 var(--text-base)/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  color: var(--color-primary); background: transparent;
  border: 2px solid var(--color-primary); border-radius: var(--radius);
}
button:hover, .button:hover { background: var(--color-surface-sunken); color: var(--color-primary); }
button.primary, .button.primary {
  color: var(--color-on-primary); background: var(--color-primary); border-color: var(--color-primary);
}
button.primary:hover, .button.primary:hover {
  color: var(--color-on-primary); background: var(--color-primary-hover); border-color: var(--color-primary-hover);
}
form > button.primary { width: 100%; }
/* Opt out of full width so a lone action reads as a button, not a banner. */
form > button.primary.auto { width: auto; box-shadow: 0 2px 0 var(--color-primary-hover); }
button + .hint { margin-top: var(--space-2); }
.link-button {
  min-height: 0; padding: 0; border: none; background: none;
  color: var(--color-primary); font-weight: 400; text-decoration: underline; text-underline-offset: .15em;
}
.link-button:hover { background: none; color: var(--color-primary-hover); }

/* ---------- Feedback ---------- */
.error { color: var(--color-error); margin: var(--space-1) 0 0; }
.ok { color: var(--color-success); margin: var(--space-1) 0 0; }
.notice { background: var(--color-surface-sunken); border-radius: var(--radius); padding: var(--space-3) var(--space-4); }
.banner {
  background: var(--color-highlight); color: var(--color-on-highlight);
  border-radius: var(--radius); padding: var(--space-3) var(--space-4);
}

/* ---------- Containers ---------- */
.card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: var(--space-4);
}
details {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: var(--space-3) var(--space-4); margin-top: var(--space-4);
}
summary { cursor: pointer; font-weight: 700; color: var(--color-primary); min-height: 1.75rem; }
details form, .form-gap { margin-top: var(--space-4); }

/* ---------- Chips (claim states) ---------- */
.chip {
  display: inline-flex; align-items: center; gap: var(--space-1);
  padding: .3rem .7rem; border-radius: var(--radius-pill);
  font-size: var(--text-sm); font-weight: 700; white-space: nowrap;
}
.chip-mine { background: var(--color-claimed); color: var(--color-on-claimed); }
.chip-taken { color: var(--color-text-muted); border: 1px dashed var(--color-border-strong); }
.chip-off-list { background: var(--color-highlight); color: var(--color-on-highlight); }

/* ---------- Layout bits ---------- */
.avatar {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  background: var(--color-surface-sunken); border: 3px solid var(--color-gold);
}
.brand { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; color: var(--color-primary); }

/* ---------- Page shell ---------- */
.site-header {
  background: var(--color-surface); border-top: 4px solid var(--color-gold);
  border-bottom: 1px solid var(--color-border);
}
.site-header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-1) var(--space-4);
  max-width: var(--page-width); margin: 0 auto; padding: var(--space-2) var(--space-4);
}
.site-header .brand { font-size: var(--text-lg); text-decoration: none; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-3); }
.site-nav a {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--space-2);
  font-weight: 700; text-decoration: none;
}
/* Current page: underline, not color alone. */
.site-nav a[aria-current="page"] {
  text-decoration: underline; text-decoration-color: var(--color-gold);
  text-decoration-thickness: 3px; text-underline-offset: .4em;
}
.site-nav form { margin: 0; }
.page { max-width: var(--page-width); margin: 0 auto; padding: var(--space-4); }
.page-narrow { max-width: var(--content-width); }
.page-head { margin-bottom: var(--space-5); }
.page-head > h1 { margin-bottom: var(--space-1); }
.site-footer { border-top: 1px solid var(--color-border); margin-top: var(--space-6); }
.site-footer-inner {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 var(--space-4);
  max-width: var(--page-width); margin: 0 auto; padding: var(--space-3) var(--space-4);
}
.site-footer a {
  display: inline-flex; align-items: center; min-height: var(--tap);
  font-size: var(--text-sm); color: var(--color-text-muted);
}
.site-footer a:hover { color: var(--color-text); }
.choice a { font-weight: 700; }

/* ---------- Legal pages ---------- */
.legal h2 { font-size: var(--text-lg); }
.legal li { margin-bottom: var(--space-2); }
.legal .toc { padding-left: var(--space-5); }
.legal .toc li { margin-bottom: var(--space-1); }
/* Wide tables scroll inside the page instead of widening it. */
.table-scroll { overflow-x: auto; margin: var(--space-3) 0; }
.table-scroll table { border-collapse: collapse; width: 100%; font-size: var(--text-sm); }
.table-scroll th, .table-scroll td {
  text-align: left; vertical-align: top; padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--color-border);
}
.table-scroll th { font-weight: 700; background: var(--color-surface-sunken); }

/* ---------- Groups ---------- */
.card > h2:first-child { margin-top: 0; }
.chip-role { border: 1px solid var(--color-border-strong); color: var(--color-text); }
.danger { color: var(--color-error); border-color: var(--color-error); }
.danger:hover { color: var(--color-error); }
.join-code {
  font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800;
  letter-spacing: .12em; margin: var(--space-3) 0;
}
.join-code-input { text-transform: uppercase; letter-spacing: .08em; }
.group-list, .link-list, .member-list { list-style: none; margin: 0 0 var(--space-5); padding: 0; }
.group-list, .link-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: var(--space-3); }
.group-link, .link-card { height: 100%; display: flex; flex-direction: column; gap: var(--space-1); text-decoration: none; color: var(--color-text); }
.group-link:hover, .link-card:hover { border-color: var(--color-primary); color: var(--color-text); }
.group-name, .link-card-title { font-family: var(--font-display); font-weight: 800; font-size: var(--text-lg); color: var(--color-primary); }
.member {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3);
  padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border);
}
.member-info { display: flex; flex-direction: column; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.member-name { font-weight: 700; }
/* Compact "Manage" trigger at the row's end; actions open as a small menu below it. */
.member-actions {
  position: relative; flex: none; margin: 0 0 0 auto;
  padding: 0; border: none; background: none;
}
.member-actions > summary {
  display: inline-flex; align-items: center; gap: var(--space-1);
  min-height: var(--tap); padding: 0 var(--space-3); border-radius: var(--radius);
  font-size: var(--text-sm); list-style: none;
}
.member-actions > summary::-webkit-details-marker { display: none; }
.member-actions > summary::after { content: "▾"; font-size: .8em; }
.member-actions[open] > summary::after { content: "▴"; }
.member-actions > summary:hover, .member-actions[open] > summary { background: var(--color-surface-sunken); }
.member-menu {
  position: absolute; top: calc(100% + var(--space-1)); right: 0; z-index: 10;
  min-width: 12rem; padding: var(--space-1);
  background: var(--color-surface); border: 1px solid var(--color-border-strong); border-radius: var(--radius);
}
.member-menu form { margin: 0; }
.member-menu button {
  width: 100%; justify-content: flex-start; border: none; white-space: nowrap;
  font-size: var(--text-sm); padding: 0 var(--space-3);
}
.member-menu form:has(.danger):not(:first-child) {
  margin-top: var(--space-1); padding-top: var(--space-1); border-top: 1px solid var(--color-border);
}
.avatar-sm { width: var(--tap); height: var(--tap); border-width: 2px; flex: none; }
.avatar-initial {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; color: var(--color-primary);
}

/* ---------- Wishlists ---------- */
.chip-visibility { background: var(--color-surface-sunken); color: var(--color-text); border: 1px solid var(--color-border-strong); }
.gift-list { list-style: none; margin: 0 0 var(--space-5); padding: 0; display: grid; gap: var(--space-3); }
.gift { overflow-wrap: anywhere; }
.gift-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); }
.gift-name { margin: 0; }
.gift-meta { margin: var(--space-2) 0 0; font-weight: 700; }
.gift-notes { white-space: pre-line; margin: var(--space-2) 0 0; }
.gift-links { list-style: none; margin: var(--space-2) 0 0; padding: 0; }
.gift-links li { margin-top: var(--space-1); }
.gift-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.gift-actions form { margin: 0; }
.gift > .gift-form { margin-top: 0; }
/* Photo sits beside the gift details; decorative (alt=""), the name carries meaning. */
.gift-summary { display: flex; align-items: flex-start; gap: var(--space-3); }
.gift-body { flex: 1; min-width: 0; }
.gift-photo {
  flex: none; width: 5rem; height: 5rem; object-fit: contain;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius);
}
.gift-photo.gift-photo-preview { display: block; width: 8rem; height: 8rem; margin-bottom: var(--space-2); }
.gift-photo-field .choice { margin-top: var(--space-2); }
/* Paste-a-link auto-fill: field and button share a row; status shows while the request runs. */
.autofill { padding-bottom: var(--space-4); border-bottom: 1px solid var(--color-border); }
.autofill-row { display: flex; gap: var(--space-2); }
.autofill-row input { flex: 1; min-width: 0; }
.autofill-row button { flex: none; }
.autofill .htmx-indicator { margin: var(--space-2) 0 0; }
/* htmx only hides indicators (opacity); collapse the status line until a request runs. */
.autofill-status:not(.htmx-request) { display: none; }
.past-gifts { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--color-border); }
.past-gifts h3 { margin-top: 0; }
.past-gift { align-items: center; }
.gift-photo.gift-photo-sm { width: 2.5rem; height: 2.5rem; }
.share-choices { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.share-choices .button { width: 100%; justify-content: space-between; }
.shared-link { overflow-wrap: anywhere; }
.autofill-notice { margin: var(--space-2) 0 0; font-size: var(--text-sm); color: var(--color-text-muted); }
/* Member checkboxes only matter when "Only people I pick" is chosen. */
.viewer-picker { margin-left: var(--space-3); padding-left: var(--space-4); border-left: 2px solid var(--color-border); }
.visibility:not(:has(input[value="selected"]:checked)) .viewer-picker { display: none; }

/* ---------- Claims ---------- */
/* Claim filter: pill links; the current one is filled and marked with aria-current. */
.gift-filter { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 var(--space-4); }
.gift-filter a {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: var(--tap); padding: 0 var(--space-4); border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-strong); color: var(--color-text);
  font-size: var(--text-sm); font-weight: 700; text-decoration: none;
}
.gift-filter a:hover { background: var(--color-surface-sunken); }
.gift-filter a[aria-current] { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-on-primary); }
.gift-filter-count { font-weight: 400; }
.gift-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
/* Removed gifts stay readable but step back; the chip and note carry the meaning. */
.gift-removed { background: var(--color-surface-sunken); border-style: dashed; border-color: var(--color-border-strong); }
.gift-removed-note { margin: var(--space-3) 0 0; background: var(--color-surface); }
.claim-list { list-style: none; margin: var(--space-3) 0 0; padding: 0; color: var(--color-text-muted); font-size: var(--text-sm); }
.claim-list li + li { margin-top: var(--space-1); }
.my-claim { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--color-border); }
.my-claim-summary { margin: 0; }
.claim-manage, .claim-start, .claim-purchase { margin-top: var(--space-3); }
.claim-manage form + form { margin-top: var(--space-4); }
.claim-manage h4 { margin: var(--space-4) 0 var(--space-2); }
.claim-manage .field, .claim-start .field, .claim-purchase .field { margin-bottom: var(--space-3); }
.claim-manage input[type="number"], .claim-start input[type="number"], .claim-purchase input[type="number"] { max-width: 8rem; }
.claim-start .choice { margin-bottom: var(--space-2); }
.co-buyer-list { list-style: none; margin: 0; padding: 0; }
.co-buyer-list li {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  min-height: var(--tap); border-bottom: 1px solid var(--color-border);
}
.co-buyer-list form { margin: 0; }
.co-buyer-list .link-button { min-height: var(--tap); }
.claim-event + .claim-event { margin-top: var(--space-5); }
.claim-event > h2 { margin-bottom: var(--space-1); }
.claim-event > .hint { margin-bottom: var(--space-3); }
.claim-past > .claim-event:first-of-type > h2 { margin-top: var(--space-4); }

/* ---------- Desktop (56rem / 896px and up) ---------- */
@media (min-width: 56rem) {
  .site-header-inner { padding: var(--space-3) var(--space-6); }
  .site-header .brand { font-size: var(--text-xl); }
  .page { padding: var(--space-6); }

  /* Narrow pages become a centered card. */
  .page-narrow {
    max-width: calc(var(--content-width) + 2 * var(--space-6));
    margin-top: var(--space-6); margin-bottom: var(--space-6);
    background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius);
  }
  .page-narrow > :first-child { margin-top: 0; }

  /* Action rows keep natural button widths instead of stretching. */
  .page-wide .row { justify-content: flex-start; }
  .page-wide .row > * { flex: none; }
  .page-wide .gift-form .row > * { flex: 1; }
  .gift-photo { width: 6rem; height: 6rem; }

  /* Group page: members on the left, invite and settings in a side column. */
  .group-layout {
    display: grid; grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
    grid-template-rows: auto 1fr; grid-template-areas: "events invite" "members settings";
    column-gap: var(--space-6); align-items: start;
  }
  .group-events { grid-area: events; }
  .group-members { grid-area: members; }
  /* Plain members have no invite card: settings move up beside events. */
  .group-layout:not(:has(.group-invite)) .group-settings { grid-row: 1 / span 2; }
  .group-invite { grid-area: invite; margin-bottom: var(--space-4); }
  .group-settings { grid-area: settings; }
  .group-events > h2:first-child, .group-settings > :first-child { margin-top: 0; }

  /* Wishlist page: gifts on the left, add form and settings in a side column (owner). */
  .wishlist-layout:has(.wishlist-add) {
    display: grid; grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
    grid-template-rows: auto 1fr; grid-template-areas: "gifts add" "gifts settings";
    column-gap: var(--space-6); align-items: start;
  }
  .wishlist-gifts { grid-area: gifts; }
  .wishlist-add { grid-area: add; margin-bottom: var(--space-4); }
  .wishlist-settings { grid-area: settings; }
  .wishlist-gifts > h2:first-child { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Events ---------- */
/* Event type picker: radio cards with a description; the whole card is the tap target. */
.type-cards { display: grid; gap: var(--space-2); }
.type-card {
  display: flex; align-items: flex-start; gap: var(--space-3); margin: 0;
  padding: var(--space-3) var(--space-4); font-weight: 400; cursor: pointer;
  background: var(--color-surface); border: 1px solid var(--color-border-strong); border-radius: var(--radius);
}
.type-card input { width: 1.25rem; height: 1.25rem; margin: .2rem 0 0; flex: none; accent-color: var(--color-primary); }
.type-card-title { display: block; font-weight: 700; }
/* Selected: thicker primary border plus the checked radio (not color alone). */
.type-card:has(input:checked) {
  border: 2px solid var(--color-primary);
  padding: calc(var(--space-3) - 1px) calc(var(--space-4) - 1px);
}
.type-card:has(input:focus-visible) { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.type-card:has(input:disabled) { cursor: not-allowed; }
.type-card:has(input:disabled:not(:checked)) { color: var(--color-text-muted); }
/* Budget only applies to gift exchanges. */
form:not(:has(input[name="type"][value="exchange"]:checked)) .exchange-budget { display: none; }
.event-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-1); }
.link-card .chip { align-self: flex-start; }
.exchange-recipient p { margin: 0; }
.exchange-recipient p + p { margin-top: var(--space-2); }
.exchange-recipient a { color: inherit; font-weight: 700; }
.exchange-panel form { margin: 0; }
.exchange-panel .member form { margin-left: auto; }
.exchange-exclusion-form { margin-bottom: var(--space-4); }

/* ---------- Landing (signed-out home) ---------- */
.hero { padding: var(--space-4) 0 var(--space-2); max-width: 44rem; }
.hero h1 { margin-top: 0; }
.lead { font-size: var(--text-lg); line-height: 1.45; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-5) 0 var(--space-3); }
/* Numbered steps; the number is a filled circle so order isn't conveyed by color alone. */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-4); counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: auto 1fr; column-gap: var(--space-3); }
.steps li::before {
  content: counter(step); grid-row: span 2;
  display: grid; place-items: center; width: var(--tap); height: var(--tap); border-radius: 50%;
  background: var(--color-primary); color: var(--color-on-primary);
  font-family: var(--font-display); font-weight: 800; font-size: var(--text-lg);
  box-shadow: 0 0 0 3px var(--color-gold);
}
.steps h3, .feature-list h3 { margin: 0 0 var(--space-1); }
.steps p, .feature-list p { margin: 0; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
@media (min-width: 56rem) {
  .hero { padding-top: var(--space-6); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .feature-list { grid-template-columns: repeat(2, 1fr); }
}
