/* ===========================================================================
   VisionCart Optical — storefront

   The look of a good independent optician: an editorial serif for anything
   that speaks, a quiet sans for anything that works, warm paper rather than
   the blue-white of a dashboard, and enough space around a pair of frames to
   let somebody actually look at them.

   Selling prescription eyewear is selling craft and judgement. A page that
   looks like an internal tool undermines both before a word is read.

   Fonts are served from this origin. Google's CDN would put a third party
   between the customer and the page — the same reason the face model is
   hosted here — and would need the CSP opened up for it.
   =========================================================================== */

@font-face {
    font-family: "Fraunces";
    src: url("/fonts/fraunces-latin.woff2") format("woff2");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF;
}

@font-face {
    font-family: "Inter";
    src: url("/fonts/inter-latin.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF;
}

/* --- tokens --------------------------------------------------------------- */
:root {
    /* Warm neutrals. A cool grey reads as software; paper reads as a shop. */
    --paper:        #FAF8F5;
    --paper-sunk:   #F2EEE8;
    --surface:      #FFFFFF;
    --ink:          #1C1917;
    --ink-2:        #443E39;
    --ink-3:        #6B635C;
    /* Hairlines, swatch rings and inert marks only — NOT text. Measured at
       2.9:1 on the page background, which is below the 4.5:1 that readable
       body text needs. Quiet text is --ink-3, which clears it at 5.6:1. */
    --ink-4:        #9A918A;
    --rule:         #E7E2DA;
    --rule-strong:  #D6CEC2;

    /* One accent, used sparingly. Bronze sits with the neutrals instead of
       fighting them, and reads as spectacles rather than as software. */
    --accent:       #7C6A52;
    --accent-deep:  #5E4F3C;
    --accent-wash:  #F1ECE3;

    /* Semantic, kept separate from the accent so status never reads as brand. */
    --good:         #2F6A4F;
    --good-wash:    #E8F1EC;
    --warn:         #8A5A1B;
    --warn-wash:    #FAF1E1;
    --bad:          #98342C;
    --bad-wash:     #F9ECEA;

    --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
    --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
    --mono:  ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

    --radius:    4px;
    --radius-lg: 10px;

    /* Shadows are warm and shallow. A blue-grey drop shadow is the fastest way
       to make a page look like a template. */
    --lift:   0 1px 2px rgba(28,25,23,.04), 0 2px 8px rgba(28,25,23,.05);
    --lift-2: 0 2px 6px rgba(28,25,23,.05), 0 12px 28px rgba(28,25,23,.08);


    /* --- Type scale -----------------------------------------------------
       Seven steps, down from the sixteen ad-hoc sizes this file grew. A
       reader navigates by contrast between levels; sixteen sizes separated
       by half a pixel produce no contrast at all, only inconsistency.

       Display and H1 use clamp() so a hero fills a phone without swallowing
       a laptop — the previous fixed sizes left the desktop hero occupying a
       whole viewport for one sentence. */
    --text-display: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem);
    --text-h1:      clamp(1.75rem, 1.25rem + 2vw, 2.5rem);
    --text-h2:      1.5rem;      /* 24px */
    --text-h3:      1.3125rem;   /* 21px */
    --text-lead:    1.125rem;    /* 18px */
    --text-body:    1rem;        /* 16px */
    --text-small:   0.875rem;    /* 14px */
    --text-caption: 0.78125rem;  /* 12.5px */
    --text-label:   0.71875rem;  /* 11.5px — uppercase field labels */

    --leading-tight: 1.12;
    --leading-snug:  1.3;
    --leading-body:  1.6;

    /* --- Spacing --------------------------------------------------------
       A 4px base. Twenty-three hand-picked values were doing the work of
       eight, which is how a layout ends up almost-aligned everywhere. */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --space-9: 96px;

    --measure: 68ch;
    --gutter: clamp(20px, 4vw, 48px);

    /* How wide the shop is allowed to get. 1240px left a 1680px screen 74%
       used with 220px of dead margin down each side, and squeezed the
       catalogue grid to three columns — a shop looking through a letterbox.
       Prose still wraps at --measure or .wrap-narrow; this governs the
       furniture and the product grids, which want the room. */
    --wrap-max: 1460px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: var(--text-body);
    line-height: 1.6;
    font-feature-settings: "cv05" 1, "cv08" 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* The `hidden` attribute takes its display:none from the browser's stylesheet,
   which any author rule outranks. Several rules below set a display, so without
   this `element.hidden = true` silently does nothing to them. */
[hidden] { display: none !important; }

img, svg, video, canvas { max-width: 100%; }
img { height: auto; }

::selection { background: var(--accent-wash); color: var(--accent-deep); }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* --- typography ----------------------------------------------------------- */
h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 600;
    font-optical-sizing: auto;
    letter-spacing: -.012em;
    line-height: 1.14;
    text-wrap: balance;
    margin: 0 0 .5em;
    color: var(--ink);
}

h1 { font-size: var(--text-h1); letter-spacing: -.022em; }
h2 { font-size: clamp(24px, 3vw, 33px); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-lead); letter-spacing: -.005em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-deep); text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

strong { font-weight: 600; }
small, .small { font-size: var(--text-small); }
.muted { color: var(--ink-3); }
.lede { font-size: var(--text-lead); line-height: 1.62; color: var(--ink-2); max-width: 56ch; }

/* A short line of small caps above a heading. Used for section labels, never
   for decoration — it should always name what follows. */
.eyebrow {
    font-family: var(--sans);
    font-size: var(--text-label);
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 14px;
}

code, kbd, .mono { font-family: var(--mono); font-size: .9em; }
.num { font-variant-numeric: tabular-nums; }

/* --- layout --------------------------------------------------------------- */
.wrap { max-width: var(--wrap-max); margin: 0 auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding-inline: var(--gutter); }
.prose { max-width: var(--measure); }

.section { padding-block: clamp(44px, 7vw, 88px); }
.section-tight { padding-block: clamp(28px, 4vw, 48px); }

.stack > * + * { margin-top: var(--space-4); }
.row { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; }

.rule { border: 0; border-top: 1px solid var(--rule); margin-block: var(--space-6); }

/* --- buttons -------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-family: var(--sans);
    font-size: var(--text-small);
    font-weight: 500;
    line-height: 1;
    padding: 13px 22px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent-deep); color: var(--paper); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-outline:hover { border-color: var(--ink); background: var(--surface); color: var(--ink); }
.btn-quiet { background: transparent; color: var(--ink-2); padding-inline: var(--space-2); }
.btn-quiet:hover { color: var(--ink); }
.btn-small { font-size: var(--text-caption); padding: 9px 14px; }
.btn-block { display: flex; width: 100%; }
.btn-danger { color: var(--bad); border-color: #E3C8C4; background: transparent; }
.btn-danger:hover { background: var(--bad-wash); border-color: var(--bad); color: var(--bad); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

/* --- forms ---------------------------------------------------------------- */
/* Field captions only. A label that WRAPS its control is a choice the customer
   reads as a sentence — putting "Made to your Rx." in small caps makes the page
   shout at them. :has() keeps the two cases apart without touching the markup. */
label:not(:has(input, select, textarea)), .field-label {
    display: block;
    font-size: var(--text-caption);
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: var(--space-2);
}

/* Wrapping labels: normal sentence text, laid out by their own component. */
label:has(input, select, textarea) {
    text-transform: none;
    letter-spacing: 0;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    margin-bottom: 0;
}
.field, input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="search"], input[type="number"], input[type="date"],
select, textarea {
    width: 100%;
    font-family: var(--sans);
    font-size: var(--text-body);
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius);
    padding: 12px 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field:focus, input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-wash);
}
textarea { line-height: 1.55; resize: vertical; }
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236B635C' stroke-width='1.6' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: var(--space-6);
}
.checkline { display: flex; align-items: center; gap: var(--space-2); }
.checkline label { margin: 0; text-transform: none; letter-spacing: 0; font-size: var(--text-body); font-weight: 400; color: var(--ink); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: 16px; height: 16px; }
.hint { font-size: var(--text-caption); color: var(--ink-3); margin: 5px 0 0; }
.field-error { display: block; color: var(--bad); font-size: var(--text-caption); margin-top: var(--space-1); }
.narrow-form { max-width: 620px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 760px) { .form-grid, .form-grid.three { grid-template-columns: minmax(0, 1fr); } }

/* --- alerts --------------------------------------------------------------- */
.alert {
    display: block;
    font-size: var(--text-small);
    line-height: 1.55;
    padding: 13px 16px;
    border-radius: var(--radius);
    border: 1px solid;
    margin: 0 0 18px;
}
.alert-info  { background: var(--accent-wash); border-color: #E0D7C8; color: var(--accent-deep); }
.alert-ok    { background: var(--good-wash);   border-color: #C9E0D3; color: var(--good); }
.alert-warn  { background: var(--warn-wash);   border-color: #EBDBBE; color: var(--warn); }
.alert-error { background: var(--bad-wash);    border-color: #E9CFCB; color: var(--bad); }

/* --- cards and panels ----------------------------------------------------- */
.card, .panel {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
}
.panel > h2:first-child, .panel > h3:first-child, .card > h3:first-child, .card > h4:first-child { margin-top: 0; }

.chip {
    display: inline-flex;
    align-items: center;
    font-size: var(--text-caption);
    font-weight: 500;
    letter-spacing: .02em;
    padding: 4px 10px;
    border-radius: 100px;
    background: var(--paper-sunk);
    color: var(--ink-2);
    white-space: nowrap;
}
.chip-paid    { background: var(--good-wash); color: var(--good); }
.chip-pending { background: var(--warn-wash); color: var(--warn); }
.chip-bad     { background: var(--bad-wash);  color: var(--bad); }

/* --- tables --------------------------------------------------------------- */
table { width: 100%; border-collapse: collapse; font-size: var(--text-small); }
th {
    text-align: left;
    font-size: var(--text-label);
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-3);
    padding: 10px 14px 10px 0;
    border-bottom: 1px solid var(--rule-strong);
    white-space: nowrap;
}
td { padding: 14px 14px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }

/* --- breadcrumb ----------------------------------------------------------- */
.crumbs { font-size: var(--text-caption); color: var(--ink-3); margin-bottom: var(--space-5); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* minmax(0, 1fr), never a bare 1fr.
   A bare `1fr` is `minmax(auto, 1fr)`, and `auto` floors the track at the
   content's max-content width. A 1330-pixel frame photograph therefore forces
   a 1330-pixel column on a 375-pixel phone, and the whole page scrolls
   sideways — which is exactly what it was doing. */

/* --- catalogue filters ---------------------------------------------------- */
.catalogue { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(24px, 3vw, 44px); align-items: start; }
@media (max-width: 940px) { .catalogue { grid-template-columns: minmax(0, 1fr); } }
.filters { position: sticky; top: 100px; }
.filter-group { border-bottom: 1px solid var(--rule); padding-block: var(--space-4); }
.filter-group:first-child { padding-top: 0; }
.filter-group h4 {
    margin: 0 0 12px; font-family: var(--sans); font-size: var(--text-caption);
    letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); font-weight: 600;
}
.filter-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }

.toolbar {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-5);
    padding-bottom: var(--space-4); border-bottom: 1px solid var(--rule);
}
.result-count { font-size: var(--text-small); color: var(--ink-3); }

/* --- header --------------------------------------------------------------- */
.banner {
    background: var(--ink);
    color: var(--paper);
    text-align: center;
    font-size: var(--text-small);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}
.banner-code {
    font-family: var(--mono);
    font-size: var(--text-caption);
    letter-spacing: .06em;
    border: 1px dashed rgba(255,255,255,.45);
    border-radius: 3px;
    padding: 2px 8px;
    color: #fff;
}

.site-header {
    background: color-mix(in srgb, var(--paper) 86%, transparent);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--rule);
    position: sticky;
    top: 0;
    z-index: 40;
}
@supports not (backdrop-filter: blur(1px)) {
    .site-header { background: var(--paper); }
}

