/* =============================================================================
   Archivo — shared noma chrome, for every page EXCEPT index.html.

   index.html loads its own isolated css/home.css and is never touched by this
   file (see the header comment in home.css). Every other page in the site
   loads THIS file instead of the old css/styles.css, so the header, nav,
   buttons, footer and type system exactly match the homepage. Each page can
   still load its own page-specific stylesheet afterward for content unique to
   that page (info-pages.css, legal.css, login.css, security.css,
   community.css, docs.css, tutorials.css, pricing.css) — those files target
   the SAME class names and tokens they always have, just reskinned to noma.

   Header/nav and footer markup on every page is a byte-for-byte copy of
   home.html's (only the brand/Features/How-it-works hrefs point back at
   index.html instead of "#top"/"#features"/"#how"), so the .site-header/.nav/
   .footer rules below intentionally mirror home.css's rules 1:1.
   ============================================================================= */

:root {
  --ink: #242331;
  --muted: #6f6d7b;
  --paper: #fbfaf7;
  --white: #ffffff;
  --lavender: #c5b3d2;
  --lavender-deep: #8e769f;
  --peach: #fde2e1;
  --peach-deep: #e5aeb3;
  --mint: #c6d89d;
  --mint-deep: #819a5c;
  --cream: #f6e9ba;
  /* brand green (was lavender #8075c2) — the accent now matches the app's green
     for links, <em>, focus rings and highlights; pastels stay decorative. */
  --accent: #647a5b;
  --accent-hover: #4f6247;
  --stroke: rgba(36, 35, 49, 0.12);
  --shadow: 0 28px 80px rgba(55, 50, 81, 0.11);
  --radius-lg: 34px;
  --radius-md: 24px;
  --shell: min(1440px, calc(100vw - 56px));

  /* legacy Nimbus-era token names some page-specific stylesheets still use —
     kept alive here (repointed at noma values) so those files render correctly
     without every var() usage needing to be rewritten. The archivo-lime/green/
     teal/forest brand gradient is NOT remapped — it's the actual logo mark and
     stays identical on every page. */
  --archivo-lime: #B7DA32;
  --archivo-green: #7EC86A;
  --archivo-teal: #28B887;
  --archivo-forest: #647a5b;
  --ink-soft: var(--muted);
  --ink-faint: #918e9a;
  --bg: var(--paper);
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-bg-strong: rgba(255, 255, 255, 0.86);
  --glass-bg-subtle: rgba(255, 255, 255, 0.5);
  --glass-brd: var(--stroke);
  --glass-blur: 0px;
  --shadow-sm: 0 8px 24px rgba(55, 50, 81, 0.08);
  --shadow-lg: var(--shadow);
  --r-sm: 14px;
  --r: var(--radius-md);
  --r-lg: var(--radius-lg);
  --r-xl: 40px;
  --maxw: 1160px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --green: var(--mint-deep);
  --green-deep: #5f9481;
  --grad: linear-gradient(110deg, var(--lavender-deep), var(--accent));
  --grad-green: linear-gradient(110deg, var(--mint-deep), var(--accent));
  --grad-warm: linear-gradient(110deg, var(--peach-deep), var(--accent));
  --green-glow: rgba(129, 182, 157, 0.20);
  --green-brd: rgba(129, 182, 157, 0.40);
  --blue: #9db4ea;
  --violet: #b3a0e8;
  --rose: #f0b4c4;
  --amber: #f0cf7a;
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
svg, img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* old ambient background effects (aurora blobs / grain / spotlight / 3D scene
   canvases) have no place in the noma paper aesthetic — force-hidden here as a
   safety net for any page whose markup hasn't been fully cleaned up yet. */
.aurora, .blob, .grain, .spotlight, #geometry, #geometry3d, #geometry3d-glow, #geometry3d-sparks {
  display: none !important;
}

/* ---------------------------------------------------------------- header / nav */
/* Sticky bar that stays transparent over the paper, then takes on a controlled
   dose of the app's liquid-glass (frosted translucent paper + hairline) once you
   scroll — the .scrolled class is toggled by js/noma-chrome.js. */
