/* =================================================================
   Seemeilenbuch — landing page
   Maritime aesthetic: deep navy depths, parchment/sand, chart grid.
   Display: Fraunces · Body: Schibsted Grotesk
   ================================================================= */

:root {
  /* Ink & navy depths */
  --ink:        #081424;
  --navy-900:   #0a1c33;
  --navy-800:   #0f2747;
  --navy-700:   #163763;
  --sea-deep:   #1e3a8a;
  --sea:        #3b82f6;   /* app accent (dark mode) */
  --foam:       #7dd3fc;

  /* Parchment / sand (from the logbook icon) */
  --sand:       #e7d9b8;
  --sand-soft:  #f3ebd8;
  --paper:      #f7f4ec;

  /* Neutrals */
  --paper-cool: #f5f8fc;   /* app light bg */
  --text-dark:  #14243d;
  --muted-dark: #5d6f88;
  --text-light: #eaf1fb;
  --muted-light:#9fb2cd;
  --line-light: rgba(20,36,61,.10);
  --line-dark:  rgba(255,255,255,.10);

  --success:    #10b981;
  --warning:    #f59e0b;

  --maxw: 1180px;
  --radius: 22px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--navy-900);
  color: var(--text-light);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--sea); color: #fff; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 10vw, 130px) 0; position: relative; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--foam); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.05; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-optical-sizing: auto; }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--muted-light); }
em.ital { font-style: italic; color: var(--sand); }

/* =================================================================
   Background atmosphere — nautical chart grid + grain
   ================================================================= */
.chart-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 80%);
  opacity: .5;
}
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =================================================================
   Header / nav
   ================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(10,28,51,.62);
  border-bottom: 1px solid var(--line-dark);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  box-shadow: 0 4px 14px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.12);
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 15px; color: var(--muted-light); transition: color .2s; }
.nav-links a:hover { color: var(--text-light); }
.nav-right { display: flex; align-items: center; gap: 16px; }

/* language toggle */
.lang-toggle {
  display: inline-flex; border: 1px solid var(--line-dark); border-radius: 999px;
  padding: 3px; background: rgba(255,255,255,.04); font-size: 13px; font-weight: 600;
}
.lang-toggle button {
  border: 0; background: transparent; color: var(--muted-light); cursor: pointer;
  padding: 5px 12px; border-radius: 999px; font-family: var(--font-body); font-weight: 600;
  transition: all .25s var(--ease); letter-spacing: .03em;
}
.lang-toggle button[aria-pressed="true"] { background: var(--sea); color: #fff; box-shadow: 0 2px 8px rgba(59,130,246,.5); }

/* Official App Store badge (white, in nav) */
.btn-store { display: inline-flex; align-items: center; transition: transform .2s var(--ease); }
.btn-store:hover { transform: translateY(-2px); }
.btn-store img { height: 36px; width: auto; display: block; }
.nav-toggle { display: none; }

/* =================================================================
   App Store badge (large)
   ================================================================= */
.appstore-badge {
  display: inline-block; border-radius: 9px;
  transition: transform .2s var(--ease), box-shadow .25s; box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.appstore-badge:hover { transform: translateY(-3px) scale(1.01); box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.appstore-badge img { height: 54px; width: auto; display: block; }

/* =================================================================
   Hero
   ================================================================= */
.hero { position: relative; padding-top: clamp(50px, 8vw, 90px); padding-bottom: 0; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 80% at 80% -10%, rgba(59,130,246,.28), transparent 55%),
    radial-gradient(90% 60% at 8% 10%, rgba(125,211,252,.10), transparent 50%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900) 78%);
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.45fr .95fr; gap: 40px; align-items: center; }
.hero-copy { padding: 30px 0 90px; }
.hero h1 { margin: 22px 0 22px; }
.hero h1 .hl { color: var(--foam); font-style: italic; }
.hero .lead { max-width: 33ch; }
.hero-cta { display: flex; align-items: center; gap: 18px; margin-top: 36px; flex-wrap: wrap; }
.hero-cta .ghost { font-size: 15px; font-weight: 600; color: var(--muted-light); display: inline-flex; align-items: center; gap: 7px; transition: gap .2s, color .2s; }
.hero-cta .ghost:hover { color: var(--text-light); gap: 11px; }
.hero-note { margin-top: 22px; font-size: 13.5px; color: var(--muted-light); display: flex; gap: 18px; flex-wrap: wrap; }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note svg { width: 15px; height: 15px; color: var(--foam); }

/* compass rose decoration */
.compass { position: absolute; right: -120px; top: 40px; width: 460px; height: 460px; z-index: 1; opacity: .14; color: var(--foam); animation: spin 120s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* hero phone */
.hero-stage { position: relative; display: flex; justify-content: center; align-items: flex-end; height: 100%; }
.hero-stage .phone { transform: translateY(40px); }

/* =================================================================
   Device frame (CSS iPhone bezel)
   ================================================================= */
.phone {
  position: relative; width: 300px; max-width: 78vw; border-radius: 52px; padding: 11px;
  background: linear-gradient(150deg, #2a3550, #0c1422 60%);
  box-shadow:
    0 2px 0 rgba(255,255,255,.10) inset,
    0 50px 90px -30px rgba(0,0,0,.75),
    0 0 0 1px rgba(255,255,255,.06);
}
.phone .screen { border-radius: 42px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.3); }
.phone img { width: 100%; height: auto; aspect-ratio: 1320 / 2868; display: block; }
.phone.tilt { transform: rotate(-3deg); }

/* =================================================================
   Marquee logos / trust strip
   ================================================================= */
.trust { border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); background: rgba(8,20,36,.5); }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 38px; padding-bottom: 38px; }
.trust-item { display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; }
.trust-item svg { width: 28px; height: 28px; color: var(--foam); }
.trust-item .t-title { font-family: var(--font-display); font-size: 1.15rem; }
.trust-item .t-sub { font-size: 13px; color: var(--muted-light); }