/* The three-colour hairline that used to sit here has gone. A rainbow rule
   across the top of an optician's shop is the single most template-looking
   thing a header can do, and it was competing with the frames — which are the
   only things on this page that should be carrying colour. */

/* The header lifts off the page once it is actually overlapping content —
   pure CSS, and browsers without scroll-driven animation simply keep the
   flat header they had. */
@supports (animation-timeline: scroll()) {
    .site-header {
        animation: header-lift linear both;
        animation-timeline: scroll();
        animation-range: 0 90px;
    }
    @keyframes header-lift {
        to { box-shadow: 0 1px 0 var(--rule), 0 8px 28px rgba(28, 25, 23, .09); }
    }
}

.header-inner {
    display: flex;
    align-items: center;
    gap: clamp(var(--space-4), 2.4vw, 30px);
    min-height: 82px;
    padding-block: var(--space-3);
}

/* --- brand -----------------------------------------------------------------
   A mark beside the name. The shop was a wordmark alone, which left the tab,
   the phone home screen and the header with nothing in common. */
.brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
}
.brand-mark {
    width: 40px; height: 40px; flex: none;
    display: grid; place-items: center;
    border-radius: 13px;
    background: linear-gradient(145deg, #2C2724 0%, var(--ink) 55%, #0F0D0C 100%);
    color: var(--paper);
    box-shadow: 0 2px 6px rgba(28, 25, 23, .22), inset 0 1px 0 rgba(255, 255, 255, .1);
    transition: transform .2s cubic-bezier(.2, .8, .3, 1), box-shadow .2s ease;
}
.brand-mark svg { width: 23px; height: 23px; }
.brand:hover .brand-mark {
    transform: translateY(-1px) rotate(-3deg);
    box-shadow: 0 5px 14px rgba(28, 25, 23, .26), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.brand-text {
    font-family: var(--serif);
    font-size: var(--text-h3);
    font-weight: 600;
    letter-spacing: -.024em;
    line-height: 1;
}
.brand-text em {
    display: block;
    font-family: var(--sans);
    font-style: normal;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-top: 3px;
}

/* --- links -----------------------------------------------------------------
   A pill that fills on hover rather than an underline that grows. It gives the
   whole item a hit area you can see, which matters more here than elegance:
   these six links are how somebody gets anywhere. The active one stays filled,
   because the shop previously had no active state at all. */
/* Brand hard left, account and bag hard right, and the six section links
   spread across everything in between. The gap is the minimum they may close
   to on a narrow laptop; on a wide screen space-between opens them out to fill
   the middle rather than leaving a pool of empty paper beside the logo. */
/* One cluster, centred between the brand and the controls.

   This was `justify-content: space-between` across the full middle width, and
   that is what made the bar look scattered: six words of unequal length pushed
   to even spacing produce gaps of visibly different optical weight, so the
   navigation stops reading as one thing and starts reading as six things that
   happen to be on the same line. A fixed gap keeps them a group; centring the
   group balances the wordmark on the left against the cart on the right. */
.nav {
    display: flex;
    justify-content: center;
    gap: clamp(18px, 2.2vw, 36px);
    flex: 1;
    flex-wrap: nowrap;
    align-items: center;
    white-space: nowrap;
}
/* Text and a rule, not a capsule. Six filled pills in a row is a lot of
   furniture for six words, and it turned the header into a toolbar rather
   than a shopfront. The indicator is now a fine rule under the word — the
   quietest thing that can still say "you are here", and the convention every
   other shop this one competes with already uses. */
.nav a {
    position: relative;
    display: inline-flex; align-items: center; gap: 7px;
    padding: 10px 2px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -.008em;
    color: var(--ink-2);
    text-decoration: none;
    transition: color .16s ease;
}
.nav a::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 1.5px; border-radius: 2px;
    background: var(--ink);
    transform: scaleX(0);
    transition: transform .22s cubic-bezier(.2, .8, .3, 1), background-color .16s ease;
}
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a:hover::after { transform: scaleX(1); }

.nav a.is-current { color: var(--ink); font-weight: 600; }
.nav a.is-current::after { transform: scaleX(1); background: var(--accent); height: 2px; }

/* The try-on is the one thing this shop does that a frame catalogue does not.
   It carries the accent in its own colour, which is enough to mark it out
   without drawing a box round it. */
.nav a.nav-accent { color: var(--accent-deep); font-weight: 600; }
.nav a.nav-accent svg { width: 16px; height: 16px; }
.nav a.nav-accent::after { background: var(--accent); }

/* --- account and cart ------------------------------------------------------
   Sign in is a link, because signing in is not what anybody came here to do.
   The cart is the one solid control in the header — and it only exists when
   there is something in it. */
.header-link {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-2);
    text-decoration: none;
    white-space: nowrap;
}
.header-link svg { width: 17px; height: 17px; opacity: .65; }
.header-link:hover { color: var(--ink); text-decoration: none; }
.header-link:hover svg { opacity: 1; }

/* The solid capsule in the header. Sign in wears it when nobody is signed in;
   the cart wears it once there is something to carry. Only ever one of them is
   the heaviest thing on the bar. */
.header-btn {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 11px 20px;
    border-radius: 100px;
    background: var(--ink);
    color: var(--paper);
    font-size: var(--text-small);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(28, 25, 23, .18);
    transition: background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.header-btn svg { width: 18px; height: 18px; }
.header-btn:hover {
    background: var(--accent-deep);
    color: var(--paper);
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(124, 106, 82, .32);
}
.header-btn:active { transform: translateY(1px); }

/* An empty cart is a button that does nothing, on every page, for the whole of
   a first visit. It appears the moment there is something to carry. */
.cart-link { padding-left: 16px; }

.cart-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 21px; height: 21px; padding: 0 6px;
    border-radius: 100px;
    background: var(--accent);
    color: #fff;
    font-size: 11.5px; font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* --- the way back ----------------------------------------------------------
   Staff who follow "View shop" out of the back office had no route back: the
   shop header offers a customer an account and a bag and nothing else. This is
   only rendered for staff, and it is the only nav item that is a button, so it
   reads as leaving the shop rather than moving around inside it.

   Teal rather than ink: the bag is the solid dark control in this header, and
   two heavy pills side by side would compete for the same attention. */
.nav-staff {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 14px;
    border-radius: 100px;
    background: var(--tint-teal-w);
    color: var(--tint-teal) !important;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tint-teal) 26%, transparent);
    font-size: var(--text-caption);
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .16s ease, color .16s ease;
}
.nav-staff svg { width: 14px; height: 14px; }
.nav-staff:hover {
    background: var(--tint-teal);
    color: #fff !important;
    text-decoration: none;
}

/* --- navigation, both widths ----------------------------------------------
   The menu is a <details> rendered open. On a wide screen the toggle is hidden
   and the panel lays out as an ordinary row; on a narrow one site.js folds it
   away and the toggle becomes the control. Same markup, one menu. */
.site-nav { display: flex; flex: 1; min-width: 0; }

/* A browser wraps a <details> element's content in a `::details-content` box,
   so `.nav-panel` is not a flex item of `.site-nav` — that wrapper is, and it
   sizes to its content. The panel's own `flex: 1` therefore grew it inside a
   box that had already collapsed, which is why the account link and the bag
   stopped wherever the links happened to end instead of at the right edge.
   Where the pseudo-element is unsupported the panel is a direct child and its
   own flex rule does the same job. */
.site-nav::details-content { display: flex; flex: 1; min-width: 0; }

.nav-panel { display: flex; flex: 1; align-items: center; gap: var(--space-5); min-width: 0; }
.nav-toggle { display: none; }

/* The bar needs roughly 970px to hold the brand, six links and the cart on one
   line; below that "Deals" wrapped onto a second row and the header grew to
   132px with one orphaned word floating in it. The drawer therefore takes over
   at 1024px, not 860.

   site.js matches on the same width — it forces the disclosure open above the
   breakpoint, so if the two ever disagree the toggle appears while the panel
   is still pinned open. Change both together. */
