/* Cocotte marketing site: doodle, hand-drawn style matching the app's theme tokens. */

@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces-600italic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('fonts/nunito-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('fonts/nunito-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('fonts/nunito-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --canvas: #FAF3E7;
  --ink: #241F1C;
  --card: #FFFFFF;
  --card-dark: #2A2320;
  --terracotta: #D9502E;
  --terracotta-text: #B84427; /* darkened terracotta, for AA contrast on small text (terracotta itself is 3.7:1 on canvas) */
  --terracotta-soft: #F6DCD3;
  --basil: #56833F;
  --basil-soft: #E2EBD9;
  --butter: #F2C94C;
  --muted: #8A7F76;
  --muted-text: #6E655E; /* darkened muted, for AA contrast on body copy (muted itself is 3.5:1, fails AA) */
  --line: #E8DECE;
  --white: #FFFFFF;

  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Nunito', -apple-system, sans-serif;

  --container: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto; /* keep the intrinsic ratio when the grid narrows the width */
  display: block;
}

a {
  color: inherit;
}

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

/* ---------- Header ---------- */

.site-header {
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand svg {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
}

/* ---------- Hero ---------- */

.hero {
  padding: 40px 0 30px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.hero-copy .underline-wrap {
  position: relative;
  display: inline-block;
}

.wavy-underline {
  position: absolute;
  left: 2%;
  bottom: -0.14em;
  width: 96%;
  height: 0.3em;
  color: var(--terracotta);
}

.hero-copy p.subtitle {
  font-size: 1.2rem;
  color: var(--muted-text);
  max-width: 46ch;
  margin: 0 0 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--white);
  background: var(--terracotta);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 16px 30px;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn-note {
  display: block;
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--muted-text);
}

/* Mascot */

.hero-mascot {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mascot-svg {
  width: min(320px, 80%);
  height: auto;
}

.mascot-bob {
  animation: bob 3.6s ease-in-out infinite;
  transform-origin: 60px 100px;
}

.steam-wisp {
  animation: steam 3.2s ease-in-out infinite;
  opacity: 0;
}

.steam-wisp.w2 { animation-delay: 0.5s; }
.steam-wisp.w3 { animation-delay: 1s; }

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-1.5deg); }
}

@keyframes steam {
  0% { opacity: 0; transform: translateY(0) scale(1); }
  25% { opacity: 0.8; }
  80% { opacity: 0; }
  100% { opacity: 0; transform: translateY(-22px) scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  .mascot-bob, .steam-wisp {
    animation: none !important;
  }
  .steam-wisp {
    opacity: 0.7;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Floating doodle ingredients */

.floaty {
  position: absolute;
  z-index: 0;
  opacity: 0.9;
}

/* ---------- Sections shared ---------- */

section {
  padding: 64px 0;
  position: relative;
}

.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  text-align: center;
  margin: 0 0 12px;
}

.section-kicker {
  display: block;
  text-align: center;
  color: var(--terracotta-text);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.section-lede {
  text-align: center;
  color: var(--muted-text);
  max-width: 52ch;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
  position: relative;
}

.step {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 22px;
  padding: 28px 22px;
  text-align: center;
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--butter);
  border: 3px solid var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.step h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  margin: 0 0 8px;
}

.step p {
  color: var(--muted-text);
  margin: 0;
  font-size: 0.98rem;
}

.scribble-arrow {
  position: absolute;
  top: 40px;
  width: 60px;
  height: 40px;
  color: var(--terracotta);
  display: none;
}

@media (min-width: 860px) {
  .scribble-arrow.a1 { left: calc(33.33% - 30px); display: block; }
  .scribble-arrow.a2 { left: calc(66.66% - 30px); display: block; }
}

/* ---------- Feature cards ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px 22px;
}

.feature-card {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 20px;
  padding: 26px 22px;
  box-shadow: 5px 5px 0 var(--line);
}

.feature-card:nth-child(6n+1) { transform: rotate(-1.4deg); }
.feature-card:nth-child(6n+2) { transform: rotate(1deg); }
.feature-card:nth-child(6n+3) { transform: rotate(-0.7deg); }
.feature-card:nth-child(6n+4) { transform: rotate(1.6deg); }
.feature-card:nth-child(6n+5) { transform: rotate(-1.1deg); }
.feature-card:nth-child(6n+6) { transform: rotate(0.8deg); }

.feature-card:hover {
  transform: rotate(0deg) scale(1.02);
  transition: transform 0.2s ease;
}

.feature-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.feature-card p {
  color: var(--muted-text);
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- Screenshots ---------- */

.showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
}

.phone-frame {
  margin: 0;
}

.phone-body {
  position: relative;
  background: var(--card-dark);
  border-radius: 46px;
  padding: 14px;
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--terracotta-soft);
}

.showcase .phone-frame:nth-child(1) { transform: rotate(-2deg); }
.showcase .phone-frame:nth-child(2) { transform: rotate(1.5deg); margin-top: 18px; }
.showcase .phone-frame:nth-child(3) { transform: rotate(-1deg); }

.phone-frame .notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 20px;
  background: var(--card-dark);
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.phone-screen {
  border-radius: 32px;
  overflow: hidden;
  border: 2px solid var(--ink);
}

.phone-caption {
  text-align: center;
  font-family: var(--display);
  font-weight: 600;
  font-style: italic;
  margin-top: 16px;
  font-size: 1.05rem;
}

/* ---------- Plus band ---------- */

.plus-band {
  background: var(--butter);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  padding: 34px 0;
  text-align: center;
}

.plus-band p {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 48px 0 40px;
  text-align: center;
  color: var(--muted-text);
}

.footer-signoff {
  font-family: var(--display);
  font-weight: 600;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.footer-links a {
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 2px solid var(--terracotta);
  padding-bottom: 2px;
}

.footer-links a:hover {
  color: var(--terracotta);
}

.footer-copy {
  font-size: 0.88rem;
}

/* ---------- Legal pages ---------- */

.legal-header {
  padding: 22px 0;
  border-bottom: 3px solid var(--ink);
}

.legal-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.legal-main h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin: 0 0 8px;
}

.doc-notice {
  display: inline-block;
  background: var(--terracotta-soft);
  border: 2px dashed var(--terracotta);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 0.92rem;
  color: var(--ink);
  margin: 18px 0 36px;
}

.legal-main h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  margin: 36px 0 12px;
}

.legal-main p, .legal-main li {
  color: #3a332e;
  font-size: 1.02rem;
}

.legal-main ul {
  padding-left: 22px;
}

.legal-main a {
  color: var(--terracotta-text);
  font-weight: 700;
}

.back-home {
  display: inline-block;
  margin-top: 40px;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 3px solid var(--butter);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy p.subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-mascot {
    order: -1;
  }

  .steps, .features, .showcase {
    grid-template-columns: 1fr;
  }

  .showcase .phone-frame {
    max-width: 280px;
    margin: 0 auto !important;
    transform: none !important;
  }

  .feature-card {
    transform: none !important;
  }

  .floaty {
    display: none;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}
