/* PORTAL V3 (local preview, 2026-11-14). Clement: "could we see you match this in the portal so I can see a full preview".
   Carries the look of Jacob's OT Health V3 homepage (public/v3, his package of 11-13) into the portal and its sign-in
   pages. Screens, layouts and wording are untouched. Loaded last, after portal-voice.css, only while HOME_V3_ENABLED is on.

   Every value is measured from the V3 homepage's computed styles on 11-14 (1440 wide):
   ground #FFFFFF, soft ground #F8F6F1, ink #17130E, secondary #6E675C, hairline #ECE8E0, accent olive #765F31;
   body Inter 400; titles Inter Tight (hero 200, section heads 500, tracking -0.035em); accent word Newsreader 300 italic
   in olive; labels Inter 600 capitals in olive; buttons Inter 600 on an ink pill; cards white, 1px hairline, 20px radius,
   no shadow. This supersedes portal-voice.css's Helvetica (Jacob 10-26, "stick to our font") only because his own 11-13
   homepage moved to Inter; if he keeps Helvetica for the portal, drop this file. */

/* The fonts ship with the V3 homepage and are served from this site (no third-party request on portal pages). The two
   Inter files are variable, so one face covers every weight the portal asks for. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/v3/assets/fonts/f01.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/v3/assets/fonts/f03.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* The portal names "Helvetica Neue" in 40 stylesheets and many inline styles. Declaring that family here points every
   one of them at Inter without touching those files, so removing this stylesheet restores Helvetica everywhere. */
@font-face { font-family: "Helvetica Neue"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/v3/assets/fonts/f01.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Tokens. html:root matches portal-voice.css and comes later, so these win. Light theme only: club.css owns the dark one. */
html:root:not([data-theme="dark"]),
html:not([data-theme="dark"]) body .portal-setup:not(#ot-0) {
    --paper: #ffffff;
    --cream: #f8f6f1;
    --card: #ffffff;
    --ink: #17130e;
    --mute: #6e675c;
    --line: #ece8e0;
    --line-soft: #f1eee8;
    --deep: #765f31;
    --p-deep: #765f31;
    --ot-ink: #17130e;
    --ot-cream: #f8f6f1;
    --ot-bronze: #765f31;
}
html:root,
html body .portal-setup:not(#ot-0) {
    --sans: "Inter", system-ui, -apple-system, sans-serif;
    --serif: "Inter Tight", "Inter", system-ui, sans-serif;
    --p-serif: "Inter Tight", "Inter", system-ui, sans-serif;
}
html:not([data-theme="dark"]) body:not(#ot-0) { background: #ffffff; color: #17130e; }
html body:not(#ot-0) { font-family: "Inter", system-ui, -apple-system, sans-serif; letter-spacing: 0; }

/* Titles: the same list portal-voice.css sets, moved to Inter Tight */
html body :is(h1, h2, .h1, .h2, .display, .page-title, .sec-title, .cal-h, .p-h1, .p-kicker:not(.ps-qlabel), .pi-page__h, .pe-title, .hh-card__title, .hh-ed__title, .lh-title, .la-title, .draw-overview-title, .draw-order-title, .booking-heading, .booking-time-date, .ps-sheet__title, .pdp-title, .ty-title, .serif-close, .idea-location-review h3, .idea-other-records > summary, #ps-draw-saved-when):not(#ot-0):not(#ot-1) {
    font-family: "Inter Tight", "Inter", system-ui, sans-serif !important;
}
html body :is(.page-title, .p-h1, .portal-entry h1):not(#ot-0):not(#ot-1) {
    font-weight: 300 !important;
    letter-spacing: -0.035em !important;
}
html body :is(.sec-title, .cal-h, main h2):not(#ot-0):not(#ot-1) {
    font-weight: 500 !important;
    letter-spacing: -0.02em !important;
}

/* Labels: Inter 600 in the accent olive, as the homepage's section labels. Tracking stays each label's own so no
   label grows past its box. */
html:not([data-theme="dark"]) body .eyebrow:not(#ot-0):not(#ot-1) { font-weight: 600 !important; color: #765f31 !important; }

/* Buttons: the homepage's weight on the portal's existing ink pill */
html body :is(.btn, .l-cta, .sg-cta):not(#ot-0) { font-weight: 600; letter-spacing: 0.005em; }

/* Cards: white, one hairline, 20px, no shadow */
html:not([data-theme="dark"]) body .card:not(#ot-0) {
    background: #ffffff;
    border: 1px solid #ece8e0;
    border-radius: 20px;
    box-shadow: none;
}

/* The membership card, as the V3 homepage draws it (v3.css .mcard, measured 11-14): 1.586 card ratio, 22px radius, the
   same three metal gradients and shadow, wordmark top left, tier in Inter Tight 500 bottom left. Drawn level here, not
   fanned at an angle: the fan is the homepage showing all three plans, and a member holds one. */
.v3card-wrap { display: grid; justify-items: center; gap: 14px; }
.v3card {
    width: min(100%, 320px);
    aspect-ratio: 1.586;
    border-radius: 22px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #17130e;
    background: linear-gradient(135deg, #f7edcf 0%, #e2cc90 35%, #c9ae6e 60%, #ebd9a6 100%);
    box-shadow: 0 22px 44px rgba(90, 70, 30, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -1px 0 rgba(0, 0, 0, 0.08);
    text-align: left;
}
.v3card--silver { background: linear-gradient(135deg, #f4f4f2, #d9d9d6 45%, #bdbdb8 70%, #ededea); box-shadow: 0 22px 44px rgba(60, 60, 56, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -1px 0 rgba(0, 0, 0, 0.08); }
.v3card--black { background: linear-gradient(135deg, #2b2a28, #151413); color: #ede6d2; box-shadow: 0 22px 44px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.v3card__top { display: flex; justify-content: space-between; align-items: center; }
.v3card__top img { height: 22px; width: auto; display: block; }
.v3card__top span { font: 600 11px/1 "Inter", system-ui, sans-serif; letter-spacing: 0.16em; text-transform: uppercase; }
.v3card__foot b { display: block; font: 500 30px/1 "Inter Tight", "Inter", system-ui, sans-serif; letter-spacing: -0.02em; }
.v3card__foot small { display: block; font: 400 11px/1.2 "Inter", system-ui, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.75; margin-top: 6px; }

/* Initials avatars (Clement 11-14, on the champagne disc with a gold rim and glow: "looks super AI and doesn't match
   Jacob's new aesthetic"). The V3 homepage has no gradients or glows on small marks; its one round mark is the flat ink
   disc in its buttons, with a cream arrow. Same here: flat ink, cream initials, no rim, no glow. Light theme only. */
html:not([data-theme="dark"]) body.portal-refined :is(.acct-me__ava, .pf-ava, .acct-btn__ava, .tm-av, .nav-drawer__ava):not(#ot-0) {
    background: #17130e;
    color: #f1e7cb;
    border: 0;
    box-shadow: none;
    font-family: "Inter", system-ui, sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
}