@media (max-width: 1024px) {
    /* A grid rather than a wrapping flex row. The old rules ordered the toggle
       before the panel with `order`, which never took effect: a browser wraps a
       <details> element's content in a `::details-content` box, so `.nav-panel`
       was never the flex item being ordered — the wrapper was, and it laid out
       wherever it landed. The result was that opening the menu on a phone sent
       the Menu button below the whole panel.

       Explicit grid areas say where the three parts go and stop depending on
       which box the browser makes the item. */
    .header-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "brand toggle"
            "panel panel";
        align-items: center;
        min-height: 62px;
        gap: var(--space-3);
    }
    .brand { grid-area: brand; }
    .brand-text { font-size: var(--text-lead); }
    .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
    .brand-mark svg { width: 18px; height: 18px; }

    .nav-toggle {
        display: inline-flex; align-items: center; gap: var(--space-2);
        cursor: pointer; list-style: none;
        font-size: var(--text-small); font-weight: 500; color: var(--ink);
        border: 1px solid var(--rule-strong); border-radius: var(--radius);
        padding: var(--space-2) var(--space-3);
    }
    .nav-toggle::-webkit-details-marker { display: none; }
    .nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

    .nav-toggle-bars {
        width: 16px; height: 10px;
        border-top: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        position: relative;
    }
    .nav-toggle-bars::after {
        content: ""; position: absolute; left: 0; top: 3px;
        width: 100%; border-top: 2px solid currentColor;
    }

    /* The <details> itself contributes no box, so its summary and its content
       become items of the header grid directly. */
    .site-nav { display: contents; }
    .site-nav > .nav-toggle { grid-area: toggle; justify-self: end; }

    /* The content wrapper is the item that has to span, not the panel inside
       it. Where ::details-content is unsupported the wrapper auto-places into
       the first column of row two — narrower than the full width, but still
       below the toggle and still readable, which is the failure worth having. */
    .site-nav::details-content { grid-area: panel; display: block; }
    .site-nav > .nav-panel { width: 100%; }

    .nav-panel { flex-direction: column; align-items: stretch; gap: 0; }
    .nav {
        flex-direction: column; gap: 0;
        /* The row keeps items vertically centred; the column must not centre
           them horizontally, or every link shrinks to its own text width and
           floats in the middle of the panel instead of being a full-width row.
           The spreading and side padding are for the horizontal bar only. */
        align-items: stretch;
        justify-content: flex-start;
        padding-inline: 0;
        border-top: 1px solid var(--rule); margin-top: var(--space-2);
    }
    /* A row in a stacked list, not a pill: a 100px radius on a full-width item
       sitting on a divider reads as a mistake. The active item keeps the accent
       but states it with a bar down the left instead of a filled capsule. */
    .nav a {
        padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4);
        border-radius: var(--radius);
        border-bottom: 1px solid var(--rule);
        font-size: var(--text-body);
        margin-inline: calc(-1 * var(--space-3));
    }
    .nav a:last-child { border-bottom: 0; }

    /* The sliding rule belongs to the horizontal bar. Stacked, each row already
       has a divider under it, and a second line growing along the same edge
       reads as a rendering fault. */
    .nav a::after { display: none; }
    .nav a:hover { box-shadow: none; background: var(--paper-sunk); }
    .nav a.is-current,
    .nav a.is-current:hover {
        background: var(--surface);
        color: var(--ink);
        font-weight: 600;
        box-shadow: inset 3px 0 0 var(--accent);
    }
    .nav a.nav-accent { background: none; box-shadow: none; color: var(--accent-deep); }
    .nav a.nav-accent:hover { background: var(--paper-sunk); }
    .nav a.nav-accent.is-current,
    .nav a.nav-accent.is-current:hover {
        background: var(--accent-deep); color: var(--paper); box-shadow: none;
    }

    .header-actions {
        justify-content: space-between;
        border-top: 1px solid var(--rule);
        padding-block: var(--space-3);
        flex-wrap: wrap;
        gap: var(--space-3);
    }
    /* The divider separates two clusters on one line; stacked, the border-top
       above already does that job. */
    .header-actions::before { display: none; }
    .nav-staff { width: 100%; justify-content: center; padding-block: 11px; }
}

/* Sign in and the cart are two different kinds of thing — a link and the
   shop's one solid control — so they need more air between them than the 16px
   this rule used to give. Declared once: a second .header-actions rule further
   up was being overridden by this one, which is why the gap set there had no
   effect at all. */
.header-actions { display: flex; align-items: center; gap: var(--space-5); font-size: var(--text-small); }
/* No blanket colour rule here any more. `.header-actions a:not(.btn)` scored
   (0,2,1) against `.cart-link`'s (0,1,0), so it won — painting the cart's
   label and trolley in --ink-2 on the --ink pill: 68,62,57 on 28,25,23, about
   1.3:1, which is invisible. Every control in this area now carries its own
   class and states its own colour. */

main.wrap { padding-block: clamp(28px, 4vw, 52px); }

/* A full-bleed band opening the page sits flush under the navigation. The page
   padding above it was rendering as an empty strip that looked like a broken
   element. */
main.wrap > .full-bleed:first-child { margin-top: calc(-1 * clamp(28px, 4vw, 52px)); }

/* --- hero ----------------------------------------------------------------- */
.hero {
    background: var(--paper-sunk);
    border-bottom: 1px solid var(--rule);
    padding-block: clamp(40px, 6vw, 80px);
}

/* Two columns, because a shop's front page should show what it sells. The
   text-only hero left half the viewport empty above the fold and pushed the
   first frame out of sight. */
.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(var(--space-6), 5vw, var(--space-8));
}

.hero h1 {
    font-size: var(--text-display);
    max-width: 16ch;
    margin-bottom: var(--space-4);
    line-height: var(--leading-tight);
}
.hero .eyebrow { max-width: none; }
.hero-copy > p { max-width: 46ch; font-size: var(--text-lead); line-height: var(--leading-body); color: var(--ink-2); }
.hero-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-5); }
.hero .note { margin-top: var(--space-4); font-size: var(--text-small); color: var(--ink-3); }

/* The frames themselves, stepped so three read as a range rather than a stack. */
.hero-frames { display: grid; gap: var(--space-3); }
.hero-frame {
    display: block;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    text-decoration: none;
    box-shadow: var(--lift);
    transition: transform .18s ease, box-shadow .18s ease;
}
.hero-frame:hover { transform: translateY(-2px); box-shadow: var(--lift-2); text-decoration: none; }
.hero-frame img { width: 100%; aspect-ratio: 3 / 1; object-fit: contain; display: block; }
.hero-frames.is-trio > :nth-child(3) img { aspect-ratio: 6 / 1; }
.hero-frame .name { margin: var(--space-2) 0 0; font-size: var(--text-small); font-weight: 600; color: var(--ink); }
.hero-frame .price { margin: 0; font-size: var(--text-caption); color: var(--ink-3); }

.hero-frames.is-trio {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "a b" "c c";
}
.hero-frames.is-trio > :nth-child(1) { grid-area: a; }
.hero-frames.is-trio > :nth-child(2) { grid-area: b; }
.hero-frames.is-trio > :nth-child(3) { grid-area: c; }

/* Below a laptop the imagery goes underneath rather than fighting for width. */
@media (max-width: 860px) {
    .hero-inner { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
    .hero h1 { max-width: 20ch; }
}

/* --- section headings ----------------------------------------------------- */
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin: clamp(40px, 6vw, 72px) 0 26px;
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--rule);
}
.section-head h2 { margin: 0; }
.section-head a { font-size: var(--text-small); text-decoration: none; color: var(--accent-deep); white-space: nowrap; }
.section-head a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* --- grids ---------------------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: clamp(18px, 1.8vw, 26px); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid, .grid-3 { grid-template-columns: minmax(0, 1fr); } }

.two-col { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr); } }

/* --- product card --------------------------------------------------------- */
.product-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: var(--surface);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.product-card:hover { border-color: var(--rule-strong); box-shadow: var(--lift-2); transform: translateY(-2px); }

.shot {
    position: relative;
    background: var(--paper);
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    padding: 12%;
    border-bottom: 1px solid var(--rule);
}
.shot img { width: 100%; height: auto; mix-blend-mode: multiply; }
.tag {
    position: absolute; top: 12px; left: 12px;
    font-size: var(--text-label); font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
    background: var(--ink); color: var(--paper);
    padding: 4px 9px; border-radius: 100px;
}

.product-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; }
.brand-name { font-size: var(--text-label); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 5px; }
.product-card h3 { font-size: var(--text-lead); margin: 0 0 4px; letter-spacing: -.012em; }
.price { font-size: var(--text-body); font-weight: 500; color: var(--ink); margin: 10px 0 0; font-variant-numeric: tabular-nums; }
.price .was { color: var(--ink-3); text-decoration: line-through; font-weight: 400; margin-left: var(--space-2); font-size: var(--text-small); }

.swatches { display: flex; gap: var(--space-1); margin-top: var(--space-2); }
.swatch { width: 15px; height: 15px; border-radius: 50%; border: 1px solid rgba(28,25,23,.18); display: inline-block; }

/* --- product detail ------------------------------------------------------- */
.spec-table { width: 100%; font-size: var(--text-small); margin: 20px 0; }
.spec-table td { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.spec-table td:first-child { color: var(--ink-3); width: 44%; }

/* Lens and prescription choices, on the frame page. */
.lens-options { display: grid; gap: var(--space-3); margin: 12px 0 20px; }
.lens-option {
    display: flex; align-items: flex-start; gap: 11px;
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius);
    padding: 14px 16px;
    cursor: pointer;
    background: var(--surface);
    transition: border-color .15s ease, background-color .15s ease;
}
.lens-option:hover { border-color: var(--ink-4); }
.lens-option:has(input:checked) { border-color: var(--accent); background: var(--accent-wash); }
.lens-option .name { font-weight: 500; font-size: var(--text-small); }
.lens-option .desc { font-size: var(--text-caption); color: var(--ink-3); line-height: 1.45; }

/* --- cart, checkout, totals ----------------------------------------------- */
.totals { border-top: 1px solid var(--rule-strong); margin-top: var(--space-4); padding-top: var(--space-2); }
.totals-row {
    display: flex; justify-content: space-between; gap: var(--space-4);
    padding: 8px 0; font-size: var(--text-small); color: var(--ink-2);
    font-variant-numeric: tabular-nums;
}
.totals-row.grand {
    border-top: 1px solid var(--rule-strong);
    margin-top: var(--space-2); padding-top: var(--space-4);
    font-family: var(--serif); font-size: var(--text-h3); font-weight: 600; color: var(--ink);
}
.discount { display: flex; gap: var(--space-2); align-items: flex-end; flex-wrap: wrap; }
.discount .field { flex: 1; min-width: 150px; }

