/* Benthyo landing — the store-panel system at page scale.
 *
 * Two grounds, one accent, one type pair, the same as the app and the store
 * panels: deep water for the chart bands, sea-salt paper for everything that
 * is read rather than dived. Coral is the primary action and the dot, nothing
 * else. Depth is a quantity here too: the sounding ruler carries it.
 *
 * Tokens mirror apps/mobile/lib/core/theme/app_theme.dart.
 */

:root {
  /* Water — dark bands */
  --ground: #041820;
  --raised: #07242f;
  --inset: #0a2e3a;
  --ink: #eaf6f7;
  --ink2: #a9c7ca;
  --ink3: #7b9c9f;
  --rule-dark: #143a44;
  --data: #67e0d2;

  /* Salt — light bands */
  --paper: #f2f7f8;
  --sheet: #ffffff;
  --ink-on-paper: #08262e;
  --ink2-on-paper: #42646a;
  --ink3-on-paper: #52737a;
  --rule: #d5e4e6;
  --water: #e4eff1;
  --deep: #0e7c86;

  /* One accent, both grounds */
  --signal: #ff7a55;
  --on-signal: #10202a;

  --display: "Barlow Condensed", system-ui, sans-serif;
  --body: "Barlow", system-ui, sans-serif;

  --page: 1120px;
  --pad: 24px;
  --radius-sheet: 26px;
  --radius-card: 18px;
  --radius-control: 14px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-on-paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.02;
  margin: 0;
}

p { margin: 0; }

::selection { background: var(--water); color: var(--ink-on-paper); }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 var(--pad); }

/* Keep an anchor's heading clear of the sticky nav. */
section[id] { scroll-margin-top: 80px; }

.eyebrow {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* The chart label: the small ruled caption used across the app. */
.caption {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink2-on-paper);
}

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-control);
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 140ms cubic-bezier(0.22, 1, 0.36, 1), background-color 140ms ease;
}
.btn:active { transform: translateY(1px); }

.btn-signal { background: var(--signal); color: var(--on-signal); }
.btn-signal:hover { background: #ff8f70; }

.btn-quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-dark);
}
.btn-quiet:hover { background: var(--inset); }

/* ---------------------------------------------------------------------- nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(4, 24, 32, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule-dark);
  color: var(--ink);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand svg { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  text-decoration: none;
  color: var(--ink2);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--ink); }
.nav .btn { min-height: 40px; padding: 0 18px; }
.nav-toggle { display: none; }

/* --------------------------------------------------------------------- hero */

.band { position: relative; overflow: hidden; }
.band-dark {
  background: var(--ground);
  color: var(--ink);
}
.band-dark .eyebrow { color: var(--data); }

.field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 84px 0 96px;
}

.hero h1 {
  font-size: clamp(44px, 7vw, 76px);
  margin: 18px 0 0;
  max-width: 11ch;
}
.hero .lede {
  margin-top: 22px;
  max-width: 46ch;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink2);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink3);
}

