/* ============================================================
   THE VAULT STOCK, Colors & Type
   Minimal, intentional. Cream sets the stage. Cocoa grounds it.
   ============================================================ */

/* ---------- FONTS ---------- */

@font-face {
  font-family: "La Villa";
  src: url("./fonts/LaVilla-ExtraLight.otf") format("opentype");
  font-weight: 200; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "La Villa";
  src: url("./fonts/LaVilla-Light.otf") format("opentype");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "La Villa";
  src: url("./fonts/LaVilla-Regular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "La Villa";
  src: url("./fonts/LaVilla-Italic.otf") format("opentype");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "La Villa";
  src: url("./fonts/LaVilla-Medium.otf") format("opentype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "La Villa";
  src: url("./fonts/LaVilla-SemiBold.otf") format("opentype");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "La Villa";
  src: url("./fonts/LaVilla-Bold.otf") format("opentype");
  font-weight: 700; font-style: normal; font-display: swap;
}

@font-face {
  font-family: "Silver Editorial";
  src: url("./fonts/SilverEditorial-Light.otf") format("opentype");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Silver Editorial";
  src: url("./fonts/SilverEditorial-Regular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Silver Editorial";
  src: url("./fonts/SilverEditorial-Italic.otf") format("opentype");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Silver Editorial";
  src: url("./fonts/SilverEditorial-Medium.otf") format("opentype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Silver Editorial";
  src: url("./fonts/SilverEditorial-Bold.otf") format("opentype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Silver Editorial";
  src: url("./fonts/SilverEditorial-BoldItalic.otf") format("opentype");
  font-weight: 700; font-style: italic; font-display: swap;
}

@font-face {
  font-family: "Officially Funky";
  src: url("./fonts/OfficiallyFunky.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* Celestial Guardians, secondary display face. Used on select section
   titles for visual rhythm. Silver Editorial stays the primary.
   Four cuts: solid, outline, round, round outline.
   Cache-bust querystring so updates to the file take effect. */
@font-face {
  font-family: "Celestial Guardians";
  src: url("./fonts/CelestialGuardians-Regular.otf?v=5") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Celestial Guardians Outline";
  src: url("./fonts/CelestialGuardians-RegularOutline.otf?v=4") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Celestial Guardians Round";
  src: url("./fonts/CelestialGuardians-Round.otf?v=4") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Celestial Guardians Round Outline";
  src: url("./fonts/CelestialGuardians-RoundOutline.otf?v=4") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}


:root {
  /* ---------- CORE PALETTE ---------- */
  /* Cream sets the stage. Cocoa grounds. */
  --cream:        #F2ECE4;  /* primary surface, warm, not clinical */
  --cocoa:        #2A2420;  /* primary ink, soft cocoa brown/black */

  /* Subtle tonal shifts within the same warm family. */
  --cream-deep:   #E8E0D4;  /* hover surface / soft divider fill */
  --cream-darker: #DCD1BF;  /* pressed / subtle border */
  --sand:         #C6B8A2;  /* mid-tone, used sparingly */
  --taupe:        #8C7F71;  /* muted supporting text on cream */
  --cocoa-soft:   #3D342F;  /* raised surface on dark mode */
  --cocoa-deep:   #1C1715;  /* deepest ink / shadow base */

  /* Accent, brown drip. Appears in the logo. Use sparingly. */
  --drip-brown:   #4A3A30;

  /* Functional (quiet) */
  --positive:     #6B7A5A;  /* olive, not traffic-light green */
  --warning:      #B08654;  /* warm ochre */
  --negative:     #8C3A2E;  /* burnt red, stays in the warm family */

  /* ---------- SEMANTIC: foreground ---------- */
  --fg-1: var(--cocoa);         /* primary text */
  --fg-2: #54483F;              /* secondary text */
  --fg-3: var(--taupe);         /* tertiary / meta */
  --fg-4: #A89A88;              /* disabled / placeholder */
  --fg-on-dark: var(--cream);

  /* ---------- SEMANTIC: background ---------- */
  --bg-1: var(--cream);         /* app background */
  --bg-2: #EDE5DA;              /* card */
  --bg-3: var(--cream-deep);    /* hover / subtle panel */
  --bg-inverse: var(--cocoa);   /* dark sections, modals on dark */

  /* ---------- SEMANTIC: borders ---------- */
  --border-1: rgba(42, 36, 32, 0.10);  /* hairline */
  --border-2: rgba(42, 36, 32, 0.18);  /* standard */
  --border-3: rgba(42, 36, 32, 0.35);  /* emphasis */
  --border-on-dark: rgba(242, 236, 228, 0.14);

  /* ---------- TYPE FAMILIES ---------- */
  --font-serif-display: "Silver Editorial", "Cormorant Garamond", "Times New Roman", serif;
  --font-serif-body:    "Silver Editorial", "Cormorant Garamond", Georgia, serif;
  --font-celestial:     "Celestial Guardians", "Silver Editorial", serif;
  --font-celestial-outline: "Celestial Guardians Outline", "Celestial Guardians", serif;
  --font-celestial-round: "Celestial Guardians Round", "Celestial Guardians", serif;
  --font-funky:         "Officially Funky", "Silver Editorial", serif;
  --font-sans:          "La Villa", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-sans-caps:     "La Villa", "Inter", ui-sans-serif, system-ui, sans-serif; /* used with uppercase + tracking */

  /* ---------- TYPE SCALE ---------- */
  --fs-display: clamp(56px, 8vw, 128px);
  --fs-h1: clamp(40px, 5.5vw, 72px);
  --fs-h2: clamp(32px, 4vw, 52px);
  --fs-h3: clamp(24px, 2.8vw, 36px);
  --fs-h4: 22px;
  --fs-h5: 18px;
  --fs-body-lg: 18px;
  --fs-body:    16px;
  --fs-body-sm: 14px;
  --fs-caption: 12px;
  --fs-eyebrow: 11px;   /* uppercase, tracked */

  /* Line-heights */
  --lh-tight: 1.02;
  --lh-snug:  1.15;
  --lh-body:  1.55;
  --lh-loose: 1.75;

  /* Tracking */
  --tr-tight: -0.02em;
  --tr-caps:  0.14em;
  --tr-eyebrow: 0.22em;

  /* ---------- SPACING ---------- */
  --sp-0: 0;
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;

  /* ---------- RADII ---------- */
  /* Very restrained. Editorial prefers crisp edges. */
  --r-0: 0;
  --r-1: 2px;
  --r-2: 4px;
  --r-3: 8px;
  --r-pill: 999px;

  /* ---------- ELEVATION ---------- */
  /* Shadows are soft and warm. No pure black. */
  --shadow-1: 0 1px 2px rgba(42, 36, 32, 0.06);
  --shadow-2: 0 6px 18px rgba(42, 36, 32, 0.08);
  --shadow-3: 0 20px 40px -12px rgba(42, 36, 32, 0.16);
  --shadow-inset: inset 0 0 0 1px var(--border-1);

  /* ---------- MOTION ---------- */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 140ms;
  --dur-base: 240ms;
  --dur-slow: 480ms;
}

/* ============================================================
   BASE ELEMENTS
   ============================================================ */

html, body {
  background: var(--bg-1);
  color: var(--fg-1);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Advanced OpenType: kern, liga+clig, dlig (editorial flourishes),
     calt, onum, stylistic sets. font-synthesis off so we never fake
     bold/italic, we always load the real cut. */
  font-feature-settings: "kern" 1, "liga" 1, "clig" 1, "dlig" 1,
                         "calt" 1, "ss01" 1, "ss02" 1, "ss03" 1, "ss04" 1,
                         "onum" 1;
  font-variant-ligatures: common-ligatures discretionary-ligatures contextual;
  font-kerning: normal;
  font-optical-sizing: auto;
  font-synthesis: none;
}

/* Serif display gets the full glyph treatment, swashes, dlig, and
   old-style figures read as editorial rather than technical. */
h1, h2, h3, .h1, .h2, .h3, .display,
[class*="editorial"], em {
  font-feature-settings: "kern" 1, "liga" 1, "clig" 1, "dlig" 1,
                         "calt" 1, "swsh" 1, "salt" 1,
                         "ss01" 1, "ss02" 1, "ss03" 1, "ss04" 1,
                         "onum" 1, "hlig" 1;
  font-variant-ligatures: common-ligatures discretionary-ligatures historical-ligatures contextual;
}

/* Tabular numerals for anything that needs to line up, prices in cards,
   data tables. Opt-in via class. */
.tnum, table, .price-grid {
  font-feature-settings: "kern" 1, "liga" 1, "tnum" 1, "lnum" 1;
  font-variant-numeric: tabular-nums lining-nums;
}

h1, .h1 {
  font-family: var(--font-serif-display);
  font-weight: 400;
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--tr-tight);
  color: var(--fg-1);
  text-wrap: balance;
}
h2, .h2 {
  font-family: var(--font-serif-display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-tight);
  text-wrap: balance;
}
h3, .h3 {
  font-family: var(--font-serif-display);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
}
h4, .h4 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-h4);
  line-height: var(--lh-snug);
}

.display {
  font-family: var(--font-serif-display);
  font-weight: 400;
  font-style: italic;
  font-size: var(--fs-display);
  line-height: 0.95;
  letter-spacing: -0.025em;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--fg-2);
}

.caps {
  text-transform: uppercase;
  letter-spacing: var(--tr-caps);
  font-weight: 500;
}

p, .body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--fg-1);
  text-wrap: pretty;
}
.body-lg { font-size: var(--fs-body-lg); line-height: var(--lh-loose); }
.body-sm { font-size: var(--fs-body-sm); }
.caption { font-size: var(--fs-caption); color: var(--fg-3); }

em, .editorial {
  font-family: var(--font-serif-body);
  font-style: italic;
  font-weight: 400;
}

/* Links are quiet, underline on hover, no bright blue. */
a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}
a:hover { border-bottom-color: currentColor; }

