/* ==========================================================================
   Radish — marketing site styles
   Brand palette derived from the Radish app icon.
   ========================================================================== */

:root {
  color-scheme: light only;
  /* Surfaces */
  --cream:        #F6F1E4;   /* warm background (matches app) */
  --cream-2:      #FBF7EE;   /* lighter cream */
  --card:         #FFFFFF;
  --pink-tint:    #F9DDE5;   /* Radish theme surface */
  --pink-soft:    #FCEDF1;

  /* Ink */
  --ink:          #1B1B1F;
  --ink-soft:     #55555F;
  --ink-faint:    #8A8A94;
  --hairline:     rgba(27, 27, 31, 0.08);

  /* Brand + data hues (from Theme.swift) */
  --raspberry:    #CC3B61;
  --raspberry-dk: #AE2E50;
  --leaf:         #5AA64C;
  --leaf-dk:      #4B8F3F;
  --protein:      #EC6C86;
  --carbs:        #E2A63A;
  --fat:          #7E86D6;

  /* Layout */
  --maxw:         1120px;
  --radius:       22px;
  --radius-lg:    32px;
  --shadow-sm:    0 2px 10px rgba(27,27,31,0.06);
  --shadow-md:    0 18px 44px rgba(27,27,31,0.12);
  --shadow-lg:    0 40px 90px rgba(27,27,31,0.18);

  --font-display: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --font-body:    -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--raspberry); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--raspberry);
  margin-bottom: 14px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.02rem;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--raspberry); color: #fff; box-shadow: 0 10px 24px rgba(204,59,97,0.30); }
.btn-primary:hover { background: var(--raspberry-dk); box-shadow: 0 14px 30px rgba(204,59,97,0.38); }
.btn-ghost { background: rgba(255,255,255,0.7); color: var(--ink); border-color: var(--hairline); }
.btn-ghost:hover { background: #fff; }

/* App Store badge (placeholder pill) */
.appstore {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff;
  padding: 12px 22px 12px 20px; border-radius: 16px;
  font-family: var(--font-body);
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: var(--shadow-sm);
}
.appstore:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.appstore svg { height: 28px; width: auto; flex: none; }
.appstore span { display: flex; flex-direction: column; }
.appstore .a-top { font-size: 0.66rem; opacity: 0.82; line-height: 1.2; }
.appstore .a-big { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; line-height: 1.1; }
.appstore.is-soon { opacity: 0.96; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: rgba(246,241,228,0.82);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.28rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a.navlink { color: var(--ink-soft); font-weight: 500; font-size: 0.98rem; }
.nav-links a.navlink:hover { color: var(--ink); text-decoration: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 74px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 55% at 82% 8%, rgba(204,59,97,0.10), transparent 60%),
    radial-gradient(50% 45% at 6% 30%, rgba(90,166,76,0.10), transparent 60%),
    linear-gradient(180deg, var(--cream-2), var(--cream));
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
}
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4rem); }
.hero h1 .hl { color: var(--raspberry); }
.hero-sub { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--ink-soft); margin-top: 20px; max-width: 30ch; }
.hero-cta { display: flex; align-items: center; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.72); border: 1px solid var(--hairline);
  color: var(--ink); font-size: 0.9rem; font-weight: 500;
  padding: 8px 14px; border-radius: 999px;
}
.chip svg { width: 16px; height: 16px; color: var(--leaf); flex: none; }

/* hero phone cluster */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .device {
  transform: rotate(-3deg);
  will-change: transform;        /* raster axis-aligned, then rotate: keeps the screenshot crisp */
  backface-visibility: hidden;
}

/* ---------- device frame ---------- */
.device {
  --w: 240px;
  width: var(--w);
  aspect-ratio: 1320 / 2868;
  background: #111114;
  border-radius: 46px;
  padding: 9px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.device::after { /* subtle bezel highlight */
  content: ""; position: absolute; inset: 0; border-radius: 46px;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.10);
  pointer-events: none;
}
.device img { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; }
.device.sm { --w: 230px; }
.device.xs { --w: 180px; }
.device.lg { --w: 300px; }

/* ---------- generic section ---------- */
.section { padding: 72px 0; }
.section.tint { background: var(--cream-2); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; margin-top: 14px; }