/* --- footer --------------------------------------------------------------- */
.site-footer {
    background: var(--ink);
    color: #C9C1B8;
    margin-top: clamp(56px, 9vw, 110px);
    padding-block: clamp(44px, 6vw, 68px) 0;
    font-size: var(--text-small);
}
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
@media (max-width: 700px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.site-footer h2 {
    color: #F7F3EE; font-family: var(--sans); font-size: var(--text-label);
    letter-spacing: .11em; text-transform: uppercase; margin: 0 0 14px; font-weight: 600;
}
.site-footer a { color: #C9C1B8; text-decoration: none; display: block; padding: 5px 0; }
.site-footer a:hover { color: #fff; }
.footer-legal {
    margin-top: var(--space-7); padding-block: var(--space-5);
    border-top: 1px solid rgba(255,255,255,.12);
    font-size: var(--text-caption); color: #9A918A;
}
.footer-legal p { margin: 0; }

/* --- try-on --------------------------------------------------------------- */
.tryon { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(22px, 3vw, 40px); align-items: start; }
@media (max-width: 1000px) { .tryon { grid-template-columns: minmax(0, 1fr); } }

.tryon-stage {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #14110F;
    border: 1px solid var(--rule-strong);

    /* Hug the canvas. The studio sizes the canvas to the shape of the photo, so
       a full-width stage leaves dark gutters either side of a portrait that read
       as letterboxing even though the picture fills every pixel it is given. */
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
}
/* The canvas sizes itself: the studio sets width and height in pixels so the
   photo's shape is preserved exactly. Doing it in CSS with width:100% plus a
   max-height squashes the drawing instead of narrowing the element. */
.tryon-stage canvas { display: block; margin: 0 auto; }
.tryon-stage canvas.is-manual { cursor: grab; touch-action: none; }
.tryon-stage canvas.is-manual:active { cursor: grabbing; }
.tryon-stage video { display: none; }

.tryon-busy {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    background: rgba(20,17,15,.66);
    color: #F7F3EE; font-size: var(--text-small); font-weight: 500;
    backdrop-filter: blur(2px);
}
.tryon-drag-hint {
    position: absolute; inset-inline: 0; bottom: 0; margin: 0;
    display: flex; justify-content: center;
    background: rgba(20,17,15,.78); color: #F7F3EE;
    font-size: var(--text-caption); padding: 9px 14px;
}
.tryon-controls { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-4); }
.tryon-heading { font-family: var(--sans); font-size: var(--text-caption); font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); margin: 22px 0 10px; }

.tryon-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); max-height: 260px; overflow-y: auto; padding-right: var(--space-1); }
.tryon-thumb { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); padding: var(--space-2); cursor: pointer; }
.tryon-thumb:hover { border-color: var(--rule-strong); }
.tryon-thumb.is-selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-wash); }
.tryon-thumb img { width: 100%; display: block; mix-blend-mode: multiply; }

.tryon-measures { margin: 0; font-size: var(--text-small); }
.tryon-measures > div { display: flex; justify-content: space-between; gap: var(--space-3); padding: 9px 0; border-bottom: 1px solid var(--rule); }
.tryon-measures > div:last-child { border-bottom: 0; }
.tryon-measures dt { color: var(--ink-3); margin: 0; }
.tryon-measures dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }

.tryon-verdict { margin: 0 0 10px; padding: 9px 13px; border-radius: var(--radius); font-size: var(--text-small); font-weight: 500; }
.tryon-verdict.is-good { background: var(--good-wash); color: var(--good); }
.tryon-verdict.is-narrow, .tryon-verdict.is-wide { background: var(--warn-wash); color: var(--warn); }
.tryon-verdict.is-unknown { background: var(--paper-sunk); color: var(--ink-3); }

.tryon-fit-notes { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.tryon-fit-notes li { font-size: var(--text-caption); line-height: 1.5; color: var(--ink-3); padding-left: var(--space-4); position: relative; }
.tryon-fit-notes li::before { content: "—"; position: absolute; left: 0; color: var(--ink-4); }

/* The panel beside the mirror: frame details, the picker, the fit report. */
.tryon-panel { display: flex; flex-direction: column; gap: var(--space-4); }


/* --- account -------------------------------------------------------------- */
.account-nav { display: flex; gap: var(--space-2); flex-wrap: wrap; margin: 18px 0 30px; }

.address-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-4); }
.address-card { border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 18px 20px; background: var(--surface); }
.address-card.is-default { border-color: var(--accent); }
.address-label { margin: 8px 0 6px; font-weight: 600; font-size: var(--text-small); }
.address-lines { margin: 6px 0 14px; font-size: var(--text-small); line-height: 1.6; color: var(--ink-2); }
.address-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.address-actions form { display: inline; }

.slot-grid { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 14px 0 22px; }
.slot-grid form { display: inline; }
.slot { display: inline-block; min-width: 78px; text-align: center; padding: 10px 13px; border-radius: var(--radius); font-variant-numeric: tabular-nums; font-size: var(--text-small); }
.slot-taken { border: 1px dashed var(--rule-strong); color: var(--ink-3); background: var(--paper-sunk); text-decoration: line-through; }

/* --- pagination ----------------------------------------------------------- */
.pager { display: flex; gap: var(--space-3); align-items: center; justify-content: center; margin-top: var(--space-7); }

/* --- odds and ends -------------------------------------------------------- */
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .grid-4 { grid-template-columns: minmax(0, 1fr); } }

/* One band of lens choices — thickness, coatings, tints — under a heading. */
.lens-group { margin-bottom: var(--space-5); }
.lens-group > h4 {
    font-family: var(--sans);
    font-size: var(--text-caption);
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin: 0 0 10px;
}

/* A discount or order code the customer is meant to read and repeat. */
.code {
    font-family: var(--mono);
    font-size: var(--text-caption);
    letter-spacing: .06em;
    background: var(--paper-sunk);
    border: 1px dashed var(--rule-strong);
    border-radius: 3px;
    padding: 3px 9px;
}

.error-page { text-align: center; padding-block: clamp(56px, 11vw, 130px); max-width: 54ch; margin-inline: auto; }
.error-page h1 { font-size: clamp(44px, 8vw, 84px); margin-bottom: var(--space-3); }
.error-page p { color: var(--ink-3); font-size: var(--text-lead); }
.error-page .btn { margin-top: var(--space-5); }

/* --- Product card --------------------------------------------------------
   Two actions live here: open the frame, or try it on. The title link is
   stretched across the whole card so the large, obvious target does the
   common thing, and the try-on control is raised above it — a button nested
   inside a link would be invalid markup and unreachable by keyboard. */
.product-card { position: relative; overflow: hidden; }

.product-card .stretch::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
}

.product-card h3 a { color: inherit; text-decoration: none; }
.product-card:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }

.product-tryon {
    position: absolute; z-index: 2;
    inset-inline: var(--space-3); bottom: var(--space-3);
    padding: var(--space-2) var(--space-3);
    text-align: center;
    background: var(--ink); color: var(--paper);
    border-radius: var(--radius);
    font-size: var(--text-small); font-weight: 600;
    text-decoration: none;

    /* Hidden until wanted on a pointer device, but always present on touch,
       where there is no hover to reveal it. */
    opacity: 0; transform: translateY(4px);
    transition: opacity .15s ease, transform .15s ease;
}
.product-card:hover .product-tryon,
.product-card:focus-within .product-tryon { opacity: 1; transform: none; }
.product-tryon:hover { background: var(--accent-deep); text-decoration: none; }

@media (hover: none) {
    .product-tryon { opacity: 1; transform: none; }
}

.product-meta {
    display: flex; align-items: baseline; gap: var(--space-2); flex-wrap: wrap;
    margin: 0 0 var(--space-2);
    font-size: var(--text-small); color: var(--ink-3);
}
/* The three numbers on a card in the grid. Named for what it is: sharing
   `.product-size` with the detail page's "Size and fit" <section> meant that
   whole section inherited monospace, caption type and `white-space: nowrap`,
   which stopped its paragraphs wrapping and pushed the page out to twice the
   viewport width. */
.product-sizecode {
    font-family: var(--mono); font-size: var(--text-caption);
    color: var(--ink-3); white-space: nowrap;
}

