/* For Her — web
   Tokens ported 1:1 from the app's src/theme/tokens.js, which is itself a
   1:1 port of the "For Her" Claude Design canvas. Keep them in sync. */

:root {
  --brand: #D14338;
  --brand-dark: #B93227;
  --brand-deep: #A93129;
  --brand-tint: #FDECEA;
  --brand-pale: #E9C9C5;

  --ink: #16161A;
  --body: #3C3C43;
  --muted: #4A4A52;
  --sub: #6B6B72;
  --dim: #8A8A92;
  --faint: #A5A5AD;

  --white: #FFFFFF;
  --surface: #F5F5F7;
  --surface-alt: #F1F1F4;
  --border: #EAEAEE;
  --line: #DDDDE1;
  --canvas: #EEEEF0;

  --good: #2E9E6B;

  --r-card: 13px;
  --r-tile: 16px;
  --r-lg: 18px;
  --r-xl: 22px;
  --r-pill: 999px;

  --gutter: 24px;
  --shell: 1080px;

  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI',
          Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.3px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand img { width: 30px; height: 30px; border-radius: 7px; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a { color: var(--sub); }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a[aria-current='page'] { color: var(--ink); font-weight: 600; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 26px;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: var(--white);
  font-family: var(--font);
  font-weight: 700;
  font-size: 16px;
  border: 0;
  cursor: pointer;
  transition: background 140ms ease, transform 140ms ease;
}
.btn:hover { background: var(--brand-dark); color: var(--white); text-decoration: none; }
.btn:active { transform: scale(0.985); }

.btn-ghost {
  background: transparent;
  color: var(--sub);
  font-weight: 600;
  padding: 15px 20px;
}
.btn-ghost:hover { background: var(--surface); color: var(--ink); }

.btn-sm { padding: 10px 20px; font-size: 15px; }

/* ---------- hero ---------- */

.hero {
  padding: 76px 0 84px;
  background:
    radial-gradient(1100px 460px at 50% -8%, var(--brand-tint), transparent 66%),
    var(--white);
  text-align: center;
}

.mascot { width: 168px; height: 174px; display: block; margin: 0 auto 22px; }

h1 {
  margin: 0;
  font-size: clamp(38px, 6.2vw, 60px);
  line-height: 1.06;
  letter-spacing: -1.6px;
  font-weight: 700;
}

.lede {
  margin: 20px auto 0;
  max-width: 34ch;
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.6;
  color: var(--sub);
}

.cta-row {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.cta-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--dim);
}

/* ---------- sections ---------- */

section { padding: 78px 0; }
section.tinted { background: var(--surface); }

.kicker {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.2px;
  margin: 0 0 12px;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.16;
  letter-spacing: -1px;
  font-weight: 700;
}

h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.3px;
  font-weight: 700;
}

.section-sub {
  margin: 14px 0 0;
  max-width: 52ch;
  font-size: 17px;
  line-height: 1.66;
  color: var(--sub);
}

.grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  gap: 14px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px 24px;
}
section.tinted .card { border-color: var(--line); }

.card p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.62;
  color: var(--sub);
}

.card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--r-pill);
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* ---------- chips ---------- */

.chips {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 12px 20px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}
.chip.on {
  border-color: var(--brand);
  background: var(--brand-tint);
  color: var(--brand-deep);
}

/* ---------- perks ---------- */

.perks { margin: 34px 0 0; padding: 0; list-style: none; }
.perks li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 13px 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--body);
}
.tick {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: var(--r-pill);
  background: var(--brand-tint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tick svg { width: 12px; height: 12px; display: block; }

/* ---------- pricing ---------- */

.plans {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  max-width: 660px;
}

/* A lone plan should not stretch across the full two-column width. Reverts on
   its own if a second plan is added back. */
.plans:has(> .plan:only-child) {
  max-width: 320px;
}

.plan {
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--white);
  padding: 24px;
}
.plan.best { border-color: var(--brand); background: var(--brand-tint); }

.plan-head { display: flex; align-items: center; gap: 9px; }

.badge {
  background: var(--white);
  color: var(--brand);
  border-radius: 7px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.plan:not(.best) .badge { background: var(--brand-tint); }

.price {
  margin: 14px 0 0;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1px;
}
.plan-note { margin: 6px 0 0; font-size: 14px; color: var(--dim); }

/* ---------- prose (privacy / support) ---------- */

.page-head {
  padding: 62px 0 30px;
  border-bottom: 1px solid var(--border);
}
.page-head h1 { font-size: clamp(32px, 5vw, 46px); letter-spacing: -1.2px; }
.updated { margin: 14px 0 0; font-size: 14px; color: var(--dim); }

.prose { padding: 44px 0 90px; max-width: 720px; }
.prose h2 {
  font-size: 22px;
  letter-spacing: -0.5px;
  margin: 46px 0 0;
  padding-top: 4px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17px; margin: 30px 0 0; }
.prose p, .prose li {
  font-size: 16px;
  line-height: 1.72;
  color: var(--body);
}
.prose p { margin: 14px 0 0; }
.prose ul { margin: 14px 0 0; padding-left: 22px; }
.prose li { margin: 9px 0; }
.prose strong { font-weight: 700; color: var(--ink); }

.callout {
  margin: 30px 0 0;
  padding: 22px 24px;
  border-radius: var(--r-lg);
  background: var(--brand-tint);
  border: 1px solid var(--brand-pale);
}
.callout p { margin: 0; color: var(--brand-deep); font-weight: 500; }

.faq {
  margin-top: 14px;
  border-top: 1px solid var(--border);
}
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 34px 20px 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 27px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--faint);
  border-bottom: 2px solid var(--faint);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { margin: 0 0 20px; color: var(--sub); max-width: 62ch; }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 44px 0;
}
.foot-in {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
  align-items: center;
  justify-content: space-between;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 26px; font-size: 15px; font-weight: 500; }
.foot-links a { color: var(--sub); }
.foot-links a:hover { color: var(--ink); text-decoration: none; }
.copyright { font-size: 14px; color: var(--dim); }

/* ---------- mascot motion (ported from Mascot.jsx) ---------- */

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-4px) rotate(-1.5deg); }
}
@keyframes sway {
  0%, 100% { transform: rotate(-5deg); }
  50%      { transform: rotate(6deg); }
}
@keyframes blink {
  0%, 90%   { transform: scaleY(1); }
  94%       { transform: scaleY(0.08); }
  97%, 100% { transform: scaleY(1); }
}

.m-body {
  transform-origin: 56px 90px;
  animation: bob 3.4s ease-in-out infinite;
}
.m-stem {
  transform-origin: 84px 98px;
  animation: sway 4.2s ease-in-out infinite;
}
.m-eye {
  transform-origin: center 55px;
  animation: blink 4.6s linear infinite;
  animation-delay: 1.4s;
}

@media (prefers-reduced-motion: reduce) {
  .m-body, .m-stem, .m-eye { animation: none; }
}

@media (max-width: 620px) {
  section { padding: 58px 0; }
  .hero { padding: 52px 0 62px; }
  .nav-links { gap: 18px; font-size: 14px; }
  .mascot { width: 136px; height: 141px; }
}
