/* ==========================================================================
   BuzzGrowth storefront — Orange · White · Warm stone
   --------------------------------------------------------------------------
   Design notes for whoever picks this up next:

   1. Orange (#ea580c) is the constant brand accent, carried over from
      BuzzReferrals. Platform colour is now confined to the platform glyph and
      its hover state, so Instagram still reads as Instagram without the page
      re-tinting wholesale and fighting the brand.

   2. The quantity is the hero. What is being sold is a number going up, so on
      a package card the number is the largest element and the price sits under
      it — the inverse of a normal pricing card.

   3. Neutrals are warm stone, not cool grey. On white, cool greys read
      clinical; the warm ramp keeps the orange from looking bolted on.

   4. Depth comes from soft warm shadows and hairline borders, never glow.
      Elevation is the light-theme equivalent of the old neon signature.
   ========================================================================== */

:root {
    /* Brand */
    --brand:      #ea580c;
    --brand-dark: #c2410c;
    --brand-lift: #f97316;
    --brand-soft: #fff7ed;
    --brand-line: #fed7aa;

    /* Surfaces — warm stone */
    --paper:   #ffffff;
    --paper-2: #fafaf9;
    --paper-3: #f5f5f4;
    --line:    #e7e5e4;
    --line-2:  #d6d3d1;

    /* Text */
    --ink:      #1c1917;
    --ink-2:    #57534e;
    --ink-soft: #78716c;

    --ok:   #059669;
    --warn: #d97706;
    --bad:  #dc2626;

    /* Platform accents. Overridden inline per tile/card; default to brand so
       nothing renders a stray colour if a platform is unknown. */
    --g1: var(--brand-lift);
    --g2: var(--brand);
    --g3: var(--brand-dark);

    --radius:    16px;
    --radius-sm: 11px;

    --shadow-sm: 0 1px 2px rgba(28, 25, 23, .06), 0 1px 3px rgba(28, 25, 23, .04);
    --shadow:    0 4px 10px -2px rgba(28, 25, 23, .07), 0 12px 28px -12px rgba(28, 25, 23, .12);
    --shadow-lg: 0 10px 24px -6px rgba(28, 25, 23, .10), 0 26px 60px -24px rgba(28, 25, 23, .18);
    --shadow-brand: 0 8px 22px -8px rgba(234, 88, 12, .45);

    --shell: 1180px;

    --display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
    --body:    'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Warm wash behind the hero only — keeps the top of the page from reading as
   flat white without tinting the whole document. */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 620px;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(48rem 26rem at 78% -12%, rgba(253, 186, 116, .30), transparent 68%),
        linear-gradient(180deg, var(--brand-soft) 0%, rgba(255, 255, 255, 0) 78%);
}

body > * { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.08;
    margin: 0 0 .5em;
    color: var(--ink);
}

p { margin: 0 0 1em; }

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    border-radius: 4px;
}

.shell {
    width: min(100% - 2.5rem, var(--shell));
    margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Type scale
   -------------------------------------------------------------------------- */

.t-display { font-size: clamp(2.3rem, 4.6vw, 3.7rem); }
.t-h2      { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.t-h3      { font-size: clamp(1.2rem, 2vw, 1.5rem); }

.eyebrow {
    font-family: var(--display);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 1rem;
    display: block;
}

.lede {
    font-size: clamp(1rem, 1.6vw, 1.14rem);
    color: var(--ink-2);
    max-width: 52ch;
}

.muted { color: var(--ink-2); }
.dim   { color: var(--ink-soft); }

.grad {
    background: linear-gradient(120deg, var(--brand-lift), var(--brand-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.num {
    font-family: var(--display);
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum' 1;
    letter-spacing: -0.03em;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-family: var(--display);
    font-weight: 600;
    font-size: .95rem;
    padding: .85rem 1.5rem;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .25s ease, background .2s ease, border-color .2s ease;
    text-align: center;
}

.btn-glow {
    background: linear-gradient(120deg, var(--brand-lift), var(--brand));
    color: #fff;
    box-shadow: var(--shadow-brand);
}

.btn-glow:hover {
    transform: translateY(-2px);
    background: linear-gradient(120deg, var(--brand), var(--brand-dark));
    box-shadow: 0 12px 30px -8px rgba(234, 88, 12, .55);
}

.btn-ghost {
    background: var(--paper);
    border-color: var(--line-2);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); }

.btn-block { width: 100%; }

.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.masthead {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, .86);
    border-bottom: 1px solid var(--line);
}

.masthead-in {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 68px;
}

.wordmark {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: .55rem;
    color: var(--ink);
}

/* The mark: three bars climbing, i.e. the thing being sold */
.mark {
    display: inline-flex;
    align-items: flex-end;
    gap: 3px;
    height: 20px;
}

.mark i {
    display: block;
    width: 4px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--brand-lift), var(--brand-dark));
}

.mark i:nth-child(1) { height: 8px; opacity: .55; }
.mark i:nth-child(2) { height: 14px; opacity: .8; }
.mark i:nth-child(3) { height: 20px; }

.nav {
    display: flex;
    gap: 1.4rem;
    margin-left: auto;
    align-items: center;
}

.nav a {
    font-size: .92rem;
    color: var(--ink-2);
    font-weight: 500;
    transition: color .18s ease;
}

.nav a:hover, .nav a[aria-current="page"] { color: var(--brand-dark); }

.cart-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 1rem;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    font-family: var(--display);
    font-size: .88rem;
    font-weight: 600;
    color: var(--ink);
    background: var(--paper);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.cart-pill:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }

.cart-pill .count {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: .72rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    background: var(--paper);
    border: 1px solid var(--line-2);
    border-radius: 10px;
    color: var(--ink);
    padding: .5rem .7rem;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero { padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem); }

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.hero h1 { margin-bottom: 1.2rem; }

.hero-actions {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
    margin-top: 1.8rem;
}

.trust-row {
    display: flex;
    gap: 1.4rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--line);
}

.trust-row div {
    font-size: .85rem;
    color: var(--ink-2);
    display: flex;
    align-items: center;
    gap: .45rem;
}

.trust-row strong {
    font-family: var(--display);
    color: var(--ink);
    font-weight: 600;
}

/* Home-page order builder. --calc-accent is set from JS per platform; the card
   itself stays brand orange, so switching platform tints rather than re-skins. */
.calc {
    --calc-accent: var(--brand);
    position: relative;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: clamp(1.3rem, 3vw, 1.8rem);
    box-shadow: var(--shadow-lg);
}

.calc-head { margin-bottom: 1.3rem; }

.calc-eyebrow {
    display: block;
    font-family: var(--display);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--calc-accent);
    margin-bottom: .35rem;
}

.calc-h {
    font-family: var(--display);
    font-size: clamp(1.15rem, 2.4vw, 1.4rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    color: var(--ink);
}

.calc-step { margin-bottom: 1.1rem; }

.calc-label {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: .5rem;
}

.calc-pills { display: flex; flex-wrap: wrap; gap: .4rem; }

.calc-pill {
    font-family: var(--body);
    font-size: .86rem;
    font-weight: 600;
    color: var(--ink-2);
    background: var(--paper-2);
    border: 1px solid var(--line-2);
    border-radius: 99px;
    padding: .48rem .85rem;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.calc-pill:hover { border-color: var(--calc-accent); color: var(--ink); }

.calc-pill.is-on {
    background: var(--calc-accent);
    border-color: var(--calc-accent);
    color: #fff;
}

.calc-pill:focus-visible {
    outline: 2px solid var(--calc-accent);
    outline-offset: 2px;
}

.calc-pills-qty .calc-pill { font-variant-numeric: tabular-nums; }

.calc-pill-custom { border-style: dashed; }

/* A class with display:flex outranks the UA rule for [hidden], so the attribute
   has to be honoured explicitly or the box never hides. */
.calc-custom[hidden] { display: none; }

.calc-custom {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-top: .6rem;
}

.calc-custom .input { padding: .55rem .8rem; font-size: .9rem; }

.calc-custom-hint {
    font-size: .74rem;
    color: var(--ink-soft);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* Live preview. A generic mock, never a real account — the only number on it is
   the amount being bought. */
.calc-preview { margin: 1.3rem 0 1.1rem; }

.mock {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.mock-top {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .8rem .95rem;
    border-bottom: 1px solid var(--line);
    background: var(--paper-2);
}

.mock-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(140deg, var(--calc-accent), var(--brand-dark));
}

.mock-id { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }

.mock-handle {
    font-family: var(--display);
    font-weight: 600;
    font-size: .88rem;
    color: var(--ink);
}

.mock-where { font-size: .73rem; color: var(--ink-soft); }

.mock-stat {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    flex-wrap: wrap;
    padding: 1rem .95rem 1.1rem;
}

.mock-num {
    font-family: var(--display);
    font-variant-numeric: tabular-nums;
    font-size: clamp(2rem, 6vw, 2.7rem);
    font-weight: 700;
    line-height: 1;
    color: var(--ink);
    /* Nudge on change so the number visibly ticks over as you pick amounts. */
    animation: mock-tick .28s ease;
}

@keyframes mock-tick {
    from { opacity: .45; transform: translateY(2px); }
    to   { opacity: 1;   transform: none; }
}

.mock-unit {
    font-family: var(--display);
    font-size: .95rem;
    font-weight: 600;
    color: var(--calc-accent);
    text-transform: lowercase;
}

.calc-note {
    margin: .6rem 0 0;
    font-size: .82rem;
    line-height: 1.5;
    color: var(--ink-2);
}

/* CTA with nothing valid to point at yet. */
.calc-cta.is-off {
    pointer-events: none;
    opacity: .5;
    filter: grayscale(.4);
}

.calc-trust {

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .35rem 1rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    font-size: .74rem;
    color: var(--ink-soft);
}

.calc-trust li { display: flex; align-items: center; gap: .35rem; }

.calc-trust li::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ok);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.band { padding: clamp(3rem, 7vw, 5rem) 0; }

/* Alternating warm band, applied inline where a section needs separation */
.band-tint { background: var(--paper-2); border-block: 1px solid var(--line); }

.band-head {
    max-width: 60ch;
    margin-bottom: clamp(2rem, 4vw, 2.8rem);
}

/* --------------------------------------------------------------------------
   Platform tiles
   -------------------------------------------------------------------------- */

.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
}

.tile {
    position: relative;
    display: block;
    padding: 1.6rem;
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform .22s ease, border-color .22s ease, box-shadow .25s ease;
}

.tile:hover {
    transform: translateY(-4px);
    border-color: var(--line-2);
    box-shadow: var(--shadow);
}

.tile > * { position: relative; }

.tile-name {
    font-family: var(--display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: .2rem;
}

.tile-meta { font-size: .84rem; color: var(--ink-soft); }

.tile-from {
    margin-top: 1.1rem;
    font-family: var(--display);
    font-size: .85rem;
    font-weight: 600;
    color: var(--brand-dark);
}

/* Platform identity lives here and nowhere else */
.glyph {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(140deg, var(--g1), var(--g2));
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.glyph svg { width: 20px; height: 20px; fill: #fff; }

/* --------------------------------------------------------------------------
   Service cards
   -------------------------------------------------------------------------- */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
    gap: 1rem;
}

.card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform .22s ease, border-color .22s ease, box-shadow .25s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-line);
    box-shadow: var(--shadow);
}

.card-tag {
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brand);
    font-family: var(--display);
    font-weight: 600;
}