/* =================================================================
   Feature rows
   ================================================================= */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.feature + .feature { margin-top: clamp(80px, 12vw, 150px); }
.feature.reverse .feature-media { order: 2; }
.feature-copy h2 { margin: 18px 0 18px; }
.feature-copy p { color: var(--muted-light); max-width: 46ch; }
.feature-list { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.feature-list li { display: flex; gap: 13px; align-items: flex-start; font-size: 15.5px; color: var(--text-light); }
.feature-list svg { width: 21px; height: 21px; color: var(--foam); flex: none; margin-top: 2px; }
.feature-media { display: flex; justify-content: center; position: relative; }

/* glow behind device */
.feature-media::before {
  content: ""; position: absolute; width: 70%; height: 70%; top: 15%; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,.32), transparent 70%); filter: blur(50px); z-index: 0;
}
.feature-media .phone { position: relative; z-index: 1; width: 270px; }

/* =================================================================
   Privacy section (parchment contrast)
   ================================================================= */
.privacy { background: linear-gradient(160deg, var(--sand-soft), var(--sand)); color: var(--text-dark); position: relative; overflow: hidden; }
.privacy .chart-grid { background-image: linear-gradient(rgba(20,36,61,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(20,36,61,.06) 1px, transparent 1px); }
.privacy .eyebrow { color: var(--sea-deep); }
.privacy h2 { color: var(--text-dark); }
.privacy .lead { color: #5b5238; }
.privacy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 54px; }
.pcard {
  background: rgba(255,255,255,.6); border: 1px solid rgba(120,100,60,.18); border-radius: 18px;
  padding: 28px; backdrop-filter: blur(6px); transition: transform .25s var(--ease), box-shadow .25s;
}
.pcard:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(80,60,20,.16); }
.pcard .pico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--sea-deep); color: #fff;
}
.pcard .pico svg { width: 24px; height: 24px; }
.pcard h3 { color: var(--text-dark); font-size: 1.25rem; margin-bottom: 8px; }
.pcard p { color: #6b6043; font-size: 15px; }

/* =================================================================
   Gallery strip
   ================================================================= */
.gallery { background: var(--ink); overflow: hidden; }
.gallery-head { text-align: center; max-width: 640px; margin: 0 auto 26px; }
.gallery-sub { margin-top: 16px; }
.gallery-sub .pill {
  display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600;
  color: var(--foam); background: rgba(125,211,252,.10); border: 1px solid rgba(125,211,252,.25);
  padding: 8px 16px; border-radius: 999px;
}
.gallery-sub .pill svg { width: 17px; height: 17px; }
.gallery-sub .pill .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }

/* iPad showcase */
.ipad-stage { display: flex; justify-content: center; margin: 0 auto 56px; position: relative; }
.ipad-stage::before {
  content: ""; position: absolute; width: 60%; height: 70%; top: 12%; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,.30), transparent 70%); filter: blur(60px);
}
.tablet {
  position: relative; z-index: 1; width: 440px; max-width: 84vw; border-radius: 34px; padding: 14px;
  background: linear-gradient(150deg, #2a3550, #0c1422 60%);
  box-shadow: 0 2px 0 rgba(255,255,255,.10) inset, 0 50px 90px -30px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.06);
  transition: transform .4s var(--ease);
}
.tablet:hover { transform: translateY(-10px); }
.tablet::after { content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 6px; height: 6px; border-radius: 50%; background: #05080f; }
.tablet .screen { border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.3); }
.tablet img { width: 100%; height: auto; aspect-ratio: 2064 / 2752; display: block; }

