/* An app's "what it does" page (forge.html, punch.html, card.html). The front page's look (index.html): same
   colors, type and cards, with the app's own color as the accent (set on <body data-app>). */
:root {
  --bg: #0b0b0d; --elev: #16161a; --elev2: #1e1e24; --line: #2a2a32; --line2: #3a3a45;
  --text: #f5f5f5; --dim: #8a8a96; --faint: #62626d; --gold: #e8b84a; --gold2: #f3dca0;
  /* Forge: gold */
  --accent: #e8b84a; --accent2: #f3dca0; --accent-rgb: 232,184,74; --lead-line: #5b4a22; --lead-bg: #1c1911; --glow: #221d12; --on-accent: #1a1204;
}
body[data-app="punch"] { --accent: #e2701f; --accent2: #f6b27c; --accent-rgb: 226,112,31; --lead-line: #64361a; --lead-bg: #1e140d; --glow: #25160c; --on-accent: #1f0d02; }
body[data-app="card"] { --accent: #3ddc97; --accent2: #a6f0cd; --accent-rgb: 61,220,151; --lead-line: #1f5a41; --lead-bg: #0f1c16; --glow: #0f2119; --on-accent: #04170e; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: radial-gradient(ellipse 90% 60% at 50% -10%, var(--glow) 0%, var(--bg) 60%) var(--bg);
  color: var(--text); font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  min-height: 100dvh; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px 48px; }

/* ---- top bar ---- */
.top { display: flex; align-items: center; gap: 16px; padding: calc(env(safe-area-inset-top) + 20px) 0 0; }
.top .home { font-size: 22px; font-weight: 700; letter-spacing: -0.04em; }
.top .home b { color: var(--gold); }
.top .apps { display: flex; gap: 4px; margin-left: 8px; }
.top .apps a { font-size: 14px; color: var(--dim); padding: 6px 10px; border-radius: 999px; }
.top .apps a:hover { color: var(--text); background: var(--elev); }
.top .apps a.here { color: var(--text); background: var(--elev2); }
.top .go { margin-left: auto; font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line2); color: var(--text); }
.top .go:hover { border-color: var(--accent); color: var(--accent2); }
@media (max-width: 560px) { .top .apps { display: none; } }

/* ---- hero ---- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; margin-top: 64px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 32px; margin-top: 40px; } }
.head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.head svg { flex: none; border-radius: 12px; }
.name { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }
.name b { color: var(--gold); font-weight: 600; }
.name span { color: var(--dim); }
.who { font-size: 13px; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin-top: 2px; }
.price { align-self: flex-start; margin-left: 6px; font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 999px;
  background: rgba(232,184,74,.14); color: var(--gold); white-space: nowrap; }
.price.free { background: rgba(61,220,151,.12); color: #3ddc97; }
h1 { font-size: clamp(32px, 10.5vw, 72px); font-weight: 700; letter-spacing: -0.045em; line-height: 1; margin: 28px 0 0; }
h1 b { color: var(--accent); font-weight: 700; }
.intro { margin: 18px 0 0; max-width: 520px; font-size: 19px; line-height: 1.5; color: var(--dim); }
.intro strong { color: var(--text); font-weight: 500; }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.google {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 52px; padding: 0 22px; border-radius: 12px;
  background: #fff; color: #1f1f1f; font-size: 16px; font-weight: 600; transition: background .15s;
}
.google:hover { background: #ececec; }
.open { display: none; align-items: center; justify-content: center; height: 52px; padding: 0 26px; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-size: 16px; font-weight: 700; }
.open:hover { background: var(--accent2); }
.alt { display: inline-block; margin-top: 14px; font-size: 14px; color: var(--dim); }
.alt:hover { color: var(--text); }
body.in .google, body.in .alt { display: none; }
body.in .open { display: inline-flex; }
.ov { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px 0 14px; border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb),.5); background: rgba(var(--accent-rgb),.1); color: var(--accent); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.ov:hover { background: rgba(var(--accent-rgb),.2); }
/* "Add … to your Home Screen": opens the app with the steps for that phone or computer (?homescreen=1). */
.feat { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line2); background: none; color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; }
.feat:hover { border-color: var(--accent); color: var(--accent2); }
.feat.home { border-style: dashed; border-color: rgba(var(--accent-rgb), .6); color: var(--accent); }
.ov span { color: var(--dim); font-weight: 500; }