.card h3 { font-size: 1.18rem; margin: .5rem 0 .4rem; }

.card p { font-size: .9rem; color: var(--ink-2); margin-bottom: 1.2rem; }

.card-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.card-from {
    font-family: var(--display);
    font-size: .9rem;
    font-weight: 600;
    color: var(--ink);
}

.card-from span { color: var(--ink-soft); font-weight: 500; }

/* --------------------------------------------------------------------------
   Package cards — the signature. Quantity is the hero, price is secondary.
   -------------------------------------------------------------------------- */

.packs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: .75rem;
}

.pack { position: relative; }

.pack input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.pack label {
    display: block;
    padding: 1.4rem 1rem 1.2rem;
    border-radius: var(--radius-sm);
    background: var(--paper);
    border: 1.5px solid var(--line);
    text-align: center;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
    height: 100%;
}

.pack label:hover {
    transform: translateY(-3px);
    border-color: var(--brand-line);
    box-shadow: var(--shadow-sm);
}

.pack input:checked + label {
    border-color: var(--brand);
    background: var(--brand-soft);
    box-shadow: var(--shadow-brand);
}

.pack input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 3px; }

.pack-qty {
    font-family: var(--display);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: clamp(1.7rem, 3.2vw, 2.3rem);
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--brand);
    display: block;
}

.pack input:checked + label .pack-qty { color: var(--brand-dark); }

.pack-unit {
    font-size: .67rem;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-top: .35rem;
}

.pack-price {
    margin-top: .9rem;
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--ink);
}

.pack-was {
    font-size: .78rem;
    color: var(--ink-soft);
    text-decoration: line-through;
    margin-left: .35rem;
    font-weight: 500;
}

.pack-badge {
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand);
    color: #fff;
    font-family: var(--display);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .25rem .65rem;
    border-radius: 999px;
    white-space: nowrap;
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.field { margin-bottom: 1.2rem; }

.field label.lbl {
    display: block;
    font-family: var(--display);
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: .5rem;
    color: var(--ink);
}

