/* Sup AI — website design system
   Mirrors Sup AI/DesignSystem.swift: warm-cream canvas, frosted-glass cards,
   near-black "hero" surfaces, monochrome charcoal accent, SF system font. */

:root {
  /* Canvas / surfaces */
  --warm-cream:    #FAF8F5;
  --canvas-top:    #F6F3EE;
  --canvas-bottom: #EFEBE3;
  --pure-white:    #FFFFFF;
  --soft-grey:     #EFEFEC;

  /* Hero (near-black) */
  --ink:      #18181C;
  --ink-soft: #262630;
  --navy:     #0A1628;

  /* Accent (monochrome) */
  --accent:        #1B1B1E;  /* near-black on light surfaces */
  --accent-light:  #EDEAE3;  /* warm off-white on dark surfaces */

  /* Text */
  --body-text:   #4A5568;
  --caption:     #9CA3AF;

  /* Status */
  --success: #1B7A3E;

  /* Lines */
  --hairline:      rgba(0,0,0,0.06);
  --hairline-dark: rgba(255,255,255,0.10);

  /* Radii */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body-text);
  background:
    linear-gradient(180deg, var(--canvas-top) 0%, var(--canvas-bottom) 100%)
    fixed;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* faint texture: soft radial glow top-right like the app hero */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(60% 45% at 85% -5%, rgba(255,255,255,0.55), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.wrap { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p  { margin: 0 0 1rem; }
a  { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--caption);
  margin-bottom: 14px;
}

/* ---------- Buttons (pill) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 28px;
  border-radius: var(--r-pill);
  font-size: .98rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 10px 24px rgba(24,24,28,.22); }
.btn-primary:hover { box-shadow: 0 14px 30px rgba(24,24,28,.30); }
.btn-ghost { background: rgba(255,255,255,.6); color: var(--navy); border-color: var(--hairline); }
.btn-ghost:hover { background: #fff; }
.btn-sm { height: 42px; padding: 0 18px; font-size: .9rem; }

/* ---------- Frosted glass card ---------- */
.card {
  position: relative;
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: 0 6px 14px rgba(0,0,0,.05);
  padding: 28px;
}
.card::after { /* bright top-left glass rim */
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,.7), rgba(0,0,0,.04));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