hr {
  border: 0;
  height: 1px;
  background: var(--border-2);
}

/* ============================================================
   RESPONSIVE — mobile pass (≤780px)
   Desktop stays untouched. Components opt-in to common helper
   classes (.ps-section, .ps-grid-cols, .ps-stack-mobile) so we
   can scale paddings, stack grids, and cap big type on phones.
   ============================================================ */

@media (max-width: 1180px) {
  /* tablet & small laptop — slightly tighter */
  .ps-section { padding-left: 32px !important; padding-right: 32px !important; }

  /* Nav: tighten gaps so 4 links + logo + CTA all fit */
  .ps-nav { padding: 16px 24px !important; gap: 16px !important; }
  .ps-nav-links { gap: 22px !important; }
  .ps-nav-links a { font-size: 13px !important; }
  .ps-nav-wordmark { font-size: 18px !important; }
  .ps-nav-cta { padding: 10px 18px !important; font-size: 12px !important; }

  /* Stack the hero into a single column — the side-by-side left column is too
     narrow up to ~1180px to fit "AUTHENTIC X AI HYBRID" on one line. */
  .ps-section[data-mobile-pad="true"] > .ps-stack-mobile {
    grid-template-columns: 1fr !important;
  }
  .ps-stack-mobile > div:last-child {
    min-height: 60vh !important;
  }

  /* Hero display: scale to viewport. With the full row width available,
     both lines fit comfortably. */
  .ps-hero-display { font-size: clamp(64px, 11vw, 132px) !important; line-height: 1 !important; letter-spacing: 0 !important; }
  .ps-hero-display br { display: none !important; }
  .ps-hero-display-sub { font-size: clamp(40px, 8vw, 96px) !important; display: block !important; margin-top: 14px !important; line-height: 1 !important; }
}

