/* =========================================================================
   Anuva Wellness — shared styles for the standalone pages
   (about / contact / privacy / terms).

   Values are the PWA's design tokens verbatim (apps/pwa/tailwind.config.ts),
   so these pages, the marketing page and the app all render the same colours.
   The marketing page itself is `Anuva Wellness Landing.dc.html`; it carries its
   own copy of this design in inline styles because the design-canvas format
   requires them. Change a colour here, change it there too.
   ========================================================================= */

:root{
  /* surfaces */
  --surface:#F7F0E8;          /* canvas            (surface)              */
  --surface-low:#FBF6F0;      /* raised card       (surface-container-low)*/
  --surface-container:#F3E9DD;/* tinted card       (surface-container)    */
  /* ink */
  --ink:#3E2542;              /* headings, primary text (on-surface)      */
  --ink-body:#5C4A66;         /* paragraphs        (on-surface-variant)   */
  --mauve:#6E5A78;            /* muted / meta      (outline)              */
  /* brand */
  --plum:#5E3566;             /* brand authority   (primary)              */
  --plum-dark:#472852;        /* link hover                               */
  --lavender:#E7DCEC;         /* calm surface      (primary-container)    */
  --lavender-dim:#CDB9DE;     /* ghost numerals    (inverse-primary)      */
  --rose:#C97E92;             /* the one CTA       (secondary)            */
  --blush:#F4DCE0;            /* supportive tint   (secondary-container)  */
  --gold:#B8923C;             /* eyebrows, ornament(tertiary)             */
  --gold-soft:#F0E4C8;        /* eyebrow on plum   (tertiary-container)   */
  --line:rgba(94,53,102,.15); /* border-default                           */
  /* type */
  --serif:'Playfair Display',Georgia,serif;
  --sans:'Mulish',-apple-system,system-ui,sans-serif;
  --shadow:0 8px 24px rgba(94,53,102,.08);
  --shadow-lift:0 18px 36px rgba(94,53,102,.16);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--surface);
  color:var(--ink);
  font-family:var(--sans);
  font-synthesis:none;
  text-rendering:geometricPrecision;
  text-wrap:pretty;
  overflow-x:clip;
}
img{max-width:100%}
a{color:var(--plum);text-decoration:none}
a:hover{color:var(--plum-dark)}
::selection{background:var(--lavender)}
:where(a,button,[role="button"],input,textarea,summary):focus-visible{
  outline:3px solid var(--plum);outline-offset:3px;border-radius:8px
}

/* Headings keep the marketing page's smoothing so the two render alike; body
   text stays on the platform default, which is what the PWA uses. */
h1,h2,h3,.wordmark{-webkit-font-smoothing:antialiased}
h1,h2,h3{font-family:var(--serif);color:var(--ink);margin:0}

/* Global warmth overlay — copied from apps/pwa/src/index.css `body::after`.
   The PWA multiplies a warm amber wash over everything, so its cream canvas
   renders #F7E8DA rather than the raw #F7F0E8 token. Without this these pages
   read visibly cooler than the app and the marketing page. */
body::after{
  content:'';position:fixed;inset:0;background:#FF9A3D;
  mix-blend-mode:multiply;opacity:.08;pointer-events:none;z-index:9999
}

.wrap{max-width:1080px;margin:0 auto;padding:0 20px}
.eyebrow{
  font-size:13px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;
  color:var(--gold);margin:0 0 14px
}