.field .hint { font-size: .8rem; color: var(--ink-soft); margin-top: .45rem; }

.input, .select {
    width: 100%;
    padding: .9rem 1rem;
    background: var(--paper);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-family: var(--body);
    font-size: .98rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.input::placeholder { color: var(--ink-soft); }

.input:focus, .select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, .14);
}

.input-affix {
    display: flex;
    align-items: center;
    background: var(--paper);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.input-affix:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, .14);
}

.input-affix .affix {
    padding-left: 1rem;
    font-family: var(--display);
    font-weight: 600;
    color: var(--ink-soft);
}

.input-affix .input {
    border: 0;
    background: none;
    box-shadow: none;
    padding-left: .3rem;
}

.input-affix .input:focus { box-shadow: none; }

/* --------------------------------------------------------------------------
   Product page
   -------------------------------------------------------------------------- */

.product {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
    padding: clamp(1.5rem, 4vw, 3rem) 0;
}

.panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.3rem, 3vw, 1.9rem);
    box-shadow: var(--shadow);
}

.panel-sticky { position: sticky; top: 88px; }

.spec {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    padding: 1.2rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin: 1.5rem 0;
}

.spec div .k {
    font-size: .67rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    display: block;
    margin-bottom: .25rem;
}

.spec div .v { font-family: var(--display); font-weight: 600; font-size: .95rem; }

.crumbs {
    font-size: .85rem;
    color: var(--ink-soft);
    padding-top: 1.5rem;
}

.crumbs a:hover { color: var(--brand-dark); }

.total-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 1.4rem 0 1rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
}

.total-line .amt {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.8rem;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}

/* --------------------------------------------------------------------------
   Cart & checkout
   -------------------------------------------------------------------------- */

.layout-split {
    display: grid;
    grid-template-columns: 1.4fr .85fr;
    gap: clamp(1.5rem, 3vw, 2.2rem);
    align-items: start;
    padding-bottom: 4rem;
}

.line {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.1rem;
    align-items: center;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--line);
}

.line:last-child { border-bottom: 0; }

.line-qty {
    font-family: var(--display);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 1.15rem;
    min-width: 4.2rem;
    padding: .55rem .7rem;
    text-align: center;
    border-radius: 10px;
    background: var(--brand-soft);
    border: 1px solid var(--brand-line);
    color: var(--brand-dark);
}

.line-name { font-family: var(--display); font-weight: 600; font-size: .98rem; }

.line-target {
    font-size: .83rem;
    color: var(--ink-soft);
    word-break: break-all;
    margin-top: .15rem;
}

.line-right { text-align: right; display: flex; align-items: center; gap: 1rem; }

.line-price {
    font-family: var(--display);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: .92rem;
    color: var(--ink-2);
    margin-bottom: .6rem;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--line);
    font-family: var(--display);
    font-weight: 700;
}

.summary-total .amt { font-size: 1.7rem; font-variant-numeric: tabular-nums; }

.icon-btn {
    background: var(--paper);
    border: 1px solid var(--line-2);
    color: var(--ink-soft);
    width: 32px;
    height: 32px;
    border-radius: 9px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
    flex-shrink: 0;
    font-size: 1.05rem;
    line-height: 1;
}

.icon-btn:hover { color: var(--bad); border-color: var(--bad); background: #fef2f2; }

.pay-methods { display: grid; gap: .6rem; margin-top: .4rem; }

.pay { position: relative; }

.pay input { position: absolute; opacity: 0; width: 0; height: 0; }

.pay label {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .9rem 1rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: .92rem;
    background: var(--paper);
    transition: border-color .2s ease, background .2s ease;
}

.pay label:hover { border-color: var(--brand-line); }

.pay input:checked + label {
    border-color: var(--brand);
    background: var(--brand-soft);
}

.pay input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 3px; }

.empty {
    text-align: center;
    padding: clamp(3rem, 8vw, 5rem) 1rem;
}

.empty .glyph { margin-inline: auto; }

/* --------------------------------------------------------------------------
   Legal / policy pages
   -------------------------------------------------------------------------- */

.legal-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1.4rem;
    align-items: start;
    padding: 1rem 0 4rem;
}

/* Long-form reading: narrower measure, looser leading than the storefront. */
.legal {
    max-width: 74ch;
    line-height: 1.75;
}

.legal h1 { margin-bottom: 1.4rem; }

.legal h2 {
    font-size: 1.12rem;
    margin: 2.1rem 0 .6rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
}

.legal h2:first-of-type { border-top: 0; padding-top: 0; }

