/* Cookflo — site styles. Tokens mirror the app's CookfloColors.swift:
   warm off-white page / white cards / wordmark reds; dark mode keeps the
   brand's warmth (reds lift toward ember, neutrals stay red-brown). */

:root {
  --red-deep: #800A05;      /* wordmark red */
  --primary: #B60B06;       /* cookfloPrimary light */
  --steam: #DA865B;         /* cookfloSteam */
  --bg: #FBF9F6;            /* cookfloBackground light */
  --surface: #FFFFFF;       /* cookfloSurface light */
  --inset: #F6F2EC;
  --text: #1C1917;
  --muted: #6E655E;
  --hairline: rgba(28, 25, 23, 0.10);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 12px 32px rgba(0, 0, 0, 0.05);
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --red-deep: #E25141;
    --primary: #E25141;     /* cookfloPrimary dark (ember) */
    --steam: #E4986E;
    --bg: #171412;          /* cookfloBackground dark */
    --surface: #26211D;     /* cookfloSurface dark */
    --inset: #352E29;
    --text: #F2EDE9;
    --muted: #A99E96;
    --hairline: rgba(242, 237, 233, 0.12);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.35), 0 12px 32px rgba(0, 0, 0, 0.30);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

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

header.site {
  padding: 22px 0;
}

header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img { width: 34px; height: auto; }

.brand span {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--red-deep);
  letter-spacing: 0.01em;
}

nav.site {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav.site a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

nav.site a:hover { color: var(--primary); }

/* ---- Type ---- */

.kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1.08;
  font-weight: 700;
  margin: 10px 0 18px;
}

h1 .accent { color: var(--primary); }

h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.6vw, 2.3rem);
  line-height: 1.15;
  font-weight: 700;
  margin: 8px 0 12px;
}

h3 {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 34em;
}

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

section.hero {
  padding: 56px 0 30px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

.hero-note {
  display: block;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---- Phone frames ---- */

.phone {
  display: block;
  width: 100%;
  max-width: 300px;
  border-radius: 34px;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow);
}

.hero .phone { margin-left: auto; }

/* ---- Feature rows ---- */

section.features { padding: 40px 0 10px; }

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 44px 0;
}

.feature:nth-child(even) .phone { order: -1; }

.feature .phone { margin: 0 auto; max-width: 270px; }

.feature p { color: var(--muted); max-width: 30em; }

.feature ul {
  margin-top: 14px;
  list-style: none;
}

.feature li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
  color: var(--muted);
}

.feature li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm3.7 5.9-4.1 5a.9.9 0 0 1-1.4 0L4.3 8.6a.9.9 0 1 1 1.4-1.1l1.2 1.5 3.4-4.2a.9.9 0 1 1 1.4 1.1z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm3.7 5.9-4.1 5a.9.9 0 0 1-1.4 0L4.3 8.6a.9.9 0 1 1 1.4-1.1l1.2 1.5 3.4-4.2a.9.9 0 1 1 1.4 1.1z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---- Pricing ---- */

section.pricing { padding: 56px 0 72px; text-align: center; }

.pricing .lede { margin: 0 auto; }

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 300px));
  gap: 20px;
  justify-content: center;
  margin-top: 36px;
}

.plan {
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 30px 26px;
  text-align: left;
}

.plan .name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
}

.plan .price {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  margin: 8px 0 2px;
}

.plan .price small {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.plan p { color: var(--muted); font-size: 0.93rem; margin-top: 10px; }

.plan .tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--primary);
  border-radius: 999px;
  padding: 3px 10px;
  margin-left: 8px;
  vertical-align: 2px;
}

.fineprint {
  margin-top: 26px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---- Prose pages (privacy / terms / support) ---- */

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

main.prose h1 { font-size: clamp(2rem, 5vw, 2.7rem); }

main.prose .updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 34px;
}

main.prose h2 {
  font-size: 1.35rem;
  margin: 38px 0 10px;
}

main.prose p, main.prose li {
  color: var(--text);
  opacity: 0.92;
  margin-bottom: 12px;
}

main.prose ul { padding-left: 22px; margin-bottom: 12px; }

main.prose li { margin-bottom: 6px; }

main.prose a { color: var(--primary); }

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

footer.site {
  border-top: 1px solid var(--hairline);
  padding: 34px 0 48px;
}

footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.88rem;
}

footer.site a {
  color: var(--muted);
  text-decoration: none;
  margin-right: 22px;
}

footer.site a:hover { color: var(--primary); }

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

body { overflow-x: clip; }

@media (max-width: 780px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero .phone { margin: 0 auto; }
  .feature { grid-template-columns: 1fr; gap: 30px; padding: 34px 0; }
  .feature:nth-child(even) .phone { order: 0; }
  nav.site { gap: 16px; }
}
