/* AppForge landing page. Same brand family as theyplay.games, no framework, no external requests. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}

:root {
  --paper: #F2F0F7;
  --paper-2: #E8E4F3;
  --card: #FFFFFF;
  --ink: #1E1A2E;
  --soft: #5D5872;
  --line: #DCD8E6;
  --accent: #5B3FD1;
  --accent-ink: #FFFFFF;
  /* Hero band: the violet of the app icon, same in light and dark. */
  --forge: #4A2DC2;
  --forge-deep: #2E1A8A;
  --on-forge: #FFFFFF;
  --on-forge-soft: #DCD3FF;
  --spark: #FFC93D;
  --spark-ink: #1E1A2E;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 5vw, 48px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15131D;
    --paper-2: #1B1826;
    --card: #221E30;
    --ink: #EEEBF6;
    --soft: #ABA5BF;
    --line: #342F45;
    --accent: #B4A4FF;
    --accent-ink: #15131D;
    --forge: #3A22A6;
    --forge-deep: #22136A;
    color-scheme: dark;
  }
}

/* Language switch: only the active language is shown. */
html[lang="en"] [data-lang="de"], html[lang="de"] [data-lang="en"] { display: none !important; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--body);
  overflow-wrap: break-word;
}
a { color: inherit; }
img { display: block; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 10; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.hero-band :focus-visible, .closing :focus-visible { outline-color: var(--spark); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border-radius: 999px; font: 650 16px/1.2 var(--body); text-decoration: none; text-align: center;
  border: 2px solid transparent; transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn.spark { background: var(--spark); color: var(--spark-ink); }
.btn.spark:hover { background: #FFFFFF; }
.btn.ghost { border-color: rgba(255,255,255,.55); color: var(--on-forge); }
.btn.ghost:hover { border-color: var(--on-forge); background: rgba(255,255,255,.1); }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid:hover { background: var(--accent); color: var(--accent-ink); }

/* ---------- Hero band ---------- */
.hero-band { background: var(--forge); color: var(--on-forge); overflow: hidden; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 21px/1 var(--display); letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; }
.lang-toggle { display: inline-flex; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 3px; }
.lang-toggle button {
  font: 600 13px/1 var(--body); color: var(--on-forge-soft); background: none; border: 0;
  padding: 8px 12px; border-radius: 999px; cursor: pointer; min-width: 40px;
}
.lang-toggle button[aria-pressed="true"] { background: var(--on-forge); color: var(--forge-deep); }

.hero { padding: clamp(28px, 6vw, 72px) 0 clamp(48px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 {
  font-weight: 800; font-size: clamp(36px, 5vw, 62px); line-height: 1; letter-spacing: -0.035em;
  max-width: 16ch; text-wrap: balance;
}
.lede { font-size: clamp(17px, 1.9vw, 20px); color: var(--on-forge-soft); max-width: 34em; margin: 24px 0 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .fine { font-size: 14px; color: var(--on-forge-soft); margin: 16px 0 0; }

/* Illustration: idea -> build log -> phone. Stylized on purpose, not a screenshot. */
.forge { margin: 0; }
.forge-art {
  position: relative; display: grid; gap: 14px 18px;
  grid-template-columns: minmax(0, 1fr) 190px;
  grid-template-rows: 1fr auto auto 1.3fr;
  grid-template-areas: ". phone" "bubble phone" "log phone" ". phone";
  align-items: start; max-width: 500px; margin-left: auto;
}
.bubble {
  grid-area: bubble; margin: 0; padding: 14px 16px; background: var(--on-forge); color: #1E1A2E;
  border-radius: 20px 20px 20px 6px; font-size: 16px; line-height: 1.4; font-weight: 500;
  box-shadow: 0 10px 30px -12px rgba(20, 8, 70, .55);
}
.log { grid-area: log; list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.35; color: var(--on-forge); }
.log li { position: relative; padding: 7px 0 7px 30px; }
.log li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--spark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231E1A2E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.log li + li::after {
  content: ""; position: absolute; left: 9px; top: -6px; width: 2px; height: 12px; background: rgba(255,255,255,.35);
}

.phone {
  grid-area: phone; position: relative; aspect-ratio: 9 / 19; width: 100%;
  border: 6px solid var(--on-forge); border-radius: 34px; padding: 10px 8px;
  background: var(--forge-deep);
  box-shadow: 0 24px 50px -20px rgba(10, 4, 40, .7);
}
.phone::before { content: ""; position: absolute; top: 8px; left: 50%; width: 34%; height: 12px; margin-left: -17%; border-radius: 99px; background: var(--on-forge); }
.screen {
  height: 100%; border-radius: 22px; background: #F7F5FC; padding: 30px 12px 12px;
  display: flex; flex-direction: column; gap: 10px;
}
.screen i { display: block; }
.t-title { height: 14px; width: 62%; border-radius: 6px; background: #1E1A2E; margin-bottom: 6px; }
.t-row { display: flex !important; align-items: center; gap: 8px; padding: 9px; border-radius: 12px; background: #FFFFFF; box-shadow: 0 0 0 1px #E4E0EF; }
.t-row b { flex: none; width: 24px; height: 24px; border-radius: 50%; background: #5DBB7A; }
.t-row s { flex: 1; height: 8px; border-radius: 4px; background: #CFC9E0; }
.t-row.due b { background: #5B3FD1; }
.t-row.due s { background: #9C8BE6; }
.t-btn { margin-top: auto; height: 30px; border-radius: 999px; background: #5B3FD1; }

.sparkle { position: absolute; fill: var(--spark); }
.s1 { width: 54px; height: 54px; right: -14px; top: -22px; }
.s2 { width: 26px; height: 26px; right: 196px; bottom: 6px; }

/* One orchestrated load sequence: the idea arrives, the steps tick off, the app appears. */
@media (prefers-reduced-motion: no-preference) {
  .bubble { animation: rise .5s ease-out .2s both; }
  .log li { animation: rise .4s ease-out both; }
  .log li:nth-child(1) { animation-delay: .9s; }
  .log li:nth-child(2) { animation-delay: 1.4s; }
  .log li:nth-child(3) { animation-delay: 1.9s; }
  .log li:nth-child(4) { animation-delay: 2.4s; }
  .screen > i { animation: pop .35s ease-out both; }
  .screen > i:nth-child(1) { animation-delay: 1.5s; }
  .screen > i:nth-child(2) { animation-delay: 1.65s; }
  .screen > i:nth-child(3) { animation-delay: 1.8s; }
  .screen > i:nth-child(4) { animation-delay: 1.95s; }
  .screen > i:nth-child(5) { animation-delay: 2.1s; }
  .s1 { animation: twinkle .9s ease-out 2.8s both; }
  .s2 { animation: twinkle .9s ease-out 3s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes twinkle { 0% { opacity: 0; transform: scale(.3) rotate(-30deg); } 60% { opacity: 1; transform: scale(1.15) rotate(6deg); } 100% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ---------- Sections ---------- */
.block { padding: clamp(64px, 9vw, 120px) 0; }
.block.alt { background: var(--paper-2); }
.block h2 { font-weight: 800; font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -0.03em; }
.section-lede { font-size: 19px; color: var(--soft); max-width: 36em; margin: 16px 0 0; }

/* How it works: a real sequence, so it's numbered. */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(32px, 6vw, 88px); }
.split-head p { font-size: 19px; color: var(--soft); margin: 16px 0 0; max-width: 18em; }
@media (min-width: 861px) { .split-head { position: sticky; top: 32px; align-self: start; } }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps > li {
  counter-increment: step; position: relative;
  display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 20px;
  padding-bottom: 44px;
}
.steps > li > * { grid-column: 2; }
.steps > li::before {
  content: counter(step); grid-column: 1; grid-row: 1 / span 3;
  width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  font: 800 30px/1 var(--display);
}
.steps > li:not(:last-child)::after {
  content: ""; position: absolute; left: 31px; top: 72px; bottom: 8px; width: 2px; background: var(--line);
}
.steps h3 { font-weight: 700; font-size: clamp(24px, 2.6vw, 30px); padding-top: 14px; }
.steps p { color: var(--soft); margin: 10px 0 0; max-width: 34em; }

.loop { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.loop li {
  font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  background: var(--card); box-shadow: 0 0 0 1px var(--line);
}
.loop .again { display: inline-flex; align-items: center; gap: 6px; background: none; box-shadow: none; color: var(--accent); padding-left: 4px; }
.loop svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.soon-wrap { margin-top: clamp(24px, 4vw, 48px); }
.soon-title { font-weight: 700; font-size: 22px; }
.soon { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.soon li { border: 2px dashed var(--line); border-radius: 20px; padding: 22px 24px; }
.soon h4 { font-size: 20px; font-weight: 700; }
.soon p { color: var(--soft); margin: 8px 0 0; }
.soon a { color: var(--accent); font-weight: 600; }

/* What you need: what you bring vs. what AppForge does */
.need { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: 36px; }
.need h3 { font-size: 22px; font-weight: 700; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 17px; width: 20px; height: 20px; border-radius: 6px;
  border: 2px solid var(--soft);
}
.forge-checks li::before {
  border: 0; border-radius: 50%; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 0c2 11 9 18 20 20-11 2-18 9-20 20-2-11-9-18-20-20C11 18 18 11 20 0z'/%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 40 40'%3E%3Cpath d='M20 0c2 11 9 18 20 20-11 2-18 9-20 20-2-11-9-18-20-20C11 18 18 11 20 0z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Pricing */
.price { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 0; margin-top: 36px; border-radius: 28px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.price-main { background: var(--forge); color: var(--on-forge); padding: clamp(24px, 4vw, 44px); }
.price-main h3 { font-size: 22px; font-weight: 700; }
.price-main .amount { font: 800 clamp(34px, 4vw, 46px)/1.05 var(--display); letter-spacing: -0.03em; margin: 14px 0 0; }
.price-main p { color: var(--on-forge-soft); margin: 12px 0 0; }
.price-main .btn { margin-top: 24px; background: var(--spark); color: var(--spark-ink); }
.price-main .btn:hover { background: #FFFFFF; }
.price-main :focus-visible { outline-color: var(--spark); }
.price-side { background: var(--card); padding: clamp(24px, 4vw, 44px); }
.price-side h3 { font-size: 22px; font-weight: 700; }
.price-side p { color: var(--soft); margin: 12px 0 0; }
.price-side .note { color: var(--ink); background: var(--paper); border-radius: 14px; padding: 14px 16px; margin-top: 20px; font-size: 15px; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 6vw, 88px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 20px 44px 20px 0; font: 700 clamp(19px, 2vw, 22px)/1.25 var(--display); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.faq details p { color: var(--soft); margin: 0 0 22px; max-width: 36em; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* Closing call */
.closing { background: var(--forge); color: var(--on-forge); padding: clamp(64px, 9vw, 112px) 0; text-align: center; }
.closing h2 { font-weight: 800; font-size: clamp(32px, 5vw, 60px); letter-spacing: -0.035em; max-width: 16ch; margin: 0 auto 32px; text-wrap: balance; }
.closing .fine { font-size: 14px; color: var(--on-forge-soft); margin: 16px 0 0; }

/* Footer */
footer { padding: 32px 0 44px; font-size: 14px; color: var(--soft); }
.foot { display: grid; grid-template-columns: 1fr auto; gap: 12px 24px; align-items: start; }
.foot p { margin: 0; }
.foot a { color: var(--ink); }
.foot nav { display: flex; gap: 20px; }
.foot .tm { grid-column: 1 / -1; font-size: 13px; max-width: 60em; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .forge-art { margin: 8px 0 0; }
  .split, .faq-wrap { grid-template-columns: minmax(0, 1fr); }
  .split-head p { max-width: 34em; }
  .price { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .soon, .need { grid-template-columns: minmax(0, 1fr); }
  .forge-art { grid-template-columns: minmax(0, 1fr) 128px; gap: 12px; }
  .phone { border-width: 5px; border-radius: 26px; padding: 8px 6px; }
  .screen { border-radius: 17px; padding: 22px 8px 8px; gap: 7px; }
  .t-row { padding: 6px; gap: 6px; border-radius: 9px; }
  .t-row b { width: 16px; height: 16px; }
  .t-btn { height: 22px; }
  .bubble { font-size: 15px; }
  .log { font-size: 13px; }
  .s1 { width: 40px; height: 40px; right: -8px; top: -16px; }
  .s2 { right: 134px; }
  .steps > li { grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; }
  .steps > li::before { width: 48px; height: 48px; border-radius: 16px; font-size: 24px; }
  .steps > li:not(:last-child)::after { left: 23px; top: 56px; }
  .steps h3 { padding-top: 9px; }
  .foot { grid-template-columns: minmax(0, 1fr); }
  .cta-row .btn { flex: 1 1 auto; }
}