.legal p  { color: var(--ink-2); margin-bottom: 1rem; }
.legal ul { color: var(--ink-2); margin: 0 0 1.2rem; padding-left: 1.2rem; }
.legal li { margin-bottom: .5rem; }

.legal strong { color: var(--ink); font-weight: 600; }

.legal a {
    color: var(--brand-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-updated {
    font-size: .85rem;
    color: var(--ink-soft);
    padding-bottom: 1.2rem;
    margin-bottom: 1.6rem;
    border-bottom: 1px solid var(--line);
}

.legal-links { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; gap: .55rem; }

.legal-links a {
    font-size: .92rem;
    color: var(--ink-2);
    font-weight: 500;
}

.legal-links a:hover { color: var(--brand-dark); }

@media (max-width: 900px) {
    .legal-wrap { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Account dashboard shell
   --------------------------------------------------------------------------
   A light rail rather than the admin's charcoal one: the member area is part
   of the shop, so it stays on paper. The admin is the dark surface, and that
   contrast is what tells the two apart.
   -------------------------------------------------------------------------- */

.acct-shell {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    min-height: 100vh;
    background: var(--paper-2);
}

.acct-side {
    background: var(--paper);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.acct-side__brand {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid var(--line);
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -.03em;
    color: var(--ink);
}

.acct-side__group {
    padding: 1rem .75rem .35rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.acct-side__link {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin: 1px .6rem;
    padding: .65rem .8rem;
    border-radius: 9px;
    font-size: .92rem;
    font-weight: 500;
    color: var(--ink-2);
    transition: background .16s ease, color .16s ease;
}

.acct-side__link svg { width: 17px; height: 17px; flex-shrink: 0; fill: currentColor; opacity: .75; }

.acct-side__link:hover { background: var(--paper-3); color: var(--ink); }

.acct-side__link.is-active {
    background: var(--brand);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px -5px rgba(234, 88, 12, .55);
}

.acct-side__link.is-active svg { opacity: 1; }

.acct-side__foot {
    margin-top: auto;
    padding: .9rem;
    border-top: 1px solid var(--line);
}

.acct-top {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1.5rem;
    height: 62px;
}

.acct-top__title {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -.02em;
    margin: 0;
}

.acct-top__right { margin-left: auto; display: flex; align-items: center; gap: .7rem; }

.acct-who {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .86rem;
    color: var(--ink-2);
}

.acct-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(140deg, var(--brand-lift), var(--brand-dark));
    color: #fff;
    display: grid;
    place-items: center;
    font-family: var(--display);
    font-weight: 700;
    font-size: .8rem;
    flex-shrink: 0;
}

.acct-main { min-width: 0; }
.acct-body { padding: 1.6rem 1.5rem 5rem; }

.acct-side__toggle {
    display: none;
    background: var(--paper);
    border: 1px solid var(--line-2);
    border-radius: 9px;
    padding: .45rem .6rem;
    cursor: pointer;
    color: var(--ink);
}

/* Welcome hero */
.acct-hero {
    background: linear-gradient(115deg, var(--brand-soft), #ffffff 62%);
    border: 1px solid var(--brand-line);
    border-radius: var(--radius);
    padding: 1.5rem 1.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.1rem;
}

.acct-hero h1 {
    font-size: clamp(1.35rem, 2.6vw, 1.8rem);
    margin: 0 0 .3rem;
}

.acct-hero p { margin: 0; color: var(--ink-2); font-size: .93rem; }

/* Order pipeline tiles */
.pipeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: .7rem;
    margin-bottom: 1.1rem;
}

.pipe {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: .95rem 1rem;
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, border-color .18s ease, box-shadow .2s ease;
}

a.pipe:hover {
    transform: translateY(-2px);
    border-color: var(--brand-line);
    box-shadow: var(--shadow);
}

.pipe.is-active { border-color: var(--brand); background: var(--brand-soft); }

.pipe__v {
    display: block;
    font-family: var(--display);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -.03em;
    line-height: 1.1;
    color: var(--ink);
}

.pipe__k {
    display: block;
    margin-top: .18rem;
    font-size: .76rem;
    color: var(--ink-soft);
    font-weight: 500;
}

/* Onboarding, shown until the first order exists */
.onboard { display: grid; gap: .7rem; }

.onboard__step {
    display: flex;
    gap: 1rem;
    padding: 1.1rem 1.2rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.onboard__n {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand-dark);
    border: 1px solid var(--brand-line);
    display: grid;
    place-items: center;
    font-family: var(--display);
    font-weight: 700;
    font-size: .82rem;
    flex-shrink: 0;
}

.onboard__step h3 { font-size: 1rem; margin: 0 0 .2rem; }
.onboard__step p  { margin: 0; font-size: .9rem; color: var(--ink-2); }

/* Mobile bottom bar */
.acct-bottom {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    padding: .4rem .5rem calc(.4rem + env(safe-area-inset-bottom));
}

.acct-bottom__row { display: grid; grid-template-columns: repeat(4, 1fr); }

.acct-bottom__link {
    display: grid;
    justify-items: center;
    gap: 3px;
    padding: .45rem .2rem;
    font-size: .68rem;
    font-weight: 600;
    color: var(--ink-soft);
    border-radius: 9px;
}

.acct-bottom__link svg { width: 19px; height: 19px; fill: currentColor; }
.acct-bottom__link.is-active { color: var(--brand-dark); }

@media (max-width: 900px) {
    .acct-shell { grid-template-columns: 1fr; }

    .acct-side {
        position: fixed;
        inset: 0 auto 0 0;
        width: 264px;
        z-index: 60;
        transform: translateX(-100%);
        transition: transform .22s ease;
        box-shadow: var(--shadow-lg);
    }

    .acct-side.is-open { transform: none; }
    .acct-side__toggle { display: inline-flex; }
    .acct-bottom { display: block; }
    .acct-body { padding: 1.2rem 1rem 6rem; }
}

.acct-scrim {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(28, 25, 23, .45);
    z-index: 50;
}

.acct-scrim.is-open { display: block; }

/* --------------------------------------------------------------------------
   Account area
   -------------------------------------------------------------------------- */

.acct-nav {
    display: flex;
    gap: .3rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--line);
    margin-bottom: 1.6rem;
}

.acct-nav__link {
    font-family: var(--display);
    font-size: .92rem;
    font-weight: 600;
    color: var(--ink-2);
    padding: .7rem 1rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color .18s ease, border-color .18s ease;
}

.acct-nav__link:hover { color: var(--brand-dark); }

.acct-nav__link.is-active {
    color: var(--brand-dark);
    border-bottom-color: var(--brand);
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: .75rem;
}

.stat {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.15rem 1.25rem;
}

.stat__v {
    display: block;
    font-family: var(--display);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 1.7rem;
    letter-spacing: -.03em;
    color: var(--ink);
    line-height: 1.1;
}

.stat__k {
    display: block;
    margin-top: .3rem;
    font-size: .78rem;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

/* Two-up form fields; collapses on narrow screens */
.row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 620px) {
    .row-2 { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Order status
   -------------------------------------------------------------------------- */

.status {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .7rem;
    border-radius: 999px;
    font-family: var(--display);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .04em;
    border: 1px solid transparent;
    white-space: nowrap;
}

.status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-pending    { color: #b45309; background: #fffbeb; border-color: #fde68a; }
.status-processing { color: var(--brand-dark); background: var(--brand-soft); border-color: var(--brand-line); }
.status-completed  { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }
.status-cancelled  { color: #b91c1c; background: #fef2f2; border-color: #fecaca; }
.status-refunded   { color: #4338ca; background: #eef2ff; border-color: #c7d2fe; }

/* Animate only the in-flight state, so movement means something */
.status-processing::before { animation: pulse-dot 1.8s ease-in-out infinite; }

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50%      { opacity: .3; }
}

.progress {
    height: 7px;
    border-radius: 999px;
    background: var(--paper-3);
    overflow: hidden;
    margin: .7rem 0 .45rem;
}

.progress span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-lift), var(--brand));
    transition: width .6s ease;
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: .8rem;
    color: var(--ink-soft);
    font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Order list & detail
   -------------------------------------------------------------------------- */

.orders { display: grid; gap: .8rem; }

.order-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.1rem;
    align-items: center;
    padding: 1.15rem 1.3rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

a.order-row:hover {
    transform: translateY(-2px);
    border-color: var(--brand-line);
    box-shadow: var(--shadow);
}

.order-id {
    font-family: var(--display);
    font-size: .78rem;
    color: var(--ink-soft);
}

.order-name { font-family: var(--display); font-weight: 600; font-size: 1rem; }

.order-target {
    font-size: .83rem;
    color: var(--ink-soft);
    word-break: break-all;
}

/* Receipt block on the confirmation page */
.receipt {
    display: grid;
    gap: .55rem;
    padding: 1.1rem 1.3rem;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: .9rem;
}

.receipt div { display: flex; justify-content: space-between; gap: 1rem; }

.receipt .trx {
    font-family: var(--display);
    font-size: .82rem;
    word-break: break-all;
}

/* Success mark — one calm confirmation, not a celebration */
.tick {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    display: grid;
    place-items: center;
    margin-bottom: 1.2rem;
    font-size: 1.6rem;
    line-height: 1;
}

.tick.waiting {
    background: var(--brand-soft);
    border-color: var(--brand-line);
    color: var(--brand-dark);
}

/* --------------------------------------------------------------------------
   Steps — a genuine sequence, so numbering carries real information
   -------------------------------------------------------------------------- */

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.6rem;
    counter-reset: step;
}

.step { counter-increment: step; }

.step::before {
    content: counter(step, decimal-leading-zero);
    font-family: var(--display);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--brand);
    display: block;
    margin-bottom: .7rem;
}

.step h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.step p  { font-size: .9rem; color: var(--ink-2); margin: 0; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq { max-width: 780px; }

.faq details {
    border-bottom: 1px solid var(--line);
    padding: 1.15rem 0;
}

.faq summary {
    cursor: pointer;
    font-family: var(--display);
    font-weight: 600;
    font-size: 1rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    color: var(--ink);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--brand);
    transition: transform .2s ease;
    line-height: 1;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq p { margin: .8rem 0 0; color: var(--ink-2); font-size: .93rem; }

/* --------------------------------------------------------------------------
   Notices
   -------------------------------------------------------------------------- */

.notices {
    position: fixed;
    top: 84px;
    right: 1.25rem;
    z-index: 90;
    display: grid;
    gap: .6rem;
    max-width: min(94vw, 380px);
}

.notice {
    padding: .85rem 1.1rem;
    border-radius: var(--radius-sm);
    background: var(--paper);
    border: 1px solid var(--line);
    border-left-width: 3px;
    font-size: .9rem;
    color: var(--ink);
    box-shadow: var(--shadow-lg);
    animation: slide-in .3s ease both;
}

.notice.success { border-left-color: var(--ok); }
.notice.error   { border-left-color: var(--bad); }
.notice.warning { border-left-color: var(--warn); }

@keyframes slide-in {
    from { opacity: 0; transform: translateX(14px); }
    to   { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
    border-top: 1px solid var(--line);
    background: var(--paper-2);
    padding: 3rem 0 2.5rem;
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer h4 {
    font-size: .76rem;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: .9rem;
}

.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }

.footer a { font-size: .9rem; color: var(--ink-2); }
.footer a:hover { color: var(--brand-dark); }

.footer-base {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1.6rem;
    border-top: 1px solid var(--line);
    font-size: .82rem;
    color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 940px) {
    .hero-grid,
    .product,
    .layout-split { grid-template-columns: 1fr; }

    .panel-sticky { position: static; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .nav-toggle { display: block; }

    .nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        padding: .5rem 1.25rem 1.25rem;
    }

    .nav.open { display: flex; }

    .nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }

    .cart-pill { margin-top: .8rem; justify-content: center; }

    .line { grid-template-columns: auto 1fr; }

    .line-right {
        grid-column: 1 / -1;
        justify-content: space-between;
        border-top: 1px dashed var(--line);
        padding-top: .8rem;
    }

    .notices { top: 78px; right: .75rem; left: .75rem; }
}

@media (max-width: 520px) {
    .footer-grid { grid-template-columns: 1fr; }
    .packs { grid-template-columns: repeat(2, 1fr); }
}

/* --------------------------------------------------------------------------
   Contact, blog and API pages
   -------------------------------------------------------------------------- */

/* .input already covers textarea via the class; these are the extras a
   multi-line field needs. */
textarea.input {
    min-height: 9.5rem;
    line-height: 1.6;
    resize: vertical;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.4rem;
    align-items: start;
}

.contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
}

.contact-tips,
.contact-details,
.about-steps,
.about-nots,
.api-params {
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-tips li {
    font-size: .92rem;
    color: var(--ink-2);
    line-height: 1.6;
    padding: .75rem 0;
    border-bottom: 1px solid var(--line);
}

.contact-tips li:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-tips strong { color: var(--ink); }

.contact-details li {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding: .6rem 0;
    font-size: .92rem;
    border-bottom: 1px solid var(--line);
}

.contact-details li:last-child { border-bottom: 0; }
.contact-details .muted { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.contact-details a { color: var(--brand-dark); }

/* About ------------------------------------------------------------------- */

.about-steps { counter-reset: step; }

.about-steps li {
    position: relative;
    counter-increment: step;
    padding: .85rem 0 .85rem 2.6rem;
    font-size: .95rem;
    color: var(--ink-2);
    line-height: 1.65;
    border-bottom: 1px solid var(--line);
}

.about-steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.about-steps strong { color: var(--ink); }

.about-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: .85rem;
    width: 1.8rem;
    height: 1.8rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brand-soft);
    border: 1px solid var(--brand-line);
    color: var(--brand-dark);
    font-family: var(--display);
    font-weight: 700;
    font-size: .82rem;
}

.about-nots li {
    padding: .75rem 0;
    font-size: .95rem;
    color: var(--ink-2);
    line-height: 1.65;
    border-bottom: 1px solid var(--line);
}

.about-nots li:last-child { border-bottom: 0; padding-bottom: 0; }
.about-nots strong { color: var(--ink); }

/* Blog -------------------------------------------------------------------- */

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
    margin-top: 2rem;
}

.post-card {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}

.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.post-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-3); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.post-card-body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; flex: 1; }

.post-title {
    font-family: var(--display);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 .5rem;
}

.post-title a { color: var(--ink); text-decoration: none; }
.post-title a:hover { color: var(--brand-dark); }

.post-excerpt { font-size: .9rem; line-height: 1.6; margin: 0 0 1rem; flex: 1; }

.post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    font-size: .82rem;
    color: var(--ink-soft);
}

