/* kindredcook.app — palette taken from the app's DesignSystem/Colors.swift */
:root {
  --bg: #FFF8F0;          /* kindredPrimary (light) */
  --surface: #FFFFFF;     /* kindredBackground (light) */
  --card: #FFFFFF;
  --text: #1A1A1A;        /* kindredTextPrimary */
  --muted: #6B5E57;       /* kindredTextSecondary */
  --line: #E8DDD6;        /* kindredDivider */
  --accent: #C0553A;      /* kindredAccent — text & buttons */
  --accent-deco: #E07849; /* kindredAccentDecorative — ornaments only */
  --on-accent: #FFF8F0;
  --shadow: 0 1px 2px rgba(60, 30, 15, .06), 0 12px 32px -16px rgba(60, 30, 15, .25);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C1410; --surface: #1C1410; --card: #2A1F1A;
    --text: #F5EDE6; --muted: #A89B93; --line: #3D302A;
    --accent: #E07849; /* brighter terracotta keeps link text readable on dark */
    --on-accent: #1C1410;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent-deco); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding-inline: 20px; }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; padding-block: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--text); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 2px 8px -2px rgba(120, 50, 20, .35); }
.nav-links { display: flex; align-items: center; gap: 20px; font-size: 15px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.lang { font: inherit; font-size: 13px; font-weight: 600; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; min-height: 36px; }

/* Type */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
h1 { font-family: "New York", "Iowan Old Style", Georgia, serif; font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.08; letter-spacing: -.02em; margin-top: 12px; text-wrap: balance; }
h2 { font-family: "New York", "Iowan Old Style", Georgia, serif; font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
h3 { font-size: 18px; margin-top: 14px; }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.2rem); color: var(--muted); margin-top: 18px; max-width: 34em; }
.muted { color: var(--muted); }

/* Buttons */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta-row.center { justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 14px; font-weight: 600; font-size: 16px; font-family: inherit; cursor: pointer; border: 1px solid transparent; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 24px -12px rgba(192, 85, 58, .8); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: var(--card); color: var(--text); border-color: var(--line); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-block: 40px 72px; overflow-x: clip; } /* keeps the phone glow from widening the page */
.hero-copy { min-width: 0; }

/* Phone mock */
.phone { justify-self: center; width: 280px; max-width: 100%; aspect-ratio: 9 / 18.5; border-radius: 44px; padding: 12px; background: #1A1210; box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.06) inset; position: relative; }
.phone::before { content: ''; position: absolute; inset: -40px; z-index: -1; background: radial-gradient(closest-side, rgba(224, 120, 73, .35), transparent); }
.phone-screen { height: 100%; border-radius: 34px; background: #FFF8F0; padding: 44px 18px 18px; display: flex; flex-direction: column; color: #1A1A1A; position: relative; overflow: hidden; }
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 999px; background: #1A1210; }
.phone-kicker { font-size: 12px; font-weight: 600; color: #C0553A; text-transform: uppercase; letter-spacing: .06em; }
.phone-dish { font-family: Georgia, serif; font-size: 22px; line-height: 1.2; margin-top: 6px; }
.recipe-card { margin-top: 16px; background: #FFFFFF; border: 1px solid #E8DDD6; border-radius: 18px; padding: 16px; font-size: 15px; line-height: 1.5; }
.ingredients { margin-top: 14px; }
.ing-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #6B5E57; }
.ingredients ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ingredients li { font-size: 12px; background: #FFFFFF; border: 1px solid #E8DDD6; border-radius: 999px; padding: 4px 10px; }
.voice { margin-top: auto; display: flex; align-items: center; gap: 10px; background: #C0553A; color: #FFF8F0; border-radius: 20px; padding: 12px; }
.voice-avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; background: #FFF8F0; color: #C0553A; display: grid; place-items: center; font-weight: 700; }
.voice-meta { flex: 1; min-width: 0; }
.voice-name { font-size: 13px; font-weight: 600; }
.voice-play { flex: none; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 248, 240, .2); display: grid; place-items: center; font-size: 11px; }
.wave { display: flex; align-items: center; gap: 3px; height: 20px; margin-top: 4px; }
.wave span { width: 3px; border-radius: 3px; background: #FFF8F0; height: 30%; animation: wave 1.1s ease-in-out infinite; }
.wave span:nth-child(3n) { animation-delay: -.3s; } .wave span:nth-child(3n+1) { animation-delay: -.6s; } .wave span:nth-child(4n) { animation-delay: -.9s; }
@keyframes wave { 0%, 100% { height: 25%; opacity: .7; } 50% { height: 100%; opacity: 1; } }

/* Features */
.features { padding-block: 24px 64px; }
.features h2 { text-align: center; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); min-width: 0; }
.card p { color: var(--muted); font-size: 15px; margin-top: 6px; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: color-mix(in srgb, var(--accent-deco) 14%, transparent); }

/* Closing */
.closing { padding-block: 0 64px; }
.closing-card { text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 44px 24px; box-shadow: var(--shadow); }
.closing-icon { display: block; margin: 0 auto 16px; border-radius: 17px; box-shadow: 0 12px 28px -12px rgba(120, 50, 20, .45); }
.closing-card p { color: var(--muted); margin-top: 10px; }

/* Support page */
.page { padding-block: 24px 56px; max-width: 760px; }
.contact-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.contact-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact-mail { font-weight: 600; font-size: 17px; word-break: break-all; }
.faq { margin-top: 28px; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 600; padding-block: 14px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); padding-bottom: 16px; }
.page > .muted { margin-top: 24px; font-size: 15px; }

/* Footer */
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer nav { display: flex; gap: 20px; }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-block: 16px 48px; }
  .phone { width: 250px; }
  .ingredients { display: none; } /* keeps the narration bar inside the smaller phone */
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
  .nav-links { gap: 14px; }
  .cta-row .btn { flex: 1 1 100%; }
}
@media (max-width: 380px) {
  .nav-links a[href="#features"] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wave span { animation: none; height: 60%; }
  html { scroll-behavior: auto; }
}