.swatch { background: var(--swatch, #ccc); }
.swatch-more { font-size: var(--text-caption); color: var(--ink-3); }

/* Full-bleed band inside a centred wrapper. Previously done with an inline
   `margin-left: calc(50% - 50vw)` on the element itself — a layout decision
   living in the markup, and one that produced a horizontal scrollbar whenever
   a vertical one appeared. */
/* The half of that trick nobody gets for free: `50vw` counts the vertical
   scrollbar and `50%` does not, so the moment a page is tall enough to scroll,
   every full-bleed band overhangs by exactly the scrollbar's width and the
   whole document slides sideways. That was still true here.

   Measuring against the body instead of the viewport removes the mismatch at
   source rather than clipping the symptom: `cqw` resolves against the body's
   content box, which already excludes the scrollbar. The band then works out
   to exactly the body's width and sits flush at both edges.

   The container is put on the shop's body only. `container-type` also makes an
   element the containing block for `position: fixed` descendants, which would
   pin the back office's off-canvas drawer to the body instead of the viewport. */
body:not(.admin) { container-type: inline-size; }

.full-bleed {
    margin-inline: calc(50% - 50cqw);
    padding-inline: var(--gutter);
}

/* --- Try-on: layout -------------------------------------------------------
   The page previously spent 295px on a heading and a three-line blurb before
   the mirror began, then put thirty thumbnails and a slider panel above the
   one thing a customer wants — whether the frame suits them. */
.tryon-head { margin-bottom: var(--space-4); }
.tryon-head h1 { font-size: var(--text-h2); margin: 0 0 var(--space-1); }
.tryon-head p { margin: 0; color: var(--ink-3); font-size: var(--text-small); max-width: 52ch; }

/* The chosen frame and the verdict on it, at the top of the column. */
.tryon-chosen { padding: var(--space-4); }
.tryon-chosen-name { font-size: var(--text-h3); margin: var(--space-1) 0 0; }
.tryon-chosen-colour { margin: 0; }
.tryon-chosen-price { font-weight: 700; font-size: var(--text-lead); margin: var(--space-2) 0 var(--space-3); }
.btn-block { display: block; width: 100%; text-align: center; }

/* The verdict is the professional signal — it should read at a glance, not
   sit in a list of figures. */
.tryon-verdict {
    display: flex; align-items: center; gap: var(--space-2);
    margin: 0 0 var(--space-3);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius);
    font-size: var(--text-small); font-weight: 600;
    border-left: 3px solid currentColor;
}
.tryon-verdict.is-good    { background: var(--good-wash); color: var(--good); }
.tryon-verdict.is-narrow,
.tryon-verdict.is-wide    { background: var(--warn-wash); color: var(--warn); }
.tryon-verdict.is-unknown { background: var(--paper-sunk); color: var(--ink-3); }

/* Capped and scrollable: thirty tiles must not push the fit report off the
   screen, which is exactly what they were doing. */
.tryon-picker { display: flex; flex-direction: column; min-height: 0; }
.tryon-picker .tryon-thumbs {
    max-height: 232px;
    overflow-y: auto;
    padding-right: var(--space-1);
    scrollbar-width: thin;
}


/* Text for a screen reader only. Not `display: none` and not `visibility:
   hidden` — both remove it from the accessibility tree, which is the one thing
   this is for. */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* --- Try-on: the PD, the fit report and manual adjustment ------------------
   The PD is the first thing on the panel because it is the number every other
   figure on the page is derived from: without it nothing can be drawn to size,
   and a customer who does not understand that will read an estimated fit as a
   measured one. */
.tryon-main { min-width: 0; }

.tryon-pd { padding: var(--space-4); }
.tryon-pd .tryon-heading { margin-top: 0; }

.tryon-pd-row { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }

.tryon-pd-field {
    display: inline-flex; align-items: baseline; gap: var(--space-1);
    border: 1px solid var(--rule-strong); border-radius: var(--radius);
    background: var(--surface); padding: var(--space-2) var(--space-3);
}
.tryon-pd-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.tryon-pd-field input {
    width: 4.5ch; border: 0; padding: 0; background: none;
    font: inherit; font-size: var(--text-lead); font-weight: 700;
    font-variant-numeric: tabular-nums; color: inherit;
}
.tryon-pd-field input:focus { outline: none; }
.tryon-pd-field input[aria-invalid="true"] { color: var(--bad); }
.tryon-pd-field span { font-size: var(--text-small); color: var(--ink-3); }

/* Numeric spinners inside a bare field read as a bug rather than a control. */
.tryon-pd-field input::-webkit-outer-spin-button,
.tryon-pd-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tryon-pd-field input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

.tryon-pd-message,
.tryon-pd-agreement {
    margin: var(--space-3) 0 0; padding: var(--space-2) var(--space-3);
    border-radius: var(--radius); font-size: var(--text-caption); line-height: 1.5;
}
.tryon-pd-message.is-warn { background: var(--warn-wash); color: var(--warn); }
.tryon-pd-message.is-error { background: var(--bad-wash); color: var(--bad); }
.tryon-pd-agreement.is-agrees { background: var(--good-wash); color: var(--good); }
.tryon-pd-agreement.is-differs { background: var(--warn-wash); color: var(--warn); }
.tryon-pd-agreement.is-unknown { display: none; }

.tryon-needs-pd { margin: var(--space-3) 0 0; }

.tryon-measurements { padding: var(--space-4); }
.tryon-measurements .tryon-heading:first-child { margin-top: 0; }
.tryon-heading-sub { margin-top: var(--space-5); }
.tryon-caveat { margin: var(--space-3) 0 0; }
.tryon-privacy { margin-top: var(--space-3); }
.capitalise { text-transform: capitalize; }

/* Manual adjustment is a fallback, so it is folded away — and it says plainly
   which of the two placements is on screen. */
.tryon-adjust { padding: var(--space-3) var(--space-4); }
.tryon-adjust > summary {
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
    cursor: pointer; font-weight: 600; font-size: var(--text-small);
    padding: var(--space-1) 0;
}
.tryon-adjust > summary::-webkit-details-marker { display: none; }
.tryon-adjust[open] > summary { margin-bottom: var(--space-2); }

.tryon-fit-mode {
    font-size: var(--text-caption); font-weight: 600; letter-spacing: .02em;
    padding: 3px var(--space-2); border-radius: 999px;
}
.tryon-fit-mode.is-auto   { background: var(--good-wash); color: var(--good); }
.tryon-fit-mode.is-manual { background: var(--warn-wash); color: var(--warn); }

.tryon-nudges { display: flex; flex-direction: column; gap: var(--space-2); margin: var(--space-3) 0; }
.tryon-nudge-group { display: flex; align-items: center; gap: var(--space-1); }
.tryon-nudge-label {
    width: 4.5em; flex: none;
    font-size: var(--text-caption); color: var(--ink-3);
}

.btn-icon {
    min-width: 34px; padding: var(--space-1) var(--space-2);
    font-size: var(--text-small); line-height: 1.2;
}
.btn-sm { padding: var(--space-1) var(--space-3); font-size: var(--text-caption); }

.btn-quiet {
    background: none; border: 1px solid var(--rule); color: var(--ink-2);
}
.btn-quiet:hover:not(:disabled) { border-color: var(--rule-strong); background: var(--paper-sunk); }
.btn-quiet:disabled { opacity: .45; cursor: default; }

/* Below the breakpoint the panel stacks under the mirror, so the PD card and
   the verdict must still arrive before the thirty thumbnails do. */
@media (max-width: 1000px) {
    .tryon-panel { gap: var(--space-3); }
    .tryon-picker .tryon-thumbs { max-height: none; }
}

/* --- Product page ----------------------------------------------------------
   The frame is the product, so the picture leads and everything that decides
   whether it will fit — the millimetres, and the chance to see it on a real
   face — sits above the lens builder rather than under it. */
.product {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: start;
}
@media (max-width: 900px) { .product { grid-template-columns: minmax(0, 1fr); } }

/* Sticky on a tall screen: the lens builder is long, and losing sight of the
   frame you are buying halfway down it is disorienting. */
@media (min-width: 901px) {
    .product-shots { position: sticky; top: var(--space-5); }
}

.product-hero {
    background: var(--paper-sunk);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg, 12px);
    padding: clamp(24px, 4vw, 56px);
    display: flex; align-items: center; justify-content: center;
    min-height: 240px;
}
.product-hero img { width: 100%; height: auto; display: block; mix-blend-mode: multiply; }
.product-shot-note { margin: var(--space-3) 0 0; font-size: var(--text-small); }

.product-title { font-size: var(--text-h1); margin: 0 0 var(--space-2); letter-spacing: -.02em; }
.product-price { font-size: var(--text-lead); font-weight: 700; margin: 0 0 var(--space-3); }
.product-price-note { display: block; font-size: var(--text-caption); font-weight: 400; color: var(--ink-3); margin-top: 3px; }
.product-blurb { color: var(--ink-2); margin: 0 0 var(--space-5); max-width: 54ch; }

/* Colour: swatches you can see and reach with a keyboard, not invisible radios
   buried inside a picture. */
.product-colours { border: 0; padding: 0; margin: 0 0 var(--space-5); }
.product-colours legend,
.section-label {
    font-family: var(--sans);
    font-size: var(--text-caption); font-weight: 600;
    letter-spacing: .09em; text-transform: uppercase;
    color: var(--ink-3);
    margin: 0 0 var(--space-3); padding: 0;
}

.colour-choices { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.colour-choice {
    display: inline-flex; align-items: center; gap: var(--space-2);
    border: 1px solid var(--rule-strong); border-radius: 999px;
    padding: 6px 14px 6px 8px;
    cursor: pointer; background: var(--surface);
    font-size: var(--text-small);
    transition: border-color .15s ease, background-color .15s ease;
}
.colour-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.colour-choice:hover { border-color: var(--ink-4); }
.colour-choice:has(input:checked) { border-color: var(--ink); background: var(--paper-sunk); }
.colour-choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.colour-choice.is-out { opacity: .55; cursor: not-allowed; }

.colour-swatch {
    width: 20px; height: 20px; border-radius: 50%; flex: none;
    background: var(--swatch);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .16);
}
.colour-out { display: block; font-size: var(--text-label); color: var(--ink-3); }

/* Try it on is the action this whole page exists to make possible, so it gets
   the weight — not a link buried under a spec table. */
.product-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-6); }
.product-actions .btn { flex: 1 1 12rem; text-align: center; }
.btn-lg { padding: var(--space-3) var(--space-5); font-size: var(--text-small); }

.product-size,
.product-lenses,
.product-rx { border-top: 1px solid var(--rule); padding-top: var(--space-5); margin-bottom: var(--space-6); }

.size-code {
    font-family: var(--mono); font-size: var(--text-lead); letter-spacing: .04em;
    margin: 0 0 var(--space-3); color: var(--ink);
}

.size-table { margin: 0 0 var(--space-3); font-size: var(--text-small); }
.size-table > div {
    display: flex; justify-content: space-between; gap: var(--space-4);
    padding: 9px 0; border-bottom: 1px solid var(--rule);
}
.size-table > div:last-child { border-bottom: 0; }
.size-table dt { color: var(--ink-3); margin: 0; }
/* No `text-transform: capitalize` here. It was capitalising every word in the
   cell, so millimetres and grams rendered as "52 Mm" and "24 G"; the values it
   was meant to help — shape, material, rim — arrive already sentence-cased
   from Humanise.Value, and it was turning those into "Cat Eye" too. */
.size-table dd { margin: 0; font-variant-numeric: tabular-nums; }

.lens-mode { border: 0; padding: 0; margin: 0 0 var(--space-5); }
.lens-mode legend { font-weight: 600; font-size: var(--text-small); margin-bottom: var(--space-2); padding: 0; }
.lens-option .name { display: flex; justify-content: space-between; gap: var(--space-3); }
.lens-option .desc { display: block; margin-top: 3px; }
.lens-option .price { color: var(--ink-3); font-weight: 400; white-space: nowrap; }
.lens-group > h3 {
    font-family: var(--sans);
    font-size: var(--text-caption); font-weight: 600;
    letter-spacing: .09em; text-transform: uppercase;
    color: var(--ink-3); margin: 0 0 6px;
}

/* A prescription is the one table on the storefront that has to stay a table:
   the eye/value grid is how the sheet in the customer's hand is laid out. */
.rx-table-wrap { overflow-x: auto; margin: var(--space-3) 0; }
.rx-table { width: 100%; border-collapse: collapse; font-size: var(--text-small); }
.rx-table th, .rx-table td { padding: 8px 8px 8px 0; text-align: left; }
.rx-table thead th { font-size: var(--text-label); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 600; }
.rx-table tbody th { font-weight: 500; white-space: nowrap; }
.rx-table select { width: 100%; min-width: 5.5rem; }

.rx-pd { display: inline-flex; align-items: center; gap: var(--space-2); margin-top: var(--space-2); }
.rx-pd > span:first-child { font-size: var(--text-small); color: var(--ink-2); }
.rx-pd input { max-width: 7rem; }