.post-more { color: var(--brand-dark); font-weight: 600; text-decoration: none; }
.post-more:hover { text-decoration: underline; }

.post-hero { width: 100%; border-radius: var(--radius-sm); margin: 0 0 1.4rem; display: block; }

.post-toc {
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: .9rem 1.1rem;
    margin: 0 0 1.6rem;
}

.post-toc-h {
    display: block;
    font-family: var(--display);
    font-size: .74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-soft);
    margin-bottom: .5rem;
}

.post-toc ul { margin: 0; padding-left: 1.1rem; }
.post-toc li { font-size: .9rem; margin: .25rem 0; }
.post-toc a { color: var(--ink-2); }
.post-toc a:hover { color: var(--brand-dark); }

.empty-state { text-align: center; padding: 2.6rem 1.4rem; }
.empty-state > div { justify-content: center; }

/* API --------------------------------------------------------------------- */

.api-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 0; }
.api-facts dt {
    font-family: var(--display);
    font-size: .74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-soft);
    margin-bottom: .3rem;
}
.api-facts dd { margin: 0; font-size: .92rem; word-break: break-all; }

.api-toc ul { margin: 0; padding-left: 1.1rem; }
.api-toc li { font-size: .92rem; margin: .3rem 0; }
.api-toc a { color: var(--ink-2); text-decoration: none; }
.api-toc a:hover { color: var(--brand-dark); text-decoration: underline; }