/* ── buttons ───────────────────────────────────────────────────────────── */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:44px;padding:14px 28px;border-radius:9999px;border:0;
  font-family:var(--sans);font-size:15px;font-weight:700;cursor:pointer;
  transition:transform .2s,box-shadow .2s,background .2s
}
.btn-cta{background:var(--rose);color:#fff;box-shadow:0 12px 28px rgba(94,53,102,.28)}
.btn-cta:hover{transform:translateY(-3px);box-shadow:0 18px 36px rgba(94,53,102,.36);color:#fff}
.btn-plum{background:var(--plum);color:var(--surface-low)}
.btn-plum:hover{transform:translateY(-3px);box-shadow:0 14px 28px rgba(94,53,102,.3);color:var(--surface-low)}
.btn[disabled]{opacity:.4;cursor:not-allowed;transform:none;box-shadow:none}

/* ── site header ───────────────────────────────────────────────────────── */
/* The header sits at the top of the page and scrolls away with it (not
   pinned). A pinned header on iPhone Safari left a strip under the status bar
   where the page showed through while scrolling. */
.site-header{
  position:relative;z-index:100;
  background:#F7F0E8;
  border-bottom:1px solid var(--line)
}
.site-header .bar{
  max-width:1240px;margin:0 auto;padding:0 20px;height:72px;
  display:flex;align-items:center;justify-content:space-between;gap:16px
}
.brand{flex:none;display:flex;align-items:center;gap:10px}
.brand img{width:48px;height:auto;display:block}
.wordmark{
  font-family:var(--serif);font-weight:700;font-size:22px;letter-spacing:.5px;
  line-height:1;color:var(--ink);white-space:nowrap
}
.wordmark span{font-weight:500;color:var(--rose)}
/* tagline under the wordmark in the header, sized so it is the same width
   as "ANUVA WELLNESS" above it */
.brand-text{display:flex;flex-direction:column;gap:4px}
.tagline{
  font-family:var(--serif);font-style:italic;font-size:12.3px;line-height:1.1;
  color:var(--mauve);white-space:nowrap;letter-spacing:.01em
}
.site-nav{display:flex;align-items:center;gap:22px;font-size:14.5px;font-weight:500}
.site-nav a{color:var(--ink-body)}
.site-nav a:hover{color:var(--plum)}
.header-cta{
  flex:none;background:var(--rose);color:#fff;padding:11px 20px;border-radius:9999px;
  font-weight:600;font-size:13.5px;white-space:nowrap;
  box-shadow:0 6px 16px rgba(94,53,102,.25);transition:transform .2s,box-shadow .2s
}
.header-cta:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(94,53,102,.32);color:#fff}

/* JS-free mobile menu: a <details> disclosure, so these pages need no script. */
.menu{display:none;flex:none;position:relative;margin-left:auto}
.menu summary{
  list-style:none;cursor:pointer;width:44px;height:44px;
  display:flex;align-items:center;justify-content:center;
  font-size:24px;color:var(--plum)
}
.menu summary::-webkit-details-marker{display:none}
.menu[open] summary::after{
  content:'';position:fixed;inset:0;z-index:-1  /* click-away closes the menu */
}
.menu-panel{
  position:absolute;right:0;top:calc(100% + 8px);min-width:200px;
  background:var(--surface-low);border:1px solid var(--line);border-radius:16px;
  box-shadow:var(--shadow-lift);padding:8px;display:flex;flex-direction:column
}
.menu-panel a{padding:12px 14px;border-radius:10px;font-size:15px;font-weight:500;color:var(--ink-body)}
.menu-panel a:hover{background:var(--lavender);color:var(--plum)}

/* ── page masthead ─────────────────────────────────────────────────────── */
.masthead{padding:72px 0 56px;text-align:center;background:linear-gradient(180deg,var(--blush),var(--surface))}
.masthead h1{font-size:clamp(32px,5vw,50px);font-weight:600;line-height:1.12;margin:0 0 16px}
.masthead p{font-size:17px;line-height:1.6;color:var(--ink-body);max-width:620px;margin:0 auto}
.masthead .updated{
  margin-top:22px;font-size:13px;color:var(--mauve);font-weight:600;
  letter-spacing:.06em;text-transform:uppercase
}

/* ── prose (privacy / terms) ───────────────────────────────────────────── */
.prose{max-width:760px;margin:0 auto;padding:56px 20px 88px}
.prose h2{
  font-size:clamp(22px,3vw,28px);font-weight:600;margin:44px 0 14px;
  padding-top:22px;border-top:1px solid var(--line)
}
.prose h2:first-of-type{margin-top:0;padding-top:0;border-top:0}
.prose h3{font-family:var(--sans);font-size:16px;font-weight:700;margin:26px 0 8px;color:var(--ink)}
.prose p,.prose li{font-size:15.5px;line-height:1.75;color:var(--ink-body)}
.prose p{margin:0 0 16px}
.prose ul{margin:0 0 16px;padding-left:22px}
.prose li{margin-bottom:9px}
.prose li::marker{color:var(--gold)}
.prose strong{color:var(--ink);font-weight:700}
.prose .toc{
  background:var(--surface-container);border:1px solid var(--line);border-radius:18px;
  padding:24px 26px;margin:0 0 44px
}
.prose .toc p{font-family:var(--sans);font-weight:700;color:var(--ink);margin:0 0 12px;font-size:14px;
  letter-spacing:.1em;text-transform:uppercase}
.prose .toc ol{margin:0;padding-left:20px;columns:2;column-gap:28px}
.prose .toc li{font-size:14.5px;margin-bottom:7px;break-inside:avoid}
.callout{
  background:var(--gold-soft);border:1px solid rgba(184,146,60,.35);border-radius:16px;
  padding:20px 22px;margin:0 0 24px
}
.callout p{margin:0;color:#5A4716}

/* ── generic cards / grid ──────────────────────────────────────────────── */
.grid{display:grid;gap:24px}
.g3{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.g4{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}
.card{
  background:var(--surface-low);border:1px solid var(--line);border-radius:22px;
  padding:28px 26px;box-shadow:var(--shadow);transition:transform .25s,box-shadow .25s
}
.card:hover{transform:translateY(-6px);box-shadow:var(--shadow-lift)}
.card h3{font-family:var(--sans);font-size:18px;font-weight:700;margin:0 0 8px}
.card p{font-size:14.5px;line-height:1.65;color:var(--ink-body);margin:0}
.icon-tile{
  width:50px;height:50px;border-radius:14px;background:var(--plum);
  display:flex;align-items:center;justify-content:center;margin-bottom:18px
}
.section{padding:88px 0}
.section-head{text-align:center;max-width:640px;margin:0 auto 56px}
.section-head h2{font-size:clamp(28px,4vw,42px);font-weight:600;margin:0 0 16px}
.section-head p{font-size:17px;line-height:1.6;color:var(--ink-body);margin:0}

/* ── forms ─────────────────────────────────────────────────────────────── */
.field{display:flex;flex-direction:column;gap:7px;margin-bottom:18px}
.field label{font-size:14px;font-weight:600;color:var(--mauve)}
.field input,.field textarea,.field select{
  font-family:var(--sans);font-size:16px;color:var(--ink);
  background:var(--surface-low);border:1.5px solid var(--mauve);border-radius:12px;
  padding:12px 16px;width:100%;transition:border-color .2s,box-shadow .2s
}
.field textarea{resize:vertical;min-height:132px;line-height:1.6}
.field input:hover,.field textarea:hover,.field select:hover{border-color:var(--plum)}
.field input:focus,.field textarea:focus,.field select:focus{
  outline:none;border-color:var(--plum);box-shadow:0 0 0 4px rgba(94,53,102,.12)
}
.field .help{font-size:12px;color:var(--mauve)}
.form-note{font-size:14.5px;line-height:1.6;margin:16px 0 0;min-height:22px;color:var(--plum);font-weight:600}
.form-note.err{color:#C0405A}
.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
}

/* ── rich footer ───────────────────────────────────────────────────────── */
.site-footer{background:#3E2542;color:rgba(247,240,232,.68);padding:64px 0 0}
.site-footer .cols{
  max-width:1180px;margin:0 auto;padding:0 20px 48px;
  display:grid;gap:40px;grid-template-columns:2fr 1fr 1fr
}
.site-footer .about img{width:52px;height:auto;display:block;margin-bottom:12px}
.site-footer .about .wordmark{color:var(--surface);font-size:18px;letter-spacing:.5px}
.site-footer .about .wordmark span{color:var(--rose)}
.site-footer .about p{font-size:13.5px;line-height:1.65;margin:10px 0 20px;max-width:300px}
.site-footer h2{
  font-family:var(--sans);font-size:12px;font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;color:var(--gold-soft);margin:0 0 16px
}
.site-footer ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:11px}
.site-footer ul a{font-size:14px;color:rgba(247,240,232,.68);display:inline-flex;align-items:center;gap:6px}
.site-footer ul a:hover{color:var(--blush)}
.ext{font-size:11px;opacity:.75}
.socials{display:flex;flex-wrap:wrap;gap:12px}
.socials a{
  width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:rgba(247,240,232,.08);border:1px solid rgba(247,240,232,.22);color:rgba(247,240,232,.8);
  transition:transform .2s,background .2s,color .2s,border-color .2s
}
.socials a:hover{
  transform:translateY(-3px);background:rgba(201,126,146,.3);
  border-color:rgba(244,220,224,.55);color:var(--blush)
}
.site-footer .base{
  border-top:1px solid rgba(247,240,232,.14);
  max-width:1180px;margin:0 auto;padding:22px 20px 28px;
  display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;
  font-size:12.5px
}
.site-footer .base a{color:rgba(247,240,232,.68)}
.site-footer .base a:hover{color:var(--blush)}

/* ── responsive ────────────────────────────────────────────────────────── */
@media (max-width:900px){
  .site-nav{display:none}
  .menu{display:block}
  /* keep the button beside the menu on the right, not floating mid-bar */
  .header-cta{margin-left:auto}
  .header-cta + .menu{margin-left:0}
  .section{padding:56px 0}
  .site-footer .cols{grid-template-columns:1fr 1fr;gap:36px}
  .site-footer .about{grid-column:1/-1}
}
@media (max-width:560px){
  .masthead{padding:52px 0 40px}
  .prose{padding:40px 20px 64px}
  .prose .toc ol{columns:1}
  .site-footer .cols{grid-template-columns:1fr;gap:32px}
  .site-footer .base{justify-content:center;text-align:center}
}
@media (max-width:520px){
  /* Logo + button + menu need ~490px; on a phone the button would push the
     menu past the screen edge, and the page has its own CTA lower down. */
  .header-cta{display:none}
}
@media (max-width:400px){
  /* 6 chips need 324px of row; the footer interior is 280px at 320px wide. */
  .socials{max-width:180px}
  .wordmark{font-size:18px}
  .tagline{font-size:10.15px}
  .brand img{width:38px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}
}

/* viewport-fit=cover also lets the page run under the notch in landscape;
   keep the header and content clear of it (no effect where there is none). */
.site-header .bar,.wrap,.wrap-wide{
  padding-left:max(20px,env(safe-area-inset-left,0px));
  padding-right:max(20px,env(safe-area-inset-right,0px))
}

