/* Hiccup Hop website. One light, candy-pastel look that matches the game.
   Layout: sticky header, hero (copy + phone video), how-to steps, feature grid,
   screenshot strip, FAQ, footer. Content pages (support, press, legal, 404)
   use .page; the legal pages keep their own dark mode (body.doc). */

/* Fonts: self-hosted Latin woff2, licence in fonts/OFL.txt. No requests to
   other origins. Arabic text falls back to the system font. */
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/fredoka-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/fredoka-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/fredoka-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/nunito-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/nunito-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/nunito-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/nunito-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #f6f2ff;
  --bg2: #e9e0ff;
  --surface: #ffffff;
  --fg: #231a3d;
  --muted: #5f5585;
  --line: #e3dbf8;
  --accent: #ff2a6d;
  --grape: #6a2cff;
  --mint: #c8f1e2;
  --sun: #ffb11a;
  --danger: #c8243b;
  --ok: #0b7a4b;
  --display: "Fredoka", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img, video, svg { max-width: 100%; display: block; }
a { color: var(--grape); }
a:focus-visible, summary:focus-visible, button:focus-visible, .btn:focus-visible, .store:focus-visible { outline: 3px solid var(--grape); outline-offset: 3px; border-radius: 12px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.4rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.eyebrow { font-family: var(--display); font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--grape); margin-bottom: 10px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; padding: 10px 16px; border-radius: 12px; background: var(--fg); color: #fff; font-weight: 700; }
.skip:focus { top: 12px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(246, 242, 255, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); font-family: var(--display); font-weight: 700; font-size: 1.25rem; }
.brand img { border-radius: 10px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--fg); text-decoration: none; font-weight: 700; }
.nav a:hover { color: var(--grape); }
/* Dark text on the pink and red buttons: white on #ff2a6d is only 3.4:1. */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--accent); color: var(--fg); text-decoration: none; font-family: var(--display); font-size: 1.05rem; font-weight: 600; box-shadow: 0 4px 0 #c4114c; cursor: pointer; }
.btn--small { min-height: 44px; padding: 0 18px; }
.btn--danger { background: var(--danger); color: #fff; box-shadow: 0 4px 0 #8e1527; }
.btn[disabled] { opacity: .6; cursor: progress; }
@media (max-width: 760px) { .nav { display: none; } .top .btn { margin-left: auto; } }

/* hero */
.hero { background: radial-gradient(90% 70% at 85% 30%, #ffd7e7 0%, transparent 60%), radial-gradient(70% 60% at 10% 0%, #ddd0ff 0%, transparent 60%); padding-block: 56px 72px; overflow: hidden; }
.hero__in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero__in { grid-template-columns: 1fr; } }
.hero__copy { display: grid; gap: 22px; min-width: 0; }
.lede { font-size: 1.2rem; max-width: 34em; color: #3d3360; }
.lede em { font-style: normal; font-family: var(--display); font-weight: 600; color: #c4114c; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 18px 8px 14px; border-radius: 14px; background: #120c24; color: #fff; text-decoration: none; }
.store svg { width: 26px; height: 26px; fill: currentColor; }
.store span { display: grid; line-height: 1.15; font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.store small { font-family: var(--body); font-weight: 600; font-size: .75rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.chips li { padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: .92rem; }
.hero__phone { display: grid; justify-items: center; gap: 18px; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.phone { position: relative; margin: 0; width: min(300px, 78vw); aspect-ratio: 9 / 19.5; border-radius: 44px; padding: 10px; background: #18122c; box-shadow: 0 0 0 2px #3d3460, 0 40px 80px -30px rgba(80, 30, 160, .6); transform: rotate(3deg); }
.phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 34px; background: #b8a8f5; }
@media (prefers-reduced-motion: reduce) { .phone { transform: none; } }
.vidbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid #c9bfee; border-radius: 999px; background: var(--surface); color: var(--fg); font: 700 .95rem var(--body); cursor: pointer; }
.vidbtn svg { width: 18px; height: 18px; fill: currentColor; }
.vidbtn [hidden], .vidbtn[hidden] { display: none; }

/* how */
.how { padding-block: 80px; }
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 18px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 20px; display: grid; gap: 10px; align-content: start; }
.steps svg { width: 100%; max-width: 260px; height: auto; background: #efe9ff; border-radius: 16px; padding: 6px; }
.steps p { color: var(--muted); }
.goal { margin-top: 22px; max-width: 46em; font-weight: 700; }

/* features */
.features { padding-block: 80px; background: var(--bg2); }
.grid { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.grid article { background: var(--surface); border-radius: 24px; padding: 22px; display: grid; gap: 8px; align-content: start; }
.grid b { font-family: var(--display); font-size: 2rem; line-height: 1; color: #c4114c; }
.grid p { color: var(--muted); }

/* screenshots */
.shots { padding-block: 64px; overflow: hidden; }
.shots__track { display: flex; gap: 18px; overflow-x: auto; padding: 8px max(20px, calc((100vw - 1120px) / 2 + 20px)) 18px; scroll-snap-type: x mandatory; }
.shots__track img { flex: 0 0 auto; width: 230px; height: auto; border-radius: 22px; scroll-snap-align: center; box-shadow: 0 18px 40px -24px rgba(70, 30, 160, .55); }

/* faq */
.faq { padding-block: 80px; }
.faq__in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; }
@media (max-width: 860px) { .faq__in { grid-template-columns: 1fr; } }
.faq__in > div:first-child { display: grid; gap: 12px; align-content: start; }
.qs { display: grid; gap: 10px; }
.qs details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 4px 20px; }
.qs summary { cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 1.1rem; padding: 14px 0; list-style-position: outside; }
.qs p { padding-bottom: 16px; color: #3d3360; }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }

/* footer */
.foot { border-top: 1px solid var(--line); padding-block: 36px; background: var(--surface); }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot nav a { display: inline-block; padding-block: 6px; color: var(--fg); font-weight: 700; text-decoration: none; }
.foot nav a:hover { color: var(--grape); }
.foot .muted { margin-left: auto; font-size: .9rem; }

/* content pages (support, press, delete account, 404) */
.page { padding-block: 64px 96px; }
.page .wrap { max-width: 760px; display: grid; gap: 18px; }
.page h1 { font-size: clamp(2.2rem, 5.4vw, 3.4rem); }
.page h2 { font-size: 1.45rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: grid; gap: 10px; }
.card ol, .card ul { margin: 0; padding-inline-start: 1.3em; display: grid; gap: 4px; }
.card--danger { border-color: #f1b8c2; }

/* forms */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label, .check label { font-weight: 700; }
.input { width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid #8d84ad; border-radius: 14px; background: #fff; color: var(--fg); font: 400 1.05rem/1.4 var(--body); }
textarea.input { min-height: 140px; resize: vertical; }
.input:focus { outline: 3px solid var(--grape); outline-offset: 1px; border-color: var(--grape); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.input--code { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.help { color: var(--muted); font-size: .92rem; }
.err { color: var(--danger); font-weight: 700; font-size: .95rem; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { width: 24px; height: 24px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--danger); }
.status { font-weight: 700; min-height: 1.6em; }
.status.is-ok { color: var(--ok); }
.status.is-err { color: var(--danger); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* press page */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 10px; } }
.downloads { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
.downloads a { display: grid; gap: 8px; color: var(--fg); text-decoration: none; font-weight: 700; }
.downloads img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; padding: 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); }
.downloads small { color: var(--muted); font-weight: 600; }

/* legal pages: their inline styles set --bg/--fg; these keep the shared header
   and footer readable in their dark mode */
:root:has(> body.doc) { color-scheme: light dark; }
@media (prefers-color-scheme: dark) {
  body.doc { --bg: #17142a; --fg: #ece8f8; --surface: #221e3a; --line: #38325a; --muted: #b8b2d3; --grape: #b9a5ff; color-scheme: dark; }
  body.doc .top { background: rgba(23, 20, 42, .92); }
  body.doc .card--danger { border-color: #7a3343; }
  body.doc .input { background: #17142a; color: var(--fg); border-color: #8d84ad; }
  body.doc .err, body.doc .status.is-err { color: #ff8fa3; }
  body.doc .status.is-ok { color: #7be0b0; }
  body.doc .skip { background: #ece8f8; color: #17142a; }
}
