/* YamYam — yamyam.codeenergy.org. No external fonts, no JS, light + dark. */
:root {
  --bg: #f7f4ef;
  --surface: #ffffff;
  --surface-2: #f1ede7;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #64748b;
  --border: #e7e1d8;
  --brand: #c2410c;
  --brand-2: #ea580c;
  --brand-soft: #ffedd5;
  --leaf: #059669;
  --leaf-soft: #d9f5e8;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --radius: 24px;
  --max: 1120px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0d10;
    --surface: #161b21;
    --surface-2: #1a2027;
    --text: #f3f5f7;
    --text-2: #a3acb9;
    --text-3: #8a93a0;
    --border: #262d36;
    --brand: #fb923c;
    --brand-2: #fdba74;
    --brand-soft: #35190b;
    --leaf: #6ee7b7;
    --leaf-soft: #10362a;
    --shadow: none;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-2); }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; letter-spacing: -.02em; font-size: 19px; }
.brand img { width: 36px; height: 36px; border-radius: 22%; }
.nav { display: flex; gap: 4px 16px; flex-wrap: wrap; margin-left: auto; font-size: 15px; }
.nav a { color: var(--text-2); text-decoration: none; font-weight: 600; padding: 6px 2px; }
.nav a[aria-current="page"], .nav a:hover { color: var(--text); }
.langs { display: flex; gap: 4px; font-size: 14px; }
.langs a, .langs span { padding: 4px 9px; border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--text-2); border: 1px solid var(--border); }
.langs span { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Hero */
.hero { padding: 56px 0 24px; display: grid; gap: 40px; grid-template-columns: 1.1fr .9fr; align-items: center; }
.hero.solo { grid-template-columns: 1fr; } /* no Home screenshot yet */
.eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); padding: 6px 12px; border-radius: 999px; }
h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -.035em; margin: 16px 0 16px; font-weight: 850; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--text-2); margin: 0 0 24px; max-width: 34em; }
.soon { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.soon strong { width: 100%; font-size: 14px; color: var(--text-3); font-weight: 700; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 14px; background: var(--text); color: var(--bg); font-weight: 700; font-size: 15px; }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art .glow { position: absolute; inset: 8% 4% 4%; border-radius: 40%; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand-2) 40%, transparent), transparent); filter: blur(10px); }

/* Phone frame for real app screenshots */
.phone { position: relative; width: min(300px, 78vw); aspect-ratio: 390 / 844; border-radius: 44px; padding: 11px; background: #0b0f14; box-shadow: 0 30px 60px rgba(15, 23, 42, .25), inset 0 0 0 2px #2a3038; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 34px; }
.phone::after { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 30%; height: 22px; border-radius: 999px; background: #0b0f14; }

/* Sections */
section { padding: 40px 0; }
h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.025em; line-height: 1.15; margin: 0 0 12px; }
.sub { color: var(--text-2); margin: 0 0 28px; max-width: 42em; }
.bento { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin: 14px 0 6px; font-size: 19px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--text-2); font-size: 16px; }
.card.wide { grid-column: span 2; }
.card.tint { background: var(--brand-soft); border-color: transparent; }
.card.leaf { background: var(--leaf-soft); border-color: transparent; }
.ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.card.tint .ico, .card.leaf .ico { background: var(--surface); }
.card.leaf .ico { color: var(--leaf); }
.ico svg { width: 24px; height: 24px; }
.shots { display: flex; gap: 20px; overflow-x: auto; padding: 8px 4px 20px; scroll-snap-type: x mandatory; }
.shots figure { margin: 0; scroll-snap-align: start; flex: 0 0 auto; }
.shots .phone { width: 220px; border-radius: 34px; padding: 8px; }
.shots .phone img { border-radius: 27px; }
.shots .phone::after { top: 15px; height: 16px; }
.shots figcaption { text-align: center; color: var(--text-2); font-size: 14px; margin-top: 10px; max-width: 220px; }
.note { border-left: 4px solid var(--brand); padding: 14px 18px; background: var(--surface); border-radius: 0 16px 16px 0; color: var(--text-2); }

/* Documents (privacy, terms, deletion, support) */
.doc { padding: 40px 0 64px; }
.doc .card { padding: clamp(20px, 4vw, 44px); }
.doc h1 { font-size: clamp(30px, 4.4vw, 46px); margin-top: 0; }
.doc h2 { font-size: clamp(21px, 2.6vw, 26px); margin: 36px 0 10px; }
.doc p, .doc li { color: var(--text-2); }
.doc ul { padding-left: 22px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0 8px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.doc th { color: var(--text); background: var(--surface-2); }
.meta { color: var(--text-3); font-size: 15px; }
.toc { background: var(--surface-2); border-radius: 16px; padding: 14px 20px; margin: 20px 0; }
.toc ol { margin: 6px 0 0; padding-left: 20px; }
details { border: 1px solid var(--border); border-radius: 16px; padding: 14px 18px; margin: 10px 0; background: var(--surface); }
summary { cursor: pointer; font-weight: 700; color: var(--text); }
details p { margin: 10px 0 0; }
.contacts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 16px 0; }
.contacts .card { padding: 18px; }
.contacts a { font-weight: 700; }

footer { border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--text-3); font-size: 15px; }
footer .wrap { display: flex; gap: 12px 24px; flex-wrap: wrap; justify-content: space-between; }
footer nav { display: flex; gap: 8px 18px; flex-wrap: wrap; }
footer a { color: var(--text-2); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .bento { grid-template-columns: 1fr; }
  .card.wide { grid-column: auto; }
  .nav { margin-left: 0; width: 100%; order: 3; }
}
