/* Visage Theory — marketing site.
   UI modeled on oasishealth.app: clean, calm, modern. Lato sans, soft warm-white
   background, near-black pill buttons with a soft glow, pastel accents. */

:root {
  --bg: #fefcf9;          /* soft warm white */
  --surface: #ffffff;
  --ink: #131313;         /* near-black */
  --muted: #6b6f76;       /* gray body/secondary */
  --line: #e7e3dd;        /* hairline / borders */
  --line-2: #d3d6d1;
  --peri: #b6c5e0;        /* periwinkle accent / links */
  --peri-soft: #e8eef7;
  --butter: #fde895;      /* soft yellow highlight */
  --butter-soft: #fdf6d6;
  --blush: #f0d9cf;       /* warm tie to the app brand, used sparingly */
  --positive: #2e9c66;
  --warning: #d18b29;
  --danger: #cc4b4b;
  --glow: rgba(64, 108, 184, 0.42) 0px 6px 18px -6px;
  --shadow: 0 24px 60px -28px rgba(19, 19, 19, 0.22);
  --maxw: 1120px;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display { font-family: "Lato", sans-serif; font-weight: 900; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.accent-peri { color: var(--peri); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(12px);
  background: rgba(254, 252, 249, 0.82);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-weight: 900; font-size: 21px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 9px; }
.brand .mark {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 900;
}
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 600; }
.nav-links a:hover { color: var(--ink); }

/* ---- Nav dropdown — CSS-only via <details>, no JS (CSP-safe). Click/tap to open. ---- */
.nav-dd { position: relative; }
.nav-dd > summary {
  list-style: none; cursor: pointer; user-select: none;
  color: var(--muted); font-size: 15px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 7px;
}
.nav-dd > summary::-webkit-details-marker { display: none; }
.nav-dd > summary::after {
  content: ""; width: 6px; height: 6px; margin-top: -3px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .18s ease;
}
.nav-dd[open] > summary::after { transform: rotate(-135deg); margin-top: 2px; }
.nav-dd > summary:hover { color: var(--ink); }
.nav-dd-menu {
  position: absolute; top: calc(100% + 18px); right: 0; z-index: 5;
  display: flex; flex-direction: column; gap: 2px;
  min-width: 210px; padding: 8px;
  background: rgba(255, 255, 255, 0.93);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  box-shadow: 0 24px 60px -22px rgba(70, 54, 130, 0.45), 0 2px 6px rgba(70, 54, 130, 0.08);
}
.nav-dd-menu a {
  padding: 9px 14px; border-radius: 10px; white-space: nowrap;
  font-size: 14.5px; color: var(--muted); font-weight: 600;
}
.nav-dd-menu a:hover { background: rgba(120, 100, 220, 0.1); color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 9999px; font-weight: 700; font-size: 16px;
  border: none; cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  font-family: "Lato", sans-serif;
}
.btn-primary { background: var(--ink); color: var(--bg); box-shadow: var(--glow); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); border-radius: 12px; }
.btn-secondary:hover { border-color: var(--ink); }

/* App store badges */
.badges { display: flex; gap: 12px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 12px;
  box-shadow: var(--glow);
}
.store-badge .ic { font-size: 22px; }
.store-badge small { display: block; font-size: 10px; opacity: .8; line-height: 1.1; text-transform: uppercase; letter-spacing: .04em; }
.store-badge b { font-size: 16px; line-height: 1.1; }
.store-badge:hover { transform: translateY(-2px); transition: transform .12s ease; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.pill-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  color: var(--ink); background: var(--butter); padding: 7px 14px; border-radius: 9999px; margin-bottom: 24px;
}
.hero h1 { font-size: clamp(40px, 5.6vw, 60px); line-height: 1.05; }
.hero .lede { font-size: 20px; color: var(--muted); margin: 22px 0 30px; max-width: 32ch; }
.subtle { font-size: 13.5px; color: var(--muted); margin-top: 16px; }

/* phone mock */
.phone {
  position: relative; width: 300px; height: 604px; margin: 0 auto;
  background: var(--surface); border-radius: 46px; box-shadow: var(--shadow);
  border: 11px solid #0e0e0e; overflow: hidden;
}
.phone-screen { position: absolute; inset: 0; background: var(--bg); padding: 26px 20px; display: flex; flex-direction: column; gap: 16px; }
.ring { position: relative; width: 152px; height: 152px; border-radius: 50%; margin: 14px auto 4px;
  background: conic-gradient(var(--peri) 0 74%, var(--line) 74% 100%); display: grid; place-items: center; }