.product-submit { border-top: 1px solid var(--rule); padding-top: var(--space-5); }
.product-submit p { margin: var(--space-3) 0 0; text-align: center; }

/* --- Catalogue -------------------------------------------------------------
   Eight dropdowns cannot tell a shopper what is currently switched on, so what
   is applied is shown as chips above the grid and each one can be taken off by
   itself. */
.catalogue-head { margin-bottom: var(--space-4); }
.catalogue-head h1 { margin: 0 0 var(--space-1); }
.catalogue-head p { margin: 0; font-size: var(--text-small); }

.filter-chips {
    display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap;
    margin-bottom: var(--space-5); padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--rule);
}
.filter-chips-label {
    font-size: var(--text-label); font-weight: 600;
    letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3);
}
.filter-chip {
    display: inline-flex; align-items: center; gap: var(--space-2);
    border: 1px solid var(--rule-strong); border-radius: 999px;
    padding: 4px 10px 4px 12px;
    font-size: var(--text-caption); color: var(--ink); text-decoration: none;
    background: var(--surface);
}
.filter-chip:hover { border-color: var(--ink); text-decoration: none; }
.filter-chip-x { color: var(--ink-4); font-size: 15px; line-height: 1; }
.filter-chip:hover .filter-chip-x { color: var(--ink); }
.filter-chip-clear { font-size: var(--text-caption); color: var(--ink-3); margin-left: var(--space-1); }

/* A disclosure rather than a plain sidebar: on a phone the frames should be
   the first thing on screen, not the ninth. */
.filters > summary {
    display: none;
    align-items: center; gap: var(--space-2);
    cursor: pointer; font-weight: 600; font-size: var(--text-small);
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--rule-strong); border-radius: var(--radius);
    margin-bottom: var(--space-4);
}
.filters > summary::-webkit-details-marker { display: none; }
.filters-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; padding: 0 6px;
    border-radius: 999px; background: var(--ink); color: var(--paper);
    font-size: var(--text-label); font-weight: 600;
}

.filter-field { margin-bottom: var(--space-4); }
.filter-field > label,
.filter-price > legend {
    display: block; padding: 0;
    font-size: var(--text-label); font-weight: 600;
    letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3);
    margin-bottom: 6px;
}
.filter-field select, .filter-field input { width: 100%; }

.filter-price { border: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--space-2); align-items: center; }
.filter-price > legend { grid-column: 1 / -1; }
.filter-price > span { font-size: var(--text-caption); color: var(--ink-3); }

.filter-actions { display: flex; gap: var(--space-2); margin-top: var(--space-5); }
.filter-actions .btn { flex: 1; text-align: center; }

.catalogue-results { min-width: 0; }

.empty-state {
    text-align: center; padding: var(--space-8) var(--space-4);
    border: 1px dashed var(--rule-strong); border-radius: var(--radius-lg, 12px);
}
.empty-state h2 { margin: 0 0 var(--space-2); font-size: var(--text-h3); }
.empty-state p { margin: 0 0 var(--space-4); }

@media (max-width: 860px) {
    .filters { position: static; }
    .filters > summary { display: flex; }
}

/* ===========================================================================
   Shop front — home page composition
   ---------------------------------------------------------------------------
   The shop already had a hero, a product grid and a set of cards. What it did
   not have was a way in for somebody who does not yet know what they want: no
   route from "I need glasses" to a shortlist. These sections are that route —
   who they are for, what shape suits them, and what the shop actually promises
   — laid over the same warm paper as everything else.

   Colour arrives here for the first time. It is confined to category tiles and
   the step numbers, where it labels a choice; the frames themselves stay on
   white, because a product photograph competes with any colour put beside it.
   =========================================================================== */

:root {
    /* Three tints, warm enough to sit on paper. Used only to tell one card
       from its neighbour, never to decorate. */
    --tint-teal:    #0F6B63;
    --tint-teal-w:  #E6F2F0;
    --tint-plum:    #6D3F63;
    --tint-plum-w:  #F3EAF1;
    --tint-amber:   #92400E;
    --tint-amber-w: #FBF0E2;
}

/* An inline SVG with no width carries its own intrinsic size — 300×150 in most
   browsers — so anything holding one has to say how big the icon is. The shop
   had no icons in buttons or alerts until now, hence no rule.

   The alert only becomes a flex row when it actually contains an icon, so the
   plain text alerts used elsewhere keep laying out exactly as they did. */
.btn svg { width: 17px; height: 17px; flex: none; }

.alert:has(> svg) { display: flex; align-items: flex-start; gap: var(--space-2); }
.alert > svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }

/* asp-validation-summary always renders its container. With .alert on it, a
   valid form still drew an empty red box above the fields. */
.validation-summary-valid { display: none; }

/* Which fields are compulsory, said before the form is submitted rather than
   after it comes back. */
.req { color: var(--bad); font-weight: 700; }

/* --- hero ------------------------------------------------------------------
   A quiet wash rather than a flat block, so the fold has some depth without
   putting a photograph behind live text. */
.hero {
    background:
        radial-gradient(80% 120% at 12% 0%, rgba(124, 106, 82, .10), transparent 58%),
        radial-gradient(70% 110% at 100% 20%, rgba(15, 107, 99, .09), transparent 60%),
        var(--paper-sunk);
}
.hero h1 { letter-spacing: -.035em; }

/* The three claims that answer "why here?", directly under the buttons. */
.hero-proof {
    display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5);
    margin: var(--space-5) 0 0; padding: 0; list-style: none;
}
.hero-proof li {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: var(--text-small); color: var(--ink-2); font-weight: 500;
}
.hero-proof svg { width: 16px; height: 16px; color: var(--tint-teal); flex: none; }

/* --- trust strip ---------------------------------------------------------- */
.trust-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-4);
    padding: var(--space-5) 0;
    border-bottom: 1px solid var(--rule);
}
@media (max-width: 900px) { .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .trust-strip { grid-template-columns: minmax(0, 1fr); } }

.trust-item { display: flex; align-items: flex-start; gap: var(--space-3); }
.trust-item svg { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: 1px; }
.trust-item strong { display: block; font-size: var(--text-small); font-weight: 600; }
.trust-item span { display: block; font-size: var(--text-caption); color: var(--ink-3); line-height: 1.5; margin-top: 2px; }

/* --- shop by wearer --------------------------------------------------------
   The catalogue already filters on ?gender=, so these are links into a search
   that exists rather than a new listing to maintain. */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 22px);
}
@media (max-width: 760px) { .cat-grid { grid-template-columns: minmax(0, 1fr); } }

.cat-card {
    position: relative;
    display: flex; flex-direction: column; justify-content: flex-end;
    min-height: 190px;
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    border: 1px solid var(--rule);
    background: var(--tint-wash, var(--paper-sunk));
    text-decoration: none;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--lift-2);
    border-color: var(--tint, var(--rule-strong));
    text-decoration: none;
}
.cat-card.is-teal  { --tint: var(--tint-teal);  --tint-wash: var(--tint-teal-w); }
.cat-card.is-plum  { --tint: var(--tint-plum);  --tint-wash: var(--tint-plum-w); }
.cat-card.is-amber { --tint: var(--tint-amber); --tint-wash: var(--tint-amber-w); }

/* An outsized, cropped glyph as the card's picture. Cheaper than photography
   the shop may not have, and it never loads late or crops a face badly. */
.cat-card > svg {
    position: absolute; top: -14px; right: -14px;
    width: 108px; height: 108px;
    color: var(--tint);
    opacity: .13;
    stroke-width: 1.2;
}
.cat-card h3 {
    margin: 0 0 3px;
    font-size: var(--text-h3);
    color: var(--tint);
    letter-spacing: -.02em;
}
.cat-card p { margin: 0; font-size: var(--text-small); color: var(--ink-2); }
.cat-card .go {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: var(--space-4);
    font-size: var(--text-small); font-weight: 600; color: var(--tint);
}
.cat-card .go svg { width: 15px; height: 15px; transition: transform .18s ease; }
.cat-card:hover .go svg { transform: translateX(3px); }

/* --- how it works ----------------------------------------------------------
   Numbered, because the order matters: a customer who adds a prescription
   before trying anything on has done the tedious half first. */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
@media (max-width: 820px) { .steps { grid-template-columns: minmax(0, 1fr); } }

.step {
    position: relative;
    padding: var(--space-5);
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    box-shadow: var(--lift);
}
.step-n {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--ink); color: var(--paper);
    font-family: var(--serif); font-size: 15px; font-weight: 600;
    margin-bottom: var(--space-3);
}
.step h3 { margin: 0 0 5px; font-size: var(--text-lead); letter-spacing: -.015em; }
.step p { margin: 0; font-size: var(--text-small); color: var(--ink-2); line-height: var(--leading-body); }
.step-icon {
    position: absolute; top: var(--space-5); right: var(--space-5);
    width: 22px; height: 22px; color: var(--ink-4);
}

/* --- deals ---------------------------------------------------------------- */
.deal-card {
    position: relative;
    display: flex; flex-direction: column;
    padding: var(--space-5);
    background: linear-gradient(160deg, var(--tint-amber-w), var(--surface) 70%);
    border: 1px solid #EEDFC6;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.deal-card h3 { margin: 0 0 6px; font-size: var(--text-lead); letter-spacing: -.015em; }
.deal-card p { margin: 0 0 var(--space-3); font-size: var(--text-small); color: var(--ink-2); }
.deal-code {
    align-self: flex-start;
    font-family: var(--mono); font-size: var(--text-caption); font-weight: 600;
    letter-spacing: .08em;
    padding: 6px 12px; border-radius: 100px;
    background: var(--ink); color: var(--paper);
}
.deal-ends {
    display: flex; align-items: center; gap: 6px;
    margin: auto 0 0; padding-top: var(--space-3);
    font-size: var(--text-caption); color: var(--tint-amber); font-weight: 500;
}
.deal-ends svg { width: 14px; height: 14px; flex: none; }
.deal-ends.is-quiet { color: var(--ink-3); font-weight: 400; }

/* A deal with no code still needs to say so, or it reads as one whose code
   failed to load. */
.deal-auto {
    display: inline-flex; align-items: center; gap: 6px;
    align-self: flex-start;
    font-size: var(--text-caption); font-weight: 500; color: var(--good);
}
.deal-auto svg { width: 14px; height: 14px; flex: none; }

.deal-terms {
    list-style: none;
    margin: var(--space-3) 0 0; padding: 0;
    display: flex; flex-direction: column; gap: 5px;
}
.deal-terms li {
    position: relative; padding-left: 16px;
    font-size: var(--text-caption); color: var(--ink-3); line-height: 1.5;
}
.deal-terms li::before {
    content: ""; position: absolute; left: 3px; top: .55em;
    width: 4px; height: 4px; border-radius: 50%; background: var(--ink-4);
}

/* --- shared shop page furniture -------------------------------------------
   The same header and empty state on every customer-facing listing, so Deals,
   the catalogue and the account pages stop each inventing their own. */
.page-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: var(--space-5); flex-wrap: wrap;
    margin-bottom: var(--space-6);
}
.page-head h1 { margin: 0 0 var(--space-2); }
.page-head p { margin: 0; max-width: 62ch; color: var(--ink-2); font-size: var(--text-lead); }

