/* Hopla site styles: shared by all pages. Mobile-first, no frameworks. */
:root {
  --bg: #F4F8F8; --surface: #FFFFFF; --surface-2: #E9F4F4;
  --fg: #1B2F3A; --muted: #5C7480; --line: #DCE8E8;
  --lagoon: #22B8C4; --lagoon-ink: #0B7680; --coral: #FF7A59; --on-coral: #1B2F3A;
  --shadow: 0 1px 2px rgba(27,47,58,.06), 0 8px 24px rgba(27,47,58,.08);
  --radius: 20px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1E26; --surface: #152A34; --surface-2: #1A3440;
    --fg: #EAF4F4; --muted: #A3BAC2; --line: #27404A;
    --lagoon: #3CCFD0; --lagoon-ink: #6FE3DA;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lagoon-ink); text-underline-offset: 3px; }
h1, h2, h3, .display { font-family: "Fredoka", "Nunito", system-ui, sans-serif; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 8vw, 4rem); margin: 0 0 16px; }
h2 { font-size: clamp(1.7rem, 5vw, 2.4rem); margin: 0 0 12px; }
h3 { font-size: 1.2rem; margin: 0 0 6px; }
p { margin: 0 0 12px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--lagoon); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); color: var(--fg); padding: 8px 14px; border-radius: 999px; z-index: 50; }
.skip:focus { left: 16px; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .container { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.6rem; color: var(--lagoon); text-decoration: none; line-height: 1; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand .o { color: var(--coral); }
.site-nav { display: none; gap: 22px; margin-left: auto; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: .95rem; }
.site-nav a:hover { color: var(--fg); }
.lang { display: inline-flex; margin-left: auto; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.lang button { font: inherit; font-size: .8rem; font-weight: 700; padding: 5px 11px; min-height: 32px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
@media (min-width: 820px) { .site-nav { display: flex; } .site-nav + .lang { margin-left: 0; } }

/* Buttons and store badges */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.btn-primary { background: var(--coral); color: var(--on-coral); box-shadow: 0 6px 18px rgba(255,122,89,.35); }
.btn-primary:hover { filter: brightness(1.04); }
.btn-ghost { background: transparent; color: var(--fg); border: 1.5px solid var(--line); }
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 9px 20px 9px 16px; border-radius: 16px; background: #1B2F3A; color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.12); position: relative; }
@media (prefers-color-scheme: dark) { .store { background: #000; border-color: #3a5560; } }
.store svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.store small { display: block; font-size: .72rem; line-height: 1.1; opacity: .85; font-weight: 700; letter-spacing: .02em; }
.store b { display: block; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.15rem; line-height: 1.2; }
.store .soon { position: absolute; top: -9px; right: -6px; background: var(--coral); color: var(--on-coral); font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
a.store:hover { transform: translateY(-1px); }
.note { color: var(--muted); font-size: .92rem; }

/* Hero */
.hero { position: relative; padding: 32px 0 56px; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 620px; height: 620px; right: -260px; top: -180px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--lagoon) 26%, transparent), transparent); pointer-events: none; }
.hero .container { position: relative; display: grid; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--lagoon-ink); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.hero h1 .accent { color: var(--coral); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.route { font-weight: 700; color: var(--fg); }
.hero-visual { position: relative; display: flex; justify-content: center; }
@media (min-width: 900px) {
  .hero { padding: 56px 0 88px; }
  .hero .container { grid-template-columns: 1.1fr .9fr; }
}

/* CSS phone mockup */
.phone { position: relative; width: min(290px, 74vw); aspect-ratio: 1320 / 2868; padding: 11px; border-radius: 48px; background: #13232B; box-shadow: 0 0 0 2px #2c434d inset, 0 30px 60px -20px rgba(27,47,58,.45), 0 12px 24px -12px rgba(27,47,58,.3); }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; background: #e8efef; }
.phone::before { content: ""; position: absolute; top: 21px; left: 50%; transform: translateX(-50%); width: 30%; height: 22px; border-radius: 999px; background: #000; z-index: 1; }
.phone::after { content: ""; position: absolute; right: -3px; top: 22%; width: 3px; height: 12%; border-radius: 0 3px 3px 0; background: #2c434d; }
.phone.sm { width: 220px; padding: 8px; border-radius: 38px; }
.phone.sm img { border-radius: 30px; }
.phone.sm::before { top: 15px; height: 17px; }
.float-card { position: absolute; display: flex; align-items: center; gap: 10px; background: var(--surface); color: var(--fg); border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow); font-weight: 700; font-size: .9rem; z-index: 2; }
.float-card .dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--coral); color: var(--on-coral); flex: none; }
.float-card .dot svg { width: 16px; height: 16px; }
.float-card.one { left: max(0px, calc(50% - 210px)); top: 18%; }
.float-card.two { right: max(0px, calc(50% - 200px)); bottom: 14%; }
.float-card.two .dot { background: var(--lagoon); color: #fff; }
.float-card span small { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; }
@media (max-width: 380px) { .float-card { font-size: .8rem; padding: 8px 10px; } }

/* Sections */
section.band { padding: 64px 0; }
.section-head { max-width: 640px; margin: 0 auto 36px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.alt { background: var(--surface-2); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.steps li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px 22px 84px; box-shadow: var(--shadow); }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 22px; top: 22px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--lagoon); color: #fff; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.3rem; }
.steps li:last-child::before { background: var(--coral); color: var(--on-coral); }
.steps p { color: var(--muted); margin: 0; }
@media (min-width: 820px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
  .steps::before { content: ""; position: absolute; left: 12%; right: 12%; top: 46px; border-top: 4px dotted color-mix(in srgb, var(--lagoon) 60%, transparent); z-index: 0; }
  .steps li { padding: 84px 24px 26px; text-align: center; z-index: 1; }
  .steps li::before { left: 50%; transform: translateX(-50%); top: 24px; }
}

/* Features */
.features { display: grid; gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature p { color: var(--muted); margin: 0; }
.icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; background: color-mix(in srgb, var(--lagoon) 16%, transparent); color: var(--lagoon-ink); }
.icon.coral { background: color-mix(in srgb, var(--coral) 18%, transparent); color: #D9532F; }
@media (prefers-color-scheme: dark) { .icon.coral { color: var(--coral); } }
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* Screenshot strip */
.shots { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 20px 24px; margin: 0 -20px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.shots figure { margin: 0; flex: none; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.shots figcaption { font-weight: 700; font-size: .95rem; color: var(--muted); text-align: center; }
@media (min-width: 1160px) {
  .shots { overflow: visible; justify-content: space-between; margin: 0; padding: 8px 0 0; }
  .shots .phone.sm { width: 200px; }
  .shots figure:nth-child(even) { transform: translateY(28px); }
}

/* World section */
.world { position: relative; overflow: hidden; border-radius: 28px; padding: 40px 24px; background: linear-gradient(135deg, #0E8590, #136B9C); color: #fff; }
.world h2 { color: #fff; max-width: 16em; }
.world p { color: #fff; max-width: 36em; font-size: 1.08rem; }
.world svg.trail { position: absolute; right: -40px; bottom: -20px; width: 420px; max-width: 80%; opacity: .35; pointer-events: none; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 22px 0 0; padding: 0; position: relative; }
.chips li { background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: .92rem; }
.world .text { position: relative; }
.world .pin { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(255,255,255,.6); margin-right: 8px; vertical-align: middle; }
@media (min-width: 820px) { .world { padding: 64px 56px; } }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; position: relative; font-weight: 700; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-family: "Fredoka", sans-serif; font-size: 1.6rem; color: var(--coral); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* CTA */
.cta { text-align: center; }
.cta .badges { justify-content: center; }
.cta img.app-icon { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 18px; box-shadow: var(--shadow); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: .95rem; }
.site-footer .container { display: grid; gap: 18px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.site-footer a { color: var(--muted); font-weight: 700; text-decoration: none; }
.site-footer a:hover { color: var(--fg); text-decoration: underline; }
.site-footer .brand { font-size: 1.35rem; }
@media (min-width: 820px) { .site-footer .container { grid-template-columns: auto 1fr auto; align-items: center; } .site-footer nav { justify-content: center; } }

/* Legal / document pages */
.doc { max-width: 760px; margin: 0 auto; padding: 40px 20px 72px; }
.doc h1 { font-size: clamp(2rem, 6vw, 2.6rem); }
.doc h2 { font-size: 1.35rem; margin: 36px 0 8px; }
.doc h3 { font-size: 1.1rem; margin: 24px 0 4px; }
.doc p, .doc li { max-width: 68ch; }
.doc li { margin-bottom: 6px; }
.meta { color: var(--muted); font-size: .92rem; }
.table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; min-width: 520px; }
td, th { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; }
code { font-family: ui-monospace, monospace; font-size: .9em; }
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--lagoon); border-radius: 14px; padding: 16px 18px; margin: 18px 0; }
.steps-inline { counter-reset: s; list-style: none; padding: 0; }
.steps-inline li { counter-increment: s; position: relative; padding-left: 40px; margin-bottom: 12px; }
.steps-inline li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--lagoon); color: #fff; font-weight: 700; font-size: .9rem; }
.kbd { display: inline-block; padding: 1px 8px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; font-size: .92em; }

/* Share-link fallback page */
.fallback { min-height: calc(100vh - 64px - 140px); display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.fallback .card { max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 36px 24px; box-shadow: var(--shadow); }
.fallback img.app-icon { width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 18px; }
.fallback h1 { font-size: 2rem; }
.fallback .badges { justify-content: center; }