.site-header {
  position: sticky; top: 0; z-index: 20; padding: 24px 0;
  border-bottom: 1px solid transparent;
  transition: background 240ms ease, box-shadow 240ms ease, border-color 240ms ease, padding 240ms ease;
}
.site-header.scrolled {
  background: rgba(251, 250, 247, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom-color: var(--stroke);
  box-shadow: 0 10px 30px -18px rgba(55, 50, 81, 0.18);
}
.nav { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 760; font-size: 22px; letter-spacing: -0.04em; }
.brand-mark { width: 30px; height: 30px; }
.nav-menu { display: flex; align-items: center; gap: 52px; }
.nav-links, .nav-actions { display: flex; align-items: center; gap: 30px; }
.nav-links a, .text-link { color: #5f5d69; font-size: 14px; transition: color 180ms ease; }
.nav-links a:hover, .text-link:hover { color: var(--ink); }
.nav-toggle { display: none; border: 0; background: transparent; padding: 8px; cursor: pointer; }
.nav-toggle > span:not(.sr-only) { display: block; width: 24px; height: 1.5px; margin: 6px 0; background: var(--ink); transition: transform 180ms ease; }

/* ---------------------------------------------------------------- buttons */
/* new noma names (used by header/footer) AND the old .btn/.btn--* names (used
   throughout existing page content) resolve to the exact same look. */
.button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 54px; padding: 0 24px; border-radius: 18px;
  font-size: 14px; font-weight: 700; white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.button:hover, .btn:hover { transform: translateY(-2px); }
.button-dark, .btn--primary { color: #fff; background: var(--accent); box-shadow: 0 12px 28px rgba(100, 122, 91, 0.24); }
.button-dark:hover, .btn--primary:hover { box-shadow: 0 16px 34px rgba(100, 122, 91, 0.32); background: var(--accent-hover); }
.button-small { min-height: 43px; padding: 0 18px; border-radius: 14px; font-size: 13px; gap: 10px; }
.button-quiet { background: transparent; color: var(--ink); }
.button-quiet svg { width: 25px; height: 25px; padding: 5px; border: 1px solid rgba(36, 35, 49, .18); border-radius: 50%; }
.button-quiet svg path { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.button-outline, .btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--stroke); }
.button-outline:hover, .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px rgba(36, 35, 49, .3); background: rgba(255, 255, 255, .5); }
.button-block, .btn--block { width: 100%; }
.btn--lg { min-height: 54px; padding: 0 26px; font-size: 15px; }
.btn--google { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--stroke); }

/* ---------------------------------------------------------------- focus */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.footer :focus-visible { outline-color: var(--lavender); }

/* ---------------------------------------------------------------- eyebrow / pill / grad-text */
.eyebrow { display: flex; align-items: center; gap: 10px; color: #74717e; font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow > span { width: 19px; height: 8px; border-radius: 999px; background: var(--peach); }
.eyebrow--green > span { background: var(--mint-deep); }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--muted); background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px var(--stroke); }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint-deep); }
.grad-text, .grad-text--green { color: var(--accent); background: none; -webkit-text-fill-color: currentColor; }

/* ---------------------------------------------------------------- headings */
h1, h2, h3, .section-heading, .cta-card h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.045em; }
em { font-style: normal; color: var(--accent); }

/* ---------------------------------------------------------------- sections */
/* standalone-safe: works whether a page pairs .section with .shell (home's
   pattern) or uses .section alone as both width-constrainer and vertical
   padder (every other page's older pattern). */
.section { max-width: var(--shell); margin-inline: auto; padding-block: 90px; padding-inline: 22px; }
.section.shell { padding-inline: 0; }
.section--narrow { max-width: 800px; }
.section-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 42px; color: #6b6873; font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.section-kicker span { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: #eeeafa; color: #7168a8; font-size: 9px; }
.intro-grid { display: grid; grid-template-columns: 1.3fr .7fr; align-items: end; gap: 80px; }
.section-heading { margin: 0; font-size: clamp(38px, 4.6vw, 60px); line-height: 1.05; }
.section-copy { max-width: 430px; margin: 0 0 7px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section__head h1, .section__head h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); margin-bottom: 16px; line-height: 1.05; }
.section__head p, .section__sub { color: var(--muted); font-size: 1.05rem; line-height: 1.7; max-width: 560px; margin: 12px auto 0; }