.shop-empty {
    text-align: center;
    padding: clamp(40px, 7vw, 76px) var(--space-5);
    background: var(--paper-sunk);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
}
.shop-empty-art {
    display: grid; place-items: center;
    width: 66px; height: 66px; margin: 0 auto var(--space-4);
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--rule);
    color: var(--accent);
}
.shop-empty-art svg { width: 30px; height: 30px; }
.shop-empty h2 { margin: 0 0 var(--space-2); }
.shop-empty p { margin: 0 auto var(--space-5); max-width: 48ch; color: var(--ink-2); }

/* --- shop by shape ---------------------------------------------------------
   Shape is the single filter most people can answer without help, and it was
   buried behind a facet panel in the catalogue. */
.shape-rail { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.shape-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 16px;
    border: 1px solid var(--rule-strong);
    border-radius: 100px;
    background: var(--surface);
    font-size: var(--text-small); font-weight: 500; color: var(--ink-2);
    text-decoration: none;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.shape-chip:hover {
    border-color: var(--ink); background: var(--ink); color: var(--paper);
    text-decoration: none;
}

/* --- full-width closing call --------------------------------------------- */
.cta-band {
    margin-top: clamp(48px, 7vw, 88px);
    padding-block: clamp(40px, 6vw, 68px);
    background:
        radial-gradient(70% 130% at 20% 0%, rgba(15, 107, 99, .16), transparent 60%),
        var(--ink);
    color: #F0EBE4;
    text-align: center;
}
.cta-band h2 { color: #fff; margin: 0 auto var(--space-3); max-width: 20ch; }
.cta-band p { margin: 0 auto var(--space-5); max-width: 52ch; color: #C9C1B8; font-size: var(--text-lead); }
.cta-band .hero-actions { justify-content: center; }
.cta-band .btn-primary { background: var(--paper); color: var(--ink); }
.cta-band .btn-primary:hover { background: #fff; color: var(--ink); }
.cta-band .btn-outline { border-color: rgba(255,255,255,.3); color: #F0EBE4; }
.cta-band .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }

/* ===========================================================================
   Bag and checkout
   ---------------------------------------------------------------------------
   These two screens were built almost entirely out of inline `style`
   attributes — twenty on the bag alone — which is why they were the only
   pages that could not be restyled from the stylesheet, and why two of them
   referenced `--ink-50` and `--ink-200`, tokens this design system has never
   defined. The classes below replace them.
   =========================================================================== */

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: clamp(20px, 3vw, 34px);
    align-items: start;
}
@media (max-width: 900px) { .cart-layout { grid-template-columns: minmax(0, 1fr); } }

/* --- a line in the bag ---------------------------------------------------- */
.cart-line {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    gap: var(--space-4);
    align-items: start;
    padding: var(--space-4);
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-3);
}
@media (max-width: 560px) {
    .cart-line { grid-template-columns: 84px minmax(0, 1fr); }
    .cart-line .cart-price { grid-column: 2; text-align: left; }
}

.cart-thumb {
    display: grid; place-items: center;
    background: var(--paper-sunk);
    border-radius: var(--radius-lg);
    padding: var(--space-2);
    aspect-ratio: 4 / 3;
}
.cart-thumb img { width: 100%; height: auto; mix-blend-mode: multiply; }

.cart-line h3 { margin: 0 0 3px; font-size: var(--text-lead); letter-spacing: -.012em; }
.cart-line .cart-meta { margin: 0 0 2px; font-size: var(--text-small); color: var(--ink-2); }
.cart-line .cart-sku { margin: 0; font-family: var(--mono); font-size: var(--text-caption); color: var(--ink-3); }
.cart-price { font-weight: 700; font-size: var(--text-lead); white-space: nowrap; text-align: right; }

.cart-line-actions { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; margin-top: var(--space-4); }

/* A stepper reads as one control, so it is drawn as one rather than as two
   buttons that happen to sit next to a number. */
.qty {
    display: inline-flex; align-items: center;
    border: 1px solid var(--rule-strong);
    border-radius: 100px;
    overflow: hidden;
    background: var(--surface);
}
.qty button {
    width: 34px; height: 34px;
    border: 0; background: none; cursor: pointer;
    font-size: 17px; line-height: 1; color: var(--ink-2);
    display: grid; place-items: center;
    transition: background-color .14s ease, color .14s ease;
}
.qty button:hover:not(:disabled) { background: var(--paper-sunk); color: var(--ink); }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty .qty-value {
    min-width: 2.5ch; text-align: center;
    font-size: var(--text-small); font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.cart-remove {
    border: 0; background: none; padding: 0; cursor: pointer;
    font-family: var(--sans); font-size: var(--text-small); color: var(--ink-3);
    text-decoration: underline; text-underline-offset: 3px;
}
.cart-remove:hover { color: var(--bad); }

/* --- summary ---------------------------------------------------------------
   Sticky, because the total is the number somebody scrolls back up to check. */
.cart-aside { position: sticky; top: var(--space-4); display: flex; flex-direction: column; gap: var(--space-4); }
@media (max-width: 900px) { .cart-aside { position: static; } }

.cart-summary {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--lift);
}
.cart-summary h2 { margin: 0 0 var(--space-4); font-size: var(--text-h3); }
.cart-summary .btn-block + .btn-block { margin-top: var(--space-2); }
.cart-summary .btn-primary { margin-top: var(--space-4); }

.cart-note { margin: var(--space-4) 0 0; font-size: var(--text-caption); color: var(--ink-3); line-height: 1.5; text-align: center; }

/* --- promotion code ------------------------------------------------------- */
.promo {
    background: var(--paper-sunk);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
}
.promo h3 { margin: 0 0 var(--space-2); font-size: var(--text-small); }
.promo-row { display: flex; gap: var(--space-2); }
.promo-row .field { flex: 1 1 auto; min-width: 0; }
.promo-applied {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--space-3); margin-top: var(--space-3);
    font-size: var(--text-small);
}
.promo-applied code {
    font-family: var(--mono); font-weight: 600; letter-spacing: .06em;
    background: var(--ink); color: var(--paper);
    padding: 4px 10px; border-radius: 100px; font-size: var(--text-caption);
}

/* --- checkout --------------------------------------------------------------
   Same two-column frame as the bag, so the total does not move between the two
   screens. */
.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: clamp(20px, 3vw, 34px);
    align-items: start;
}
@media (max-width: 900px) { .checkout-layout { grid-template-columns: minmax(0, 1fr); } }

.checkout-section {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-bottom: var(--space-4);
}
.checkout-section > h2 {
    display: flex; align-items: center; gap: var(--space-3);
    margin: 0 0 var(--space-4); font-size: var(--text-h3);
}
.checkout-step {
    display: grid; place-items: center;
    width: 28px; height: 28px; flex: none;
    border-radius: 50%;
    background: var(--ink); color: var(--paper);
    font-family: var(--sans); font-size: 13px; font-weight: 700;
}

/* The order being paid for, listed beside the form rather than left behind on
   the previous page. */
.checkout-line {
    display: flex; gap: var(--space-3); align-items: flex-start;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--rule);
    font-size: var(--text-small);
}
.checkout-line:last-of-type { border-bottom: 0; }
.checkout-line .qty-badge {
    flex: none; min-width: 22px; height: 22px;
    display: grid; place-items: center;
    border-radius: 6px; background: var(--paper-sunk);
    font-size: var(--text-caption); font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.checkout-line .line-name { flex: 1 1 auto; min-width: 0; }
.checkout-line .line-name span { display: block; color: var(--ink-3); font-size: var(--text-caption); }
.checkout-line .line-total { white-space: nowrap; font-weight: 600; }

/* Payment methods as one choice each, not a bare radio with a word beside it. */
.pay-options { display: flex; flex-direction: column; gap: var(--space-2); }
.pay-option {
    display: flex; align-items: flex-start; gap: var(--space-3);
    padding: var(--space-4);
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}
.pay-option:hover { border-color: var(--accent); background: var(--accent-wash); }
.pay-option:has(input:checked) { border-color: var(--ink); background: var(--paper-sunk); }
.pay-option input { margin-top: 3px; flex: none; }
.pay-option .name { display: block; font-weight: 600; font-size: var(--text-small); }
.pay-option .desc { display: block; font-size: var(--text-caption); color: var(--ink-3); line-height: 1.5; margin-top: 2px; }

/* ===========================================================================
   Sign in, register, password reset
   ---------------------------------------------------------------------------
   Seven screens that each opened with the same `style="max-width:420px;
   margin:40px auto"`, and then diverged in how they spaced their fields. One
   card, one rhythm, and the mark at the top so a password page still looks
   like it belongs to this shop rather than to whatever sent the email.
   =========================================================================== */

.auth {
    max-width: 440px;
    margin: clamp(20px, 5vw, 56px) auto;
}

.auth-card {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 4vw, 36px);
    box-shadow: var(--lift-2);
}

.auth-mark {
    display: grid; place-items: center;
    width: 46px; height: 46px;
    margin: 0 auto var(--space-4);
    border-radius: 14px;
    background: var(--ink);
    color: var(--paper);
}
.auth-mark svg { width: 24px; height: 24px; }

.auth-card h1 {
    font-size: var(--text-h2);
    text-align: center;
    margin: 0 0 var(--space-2);
    letter-spacing: -.02em;
}
.auth-lede {
    text-align: center;
    margin: 0 auto var(--space-5);
    max-width: 38ch;
    font-size: var(--text-small);
    color: var(--ink-3);
    line-height: var(--leading-body);
}