@media (max-width: 780px) {
  /* phone */
  html, body { overflow-x: hidden; }

  /* Section paddings — anything that uses inline `padding: '... 48px'`
     and adopts class .ps-section gets cut down. */
  .ps-section {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .ps-section-y {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
  }
  .ps-section-y-lg {
    padding-top: 88px !important;
    padding-bottom: 88px !important;
  }

  /* Stack any grid that opts in */
  .ps-stack-mobile {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .ps-stack-mobile-2 {
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
  }
  .ps-stack-mobile-1 {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  /* Flex rows that should stack */
  .ps-flex-stack-mobile {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 20px !important;
  }

  /* Cap large display type on phones */
  .celestial { font-size: clamp(40px, 11vw, 72px) !important; line-height: 0.98 !important; letter-spacing: -0.01em !important; }
  .celestial-sm { font-size: clamp(32px, 9vw, 56px) !important; }

  /* Hide on mobile / show on mobile helpers */
  .ps-hide-mobile { display: none !important; }

  /* Footer marquee dialled down */
  .ps-marquee-mobile { margin-inline: -20px !important; }
  .ps-marquee-mobile span { font-size: 22px !important; gap: 24px !important; }

  /* Pricing tier grid: pack of 5 → single column; subs of 3 → single column */
  .ps-pricing-grid { grid-template-columns: 1fr !important; gap: 12px !important; }

  /* Generic fixes for inline paddings we know live in the codebase */
  [data-mobile-pad="true"] { padding-left: 20px !important; padding-right: 20px !important; }
  [data-mobile-pad-tight="true"] { padding-left: 16px !important; padding-right: 16px !important; }

  /* Reduce vertical paddings on inline-styled sections that opt-in */
  [data-mobile-y="sm"] { padding-top: 56px !important; padding-bottom: 56px !important; }
  [data-mobile-y="md"] { padding-top: 72px !important; padding-bottom: 72px !important; }
  [data-mobile-y="lg"] { padding-top: 88px !important; padding-bottom: 88px !important; }

  /* Nav: tighten padding + shrink CTA */
  .ps-nav { padding: 14px 16px !important; grid-template-columns: auto auto !important; gap: 12px !important; }
  .ps-nav-links { display: none !important; }
  .ps-nav-wordmark { font-size: 18px !important; }
  .ps-nav-cta { padding: 9px 16px !important; font-size: 12px !important; }
  .ps-nav-cta span { display: none !important; }

  /* Hero, how-it-works, pricing display caps */
  .ps-hero-display { font-size: clamp(56px, 14vw, 84px) !important; line-height: 1 !important; letter-spacing: 0 !important; }
  .ps-hero-display br { display: none !important; }
  .ps-hero-display-sub { font-size: clamp(28px, 7.5vw, 44px) !important; display: block !important; margin-top: 14px !important; line-height: 1.05 !important; }
  .ps-hero-stat-row { gap: 12px !important; }
  .ps-hero-stat-row > div > div:first-child { font-size: 18px !important; }

  /* Steps rail in How it works → switch to a horizontal scroller-friendly stack */
  .ps-howitworks-grid { grid-template-columns: 1fr !important; gap: 24px !important; }

  /* Cap inner heading sizes inside opt-in sections */
  .ps-h2-cap { font-size: clamp(40px, 11vw, 72px) !important; }
  .ps-h2-cap-sm { font-size: clamp(32px, 9vw, 56px) !important; }

  /* Tables (member tier table) — squeeze columns + smaller pad */
  .ps-tier-table > div { padding: 16px 18px !important; grid-template-columns: 1.5fr 1fr 1fr !important; }
  .ps-tier-table > div > div { font-size: 13px !important; }
  .ps-tier-table > div > div:first-child { font-size: 16px !important; }

  /* Terms grid: drop section number column */
  .ps-terms-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  .ps-terms-num { font-size: 10px !important; padding-top: 0 !important; }

  /* CTA buttons stretch on mobile */
  .ps-cta-row { flex-direction: column !important; align-items: stretch !important; }
  .ps-cta-row > a, .ps-cta-row > button { text-align: center !important; }

  /* Capabilities motion-presets list: 5-col → 2-col */
  .cap-motion-grid { grid-template-columns: 1fr 1fr !important; gap: 0 16px !important; }

  /* Long stat-row figures: drop to 2 columns so "10,000+" breathes */
  .ps-hero-stat-row { grid-template-columns: 1fr 1fr !important; gap: 14px 18px !important; }
  .ps-hero-stat-row > div:nth-child(3) { grid-column: 1 / -1 !important; }
}