/* Near-black hero card */
.hero-card {
  background: linear-gradient(135deg, var(--ink), var(--ink-soft));
  border: 1px solid var(--hairline-dark);
  border-radius: var(--r-lg);
  box-shadow: 0 18px 40px rgba(24,24,28,.28);
  color: var(--accent-light);
}
.hero-card h1, .hero-card h2, .hero-card h3 { color: #fff; }

/* ---------- Header / nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(246,243,238,.72);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); font-size: 1.12rem; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .95rem; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--body-text); font-weight: 550; font-size: .95rem; }
.nav-links a:hover { color: var(--navy); text-decoration: none; }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; }
@media (max-width: 720px) { .nav-links a:not(.btn) { display: none; } }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.center { text-align: center; }
.lead { font-size: 1.14rem; color: var(--body-text); max-width: 620px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Hero */
.hero { padding: 72px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero .subnote { margin-top: 16px; font-size: .86rem; color: var(--caption); }

/* App preview mock (built in CSS to echo the app) */
.mock { padding: 22px; }
.mock .score-ring {
  width: 132px; height: 132px; border-radius: 50%;
  background: conic-gradient(var(--accent-light) 0 78%, rgba(255,255,255,.14) 78% 100%);
  display: grid; place-items: center; margin: 4px auto 18px;
}
.mock .score-ring .inner {
  width: 104px; height: 104px; border-radius: 50%;
  background: var(--ink); display: grid; place-items: center; text-align: center;
  padding: 0 12px; box-sizing: border-box;
}
.mock .score-ring .inner b { color: #fff; font-size: 2rem; font-weight: 700; display: block; line-height: 1; }
.mock .score-ring .inner span { color: var(--caption); font-size: .6rem; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.mock .row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: rgba(255,255,255,.06); border: 1px solid var(--hairline-dark); margin-top: 10px; }
.mock .row .dot { width: 34px; height: 34px; border-radius: 9px; background: rgba(237,234,227,.14); display: grid; place-items: center; flex: none; }
.mock .row .t { color: #fff; font-weight: 600; font-size: .92rem; }
.mock .row .s { color: var(--caption); font-size: .78rem; }
.mock .insight { margin-top: 16px; padding: 14px; border-radius: var(--r-md); background: rgba(237,234,227,.08); border: 1px solid var(--hairline-dark); font-size: .86rem; color: var(--accent-light); }
.mock .insight .tag { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--caption); display: block; margin-bottom: 6px; }

/* Feature grid */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); display: grid; place-items: center; margin-bottom: 16px; }
.feature h3 { margin-bottom: 6px; }
.feature p { margin: 0; font-size: .95rem; }

/* Steps */
.steps { counter-reset: step; }
.step .num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; margin-bottom: 14px; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 780px; margin: 0 auto; }
@media (max-width: 640px) { .price-grid { grid-template-columns: 1fr; } }
.plan .price { font-size: 2.4rem; font-weight: 700; color: var(--navy); letter-spacing: -.02em; }
.plan .price small { font-size: .95rem; font-weight: 500; color: var(--caption); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; }
.plan li { padding: 8px 0 8px 28px; position: relative; font-size: .95rem; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.plan.featured { color: var(--accent-light); padding: 28px; }
.plan.featured .price { color: #fff; }
.plan.featured li { color: var(--accent-light); }
.badge { display: inline-block; font-size: .72rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--r-pill); background: rgba(237,234,227,.16); color: var(--accent-light); margin-bottom: 12px; }

/* Safety strip */
.safety { background: rgba(255,255,255,.5); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 26px 28px; font-size: .92rem; }
.safety strong { color: var(--navy); }

/* ---------- Legal / article pages ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 56px 0 40px; }
.article .card { padding: 40px; }
.article h1 { margin-bottom: 6px; }
.article .updated { color: var(--caption); font-size: .9rem; margin-bottom: 28px; }
.article h2 { font-size: 1.35rem; margin-top: 36px; }
.article h3 { font-size: 1.05rem; margin-top: 24px; color: var(--navy); }
.article ul { padding-left: 20px; }
.article li { margin-bottom: 6px; }
.article .contact-block { margin-top: 32px; padding: 20px; border-radius: var(--r-md); background: rgba(255,255,255,.55); border: 1px solid var(--hairline); }
.article .callout { margin: 18px 0; padding: 14px 18px; border-radius: var(--r-md); background: var(--mutedNavy, #E8EBF0); border: 1px solid var(--hairline); border-left: 3px solid var(--ink); }
.article .callout p { color: var(--navy); }
mark.fill { background: #FFF3C4; color: #7A5A00; padding: 1px 6px; border-radius: 6px; font-weight: 600; font-style: normal; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--hairline); padding: 4px 0; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--caption); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; margin: 0; }

/* ---------- Footer ---------- */
footer.site { padding: 56px 0 40px; border-top: 1px solid var(--hairline); margin-top: 40px; }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-links a { color: var(--body-text); font-size: .92rem; }
.foot-legal { margin-top: 28px; font-size: .82rem; color: var(--caption); max-width: 640px; }
.svg-ico { width: 22px; height: 22px; stroke: var(--accent-light); fill: none; stroke-width: 1.8; }
.svg-ico-dark { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.8; }

/* ---------- Utilities ----------
   These replace the inline style="" attributes that used to live in the HTML,
   so the Content-Security-Policy can drop 'unsafe-inline' from style-src.
   Kept at the end of the file so single-class utilities win on equal specificity. */
.mb-8  { margin-bottom: 8px; }
.mb-14 { margin: 0 0 14px; }
.mb-40 { margin-bottom: 40px; }
.mb-44 { margin-bottom: 44px; }
.my-32 { margin: 32px 0; }
.mt-sm { margin: .6rem 0 0; }
.m-0   { margin: 0; }
.pt-0  { padding-top: 0; }
.btn-block { width: 100%; }
.muted-sm { font-size: .9rem; color: var(--caption); }
.wrap.narrow { max-width: 820px; }
.card.faq { padding: 12px 28px; }

/* Small captions under the plan headings */
.plan-tagline { margin: 2px 0 0; color: var(--caption); font-size: .9rem; }
.plan-year    { margin: 6px 0 0; color: var(--caption); font-size: .9rem; }