/* Fields stack with one rhythm rather than each carrying its own margin-top. */
.auth-fields { display: flex; flex-direction: column; gap: var(--space-4); }
.auth-fields > div > .hint { margin-top: var(--space-1); }
.auth-card .btn-block { margin-top: var(--space-5); }

.auth-foot {
    margin: var(--space-5) 0 0;
    text-align: center;
    font-size: var(--text-small);
    color: var(--ink-3);
}
.auth-foot p { margin: 0 0 var(--space-2); }
.auth-foot p:last-child { margin-bottom: 0; }

/* An outcome screen — "check your email", "password changed" — is the same
   card with a status mark instead of a form. */
.auth-mark.is-ok   { background: var(--good-wash); color: var(--good); }
.auth-mark.is-warn { background: var(--warn-wash); color: var(--warn); }
.auth-card > p { text-align: center; color: var(--ink-2); line-height: var(--leading-body); }
.auth-card > .btn-block { display: flex; }

/* ===========================================================================
   Account area
   =========================================================================== */
/* .account-nav is already defined further up this file — not restated here. */

/* A customer's own tables — orders, addresses — want the same treatment as the
   back office's, minus the density. */
.shop-table {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    box-shadow: var(--lift);
}
.shop-table table { width: 100%; border-collapse: collapse; font-size: var(--text-small); }
.shop-table th {
    text-align: left;
    background: var(--paper-sunk);
    padding: 11px 16px;
    border-bottom: 1px solid var(--rule);
    font-size: var(--text-label);
    font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: var(--ink-3);
    white-space: nowrap;
}
.shop-table td { padding: 13px 16px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.shop-table tbody tr:last-child td { border-bottom: 0; }
.shop-table tbody tr:hover { background: var(--paper); }
.shop-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.shop-table code {
    font-family: var(--mono); font-size: var(--text-caption);
    background: var(--paper-sunk); padding: 3px 7px; border-radius: 5px;
}

/* Below 640px each row becomes a card. Same mechanism as the back office:
   admin-shell.js is not loaded here, so the labels are written in the markup. */
@media (max-width: 640px) {
    .shop-table { border: 0; background: none; box-shadow: none; overflow: visible; }
    .shop-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .shop-table tbody tr {
        display: block;
        background: var(--surface);
        border: 1px solid var(--rule);
        border-radius: var(--radius-lg);
        margin-bottom: var(--space-3);
        padding: var(--space-2) 0;
    }
    .shop-table td {
        display: flex; align-items: center; justify-content: space-between;
        gap: var(--space-4); text-align: right;
        padding: 9px 16px;
    }
    .shop-table td::before {
        content: attr(data-label);
        font-size: var(--text-label); font-weight: 600; letter-spacing: .07em;
        text-transform: uppercase; color: var(--ink-3);
        text-align: left; flex: none;
    }
    .shop-table td:empty { display: none; }
}

/* The full status vocabulary, so StatusStyle.Chip() — which the back office
   already reads from — produces a valid badge on the customer's side of the
   same order too. Without these, an order the shop calls "in the lab" renders
   as an unstyled grey pill here and a purple one in the back office.

   The shop's own chip-paid / chip-pending / chip-bad stay where they are;
   these are the names the shared map emits. */
.chip-ok       { background: var(--good-wash); color: var(--good); }
.chip-warn     { background: var(--warn-wash); color: var(--warn); }
.chip-danger   { background: var(--bad-wash);  color: var(--bad); }
.chip-info     { background: var(--accent-wash); color: var(--accent-deep); }
.chip-progress { background: #E7F0F5; color: #1F5670; }
.chip-lab      { background: #F0EAF4; color: #5B3A6B; }
.chip-plain    { background: var(--paper-sunk); color: var(--ink-3); }

/* ===========================================================================
   A customer's order
   ---------------------------------------------------------------------------
   The page listed three status chips side by side — "paid", "unfulfilled",
   "in lab" — which is exactly how the database thinks about an order and not
   at all how the person waiting for it does. The track below answers the only
   question they came to ask: where is it, and what happens next.
   =========================================================================== */

.order-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: var(--space-2);
    margin: var(--space-5) 0 var(--space-6);
    padding: 0;
    list-style: none;
}
@media (max-width: 700px) {
    .order-track { grid-auto-flow: row; gap: 0; }
}

.order-step {
    position: relative;
    padding-top: 26px;
    font-size: var(--text-caption);
    color: var(--ink-3);
    text-align: center;
}
/* The rail sits behind the dots, drawn per step so it never overshoots the
   first or last one. */
.order-step::before {
    content: "";
    position: absolute; top: 8px; left: 0; right: 0;
    height: 2px; background: var(--rule);
}
.order-step:first-child::before { left: 50%; }
.order-step:last-child::before { right: 50%; }

.order-step::after {
    content: "";
    position: absolute; top: 3px; left: 50%;
    transform: translateX(-50%);
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--rule-strong);
}
.order-step.is-done { color: var(--ink-2); }
.order-step.is-done::before { background: var(--good); }
.order-step.is-done::after { background: var(--good); border-color: var(--good); }
.order-step.is-now { color: var(--ink); font-weight: 650; }
.order-step.is-now::after {
    background: var(--accent); border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-wash);
}

@media (max-width: 700px) {
    .order-track { border-left: 2px solid var(--rule); margin-left: 6px; padding-left: var(--space-5); }
    .order-step { padding: 9px 0; text-align: left; }
    .order-step::before { display: none; }
    .order-step::after { top: 12px; left: calc(-1 * var(--space-5) - 7px); transform: none; }
}

/* When an order is cancelled or refunded the track is a lie, so it is replaced
   by a plain statement of where things stand. */
.order-halted {
    display: flex; align-items: center; gap: var(--space-3);
    padding: var(--space-4);
    background: var(--paper-sunk);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    margin: var(--space-5) 0 var(--space-6);
}
.order-halted svg { width: 20px; height: 20px; flex: none; color: var(--ink-3); }

/* --- side panels ---------------------------------------------------------- */
.info-card {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
}
.info-card h3 { margin: 0 0 var(--space-2); font-size: var(--text-small); }
.info-card address, .info-card p { margin: 0; font-style: normal; font-size: var(--text-small); color: var(--ink-2); line-height: 1.6; }

/* An order line is a bag line that can no longer be changed. */
.order-line { grid-template-columns: 100px minmax(0, 1fr) auto; }
.order-line .cart-meta { font-size: var(--text-caption); }


/* ===========================================================================
   Utilities
   ---------------------------------------------------------------------------
   The same four gaps the back office uses, on the same scale, so "a bit more
   space here" is a choice from a set rather than a fresh pixel value typed
   into a style attribute.
   =========================================================================== */
.mt-1 { margin-top: var(--space-2); }
.mt-2 { margin-top: var(--space-3); }
.mt-3 { margin-top: var(--space-4); }
.mt-4 { margin-top: var(--space-5); }
.mt-5 { margin-top: var(--space-6); }

/* A column of running text. Anything wider than about 70 characters is hard to
   track back to the start of the next line. */
.prose { max-width: 70ch; }

/* Buttons inside an empty state are the point of it, so they centre. */
.shop-empty .row, .shop-empty .hero-actions { justify-content: center; }

/* A chip that is also a control — the promotion live/paused switch. */
.chip-button {
    border: 0; cursor: pointer;
    font: inherit; font-size: var(--text-caption); font-weight: 600;
}

.text-center { text-align: center; }

/* A caption label that wraps its own control reads as a sentence, not as a
   small-caps field name. */
.label-plain { text-transform: none; letter-spacing: 0; margin: 0; font-weight: 400; font-size: var(--text-body); color: var(--ink); }

/* ===========================================================================
   The customer's account
   ---------------------------------------------------------------------------
   This was an h1, three outline buttons and a bare table — a page that told
   somebody their own email address and then stopped. It is the only screen a
   returning customer opens on purpose, so it now says who they are, what they
   have spent, and where the four things they might want to do actually live.
   =========================================================================== */

.account-hero {
    display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap;
    padding: clamp(20px, 3vw, 30px);
    background:
        radial-gradient(80% 160% at 0% 0%, rgba(124, 106, 82, .10), transparent 62%),
        var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    box-shadow: var(--lift);
    margin-bottom: var(--space-5);
}

.account-avatar {
    width: 66px; height: 66px; flex: none;
    display: grid; place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #2C2724, var(--ink));
    color: var(--paper);
    font-family: var(--serif);
    font-size: 24px; font-weight: 600;
    letter-spacing: .01em;
    box-shadow: 0 3px 12px rgba(28, 25, 23, .25);
}

.account-who { flex: 1 1 240px; min-width: 0; }
.account-who h1 { margin: 0 0 3px; font-size: var(--text-h2); letter-spacing: -.022em; overflow-wrap: anywhere; }
.account-who p { margin: 0; font-size: var(--text-small); color: var(--ink-3); }

/* What the account is actually worth to the person holding it. */
.account-figures {
    display: flex; gap: clamp(20px, 4vw, 44px); flex-wrap: wrap;
    padding-left: clamp(0px, 2vw, 24px);
}
.account-figure dt {
    margin: 0 0 4px;
    font-size: var(--text-label); font-weight: 600;
    letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3);
}
.account-figure dd {
    margin: 0;
    font-family: var(--serif); font-size: 22px; font-weight: 600;
    letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}

/* --- the four places to go ------------------------------------------------- */
.account-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.account-card {
    display: flex; flex-direction: column;
    padding: var(--space-5);
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.account-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--lift-2);
    border-color: var(--rule-strong);
    text-decoration: none;
}
.account-card-icon {
    display: grid; place-items: center;
    width: 40px; height: 40px;
    margin-bottom: var(--space-3);
    border-radius: 12px;
    background: var(--paper-sunk);
    color: var(--accent-deep);
}
.account-card-icon svg { width: 20px; height: 20px; }
.account-card h2 { margin: 0 0 4px; font-size: var(--text-lead); letter-spacing: -.015em; }
.account-card p { margin: 0; font-size: var(--text-caption); color: var(--ink-3); line-height: 1.55; }
.account-card .go {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: var(--space-4);
    font-size: var(--text-caption); font-weight: 600; color: var(--ink);
}
.account-card .go svg { width: 14px; height: 14px; transition: transform .18s ease; }
.account-card:hover .go svg { transform: translateX(3px); }

@media (max-width: 560px) {
    .account-hero { gap: var(--space-4); }
    .account-avatar { width: 54px; height: 54px; font-size: 20px; }
    .account-figures { padding-left: 0; width: 100%; }
}
