/* hop-app.eu — the "Nić" look of the app: light, airy, HOP blue for the mesh, green for the internet, red for SOS. */
@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/BricolageGrotesque.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url("/assets/fonts/MartianMono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #F7F9FC; --bg2: #EEF3FA; --surface: #FFFFFF; --line: #E2E8F1;
  --ink: #0E1A33; --ink2: #4B5872; --ink3: #7C879C;
  --blue: #1F6BFF; --cyan: #19B4EE; --green: #0E9F6E; --red: #D92D20; --red-soft: #FDECEA;
  --shadow: 0 30px 80px -30px rgba(31, 107, 255, .35);
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0B1220; --bg2: #101A2E; --surface: #131E33; --line: #22304A; --ink: #E9EEF7; --ink2: #A7B3C9; --ink3: #7D89A0;
    --blue: #5E95FF; --cyan: #3CC5F5; --green: #34C994; --red: #FF6B5E; --red-soft: #3A1E1D; --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7); color-scheme: dark; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--body); }
img, video { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible, .btn:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(1160px, 100%); margin: 0 auto; padding-inline: 20px; }
.narrow { width: min(780px, 100%); }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.4) blur(14px); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.top-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand img { height: 32px; width: auto; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { .logo-light { display: none; } .logo-dark { display: block; } }
.nav { display: flex; gap: 22px; margin-left: 12px; }
.nav a { color: var(--ink2); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--ink); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; font: 600 13px/1 var(--mono); color: var(--ink2); padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; display: flex; gap: 6px; align-items: center; }
.lang summary::-webkit-details-marker { display: none; }
.globe { width: 14px; height: 14px; border: 1.6px solid currentColor; border-radius: 50%; position: relative; }
.globe::after { content: ""; position: absolute; inset: -1.6px 3px; border: 1.6px solid currentColor; border-radius: 50%; }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); min-width: 170px; }
.lang li a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.lang li a:hover, .lang li a[aria-current] { background: var(--bg2); }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--blue); color: #fff; text-decoration: none; font-weight: 700; padding: 13px 22px; border-radius: 999px; }
.btn.small { padding: 9px 16px; font-size: 14px; }
@media (max-width: 900px) { .nav { display: none; } }

