/* Cloudberry Coach landing page.
   Colors mirror cb-coach-app/src/constants/colors.js; fonts are the app's (Jost + Open Sans), self-hosted. */

@font-face { font-family: "Jost"; font-weight: 500; font-display: swap; src: url("/assets/fonts/Jost_500Medium.ttf") format("truetype"); }
@font-face { font-family: "Jost"; font-weight: 600; font-display: swap; src: url("/assets/fonts/Jost_600SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Open Sans"; font-weight: 400; font-display: swap; src: url("/assets/fonts/OpenSans_400Regular.ttf") format("truetype"); }
@font-face { font-family: "Open Sans"; font-weight: 600; font-display: swap; src: url("/assets/fonts/OpenSans_600SemiBold.ttf") format("truetype"); }

:root {
  --cream: #FBEAC9;
  --cream-muted: #F0DDB8;
  --cream-line: #DAC9AA;
  --ink: #1C1C1C;
  --ink-muted: #5C5C52;
  --green: #236738;
  --green-soft: #60A074;
  --blue: #A4BBF5;
  --coral: #E56236;

  --font-head: "Jost", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --space: clamp(6rem, 14vw, 11rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; justify-content: center; }
.muted { color: var(--ink-muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: var(--cream); padding: .5rem 1rem; border-radius: 999px; z-index: 10; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 4px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--cream) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.wordmark { font: 600 1.3rem/1 var(--font-head); letter-spacing: -0.01em; }
.wordmark span { color: var(--green-soft); }
.header-link { font: 500 .95rem/1 var(--font-head); text-decoration: none; padding: .7rem 1.2rem; border: 1px solid var(--cream-line); border-radius: 999px; transition: background .2s, border-color .2s; }
.header-link:hover { background: var(--cream-muted); border-color: var(--cream-muted); }

/* Hero */
.hero { overflow-x: clip; padding-block: clamp(3rem, 8vw, 6rem) var(--space); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(3rem, 6vw, 6rem); align-items: center; }
.eyebrow { font: 500 .8rem/1 var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 1.75rem; }
h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: 1.02; letter-spacing: -0.025em; }
.lead { margin-top: 1.75rem; max-width: 32rem; font-size: 1.125rem; color: var(--ink-muted); }

/* Store buttons */
.stores { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.75rem; }
.store {
  display: inline-flex; align-items: center; gap: .7rem;
  height: 58px; padding: 0 1.4rem 0 1.15rem; border-radius: 14px;
  text-decoration: none; font: 600 1.15rem/1 var(--font-head);
}
.store svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.store span { display: flex; flex-direction: column; gap: .2rem; text-align: left; }
.store small { font: 400 .7rem/1 var(--font-body); letter-spacing: .02em; }
.store-apple { background: var(--ink); color: var(--cream); transition: transform .2s, background .2s; }
.store-apple:hover { background: #000; transform: translateY(-1px); }
.store-soon { border: 1px dashed var(--cream-line); color: var(--ink-muted); cursor: default; }
.store-soon svg { opacity: .55; }

/* Phone */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual::before {
  content: ""; position: absolute; width: min(460px, 100%); aspect-ratio: 1; border-radius: 50%;
  background: var(--green-soft); top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.phone {
  position: relative; width: min(300px, 78vw); aspect-ratio: 9 / 18.5;
  background: var(--ink); border-radius: 46px; padding: 10px;
  box-shadow: 0 40px 80px -30px rgba(28, 28, 28, .45);
  transform: rotate(-4deg);
}
.phone-screen {
  height: 100%; border-radius: 37px; background: var(--cream);
  padding: 3.25rem 1rem 1rem; display: flex; flex-direction: column; gap: .6rem;
  font-size: .8rem; line-height: 1.45; overflow: hidden;
}
.chat-head { display: flex; align-items: center; gap: .5rem; font: 600 .9rem/1 var(--font-head); padding-bottom: .9rem; margin-bottom: .4rem; border-bottom: 1px solid var(--cream-line); }
.bubble { max-width: 84%; padding: .65rem .85rem; border-radius: 16px; }
.bubble.coach { background: var(--cream-muted); border-bottom-left-radius: 4px; }
.bubble.me { background: var(--blue); align-self: flex-end; border-bottom-right-radius: 4px; }
.typing { display: flex; gap: 4px; padding: .7rem .85rem; background: var(--cream-muted); border-radius: 16px; border-bottom-left-radius: 4px; width: fit-content; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--green-soft); animation: blink 1.4s infinite both; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
.composer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding: .55rem .55rem .55rem .9rem; border: 1px solid var(--cream-line); border-radius: 999px; color: var(--ink-muted); }
.composer b { width: 26px; height: 26px; border-radius: 50%; background: var(--green); }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .typing i { animation: none; opacity: .6; } }

/* Statement */
.statement { padding-block: var(--space); border-top: 1px solid var(--cream-line); text-align: center; }
.sparkle { width: 28px; height: 28px; margin: 0 auto 2.5rem; fill: var(--green-soft); }
.big { font: 500 clamp(1.6rem, 3.4vw, 2.35rem)/1.35 var(--font-head); letter-spacing: -0.01em; }

/* Sections */
.section { padding-block: var(--space); }
.section.tint { background: var(--cream-muted); }
.section-title { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 1.5rem; }

.steps { list-style: none; margin: 4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 4rem); }
.steps li { border-top: 1px solid var(--ink); padding-top: 1.75rem; }
.num { display: block; font: 500 .85rem/1 var(--font-head); color: var(--green-soft); letter-spacing: .1em; margin-bottom: 2.5rem; }
.steps h3 { font-size: 1.4rem; margin-bottom: .85rem; }
.steps p { color: var(--ink-muted); }

.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.split .muted { max-width: 26rem; }
.methods { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--cream-line); }
.methods li { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding: 1.6rem 0; border-bottom: 1px solid var(--cream-line); }
.methods span { font: 500 1.25rem/1.3 var(--font-head); }
.methods small { font-size: .9rem; color: var(--ink-muted); text-align: right; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 5vw, 5rem); }
.dot { display: block; width: 14px; height: 14px; border-radius: 50%; margin-bottom: 2rem; }
.dot.green { background: var(--green-soft); }
.dot.blue { background: var(--blue); }
.dot.coral { background: var(--coral); }
.principles h3 { font-size: 1.4rem; margin-bottom: .75rem; }
.principles p { color: var(--ink-muted); max-width: 20rem; }