.api-sub {
    font-family: var(--display);
    font-size: .76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-soft);
    margin: 1.3rem 0 .5rem;
}

.api-params li { font-size: .9rem; color: var(--ink-2); padding: .3rem 0; line-height: 1.55; }

.api-tag {
    font-size: .72rem;
    padding: .18rem .5rem;
    border-radius: 99px;
    background: var(--brand-soft);
    border: 1px solid var(--brand-line);
    color: var(--brand-dark);
    vertical-align: middle;
    margin-left: .35rem;
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .875em;
    background: var(--paper-3);
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: .1rem .35rem;
}

/* Wide samples scroll inside the block rather than the page. */
.api-code {
    background: var(--ink);
    color: #f5f5f4;
    border-radius: var(--radius-sm);
    padding: .95rem 1.1rem;
    overflow-x: auto;
    margin: 0;
    font-size: .84rem;
    line-height: 1.6;
}

.api-code code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }

@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .contact-row { grid-template-columns: 1fr; }
}


/* Custom-amount tile. Dashed so it reads as "not one of the fixed packs", and
   the word "Custom" needs a smaller size than the numerals it sits beside. */
.pack-custom label { border-style: dashed; }

.pack-custom .pack-qty {
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    letter-spacing: -0.01em;
    padding-top: .35rem;
}

.custom-qty { margin-top: 1.1rem; }

/* Visually hidden, still read aloud. */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* Sign-in alternatives ---------------------------------------------------- */

.auth-or {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin: 1.2rem 0;
    color: var(--ink-soft);
    font-size: .82rem;
}

.auth-or::before,
.auth-or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
}

.btn-google svg { flex-shrink: 0; }

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

    .tile:hover, .card:hover, .pack label:hover, .btn-glow:hover { transform: none; }
}