/* the sounding: a depth ruler, 0 -> 60 m, coral marker at the dive depth */
.sounding { margin-top: 40px; max-width: 380px; }
.sounding .ruler {
  position: relative;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(90deg, #a8e6dd, #6ccbc9, #3fb3bd, #2a7f95, #146b7d, #0b3f52);
  border: 1px solid var(--rule-dark);
}
.sounding .mark {
  position: absolute;
  top: -7px;
  left: 62%;
  width: 3px;
  height: 58px;
  background: var(--signal);
  border-radius: 2px;
}
.sounding .mark span {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.sounding .scale {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink3);
}

/* -------------------------------------------------------------------- phone */

/* A real 440x956 capture in a device frame, the same frame the store panels
   use, so the page and the listing show the same object. */
.phone {
  position: relative;
  width: 300px;
  padding: 12px;
  border-radius: 42px;
  background: linear-gradient(154deg, #4a5155 0%, #232a2d 26%, #30383b 52%, #171c1f 78%, #2b3235 100%);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 4px 12px rgba(0, 0, 0, 0.4);
}
.phone::before,
.phone::after {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: #2e3639;
}
.phone::before { left: -3px; top: 96px; height: 40px; box-shadow: 0 52px 0 #2e3639, 0 104px 0 #2e3639; }
.phone::after { right: -3px; top: 138px; height: 64px; }
.phone .win {
  border-radius: 32px;
  overflow: hidden;
  background: #05080a;
}
.phone img { width: 100%; height: auto; }

.hero-phone { display: flex; justify-content: center; }
.hero-phone .phone { width: 320px; }

/* ------------------------------------------------------------------ section */

.section { padding: 88px 0; }
.section-salt { background: var(--paper); color: var(--ink-on-paper); }
.section-salt .eyebrow { color: var(--deep); }

.section-head { max-width: 60ch; margin-bottom: 52px; }
.section-head h2 {
  font-size: clamp(32px, 4.4vw, 48px);
  margin-top: 14px;
}
.section-head p {
  margin-top: 16px;
  font-size: 17px;
  color: var(--ink2-on-paper);
}
.band-dark .section-head p { color: var(--ink2); }

/* Three reasons, three sheets. */
.reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.reason {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 26px 26px 30px;
  display: flex;
  flex-direction: column;
}
.reason .num {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--deep);
}
.reason h3 { font-size: 27px; margin: 10px 0 0; }
.reason p { margin-top: 12px; color: var(--ink2-on-paper); font-size: 15px; }
.reason p a { color: var(--deep); text-decoration: underline; text-underline-offset: 2px; }
.reason .shot { margin: 26px -26px -30px; border-top: 1px solid var(--rule); }
.reason .shot { margin-top: auto; }
.reason .shot img { width: 100%; }

/* Showcase: the product in four frames, ruled. */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  align-items: end;
}
.frame { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.frame .phone { width: 100%; max-width: 230px; }
.frame figcaption {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink3);
}

/* The closing rule: the app's own chart rule with the coral scale tick. */
.rule-draw {
  position: relative;
  height: 1px;
  background: var(--rule-dark);
  margin-bottom: 44px;
}
.rule-draw::before {
  content: "";
  position: absolute;
  left: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  background: var(--signal);
}

/* ------------------------------------------------------------- what it is not */

.not {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 40px;
  align-items: start;
  border-top: 1px solid var(--rule);
  padding-top: 40px;
}
.not h2 { font-size: 26px; line-height: 1.15; }
.not p { font-size: 17px; color: var(--ink2-on-paper); }

/* ---------------------------------------------------------------------- faq */

.faq { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink-on-paper);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--body);
  font-size: 20px;
  color: var(--ink2-on-paper);
}
.faq details[open] summary::after { content: "\2013"; }
.faq .a { padding: 0 0 26px; max-width: 72ch; color: var(--ink2-on-paper); font-size: 16px; }
.faq .a a { color: var(--deep); text-decoration: underline; text-underline-offset: 2px; }

/* ----------------------------------------------------------------- download */

.download { text-align: center; padding: 96px 0; }
.download h2 { font-size: clamp(34px, 5vw, 56px); margin-top: 16px; }
.download .lede { margin: 18px auto 0; max-width: 46ch; color: var(--ink2); font-size: 17px; }

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 34px;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  border: 1px solid var(--rule-dark);
  border-radius: var(--radius-control);
  background: var(--raised);
  text-align: left;
  color: var(--ink);
}
.store svg { width: 24px; height: 24px; flex: none; }
.store b { display: block; font-family: var(--display); font-size: 19px; font-weight: 600; line-height: 1.1; }
.store small { display: block; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink3); }

/* -------------------------------------------------------------------- footer */

.footer {
  background: var(--ink-on-paper);
  color: var(--ink2);
  padding: 40px 0;
  font-size: 13px;
}
.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
}
.footer .brand { color: var(--ink); font-size: 18px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
.footer a { color: var(--ink2); text-decoration: none; }
.footer a:hover { color: var(--ink); }
.footer .cop { width: 100%; color: var(--ink2); }

/* --------------------------------------------------------------- breakpoints */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; padding: 64px 0 76px; }
  .reasons { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .not { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .section { padding: 64px 0; }
  .hero h1 { font-size: clamp(40px, 12vw, 56px); }
  .gallery { gap: 22px; }
  .footer nav { margin-left: 0; }
  /* A full 660x1434 screen in a card is 700px of scroll for one sentence:
     keep the top of the screen, where the evidence is. */
  .reason .shot img { max-height: 400px; object-fit: cover; object-position: top; }
}

@media (max-width: 520px) {
  .hero .lede { font-size: 17px; }
  /* The gallery becomes a swipe strip instead of four stacked screens. */
  .gallery {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    max-width: none;
    margin: 0 calc(var(--pad) * -1);
    padding: 0 var(--pad) 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .frame { flex: 0 0 64%; scroll-snap-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
