/* forgelings.com styles ("Sunny blocks").
   Colours come from the app icon: its orange and its dark-brown outline.
   Cards look like blocks: a thick outline and a solid offset shadow.
   Headings use Nunito (the app's font), served from /fonts. Body text uses
   the system's rounded face (SF Rounded on Apple devices). Nothing loads
   from another site. */

@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito-ExtraBold.ttf") format("truetype");
  font-weight: 800 900;
  font-display: swap;
}

:root {
  --bg: #fff8ec;
  --bg-2: #ffe9c4;
  --surface: #ffffff;
  --ink: #3d2b1a;
  --muted: #6e5843;
  --accent: #f4a623;
  --accent-ink: #3d2b1a;
  --sky: #8fd3ff;
  --grass: #4fa52e;
  --line: #3d2b1a;
  --shadow: #3d2b1a;
  --display: "Nunito", ui-rounded, system-ui, sans-serif;
  --body: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
  --border: 3px;
  --lift: 5px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d150d;
    --bg-2: #2a1e12;
    --surface: #2f2316;
    --ink: #fff3e0;
    --muted: #d2bb9d;
    --accent: #f7b13c;
    --accent-ink: #2a1a08;
    --sky: #2f5b78;
    --line: #f7b13c;
    --shadow: #000000;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--display); font-weight: 900; letter-spacing: -0.01em; line-height: 1.08; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; line-height: 1.2; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
h1 em { -webkit-text-stroke: 2px var(--line); paint-order: stroke fill; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.eyebrow { font: 800 0.78rem/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border: var(--border) solid var(--line); border-radius: 10px; z-index: 5; }
.skip:focus { left: 16px; }

/* header */
header.top { padding-block: 18px; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 900 1.4rem/1 var(--display); }
.brand img { width: 38px; height: 38px; flex: none; border-radius: 10px; }
nav.links { display: flex; gap: 20px; flex-wrap: wrap; font: 800 0.95rem/1.2 var(--display); }
nav.links a { text-decoration: none; color: var(--muted); }
nav.links a:hover { color: var(--ink); }

/* buttons + chips */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px;
  font: 800 1.05rem/1 var(--display); text-decoration: none;
  background: var(--accent); color: var(--accent-ink);
  border: var(--border) solid var(--line); border-radius: calc(var(--radius) - 4px);
  box-shadow: var(--lift) var(--lift) 0 var(--shadow);
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: calc(var(--lift) + 1px) calc(var(--lift) + 1px) 0 var(--shadow); }
.btn.ghost { background: transparent; color: var(--ink); }
.status {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  font: 800 0.9rem/1.2 var(--display); background: var(--surface); border: var(--border) solid var(--line);
}
.status i { width: 10px; height: 10px; border-radius: 50%; background: var(--grass); display: block; }

/* hero */
.hero { padding-block: 28px 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.scene { width: 100%; max-width: 560px; justify-self: center; }
.scene svg { width: 100%; height: auto; display: block; overflow: visible; }

/* bands */
section.band { padding-block: 64px; }
section.band.alt { background: var(--bg-2); }
.head { display: grid; gap: 12px; margin-bottom: 32px; max-width: 44rem; }

/* what's inside */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: var(--border) solid var(--line); border-radius: var(--radius);
  padding: 22px; display: grid; gap: 10px; align-content: start; min-width: 0;
  box-shadow: var(--lift) var(--lift) 0 var(--shadow);
}
.card .icon { width: 56px; height: 56px; }
.card p { color: var(--muted); }
.card .detail { font-size: 0.9rem; font-weight: 700; color: var(--ink); border-top: 1px dashed var(--muted); padding-top: 10px; margin-top: 4px; }

/* split bands */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split > * { min-width: 0; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.ticks svg { width: 28px; height: 28px; margin-top: 1px; }
.ticks b { display: block; font-family: var(--display); font-weight: 800; }
.ticks span { color: var(--muted); }

/* hand-row mock */
.speech {
  background: var(--surface); border: var(--border) solid var(--line); border-radius: var(--radius);
  padding: 24px; display: grid; gap: 16px; box-shadow: var(--lift) var(--lift) 0 var(--shadow);
}
.slots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.slot { aspect-ratio: 1; border-radius: 12px; border: var(--border) solid var(--line); display: grid; place-items: center; background: var(--bg); max-width: 100%; }
.slot.on { outline: 4px solid var(--accent); outline-offset: 2px; }
.slot svg { width: 70%; height: 70%; }
.bubble { font: 900 1.5rem/1.2 var(--display); display: flex; gap: 12px; align-items: center; }
.bubble svg { width: 30px; height: 30px; flex: none; }
.lang { display: flex; gap: 10px; flex-wrap: wrap; }
.lang span { font: 800 0.85rem/1.2 var(--display); padding: 6px 12px; border-radius: 999px; border: var(--border) solid var(--line); }

/* "let them in?" mock */
.ask {
  background: var(--surface); border: var(--border) solid var(--line); border-radius: var(--radius);
  padding: 26px; text-align: center; display: grid; gap: 14px; justify-items: center;
  box-shadow: var(--lift) var(--lift) 0 var(--shadow);
}
.ask .q { font: 900 1.6rem/1.15 var(--display); }
.ask .row { display: flex; gap: 14px; }
.ask .yes, .ask .no { width: 64px; height: 64px; border-radius: 50%; border: var(--border) solid var(--line); display: grid; place-items: center; font: 900 1.8rem/1 var(--display); }
.ask .yes { background: var(--grass); color: #fff; }
.ask .no { background: var(--bg); }
.ipads { display: flex; align-items: center; justify-content: center; gap: 18px; color: var(--muted); font-weight: 800; }
.ipad { width: 120px; aspect-ratio: 4/3; border: var(--border) solid var(--line); border-radius: 14px; background: var(--sky); display: grid; place-items: center; max-width: 100%; }
.ipad svg { width: 60%; }

/* promises */
.promises {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border: var(--border) solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface);
}
.promise { padding: 22px; display: grid; gap: 6px; align-content: start; min-width: 0;
  border-right: 1px solid color-mix(in srgb, var(--line) 30%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 30%, transparent); }
.promise:nth-child(3n) { border-right: 0; }
.promise:nth-last-child(-n+3) { border-bottom: 0; }
.promise b { font: 900 1.2rem/1.2 var(--display); }
.promise span { color: var(--muted); font-size: 0.97rem; }
.gate { margin-top: 24px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; color: var(--muted); }
.gate code { font: 800 1rem/1.4 var(--display); background: var(--surface); border: var(--border) solid var(--line); border-radius: 10px; padding: 8px 14px; color: var(--ink); }

/* closing call */
.cta { text-align: center; display: grid; gap: 18px; justify-items: center; }
.cta .lede { margin-inline: auto; }
.platforms { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* footer */
footer { padding-block: 40px; border-top: 1px solid color-mix(in srgb, var(--line) 25%, transparent); color: var(--muted); font-size: 0.92rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* privacy page */
.doc { padding-block: 24px 72px; }
.doc .wrap { max-width: 760px; display: grid; gap: 28px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.doc h2 { font-size: 1.5rem; margin-top: 8px; }
.doc section { display: grid; gap: 12px; }
.doc p, .doc li { max-width: 65ch; }
.doc ul { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.doc .updated { color: var(--muted); }
.summary {
  background: var(--surface); border: var(--border) solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--lift) var(--lift) 0 var(--shadow); display: grid; gap: 10px;
}
.summary h2 { margin: 0; }

@media (max-width: 860px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .cards, .promises { grid-template-columns: 1fr 1fr; }
  .promise:nth-child(3n) { border-right: 1px solid color-mix(in srgb, var(--line) 30%, transparent); }
  .promise:nth-child(2n) { border-right: 0; }
  .promise:nth-last-child(-n+3) { border-bottom: 1px solid color-mix(in srgb, var(--line) 30%, transparent); }
  .promise:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 560px) {
  .cards, .promises { grid-template-columns: 1fr; }
  .promise { border-right: 0 !important; border-bottom: 1px solid color-mix(in srgb, var(--line) 30%, transparent) !important; }
  .promise:last-child { border-bottom: 0 !important; }
  nav.links { gap: 14px; font-size: 0.88rem; }
}

@keyframes bob { 50% { transform: translateY(-6px); } }
@keyframes glow { 50% { opacity: .45; } }
.bob { animation: bob 3.2s ease-in-out infinite; }
.glow { animation: glow 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