/* A clip of Forge, framed like the front page's preview. */
.shot { position: relative; border-radius: 14px; overflow: hidden; background: #0b0b0d; box-shadow: 0 0 0 1px var(--line2), 0 24px 70px rgba(0,0,0,.6); }
.shot video { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; background: #0b0b0d; }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; background: #0b0b0d; }

/* ---- jump links ---- */
.jump { position: sticky; top: 0; z-index: 10; margin: 64px -20px 0; padding: 12px 20px; background: rgba(11,11,13,.86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.jump div { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.jump div::-webkit-scrollbar { display: none; }
.jump a { flex: none; font-size: 14px; color: var(--dim); padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); }
.jump a:hover { color: var(--text); border-color: var(--line2); }
.jump a.on { color: var(--text); background: var(--elev2); border-color: var(--line2); }

/* ---- sections ---- */
section.part { padding-top: 72px; scroll-margin-top: 56px; }
.eyebrow { font-size: 13px; color: var(--accent); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
h2 { font-size: clamp(30px, 4.4vw, 42px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; margin: 8px 0 0; }
.sub { margin: 12px 0 0; max-width: 640px; font-size: 17px; line-height: 1.5; color: var(--dim); }
.grid { display: grid; gap: 16px; margin-top: 28px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid, .grid.two, .grid.four { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; background: var(--elev); border: 1px solid var(--line); border-radius: 18px; padding: 22px; transition: border-color .2s; }
.card:hover { border-color: var(--line2); }
.card.lead { border-color: var(--lead-line); background: linear-gradient(180deg, var(--lead-bg) 0%, var(--elev) 55%); }
.card.wide { grid-column: span 2; }
@media (max-width: 640px) { .card.wide { grid-column: auto; } }
.card h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.card h3 small { display: block; margin-top: 3px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.card p { margin: 10px 0 0; font-size: 15px; line-height: 1.5; color: var(--dim); }
ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 9px; }
li { position: relative; padding-left: 16px; font-size: 15px; line-height: 1.45; color: var(--dim); }
li::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); opacity: .85; }
li b { color: var(--text); font-weight: 500; }
ul.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
@media (max-width: 640px) { ul.cols { grid-template-columns: 1fr; } }

/* A feature with its clip beside it. */
.feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; margin-top: 28px; align-items: stretch; }
.feature.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.feature.flip .shot { order: 2; }
@media (max-width: 900px) { .feature, .feature.flip { grid-template-columns: 1fr; } .feature.flip .shot { order: 0; } }
.feature .shot { align-self: center; }

/* Inside a show: the four groups, like the sidebar. */
.map { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
@media (max-width: 760px) { .map { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.map a { display: block; background: var(--elev2); border: 1px solid var(--line); border-radius: 14px; padding: 16px; transition: border-color .2s; }
.map a:hover { border-color: var(--accent); }
.map strong { display: block; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.map span { display: block; margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--dim); }

/* Everywhere: small and centered, like the front page's three. */
.how { margin-top: 28px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .how { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .how { grid-template-columns: 1fr; } }
.how div { font-size: 14px; color: var(--dim); line-height: 1.45; border-top: 1px solid var(--line); padding-top: 14px; }
.how strong { display: block; color: var(--text); font-size: 15px; font-weight: 600; margin-bottom: 4px; }

/* ---- the strip under the hero ---- */
.strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-top: 64px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip span { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 500; color: var(--dim); }
.strip span::before { content: ''; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.jump { margin-top: 0; }

/* ---- one show, three apps ---- */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); align-items: center; margin-top: 28px; }
.flow .col { display: grid; gap: 16px; }
.flow .arrow { position: relative; height: 2px; margin: 0 10px; background: linear-gradient(90deg, rgba(var(--accent-rgb),.15), var(--accent)); }
.flow .arrow::after { content: ''; position: absolute; right: -1px; top: -5px; width: 10px; height: 10px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: rotate(45deg); }
@media (max-width: 800px) {
  .flow { grid-template-columns: 1fr; }
  .flow .arrow { height: 40px; width: 2px; margin: 8px auto; background: linear-gradient(180deg, rgba(var(--accent-rgb),.15), var(--accent)); }
  .flow .arrow::after { right: -5px; top: auto; bottom: -1px; transform: rotate(135deg); }
}
.node .head { margin-bottom: 4px; }
.node .head svg { border-radius: 10px; }
.node .name { font-size: 19px; }

/* ---- questions ---- */
.faq { margin-top: 20px; max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 20px 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; margin-left: auto; flex: none; width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--line2); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent2); }
.faq p { margin: -6px 0 20px; max-width: 680px; font-size: 16px; line-height: 1.55; color: var(--dim); }

/* ---- closing ---- */
.end { margin-top: 88px; text-align: center; padding: 48px 24px; border-radius: 22px; border: 1px solid var(--lead-line);
  background: linear-gradient(180deg, var(--lead-bg) 0%, var(--elev) 70%); }
.end h2 { margin: 0; }
.end .sub { margin-inline: auto; }
.end .acts { justify-content: center; }
.end .others { margin-top: 22px; font-size: 14px; color: var(--dim); }
.end .others a { color: var(--text); border-bottom: 1px solid var(--line2); }
.end .others a:hover { border-color: var(--accent); }

/* ---- the full overview (with sound) ---- */
#ovm { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.86); }
#ovm.on { display: flex; }
#ovm .box { width: 100%; max-width: 1100px; }
#ovm .bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 15px; font-weight: 600; }
#ovm .bar b { color: var(--gold); }
#ovm button.x { width: 40px; height: 40px; border-radius: 999px; border: 0; background: none; color: rgba(255,255,255,.8); font-size: 26px; line-height: 1; cursor: pointer; }
#ovm button.x:hover { background: rgba(255,255,255,.1); color: #fff; }
#ovm video { display: block; width: 100%; aspect-ratio: 8 / 5; background: #000; border-radius: 12px; }

footer { margin-top: 56px; text-align: center; font-size: 13px; color: var(--faint); }
footer a:hover { color: var(--dim); }
@media (max-width: 520px) { .intro { font-size: 17px; } .card { padding: 20px; } section.part { padding-top: 56px; } }
