/* Easy Click VPN — site styles. Tokens follow the app (Lighthouse/Scenes/Onboarding/Module/Theme.swift). */

@font-face { font-family: "Instrument Serif"; src: url("fonts/InstrumentSerif-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/InstrumentSerif-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/HankenGrotesk-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/HankenGrotesk-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/HankenGrotesk-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --fog: #E3E9EB;
  --sky-top: #D8E1E7;
  --sky-mid: #CAD3DB;
  --water: #9BADBC;
  --ink: #1C2A31;
  --body: #475A63;
  --muted: #6E8089;
  --harbour: #1F5F7A;
  --beam: #2E86A8;
  --lamp: #FFC882;
  --night: #0D1E38;
  --night-deep: #08101A;
  --night-ink: #E8EEF1;
  --night-body: #B4C2C9;
  --night-accent: #7DB4CA;

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --slow: 2.6s;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fog);
  color: var(--body);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: var(--harbour); text-underline-offset: 3px; }
a:hover { color: var(--beam); }
:focus-visible { outline: 2px solid var(--beam); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- top bar ---------- */
.bar {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font: 600 17px/1 var(--sans); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.bar nav { display: flex; gap: 26px; }
.bar nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.bar nav a:hover { color: var(--harbour); }
.bar.on-night .brand, .bar.on-night nav a { color: var(--night-ink); }

/* ---------- hero: the lighthouse ---------- */
.hero {
  --h: clamp(640px, 100svh, 980px);
  position: relative; overflow: hidden;
  min-height: var(--h);
  /* stops sampled from the edges of the tower and lamp frames, so the scene melts into the page */
  background: linear-gradient(180deg, #DAE2E9 0%, #D3DBE4 30%, #CFD6E1 55%, #CBD2DE 62%, #B4C0CC 80%, #9BABBA 100%);
}

.scene {
  position: absolute; top: 0; bottom: 0; left: 62%;
  height: 100%; aspect-ratio: 640 / 1144; transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
}
.scene img, .scene video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene .tower { filter: saturate(.5) contrast(.84) brightness(1.06); transition: opacity 2.2s ease; }
.scene .lamp { opacity: 0; transition: opacity 2.2s ease; }
.hero.is-lit .scene .lamp { opacity: 1; }
.hero.is-lit .scene .tower { opacity: 0; }

.scene .fog { opacity: .85; transition: opacity var(--slow) ease; }
.hero.is-lit .scene .fog { opacity: 0; }

.hero-copy {
  position: relative; z-index: 2;
  max-width: var(--wrap); margin: 0 auto; min-height: var(--h);
  padding: 140px var(--gutter) 72px;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-copy > * { max-width: 30rem; }

.state { display: grid; margin: 0; }
.state > span {
  grid-area: 1 / 1;
  font: 400 clamp(52px, 7.4vw, 96px)/.98 var(--serif);
  letter-spacing: -.01em; color: var(--ink);
  transition: opacity 1.4s ease, transform 1.4s ease;
}
.state .lit { opacity: 0; transform: translateY(10px); }
.hero.is-lit .state .lit { opacity: 1; transform: none; }
.hero.is-lit .state .dark { opacity: 0; transform: translateY(-10px); }

.lede { display: grid; margin: 22px 0 0; max-width: 26rem; }
.lede > span { grid-area: 1 / 1; font-size: 19px; line-height: 1.55; color: var(--body); transition: opacity 1.4s ease; }
.lede .lit { opacity: 0; }
.hero.is-lit .lede .lit { opacity: 1; }
.hero.is-lit .lede .dark { opacity: 0; }

/* the switch — same gesture as the app's main screen */
.lamp-switch {
  margin-top: 40px; display: inline-flex; align-items: center; gap: 16px;
  background: none; border: 0; padding: 0; cursor: pointer;
  font: 600 17px/1 var(--sans); color: var(--ink);
}
.lamp-switch .track {
  position: relative; width: 68px; height: 38px; border-radius: 19px;
  background: rgba(28, 42, 49, .18); box-shadow: inset 0 0 0 1px rgba(28, 42, 49, .12);
  transition: background .5s ease;
}
.lamp-switch .knob {
  position: absolute; top: 4px; left: 4px; width: 30px; height: 30px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(28, 42, 49, .25);
  transition: transform .45s cubic-bezier(.3, .7, .2, 1), background .5s ease, box-shadow .5s ease;
}
.lamp-switch[aria-checked="true"] .track { background: linear-gradient(180deg, var(--beam), var(--harbour)); }
.lamp-switch[aria-checked="true"] .knob { transform: translateX(30px); background: #FFF6E6; box-shadow: 0 0 18px 4px rgba(255, 200, 130, .75); }
.lamp-switch .label-on { display: none; }
.lamp-switch[aria-checked="true"] .label-on { display: inline; }
.lamp-switch[aria-checked="true"] .label-off { display: none; }

.store {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px; border-radius: 14px;
  background: var(--ink); color: #fff; text-decoration: none;
  font: 600 16px/1 var(--sans);
}
.store:hover { color: #fff; background: var(--harbour); }
.store svg { width: 18px; height: 18px; fill: currentColor; margin-top: -2px; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; margin-top: 40px; }
.hero-actions .lamp-switch { margin-top: 0; }

/* ---------- what the light does ---------- */
.does { padding: clamp(80px, 11vw, 140px) 0; }
.does h2, .coasts h2, .night h2 {
  margin: 0; color: var(--ink);
  font: 400 clamp(40px, 5vw, 64px)/1.02 var(--serif); letter-spacing: -.005em;
}
.does-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 56px; }
.does h3 { margin: 0 0 10px; color: var(--ink); font: 600 19px/1.3 var(--sans); }
.does p { margin: 0; max-width: 22rem; }

/* ---------- eight coasts ---------- */
.coasts { padding: 0 0 clamp(80px, 11vw, 140px); }
.coasts-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.coasts-head p { margin: 0; max-width: 24rem; }
.ports {
  list-style: none; margin: 48px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 64px;
}
.ports li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 18px 0; border-top: 1px solid rgba(28, 42, 49, .14);
}
.ports li:nth-last-child(-n+2) { border-bottom: 1px solid rgba(28, 42, 49, .14); }
.ports .city { color: var(--ink); font: 400 clamp(28px, 3vw, 38px)/1.1 var(--serif); }
.ports .city small { display: block; margin-top: 4px; font: 400 14px/1.3 var(--sans); color: var(--muted); }
.ports time { font: 500 16px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--harbour); white-space: nowrap; }

/* ---------- night: keep the light on ---------- */
.night {
  position: relative; overflow: hidden; color: var(--night-body);
  /* sampled from the edges of the night lamp frame */
  background: linear-gradient(180deg, #0D1E38 0%, #10203B 35%, #142341 62%, #13233E 100%);
}
.night-inner {
  position: relative; z-index: 2;
  max-width: var(--wrap); margin: 0 auto; padding: clamp(96px, 12vw, 160px) var(--gutter);
  min-height: 720px; display: flex; flex-direction: column; justify-content: center;
}
.night-inner > * { max-width: 30rem; }
.night h2 { color: var(--night-ink); }
.night p { margin: 22px 0 0; font-size: 18px; }
.night .store { margin-top: 36px; align-self: flex-start; background: var(--night-ink); color: var(--night); }
.night .store:hover { background: #fff; color: var(--night); }
.night .scene { left: 70%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 25%, #000 75%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, #000 25%, #000 75%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%); mask-composite: intersect; }
.night .scene video { opacity: 1; }

/* ---------- footer ---------- */
.foot { background: #10203B; color: var(--night-body); font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-top: 36px; padding-bottom: 40px; border-top: 1px solid rgba(232, 238, 241, .08); }
.foot a { color: var(--night-ink); text-decoration: none; }
.foot a:hover { color: var(--night-accent); }
.foot nav { display: flex; flex-wrap: wrap; gap: 24px; }
.foot p { margin: 0; }

/* ---------- legal pages ---------- */
.legal-top { background: linear-gradient(180deg, var(--sky-top), var(--fog)); }
.legal-top .bar { position: static; }
.legal-head { max-width: 760px; margin: 0 auto; padding: 56px var(--gutter) 24px; }
.legal-head h1 { margin: 0; color: var(--ink); font: 400 clamp(44px, 6vw, 72px)/1 var(--serif); }
.legal-head p { margin: 14px 0 0; color: var(--muted); }
.legal { max-width: 760px; margin: 0 auto; padding: 16px var(--gutter) 120px; }
.legal h2 { margin: 44px 0 10px; color: var(--ink); font: 600 20px/1.35 var(--sans); }
.legal p, .legal li { margin: 0 0 14px; }
.legal ul { padding-left: 1.2em; }

/* ---------- support page ---------- */
.signal { margin: 8px 0 8px; padding: 28px 30px; border-radius: 22px; background: var(--ink); color: #DCE5E9; }
.signal h2 { margin: 0 0 8px; color: #fff; font: 400 32px/1.1 var(--serif); }
.signal p { margin: 0 0 18px; color: #B4C2C9; }
.signal .mail { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: var(--lamp); color: var(--ink); font-weight: 600; text-decoration: none; }
.signal .mail:hover { background: #FFD9A6; }
.signal .mail:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.signal .hint { margin: 22px 0 8px; }
.signal ul { margin: 0; padding-left: 1.2em; color: #B4C2C9; }
.signal li { margin: 0 0 6px; }
.faq { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(28, 42, 49, .14); }
.faq details { border-bottom: 1px solid rgba(28, 42, 49, .14); }
.faq summary { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; color: var(--ink); font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--harbour); font: 400 24px/1 var(--sans); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--beam); outline-offset: 4px; border-radius: 4px; }
.faq details > div { padding: 0 0 18px; }
.faq details > div p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .bar nav { display: none; }
  .hero { --h: auto; }
  .hero-copy { min-height: 0; padding: 104px var(--gutter) 0; }
  .scene { position: relative; left: 50%; height: auto; width: min(100%, 480px); margin-top: -8px; }
  .hero .scene { aspect-ratio: 640 / 1000; }
  .hero .scene img, .hero .scene video { object-position: 50% 0; }
  .hero-copy > * { max-width: none; }
  .state > span { font-size: clamp(48px, 13vw, 72px); }
  .hero-actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 32px; }
  .hero .scene {
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 14%);
  }
  .does-grid { grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
  .ports { grid-template-columns: 1fr; }
  .ports li:nth-last-child(2) { border-bottom: 0; }
  .night-inner { min-height: 0; padding-bottom: 0; }
  .night .scene { left: 50%; width: min(100%, 420px); aspect-ratio: 640 / 900; }
  .night .scene video, .night .scene img { object-position: 50% 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .fog { display: none; }
}