/* feature rows (text + phone) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature + .feature { margin-top: 72px; }
.feature.rev .feature-copy { order: 2; }
.feature.rev .feature-media { order: 1; }
.feature-media { display: flex; justify-content: center; }
.feature-copy h3 { font-size: clamp(1.6rem, 2.8vw, 2.15rem); }
.feature-copy p { color: var(--ink-soft); font-size: 1.08rem; margin-top: 16px; }
.feature-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-size: 1.02rem; }
.feature-list li svg { width: 20px; height: 20px; flex: none; color: var(--raspberry); margin-top: 3px; }

/* ---------- differentiator strip ---------- */
.strip { background: var(--ink); color: #fff; }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 44px; padding-bottom: 44px; }
.strip-item { text-align: center; padding: 6px; }
.strip-item .big { font-family: var(--font-display); font-weight: 600; font-size: 1.55rem; color: #fff; }
.strip-item .big .accent { color: var(--protein); }
.strip-item .sm { color: rgba(255,255,255,0.66); font-size: 0.95rem; margin-top: 4px; }

/* ---------- privacy band ---------- */
.privacy-band { background: linear-gradient(160deg, #163a1e, #0f2a16); color: #eafaef; border-radius: var(--radius-lg); padding: 56px; position: relative; overflow: hidden; }
.privacy-band h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.privacy-band p { color: rgba(234,250,239,0.82); font-size: 1.1rem; margin-top: 16px; max-width: 60ch; }
.privacy-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
.privacy-points .pp { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; padding: 20px; }
.privacy-points .pp b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; margin-bottom: 6px; color: #fff; }
.privacy-points .pp span { color: rgba(234,250,239,0.78); font-size: 0.95rem; }
.privacy-band .lead-leaf { position: absolute; right: -30px; bottom: -40px; width: 220px; opacity: 0.12; }

/* ---------- watch + siri ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.duo .panel { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm); }
.duo .panel h3 { font-size: 1.5rem; }
.duo .panel p { color: var(--ink-soft); margin-top: 12px; }
.icon-badge { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 18px; }
.icon-badge svg { width: 28px; height: 28px; color: #fff; }
.icon-badge.rasp { background: var(--raspberry); }
.icon-badge.leaf { background: var(--leaf); }
.duo .panel { display: flex; flex-direction: column; }
.panel-shot { display: flex; justify-content: center; margin-top: auto; padding-top: 30px; }
.panel-watch { width: 210px; margin: auto auto 0; padding-top: 26px; }

/* ---------- pricing ---------- */
.price-card { max-width: 560px; margin: 0 auto; background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 46px; text-align: center; position: relative; overflow: hidden; }
.price-card .kicker { display: inline-block; background: var(--pink-tint); color: var(--raspberry-dk); font-family: var(--font-display); font-weight: 500; padding: 6px 16px; border-radius: 999px; font-size: 0.9rem; margin-bottom: 20px; }
.price-card .amount { font-family: var(--font-display); font-weight: 600; font-size: 3.4rem; line-height: 1; }
.price-card .amount .cur { color: var(--ink-soft); font-size: 1.6rem; vertical-align: super; }
.price-card .once { color: var(--raspberry); font-family: var(--font-display); font-weight: 500; margin-top: 6px; }
.price-list { list-style: none; padding: 0; margin: 28px 0 30px; display: grid; gap: 12px; text-align: left; max-width: 340px; margin-left: auto; margin-right: auto; }
.price-list li { display: flex; gap: 12px; align-items: flex-start; }
.price-list li svg { width: 20px; height: 20px; color: var(--leaf); flex: none; margin-top: 3px; }
.price-note { color: var(--ink-faint); font-size: 0.9rem; margin-top: 18px; }

/* ---------- final CTA ---------- */
.cta-final { text-align: center; }
.cta-final .device-row { display: flex; justify-content: center; gap: -40px; margin-bottom: 40px; }
.cta-final h2 { font-size: clamp(2rem, 4vw, 3rem); }
.cta-final p { color: var(--ink-soft); font-size: 1.15rem; margin: 16px auto 30px; max-width: 46ch; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: 54px 0 40px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer .brand { color: #fff; }
.footer-tag { color: rgba(255,255,255,0.55); margin-top: 12px; max-width: 34ch; font-size: 0.96rem; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font-display); font-weight: 500; color: #fff; font-size: 0.95rem; margin: 0 0 14px; letter-spacing: 0.02em; }
.footer-col a { display: block; color: rgba(255,255,255,0.66); margin-bottom: 10px; font-size: 0.95rem; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 40px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.88rem; color: rgba(255,255,255,0.5); }

/* ==========================================================================
   Legal / content pages (privacy, support)
   ========================================================================== */
.doc { padding: 56px 0 90px; }
.doc-wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.doc .updated { color: var(--ink-faint); margin-top: 10px; font-size: 0.98rem; }
.doc-body { margin-top: 34px; background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 44px; box-shadow: var(--shadow-sm); }
.doc-body h2 { font-size: 1.45rem; margin-top: 38px; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { font-size: 1.15rem; margin-top: 26px; }
.doc-body p { margin-top: 14px; color: var(--ink); }
.doc-body ul { margin-top: 14px; padding-left: 22px; }
.doc-body li { margin-bottom: 9px; }
.doc-body strong { color: var(--ink); }
.doc-body .callout { background: var(--pink-soft); border: 1px solid rgba(204,59,97,0.14); border-radius: 16px; padding: 20px 22px; margin-top: 22px; }
.doc-body .callout p { margin-top: 0; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; margin-bottom: 22px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta, .chips { justify-content: center; }
  .hero-visual { margin-top: 14px; }
  .feature, .duo, .privacy-points, .hero-grid { }
  .feature { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .feature.rev .feature-copy { order: 1; }
  .feature.rev .feature-media { order: 2; }
  .feature-list { text-align: left; max-width: 380px; margin-left: auto; margin-right: auto; }
  .duo { grid-template-columns: 1fr; }
  .privacy-points { grid-template-columns: 1fr; }
  .strip .wrap { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
  .privacy-band { padding: 38px 26px; }
  .nav-links a.navlink { display: none; }
}
@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .feature + .feature { margin-top: 64px; }
  .price-card, .doc-body { padding: 30px 22px; }
  .footer-top { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
