/* The public website (site/). Its own small stylesheet: the logbook app's styles are not loaded here. */
:root {
  --font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --navy: #0b3a6e;
  --navy-deep: #04172e;
  --cyan: #36d9e6;
  --teal: #0a9fbf;
  --bg: #ffffff;
  --bg-soft: #f2f6f9;
  --text: #0a1c29;
  --muted: #4f6578;
  --line: #dde6ec;
  --accent: #0089b0;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(6, 30, 48, 0.06), 0 8px 24px rgba(6, 30, 48, 0.07);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #06131d;
    --bg-soft: #0b1d2a;
    --text: #e4eef5;
    --muted: #93abbd;
    --line: #1a3346;
    --accent: #36d9e6;
    --card: #0d2131;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.3);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(36px, 5.6vw, 60px); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; white-space: nowrap; }
.btn.primary { background: var(--cyan); color: #04172e; }
.btn.primary:hover { background: #6fe6ef; }
.btn.light { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn.light:hover { background: rgba(255, 255, 255, 0.2); }
.btn.ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); height: 40px; padding: 0 16px; font-size: 15px; }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn.outline { color: var(--text); border-color: var(--line); }
.btn.outline:hover { background: var(--bg-soft); }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--navy-deep) 92%, transparent); backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px); }
.top-row { display: flex; align-items: center; gap: 28px; height: 66px; }
.logo img { width: 151px; height: auto; }
.nav { display: flex; gap: 22px; flex: 1; }
.nav a { color: #c7dcea; text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover, .nav a[aria-current] { color: #fff; }
.top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 42px; height: 42px; display: grid; place-content: center; gap: 5px; border-radius: 12px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; }
.menu nav { position: absolute; right: 0; top: 50px; width: 240px; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 8px; display: flex; flex-direction: column; }
.menu nav a { color: var(--text); text-decoration: none; padding: 12px 14px; border-radius: 10px; font-weight: 500; }
.menu nav a:hover { background: var(--bg-soft); }
@media (max-width: 920px) {
  .nav { display: none; }
  .menu { display: block; }
  .top-actions .btn.ghost { display: none; }
}

/* Hero */
.hero { background: radial-gradient(120% 120% at 85% -10%, #10609a 0%, var(--navy) 38%, var(--navy-deep) 82%); color: #e6f3fb; padding: 72px 0 84px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero .lead { font-size: clamp(18px, 1.8vw, 21px); color: #bcd7e7; max-width: 560px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 18px; }
.hero .note { font-size: 14px; color: #8fb6cc; max-width: 520px; }
.hero.small { padding: 56px 0 60px; }
.hero.small h1 { font-size: clamp(32px, 4.6vw, 50px); }
.hero .crumbs a, .hero .crumbs li { color: #9cc3d9; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero { padding: 48px 0 56px; } }

.device { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 26px; padding: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.device .head { display: flex; justify-content: space-between; font-size: 13px; color: #9cc3d9; font-weight: 600; }
.device .title { color: #fff; font-size: 20px; font-weight: 700; margin: 4px 0 12px; }
.device .figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.device .figs div { background: rgba(255, 255, 255, 0.06); border-radius: 14px; padding: 10px 12px; }
.device .figs b { display: block; color: #fff; font-size: 20px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.device .figs span { font-size: 11px; color: #8fb7cc; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
@media (max-width: 480px) { .device { padding: 16px; } .device .figs b { font-size: 16px; } .device .figs span { font-size: 10px; } }

/* Sections */
.band { padding: 80px 0; }
.band.soft { background: var(--bg-soft); }
.band .intro { max-width: 680px; margin-bottom: 36px; }
.band .intro p { color: var(--muted); font-size: 18px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; font-size: 16px; }
.card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); margin-bottom: 14px; }
a.card { text-decoration: none; color: inherit; transition: transform 0.12s; }
a.card:hover { transform: translateY(-2px); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.split p, .split li { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { padding-left: 30px; position: relative; margin: 8px 0; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 18%, transparent); }
.ticks li::after { content: ''; position: absolute; left: 6px; top: 10px; width: 6px; height: 9px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
@media (max-width: 900px) { .cards { grid-template-columns: minmax(0, 1fr); } .split { grid-template-columns: minmax(0, 1fr); gap: 28px; } .band { padding: 56px 0; } }

.prose h2 { margin-top: 1.6em; font-size: clamp(24px, 3vw, 30px); }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--muted); }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--text); }
.callout { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 1.4em 0; }
.callout p:last-child { margin: 0; }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; font-size: 14px; }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: 0.6; }
.crumbs a { text-decoration: none; }

.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-weight: 400; font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq .answer { color: var(--muted); margin-top: 10px; }
.faq .answer p:last-child { margin: 0; }

.cta-band { background: linear-gradient(135deg, var(--navy), var(--navy-deep)); color: #e6f3fb; border-radius: 28px; padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { color: #a9cbe0; margin: 0; }

/* The SAC calculator */
.calc { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); margin: 1.4em 0; }
.calc .fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.calc label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.calc input, .calc select { height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); padding: 0 12px; font: 17px var(--font); }
.calc .units { display: flex; gap: 8px; margin-bottom: 16px; }
.calc .units button { border: 1px solid var(--line); background: var(--bg); color: var(--text); border-radius: 999px; height: 36px; padding: 0 14px; font: 600 14px var(--font); cursor: pointer; }
.calc .units button[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); color: #fff; }
.calc .result { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.calc .result div { background: var(--bg-soft); border-radius: 14px; padding: 14px 16px; }
.calc .result b { display: block; font-size: 28px; font-variant-numeric: tabular-nums; color: var(--text); }
.calc .result span { font-size: 13px; color: var(--muted); font-weight: 600; }
@media (max-width: 640px) { .calc .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Footer */
.foot { background: var(--navy-deep); color: #a9c4d6; padding: 56px 0 28px; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot h2 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.foot nav { display: flex; flex-direction: column; gap: 8px; }
.foot a { color: #a9c4d6; text-decoration: none; font-size: 15px; }
.foot a:hover { color: #fff; }
.foot p { font-size: 15px; margin-top: 14px; }
.foot .legal { border-top: 1px solid rgba(255, 255, 255, 0.08); margin-top: 36px; padding-top: 18px; font-size: 13px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

.error-page { padding: 100px 0; text-align: center; }
