/* bigfatyes.com: the app's cozy look on the web (colors, fonts and cards from src/ui/theme.ts). Light only. */

@font-face { font-family: 'Fredoka'; src: url('/fonts/fredoka-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Fredoka'; src: url('/fonts/fredoka-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/fonts/nunito-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/fonts/nunito-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/fonts/nunito-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #FFF6EC;
  --bg-alt: #FFEFDF;
  --surface: #FFFFFF;
  --sunken: #F7ECE1;
  --line: #EDE0D3;
  --edge: rgba(156, 134, 118, 0.45);
  --text: #4A3429;
  --muted: #6E5A4C;
  --brand: #6B2F55;
  --brand-soft: #F3E7EE;
  --favor: #FF8066; --favor-soft: #FFE4DC; --favor-ink: #9A4A3A;
  --reverse-fill: #7C5CC9; --reverse-soft: #ECE4FB; --reverse-ink: #5A3FA0;
  --no-fill: #C23B33; --no-soft: #FBE3E0; --no-ink: #A83830;
  --forgive: #E8A93B; --forgive-soft: #FFF2D9; --forgive-ink: #8A6420;
  --done-fill: #3D7F41; --done-ink: #3F7A3D;
  --shadow-card: 0 2px 8px rgba(74, 52, 41, 0.14);
  --shadow-lift: 0 14px 34px rgba(74, 52, 41, 0.18);
  --display: 'Fredoka', 'Avenir Next Rounded', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --notch: var(--bg);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--body); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0 0 0.45em; color: var(--brand); }
h1 { font-weight: 700; font-size: clamp(2.6rem, 5vw + 1rem, 4.4rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(2rem, 2.4vw + 1.2rem, 2.8rem); letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; color: var(--text); }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -9999px; top: 10px; z-index: 50; background: var(--surface); padding: 10px 16px; border-radius: 12px; box-shadow: var(--shadow-card); }
.skip:focus { left: 16px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.lead { font-size: clamp(1.1rem, 0.5vw + 1rem, 1.28rem); color: var(--muted); max-width: 34em; }
.center .lead { margin-inline: auto; }
.eyebrow {
  display: inline-block; margin-bottom: 18px; padding: 8px 14px; border-radius: 999px;
  background: var(--favor-soft); color: var(--favor-ink); font: 700 0.78rem/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase;
}

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(255, 246, 236, 0.88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--brand); text-decoration: none; font: 700 1.35rem/1 var(--display); }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: var(--shadow-card); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--text); font-weight: 600; text-decoration: none; }
.nav a:hover { color: var(--brand); }
.nav .btn { color: #fff; }
@media (max-width: 760px) { .nav-link { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 16px;
  font: 700 1.05rem/1 var(--body); text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(107, 47, 85, 0.26); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(107, 47, 85, 0.3); }
.btn-ghost { background: var(--surface); color: var(--brand); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-small { min-height: 42px; padding: 0 18px; border-radius: 12px; font-size: 0.95rem; }

/* Sections */
section { padding: 76px 0; }
.alt { background: var(--bg-alt); --notch: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }

/* Hero */
.hero { padding: 40px 0 76px; overflow: hidden; }
.hero .wrap { display: grid; gap: 36px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 16px; }
.hero-note { color: var(--muted); font-size: 0.95rem; margin: 0; }
@media (min-width: 920px) {
  .hero { padding: 64px 0 104px; }
  .hero .wrap { grid-template-columns: 1.05fr 0.95fr; }
}

/* The card fan in the hero scales with its box (container units), so it fits any phone. */
.fan { container-type: inline-size; position: relative; width: 100%; max-width: 470px; margin-inline: auto; aspect-ratio: 470 / 610; }
.fan .card { position: absolute; width: 64%; font-size: 3.5cqw; }
.fan .c1 { left: 0; top: 2%; rotate: -6deg; }
.fan .c2 { right: 0; top: 30%; rotate: 5deg; }
.fan .c3 { left: 6%; top: 62%; rotate: -2deg; z-index: 2; box-shadow: var(--shadow-lift); }
.fan .buddy { position: absolute; right: 1%; bottom: 0; width: 29%; rotate: 9deg; z-index: 3; filter: drop-shadow(0 8px 14px rgba(74, 52, 41, 0.18)); }

/* A card, like the app's: paper in the card's color, a strip of tape, a tear line. Sized in em. */
.card {
  --soft: var(--favor-soft); --fill: var(--favor); --on: var(--text);
  position: relative; background: var(--soft); border: 1.5px solid var(--edge); border-radius: 1.5em;
  padding: 1.35em 1.3em 1.25em; box-shadow: var(--shadow-card); color: var(--text); font-size: 16px; text-align: left;
}
.card--reverse { --soft: var(--reverse-soft); --fill: var(--reverse-fill); --on: #fff; }
.card--no { --soft: var(--no-soft); --fill: var(--no-fill); --on: #fff; }
.card--beg { --soft: var(--forgive-soft); --fill: var(--forgive); --on: var(--text); }
.card__tape {
  position: absolute; top: -0.65em; left: 50%; width: 5.2em; height: 1.35em; translate: -50% 0; rotate: -3deg;
  background: rgba(255, 242, 217, 0.92); border: 1px solid rgba(232, 169, 59, 0.3); border-radius: 2px;
}
.card__head { display: flex; align-items: center; gap: 0.85em; }
.card__art { flex: none; width: 3.7em; height: 3.7em; border-radius: 50%; border: 3px solid #fff; background: var(--bg); object-fit: cover; }
.card__tag { display: inline-block; padding: 0.45em 0.8em; border-radius: 999px; background: var(--fill); color: var(--on); font: 700 0.68em/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase; }
.card__title { margin: 0.3em 0 0; font: 600 1.32em/1.15 var(--display); color: var(--text); }
.card__tear { position: relative; margin: 1em -1.3em 0.95em; border-top: 2px dashed var(--edge); }
.card__tear::before, .card__tear::after {
  content: ''; position: absolute; top: -0.72em; width: 1.3em; height: 1.3em; border-radius: 50%; background: var(--notch); border: 1.5px solid var(--edge);
}
.card__tear::before { left: -0.72em; }
.card__tear::after { right: -0.72em; }
.card__text { margin: 0; font-size: 1em; line-height: 1.45; }
.card__text.room { padding-right: 4.6em; }
.card__stamp {
  position: absolute; right: 0.9em; bottom: 0.85em; padding: 0.12em 0.45em; border: 3px solid var(--done-fill); border-radius: 8px; rotate: -12deg;
  background: #fff; color: var(--done-ink); font: 700 1.2em/1.1 var(--display); letter-spacing: 0.12em; text-transform: uppercase;
}
.card__stamp--no { border-color: var(--no-fill); color: var(--no-ink); }
.card__beg { position: absolute; right: 0.4em; top: 0.3em; width: 4.4em; rotate: -8deg; }

/* How it works */
.steps { display: grid; gap: 22px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--surface); border-radius: 24px; padding: 18px 18px 26px; box-shadow: var(--shadow-card); }
.step img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 16px; background: var(--bg); }
.step-num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; margin: 18px 0 10px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand); font: 700 1rem/1 var(--display);
}
.step p { color: var(--muted); margin: 0; }

/* The four kinds of cards */
.kinds { display: grid; gap: 40px 26px; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); }
.kind { margin: 0; }
.kind figcaption { margin-top: 18px; color: var(--muted); }
.kind figcaption strong { display: block; margin-bottom: 4px; font: 600 1.18rem/1.2 var(--display); color: var(--text); }

/* Two phones */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 0.8fr 1.2fr; } }
.phone {
  width: min(290px, 78vw); margin-inline: auto; aspect-ratio: 600 / 1298; border: 11px solid #2E2521; border-radius: 48px;
  overflow: hidden; background: #2E2521; box-shadow: var(--shadow-lift); rotate: -2deg;
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
.features { display: grid; gap: 22px; margin: 28px 0 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature .ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); }
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { margin: 2px 0 4px; font-size: 1.12rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.aside-note { margin-top: 30px; padding: 16px 18px; border-radius: 16px; background: var(--surface); color: var(--muted); box-shadow: var(--shadow-card); }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 760px; margin-inline: auto; }
.faq details { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-card); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; font: 600 1.12rem/1.3 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font: 700 1.2rem/1 var(--body); transition: rotate 0.2s ease; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* Beta */
.beta {
  position: relative; overflow: hidden; display: grid; gap: 24px; align-items: center; padding: 44px 26px; border-radius: 32px;
  background: linear-gradient(160deg, var(--brand-soft), #fff 70%); box-shadow: var(--shadow-card); text-align: center;
}
.beta img { width: 150px; margin: 0 auto; rotate: -6deg; }
.beta .btn { margin-top: 8px; }
.beta small { display: block; margin-top: 14px; color: var(--muted); }
@media (min-width: 820px) {
  .beta { grid-template-columns: 220px 1fr; padding: 52px 56px; text-align: left; }
  .beta img { width: 190px; }
}

/* Footer */
.site-foot { padding: 40px 0 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-foot a { color: var(--muted); }

/* Text pages (privacy, help) */
.prose { max-width: 720px; margin-inline: auto; padding: 48px 0 24px; }
.prose h1 { font-size: clamp(2.3rem, 3vw + 1.2rem, 3.2rem); }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; color: var(--text); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.6em; }
.updated { color: var(--muted); }

/* 404 */
.lost { display: grid; place-items: center; text-align: center; min-height: 70vh; padding: 40px 0; }
.lost img { width: 220px; margin: 0 auto 18px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