.gallery-track { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }
.gallery-track .phone { width: 230px; transition: transform .4s var(--ease); }
.gallery-track .phone:hover { transform: translateY(-12px); }

/* =================================================================
   FAQ
   ================================================================= */
.faq-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid var(--line-dark); padding: 8px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line-dark); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; color: var(--text-light);
  font-family: var(--font-body); font-size: 1.08rem; font-weight: 600; cursor: pointer;
  padding: 18px 0; display: flex; justify-content: space-between; gap: 18px; align-items: center;
}
.faq-q .pm { flex: none; width: 22px; height: 22px; position: relative; transition: transform .3s var(--ease); }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; background: var(--foam); border-radius: 2px; }
.faq-q .pm::before { width: 100%; height: 2px; top: 10px; }
.faq-q .pm::after { height: 100%; width: 2px; left: 10px; transition: opacity .3s; }
.faq-item.open .pm { transform: rotate(180deg); }
.faq-item.open .pm::after { opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a p { color: var(--muted-light); padding-bottom: 20px; max-width: 60ch; }

/* =================================================================
   Final CTA
   ================================================================= */
.cta { text-align: center; position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 100% at 50% 0%, rgba(59,130,246,.3), transparent 60%);
}
.cta-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.cta h2 { margin-bottom: 20px; }
.cta .appstore-badge { margin-top: 36px; }
.cta-icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 28px; box-shadow: 0 20px 50px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.12); }

/* =================================================================
   Footer
   ================================================================= */
.site-footer { background: var(--ink); border-top: 1px solid var(--line-dark); padding: 56px 0 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.footer-brand { max-width: 320px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--muted-light); font-size: 14px; }
.footer-links { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font-body); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-light); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-light); font-size: 15px; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--foam); }
.footer-bottom { margin-top: 46px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted-light); }

/* =================================================================
   Legal / article page
   ================================================================= */
.legal { max-width: 800px; margin: 0 auto; padding: clamp(56px, 9vw, 110px) 24px; position: relative; z-index: 2; }
.legal .eyebrow { color: var(--foam); }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 18px 0 12px; }
.legal .updated { color: var(--muted-light); font-size: 14px; margin-bottom: 8px; }
.legal .intro { color: var(--muted-light); font-size: 1.1rem; margin-bottom: 12px; }
.legal h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 48px 0 14px; }
.legal h2:first-of-type { margin-top: 40px; }
.legal p, .legal li { color: #c7d4e8; font-size: 16.5px; }
.legal p { margin-bottom: 14px; }
.legal ul { margin: 0 0 16px 1.1em; display: flex; flex-direction: column; gap: 9px; }
.legal a { color: var(--foam); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: #fff; }
.legal strong { color: var(--text-light); font-weight: 600; }
.legal .callout {
  background: rgba(59,130,246,.10); border: 1px solid rgba(125,211,252,.25);
  border-left: 3px solid var(--foam); border-radius: 14px; padding: 22px 24px; margin: 28px 0;
}
.legal .callout p { margin: 0; color: var(--text-light); }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted-light); font-size: 15px; font-weight: 600; margin-top: 12px; }
.back-link:hover { color: var(--foam); }
.back-link svg { width: 16px; height: 16px; }

/* =================================================================
   Scroll reveal
   ================================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* i18n visibility helper */
[data-lang-show] { display: none; }

/* =================================================================
   Responsive
   ================================================================= */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 20px; text-align: center; }
  .hero .lead { max-width: 46ch; margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-note, .eyebrow { justify-content: center; }
  .hero-stage { margin-top: 30px; }
  .hero-stage .phone { transform: none; }
  .compass { display: none; }
  .feature { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .feature.reverse .feature-media { order: 0; }
  .feature-copy p { margin-left: auto; margin-right: auto; }
  .feature-list { max-width: 380px; margin-left: auto; margin-right: auto; text-align: left; }
  .privacy-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 30px; }
  .trust .wrap { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column;
    background: var(--navy-800); padding: 20px 24px; gap: 18px; border-bottom: 1px solid var(--line-dark);
  }
  .nav-toggle { display: inline-flex; background: none; border: 0; color: var(--text-light); cursor: pointer; }
  .nav-toggle svg { width: 26px; height: 26px; }
  .btn-store { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