/* ---------------------------------------------------------------- bento cards */
.bento-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 70px; }
.bento-card { position: relative; min-height: 380px; overflow: hidden; border-radius: var(--radius-lg); }
.bento-large { grid-column: 1 / -1; min-height: 420px; display: grid; grid-template-columns: .67fr 1.33fr; align-items: center; }
.bento-lavender { background: var(--lavender); } .bento-mint { background: var(--mint); } .bento-peach { background: var(--peach); } .bento-cream { background: #fbf1d6; }
.bento-copy { position: relative; z-index: 2; padding: 44px; }
.number { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 40px; border: 1px solid rgba(36, 35, 49, .18); border-radius: 50%; font-size: 9px; font-weight: 750; }
.bento-copy h3 { margin: 0 0 13px; font-size: 30px; letter-spacing: -.035em; }
.bento-copy p { max-width: 320px; margin: 0; color: #6f6c77; font-size: 14px; line-height: 1.65; }
.bento-copy a { display: inline-flex; align-items: center; gap: 16px; margin-top: 26px; font-size: 12px; font-weight: 750; }
.bento-copy a span { transition: transform 160ms ease; } .bento-copy a:hover span { transform: translateX(4px); }
.bento-small { display: flex; flex-direction: column; justify-content: space-between; }
.bento-small .bento-copy { padding-top: 15px; } .bento-small .number { margin-bottom: 30px; }
.line-illustration { height: 210px; padding: 24px 30px 0; }
.line-illustration svg { width: 100%; height: 100%; overflow: visible; }
.line-illustration path { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.line-illustration .fill-lavender { fill: var(--lavender); } .line-illustration .fill-peach { fill: var(--peach); } .line-illustration .fill-cream { fill: #fff4d1; } .line-illustration .idea-spark { fill: var(--lavender); }

/* ---------------------------------------------------------------- glass card */
/* old frosted/blurred card look, reskinned to a flat paper card so every
   .glass element across the site (info cards, FAQ items, plan cards, login
   panels…) matches the noma aesthetic without a class rename. */
.glass {
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: var(--radius-md);
}

/* ---------------------------------------------------------------- cta card */
.cta-section { padding-top: 20px; padding-bottom: 120px; }
.cta-card { position: relative; overflow: hidden; padding: 90px 40px; border-radius: var(--radius-lg); background: var(--peach); text-align: center; }
.cta-card .eyebrow { justify-content: center; } .cta-card .eyebrow > span { background: var(--mint); }
.cta-card h2 { margin: 26px 0 20px; font-size: clamp(42px, 5.4vw, 62px); line-height: 1; }
.cta-card > p { margin: 0 0 30px; color: #6f6b79; font-size: 15px; } .cta-card .button, .cta-card .btn { min-width: 200px; } .cta-card > small { display: block; margin-top: 16px; color: #5c5866; font-size: 11px; }
.cta-doodle { position: absolute; width: 190px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: .7; } .left-doodle { left: 25px; bottom: -8px; } .right-doodle { right: 20px; top: 22px; }

/* legacy .cta-wrap/.cta (pricing-page final call-to-action) — reskinned in place */
.cta-wrap { max-width: var(--maxw); margin: 40px auto 90px; padding: 0 22px; }
.cta { border-radius: var(--r-xl); padding: 64px 40px; text-align: center; background: var(--peach); position: relative; overflow: hidden; }
.cta h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); margin-bottom: 14px; }
.cta p { color: var(--muted); font-size: 1.1rem; max-width: 480px; margin: 0 auto 30px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta__form { display: flex; gap: 10px; max-width: 470px; margin: 0 auto 16px; flex-wrap: wrap; }
.cta__form input { flex: 1; min-width: 200px; padding: 15px 22px; border-radius: 999px; border: none; background: rgba(255, 255, 255, .85); font-size: 1rem; box-shadow: inset 0 0 0 1px var(--stroke); }
.cta__form input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.cta__fine { font-size: 0.85rem; color: var(--ink-faint); }

/* ---------------------------------------------------------------- footer */
.footer { padding: 80px 0 26px; background: #242331; color: #f7f5f2; }
.footer-grid { display: grid; grid-template-columns: 1.25fr repeat(3, .65fr) 1.25fr; gap: 45px; }
.footer .brand-mark { width: 30px; height: 30px; }
.footer-brand p { margin-top: 26px; color: #aaa8b1; font-family: Georgia, serif; font-size: 19px; line-height: 1.4; }
.footer-column { display: flex; flex-direction: column; gap: 15px; } .footer-column strong { margin-bottom: 8px; font-size: 13px; } .footer-column a { color: #aaa8b1; font-size: 13px; } .footer-column a:hover { color: white; }
.footer-newsletter > strong { display: block; margin-bottom: 8px; font-size: 13px; }
.footer-newsletter form { display: flex; margin-top: 20px; padding: 4px; border-radius: 12px; background: #33313f; } .footer-newsletter input { width: 100%; padding: 10px 12px; border: 0; outline: 0; color: white; background: transparent; font-size: 13px; } .footer-newsletter input::placeholder { color: #85828f; } .footer-newsletter button { width: 36px; border: 0; border-radius: 9px; background: var(--lavender); cursor: pointer; } .footer-newsletter small { display: block; margin-top: 10px; color: #7f7c88; font-size: 11px; }
.footer-bottom { display: flex; justify-content: flex-start; margin-top: 68px; padding-top: 25px; border-top: 1px solid rgba(255, 255, 255, .08); color: #777480; font-size: 12px; }

/* ---------------------------------------------------------------- reveal */
.reveal-anim .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal-anim .reveal.visible, .reveal-anim .reveal.in { opacity: 1; transform: none; }
html.reveals-forced .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  :root { --shell: min(920px, calc(100vw - 40px)); }
  .nav-menu { gap: 30px; } .nav-links, .nav-actions { gap: 20px; }
  .intro-grid { gap: 40px; } .bento-large { grid-template-columns: .75fr 1.25fr; }
  .footer-grid { grid-template-columns: 1.1fr repeat(3, .65fr); } .footer-newsletter { grid-column: 1 / -1; max-width: 420px; margin-top: 25px; }
}

@media (max-width: 820px) {
  :root { --radius-lg: 25px; }
  .site-header { padding: 17px 0; }
  .nav-toggle { display: block; position: relative; z-index: 30; }
  .nav-toggle[aria-expanded="true"] > span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] > span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
  .nav-menu {
    position: absolute; z-index: 25; width: calc(100% - 32px); top: 10px; left: 16px;
    display: none; flex-direction: column; align-items: stretch; gap: 24px;
    padding: 76px 24px 26px; border-radius: 22px;
    background: rgba(255, 255, 255, .97); box-shadow: var(--shadow);
  }
  .nav-menu.open { display: flex; }
  .nav-links, .nav-actions { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a, .text-link { padding: 12px 0; font-size: 16px; }
  .nav-actions .button, .nav-actions .btn { width: 100%; }

  .section { padding-block: 60px; }
  .intro-grid { grid-template-columns: 1fr; gap: 25px; } .section-kicker { margin-bottom: 28px; }
  .bento-grid { grid-template-columns: 1fr; margin-top: 44px; }
  .bento-large { grid-column: auto; min-height: 0; grid-template-columns: 1fr; align-items: start; }
  .bento-copy { padding: 32px; }
  .bento-small { min-height: 0; } .bento-small .bento-copy { padding-top: 0; } .line-illustration { height: 200px; }

  .cta-section { padding-top: 0; } .cta-card { padding: 70px 22px; } .cta-doodle { width: 120px; opacity: .38; } .left-doodle { left: -25px; } .right-doodle { right: -20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand, .footer-newsletter { grid-column: 1 / -1; } .footer-newsletter { margin-top: 18px; } .footer-bottom { flex-direction: column; gap: 20px; } .footer-bottom div { flex-wrap: wrap; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