.ring::after { content: ""; width: 124px; height: 124px; background: var(--bg); border-radius: 50%; position: absolute; }
.ring span { position: relative; z-index: 1; text-align: center; }
.ring .num { display: block; font-size: 46px; font-weight: 900; }
.ring .lbl { font-size: 12px; color: var(--muted); font-weight: 600; }
.chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.chip { font-size: 12px; font-weight: 700; color: var(--ink); background: var(--peri-soft); padding: 6px 12px; border-radius: 9999px; }
.chip.solid { background: var(--ink); color: var(--bg); }
.mini-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.mini-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.badge-grade { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-weight: 900; }
.dupe { display: flex; justify-content: space-between; align-items: center; background: var(--bg); border-radius: 11px; padding: 11px 13px; }
.dupe .save { color: var(--positive); font-weight: 800; }

/* ---------- Sections ---------- */
section { padding: 76px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head .pill-eyebrow { margin-bottom: 16px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; }
.section-head p { color: var(--muted); font-size: 19px; margin-top: 16px; }

/* trust strip */
.trust { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; padding: 28px 0 0; color: var(--muted); font-weight: 700; font-size: 14px; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }

/* "scan before you buy" 3-up */
.threeup { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.tile .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--peri-soft); margin-bottom: 16px; }
.tile h4 { font-size: 19px; font-weight: 800; }
.tile p { color: var(--muted); margin-top: 8px; font-size: 15.5px; }

/* alternating feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 40px 0; }
.feature:nth-child(even) .feature-text { order: 2; }
.feature-text h3 { font-size: 32px; font-weight: 900; }
.feature-text p { color: var(--muted); font-size: 17px; margin-top: 14px; }
.feature-visual {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow); padding: 28px; min-height: 250px; display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
.receipt { display: flex; gap: 12px; align-items: flex-start; }
.receipt .dot { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-size: 12px; }
.receipt b { font-size: 14px; } .receipt small { color: var(--muted); display: block; font-size: 13px; }

/* rubric */
.rubric { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.rubric .tier { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 14px; text-align: center; }
.rubric .tier .g { font-size: 36px; font-weight: 900; }
.rubric .tier small { color: var(--muted); font-size: 12.5px; display: block; margin-top: 6px; }

/* research / education cards (Oasis-style) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .15s ease, box-shadow .2s ease; }
.rcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.rcard .cover { height: 140px; display: grid; place-items: center; font-size: 40px; }
.rcard .body { padding: 20px 22px 24px; }
.rcard .tag { font-size: 12px; font-weight: 800; color: var(--peri); text-transform: uppercase; letter-spacing: .05em; }
.rcard h4 { font-size: 18px; font-weight: 800; margin-top: 8px; }
.rcard p { color: var(--muted); font-size: 14.5px; margin-top: 8px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.step .n { width: 40px; height: 40px; border-radius: 9999px; background: var(--ink); color: var(--bg); font-weight: 900; display: grid; place-items: center; margin-bottom: 16px; }
.step h4 { font-size: 20px; font-weight: 800; }
.step p { color: var(--muted); margin-top: 8px; font-size: 15.5px; }

/* faq */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin-bottom: 12px; }
.faq summary { font-weight: 800; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--peri); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin-top: 12px; font-size: 15.5px; }

/* final cta */
.band { background: linear-gradient(180deg, var(--bg), var(--peri-soft)); }
.cta-final { text-align: center; }
.cta-final h2 { font-size: clamp(34px, 5vw, 52px); line-height: 1.05; }
.cta-final p { color: var(--muted); font-size: 19px; margin: 16px auto 30px; max-width: 46ch; }
.signup { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.signup input { flex: 1; padding: 15px 18px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; font-size: 15px; font-family: inherit; }
.signup input:focus { outline: 2px solid var(--peri); border-color: var(--peri); }

/* footer */
footer { border-top: 1px solid var(--line); padding: 52px 0 64px; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer .brand { font-size: 20px; }
footer .fmuted { color: var(--muted); font-size: 14px; margin-top: 10px; max-width: 38ch; }
footer .links { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
footer .links a { color: var(--muted); font-size: 14px; font-weight: 600; }
footer .links a:hover { color: var(--ink); }
.disclaimer { color: var(--muted); font-size: 12px; margin-top: 28px; max-width: 72ch; }

/* legal pages */
.legal { max-width: 780px; margin: 0 auto; padding: 56px 0; }
.legal h1 { font-size: 42px; font-weight: 900; }
.legal h2 { font-size: 22px; margin: 32px 0 10px; font-weight: 800; }
.legal p, .legal li { color: var(--muted); margin-top: 10px; }
.legal ul { padding-left: 22px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* responsive */
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 44px 0; }
  .feature { grid-template-columns: 1fr; gap: 28px; padding: 26px 0; }
  .feature:nth-child(even) .feature-text { order: 0; }
  .threeup, .cards, .steps { grid-template-columns: 1fr; }
  .rubric { grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .rubric .tier { padding: 12px 6px; } .rubric .tier .g { font-size: 24px; }
  .trust { gap: 22px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-dd { display: none; }
}
