/* Public landing page at /. Kept apart from style.css, which styles the account site. */

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
}

:root {
  --cream: #FBF5EC;
  --ink: #1B2138;
  --body: #464C66;
  --muted: #5C6178;
  --coral: #E0673A;
  --coral-deep: #C9552A;
  --coral-text: #A8481F;
  --blue: #2448B8;
  --green: #2E7D5B;
  --line: #EFE6D8;
  --serif: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; text-wrap: balance; }
h3 { font-size: 20px; font-weight: 600; line-height: 1.4; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: #fff; padding: 8px 16px; border-radius: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 14px 32px; border-radius: 999px;
  font-weight: 500; text-decoration: none; line-height: 1.2;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(27, 33, 56, 0.45); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; }
.btn-ghost { color: var(--ink); border: 1px solid #D9CBB6; }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); }
.btn-coral { background: var(--coral); color: var(--ink); font-weight: 600; padding: 14px 40px; }
.btn-coral:hover { color: var(--ink); }
.btn-small { min-height: 44px; padding: 8px 22px; font-size: 16px; border-color: var(--ink); }

/* Header */
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; padding-bottom: 28px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--ink); text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; background: var(--coral); display: inline-flex; align-items: center; justify-content: center; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; padding-top: 48px; padding-bottom: 112px; }
.hero-text { flex: 1 1 500px; min-width: 0; }
.eyebrow { display: inline-block; margin-bottom: 28px; padding: 12px 24px; border-radius: 999px; background: #FBE6D8; color: #8A3412; font-weight: 600; font-size: 20px; line-height: 1.3; }
.hero h1 { margin-bottom: 28px; font-size: clamp(56px, 8vw, 104px); line-height: 0.98; letter-spacing: -0.015em; }
.hero h1 em { color: var(--coral-deep); }
.lead { margin-bottom: 40px; max-width: 34ch; font-size: 21px; color: var(--body); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.call { flex: 1 1 420px; min-width: 0; position: relative; display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 32px 0; }
.blob { position: absolute; border-radius: 50%; }
.blob-sun { right: -20px; top: -20px; width: 300px; height: 300px; background: #F9DCC4; }
.blob-ring { left: -40px; bottom: -56px; width: 160px; height: 160px; border: 1px solid #C9D6F5; }
.bubble { position: relative; padding: 22px 24px; }
.bubble p { font-family: var(--serif); font-size: 27px; line-height: 1.25; }
.who { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }
.bubble-you { margin-right: 64px; background: #fff; border-radius: 22px 22px 22px 6px; box-shadow: 0 1px 2px rgba(27, 33, 56, 0.06), 0 18px 40px -24px rgba(27, 33, 56, 0.25); }
.bubble-you .who { color: #6A6F86; }
.bubble-her { margin-left: 64px; background: var(--blue); color: #fff; border-radius: 22px 22px 6px 22px; box-shadow: 0 18px 40px -24px rgba(36, 72, 184, 0.6); }
.bubble-her .who { color: #CFDBFF; }
.chip { position: relative; align-self: flex-start; display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; background: #fff; font-size: 15px; font-weight: 500; box-shadow: 0 1px 2px rgba(27, 33, 56, 0.06), 0 12px 28px -20px rgba(27, 33, 56, 0.3); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* Sections */
.band { background: #fff; }
.band + .band { border-top: 1px solid var(--line); }
.section { padding-top: 112px; padding-bottom: 112px; }
.section h2 { font-size: clamp(40px, 5vw, 64px); line-height: 1; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 56px; }
.section-head p { max-width: 34ch; color: var(--body); }
.sub { margin: 12px 0 56px; font-size: 20px; color: var(--body); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.step { padding: 36px 32px; border-radius: 20px; transition: transform 0.3s var(--ease), box-shadow 0.3s ease; }
.step:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -28px rgba(27, 33, 56, 0.35); }
.step-num { font-family: var(--serif); font-style: italic; font-size: 56px; line-height: 1; }
.step h3 { margin: 24px 0 8px; }
.step p { color: var(--body); }
.step-1 { background: var(--cream); } .step-1 .step-num { color: var(--coral-deep); }
.step-2 { background: #EFF3FD; } .step-2 .step-num { color: var(--blue); }
.step-3 { background: #EBF4EF; } .step-3 .step-num { color: var(--green); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); column-gap: 48px; margin: 0; padding: 0; list-style: none; }
.feature { display: flex; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--body); }
.ico { flex: none; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform 0.3s var(--ease); }
.feature:hover .ico { transform: scale(1.08) rotate(-4deg); }
.ico-coral { background: #FBE6D8; color: var(--coral-text); }
.ico-blue { background: #E4EBFB; color: var(--blue); }
.ico-green { background: #DDEEE5; color: var(--green); }

.privacy { display: flex; flex-wrap: wrap; gap: 56px; padding: clamp(28px, 6vw, 64px); border-radius: 28px; background: var(--ink); color: #fff; }
.privacy > div { flex: 1 1 340px; min-width: 0; }
.privacy h2 { margin-bottom: 20px; font-size: clamp(40px, 5vw, 60px); line-height: 1; }
.privacy h2 em { color: #F2A27E; }
.privacy > div p { font-size: 20px; color: #C4C8DA; }
.privacy ul { flex: 1 1 460px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.privacy li { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid #343B57; }
.privacy li:last-child { border-bottom: 1px solid #343B57; }
.privacy li svg { flex: none; margin-top: 4px; color: #F2A27E; }

.closing { max-width: 820px; margin: 0 auto; padding: 16px 24px 128px; text-align: center; }
.kicker { margin-bottom: 20px; font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral-text); }
.closing h2 { margin-bottom: 20px; font-size: clamp(40px, 5vw, 64px); line-height: 1; }
.closing > p:not(.kicker) { max-width: 40ch; margin: 0 auto 40px; font-size: 20px; color: var(--body); }

.foot { border-top: 1px solid #E6DAC8; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; padding-bottom: 28px; font-size: 15px; color: var(--muted); }

/* Motion: only opacity and transform, so nothing shifts the layout. */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes drift { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(-12px, 14px, 0); } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 125, 91, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(46, 125, 91, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 125, 91, 0); }
}
.rise { animation: rise 0.8s var(--ease) both; }
.pop { animation: pop 0.7s var(--ease) both; }
.d1 { animation-delay: 0.05s; } .d2 { animation-delay: 0.15s; } .d3 { animation-delay: 0.28s; } .d4 { animation-delay: 0.4s; }
.d5 { animation-delay: 0.6s; } .d6 { animation-delay: 1.1s; } .d7 { animation-delay: 1.6s; }
.blob-sun { animation: drift 16s ease-in-out infinite; }
.blob-ring { animation: drift 22s ease-in-out -6s infinite reverse; }
.dot { animation: pulse 2.6s ease-out 2.2s infinite; }
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 5% entry 45%; }
}

@media (max-width: 600px) {
  .hero { gap: 40px; padding-bottom: 80px; }
  .section { padding-top: 80px; padding-bottom: 80px; }
  .bubble-you { margin-right: 24px; }
  .bubble-her { margin-left: 24px; }
  .bubble p { font-size: 24px; }
  .features { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .pop, .blob-sun, .blob-ring, .dot, .reveal { animation: none !important; }
  .btn, .step, .ico { transition: none; }
  .btn:hover, .step:hover, .feature:hover .ico { transform: none; }
}