/* hero */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 100px); }
.mesh-bg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.kicker { font: 600 12.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin: 0 0 18px; }
.kicker.red { color: var(--red); }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.2vw, 74px); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 800; letter-spacing: -.015em; margin-bottom: 14px; }
h3 { font-size: 21px; font-weight: 700; margin-bottom: 6px; }
.lead { font-size: clamp(17px, 1.7vw, 20px); color: var(--ink2); max-width: 60ch; margin: 18px 0 0; }
.center .lead, .lead.center { margin-inline: auto; }
.free { font: 500 12.5px/1.4 var(--mono); color: var(--ink3); margin-top: 16px; }
.stores { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.stores.center { justify-content: center; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 11px 20px 11px 16px; border-radius: 16px; background: var(--ink); color: var(--bg); text-decoration: none; font: 700 17px/1.1 var(--display); min-width: 190px; }
.store small { display: block; font: 600 10.5px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.store.is-soon { cursor: default; opacity: .92; }
.store-icon { width: 26px; height: 26px; flex: none; background: currentColor; -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat; }
.store.apple .store-icon { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.4 12.6c0-2.6 2.1-3.8 2.2-3.9-1.2-1.8-3.1-2-3.7-2-1.6-.2-3.1.9-3.9.9-.8 0-2-.9-3.4-.9-1.7 0-3.3 1-4.2 2.6-1.8 3.1-.5 7.7 1.3 10.2.9 1.2 1.9 2.6 3.2 2.6 1.3-.1 1.8-.8 3.4-.8s2 .8 3.4.8 2.3-1.3 3.1-2.5c1-1.4 1.4-2.8 1.4-2.9 0 0-2.8-1.1-2.8-4.1zM13.9 4.9c.7-.9 1.2-2 1.1-3.2-1 0-2.3.7-3 1.6-.7.8-1.2 2-1.1 3.1 1.1.1 2.3-.6 3-1.5z'/%3E%3C/svg%3E"); }
.store.google .store-icon { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3.6 2.2c-.3.3-.4.7-.4 1.2v17.2c0 .5.1.9.4 1.2l9.7-9.8-9.7-9.8zm10.8 10.9 2.8 2.8-11.9 6.8 9.1-9.6zm3.9-4.1 3 1.7c.9.5.9 1.3 0 1.8l-3 1.7-3-3 3-2.2zM5.3 1.3l11.9 6.8-2.8 2.8-9.1-9.6z'/%3E%3C/svg%3E"); }

/* phone mockup */
.hero-phone { display: flex; justify-content: center; }
.phone { position: relative; width: min(330px, 78vw); aspect-ratio: 1320 / 2868; border-radius: 46px; padding: 10px; background: linear-gradient(145deg, #1B2640, #0B1220); box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(255,255,255,.08); }
.phone-screen { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 37px; background: var(--bg); }
.phone.small { width: min(290px, 70vw); }
.feature-video { width: 100%; border-radius: 28px; box-shadow: var(--shadow); }

/* sections */
.band { padding: clamp(64px, 9vw, 120px) 0; }
.band.alt { background: var(--bg2); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.media { display: flex; justify-content: center; }
.steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 22px; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 4px 16px; }
.step-n { grid-row: span 2; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font: 700 16px var(--mono); color: #fff; background: linear-gradient(135deg, var(--blue), var(--cyan)); }
.step p, .card p, .ticks p { margin: 0; color: var(--ink2); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.cards.two { grid-template-columns: 1fr 1fr; margin-top: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.card.flat { padding: 22px; }
.ic { display: block; width: 46px; height: 46px; border-radius: 14px; margin-bottom: 16px; background: color-mix(in srgb, var(--blue) 12%, transparent); position: relative; }
.ic::after { content: ""; position: absolute; inset: 11px; background: var(--blue); -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat; }
.ic-concert { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M9 18V5l12-2v13'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Ccircle cx='18' cy='16' r='3'/%3E%3C/svg%3E"); }
.ic-stadium { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cellipse cx='12' cy='12' rx='10' ry='6'/%3E%3Cellipse cx='12' cy='12' rx='4' ry='2'/%3E%3C/svg%3E"); }
.ic-plane { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 16v-2l-8-5V3.5a1.5 1.5 0 0 0-3 0V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5z'/%3E%3C/svg%3E"); }
.ic-mountain { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 20 9 7l4 7 2-3 7 9z'/%3E%3C/svg%3E"); }
.ic-storm { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E"); }
.ic-camp { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 2 21h20zM12 11l-4 10h8z' fill-rule='evenodd'/%3E%3C/svg%3E"); }
.sos { background: linear-gradient(180deg, var(--bg), var(--red-soft) 140%); }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px color-mix(in srgb, var(--red) 18%, transparent); }
.langs h2 { margin-bottom: 0; }
.faq { margin-top: 34px; display: grid; gap: 10px; }
.qa { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; }
.qa summary { cursor: pointer; list-style: none; font: 700 18px/1.35 var(--display); padding: 16px 32px 16px 0; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 12px; height: 12px; border-right: 2.4px solid var(--ink3); border-bottom: 2.4px solid var(--ink3); translate: 0 -70%; rotate: 45deg; transition: rotate .25s; }
.qa[open] summary::after { rotate: 225deg; translate: 0 -30%; }
.qa p { margin: 0 0 18px; color: var(--ink2); }
.cta { text-align: center; }
.cta-icon { margin: 0 auto 26px; border-radius: 22px; box-shadow: var(--shadow); }

.ad h2 { margin-bottom: 28px; }
.ad-frame { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); background: #0B1220; aspect-ratio: 16 / 9; }
.ad-frame video { width: 100%; height: 100%; display: block; }

/* legal pages */
.doc { padding: 40px 20px 80px; }
.doc h1 { font-size: clamp(34px, 5vw, 52px); margin: 10px 0 18px; }
.doc h2 { font-size: 24px; margin: 38px 0 10px; }
.doc h3 { font-size: 18px; margin: 22px 0 6px; }
.doc p, .doc li { color: var(--ink2); }
.doc li { margin: 6px 0; }
.crumbs a { text-decoration: none; font: 600 13px var(--mono); }
.muted { color: var(--ink3); font-size: 14.5px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.contact-grid > div { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.contact-grid h3 { margin-top: 0; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--ink3); font-size: 14px; }
.foot-top { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 18px; }
.foot-mark { width: 48px; height: auto; }
.foot nav a { color: var(--ink2); font-weight: 600; text-decoration: none; }
.company, .rights { margin: 6px 0; max-width: 90ch; }

/* motion: content is visible without JS; with JS it rises in as it scrolls into view */
.js .reveal { opacity: 0; translate: 0 26px; transition: opacity .7s ease, translate .8s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .js .reveal { opacity: 1; translate: none; transition: none; } }

@media (max-width: 900px) {
  .hero-in, .split { grid-template-columns: 1fr; gap: 44px; }
  .split.reverse > :first-child { order: 0; }
  .cards { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .cards, .cards.two { grid-template-columns: 1fr; }
  .store { min-width: 0; flex: 1 1 160px; }
  .btn.small { display: none; }
}

/* ---------- scroll story: one dot travels through the scenes (story.js) ---------- */
.story { position: relative; }
.story-bg { position: sticky; top: 0; display: block; width: 100%; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh; z-index: 0; background: #F4F9FF; }
.story-hint { position: absolute; top: 30vh; left: 0; right: 0; z-index: 2; margin: 0; text-align: center; font: 500 12.5px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #6B7A93; }
.chapter { position: relative; z-index: 1; height: 250vh; }
.pin { position: sticky; top: 0; height: 100vh; height: 100svh; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 440px) 1fr minmax(0, 290px); align-items: center; gap: 24px;
  padding: 90px max(20px, calc((100vw - 1240px) / 2)) 40px; pointer-events: none; }
.panel { grid-column: 1; pointer-events: auto; padding: 30px 32px; border-radius: 28px; color: var(--ink);
  background: rgba(255, 255, 255, .62); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 30px 60px -40px rgba(14, 26, 51, .4); will-change: opacity, transform; }
.panel h2 { font-size: clamp(30px, 3.3vw, 46px); margin-bottom: 14px; }
.panel .lead { margin: 0; font-size: 18px; }
.panel .ticks { margin-top: 18px; gap: 14px; }
.panel .ticks h3 { font-size: 18px; margin-bottom: 2px; }
.panel .ticks p { font-size: 15px; }
.ph { grid-column: 3; justify-self: end; margin: 0; will-change: opacity, transform; }
.js .panel, .js .ph { opacity: 0; } /* story.js fades them in; without JS they simply show */
.ph .phone.small { width: min(270px, 21vw); }
.chapter[data-tone="dark"] .panel { color: #EEF2FA; background: rgba(10, 14, 30, .5); border-color: rgba(255, 255, 255, .12); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.chapter[data-tone="dark"] .panel .lead, .chapter[data-tone="dark"] .ticks p { color: #B9C4DA; }
.chapter[data-tone="dark"] .kicker { color: #7FD8FF; }
.chapter[data-scene="sos"] .kicker { color: #FF8A80; }
.chapter[data-scene="privacy"] .ticks li::before { background: var(--blue); box-shadow: 0 0 0 5px color-mix(in srgb, var(--blue) 18%, transparent); }
.chapter[data-scene="internet"] .kicker { color: #4FE0AA; }
.net-toggle { margin-top: 22px; display: inline-flex; align-items: center; gap: 16px; padding: 9px 10px 9px 22px; border-radius: 999px; cursor: pointer;
  border: 2px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); color: #EEF2FA; font: 700 19px/1 var(--display); transition: border-color .3s, color .3s, background .3s; }
.net-toggle i { position: relative; width: 56px; height: 32px; border-radius: 999px; background: rgba(255, 255, 255, .2); transition: background .3s; }
.net-toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); transition: transform .35s cubic-bezier(.3, 1.3, .5, 1); }
.net-toggle[aria-checked="true"] { border-color: #34C994; color: #4FE0AA; background: rgba(52, 201, 148, .1); }
.net-toggle[aria-checked="true"] i { background: #0E9F6E; }
.net-toggle[aria-checked="true"] i::after { transform: translateX(24px); }
.flip { margin: 10px 0 0; font: 500 12px/1.4 var(--mono); color: #8FA1BF; }
.story-dot { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 30; pointer-events: none; }
.foot-logo { position: relative; display: block; flex: none; }
.foot-logo img { width: 180px; height: auto; }
.foot-logo .landing { position: absolute; left: 71.9%; top: 21.8%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(25, 180, 238, .6), rgba(25, 180, 238, 0) 70%); opacity: 0; transform: scale(.3); transition: opacity .6s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.foot-logo.landed .landing { opacity: 1; transform: scale(1.5); }
@media (max-width: 900px) {
  .chapter { height: 230vh; }
  .pin { grid-template-columns: 1fr; align-content: end; padding: 80px 16px 24px; }
  .panel { padding: 22px; border-radius: 22px; }
  .panel h2 { font-size: 28px; }
  .panel .lead { font-size: 16px; }
  .panel .ticks p { display: none; }
  .ph { display: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .panel { background: #FFFFFF; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .chapter[data-tone="dark"] .panel { background: #0E1426; }
}

/* reviewer page: the HOP Test contact code */
.codebox { word-break: break-all; font: 13px/1.5 var(--mono); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