/* CTA */
.cta { background: var(--green); color: var(--cream); padding-block: var(--space); }
.cta-icon { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 2.5rem; box-shadow: 0 0 0 1px rgba(251, 234, 201, .15); }
.cta h2 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
.cta p { margin-top: 1.25rem; opacity: .8; }
.cta .stores { justify-content: center; }
.store-apple.light { background: var(--cream); color: var(--ink); }
.store-apple.light:hover { background: #fff; }
.store-soon.light { border-color: rgba(251, 234, 201, .4); color: rgba(251, 234, 201, .75); }

/* Footer */
.site-footer { padding-block: 4rem 3rem; font-size: .9rem; color: var(--ink-muted); }
.safety { max-width: 40rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--cream-line); }
.safety strong { color: var(--ink); font-weight: 600; margin-right: .25rem; }
.safety a { color: var(--ink); font-weight: 600; }
.footer-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; }
.footer-row a { text-decoration: none; }
.footer-row a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 1rem; }
  .steps, .principles { grid-template-columns: 1fr; }
  .steps { margin-top: 2.5rem; }
  .num { margin-bottom: 1.25rem; }
  .methods li { flex-direction: column; gap: .3rem; }
  .methods small { text-align: left; }
}
@media (max-width: 480px) {
  .header-link { display: none; }
  .store { flex: 1 1 100%; justify-content: center; }
}
