/* Tide Chart — site styles.
   Tokens mirror the app's design system (Design System/tokens/colors.css).
   Dark first: everything is water at depth, sand is the only warm hue. */

:root {
  /* marine neutrals */
  --marine-1000: #04131b;
  --marine-900: #071c26;
  --marine-800: #0a2531;
  --marine-700: #0e303f;
  --marine-600: #123c4e;
  --marine-500: #17495d;

  /* water */
  --tide-600: #1a8093;
  --tide-500: #2aa2b3;
  --tide-400: #3fbfcb;
  --tide-300: #74d8df;
  --tide-200: #a9e9ed;

  /* sand accent */
  --sand-500: #d5a765;
  --sand-400: #e2b778;
  --sand-300: #efd0a1;

  --moon-300: #c9d8e0;

  /* semantic */
  --bg-app: var(--marine-1000);
  --bg-surface: var(--marine-800);
  --bg-elevated: var(--marine-700);
  --text-primary: #eaf6f9;
  --text-secondary: #9fb9c4;
  --text-tertiary: #6a8794;
  --text-link: var(--tide-300);
  --text-link-hover: var(--tide-200);
  --border-hairline: rgba(159, 185, 196, 0.16);

  --font-rounded: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-text: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --radius: 24px;
  --container: 1140px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  width: 100%;
  min-height: 100%;
  background: var(--bg-app);
  scroll-behavior: smooth;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-primary);
  background: var(--bg-app);
  -webkit-font-smoothing: antialiased;
}

/* The deep-water backdrop: light at the surface, abyss below. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(63, 191, 203, 0.16), transparent 70%),
    radial-gradient(ellipse 70% 45% at 88% 6%, rgba(226, 183, 120, 0.09), transparent 70%),
    linear-gradient(180deg, var(--marine-900) 0%, var(--marine-1000) 46%);
}

a {
  color: var(--text-link);
  text-decoration: none;
}

a:hover {
  color: var(--text-link-hover);
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

/* ===================================================================
   Brand
   =================================================================== */
.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(2, 10, 15, 0.6);
}

.brand-name {
  font-family: var(--font-rounded);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* ===================================================================
   Hero
   =================================================================== */
.site-header {
  padding: 34px 0 0;
}

.hero {
  padding: 56px 0 88px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  align-items: center;
  gap: 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 11px;
  margin-bottom: 26px;
  border: 1px solid var(--border-hairline);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tide-400);
  box-shadow: 0 0 0 4px rgba(63, 191, 203, 0.18);
}

h1 {
  font-family: var(--font-rounded);
  font-size: clamp(2.6rem, 5.4vw, 4.1rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

h1 .accent {
  color: var(--sand-400);
}

.hero-sub {
  max-width: 42ch;
  margin-top: 22px;
  font-size: 1.24rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-rounded);
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--marine-1000);
  background: var(--sand-400);
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  color: var(--marine-1000);
  background: var(--sand-300);
  transform: translateY(-2px);
}

.cta-note {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-tertiary);
}

.hero-phone {
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone {
  align-self: center;
  width: min(320px, 100%);
  border-radius: 44px;
  padding: 11px;
  background: linear-gradient(160deg, #1c3644, #071c26);
  box-shadow:
    0 40px 90px rgba(2, 10, 15, 0.7),
    0 0 0 1px rgba(159, 185, 196, 0.14);
}

/* The screenshots are 1284x2778 (428x926 pt). Pin the ratio so the bezel hugs
   the artwork instead of stretching to the height of the text column beside it. */
.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 428 / 926;
  border-radius: 34px;
  display: block;
}

/* ===================================================================
   Sections
   =================================================================== */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--border-hairline);
}

.section-head {
  max-width: 62ch;
  margin-bottom: 48px;
}

h2 {
  font-family: var(--font-rounded);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-head p {
  margin-top: 16px;
  font-size: 1.12rem;
  color: var(--text-secondary);
}

/* feature cards */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  padding: 30px 28px;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius);
  background: var(--bg-surface);
}

.card h3 {
  font-family: var(--font-rounded);
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.card p {
  margin-top: 10px;
  font-size: 1rem;
  color: var(--text-secondary);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 13px;
  background: rgba(63, 191, 203, 0.12);
  color: var(--tide-300);
}

.card-icon.sand {
  background: rgba(226, 183, 120, 0.13);
  color: var(--sand-400);
}

/* screenshot gallery */
.shots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.shot figure {
  border-radius: 26px;
  padding: 7px;
  background: linear-gradient(160deg, #1c3644, #071c26);
  box-shadow:
    0 22px 50px rgba(2, 10, 15, 0.6),
    0 0 0 1px rgba(159, 185, 196, 0.12);
}

.shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 428 / 926;
  border-radius: 20px;
  display: block;
}

.shot figcaption {
  margin-top: 14px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-tertiary);
  text-align: center;
}

/* data note */
.note-panel {
  padding: 30px 32px;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius);
  background: var(--bg-surface);
}

.note-panel p + p {
  margin-top: 14px;
}

.note-panel p {
  color: var(--text-secondary);
}

/* ===================================================================
   Footer
   =================================================================== */
.site-footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--border-hairline);
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-brand {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-tertiary);
}

.footer-brand strong {
  font-family: var(--font-rounded);
  font-weight: 800;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}

.footer-links a {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-tertiary);
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* ===================================================================
   Legal / support pages
   =================================================================== */
.page-shell {
  min-height: 100dvh;
  padding: 40px 0 0;
}

.policy-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 9px 18px 9px 10px;
  border: 1px solid var(--border-hairline);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-rounded);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
}

.policy-brand:hover {
  color: var(--text-primary);
  border-color: rgba(159, 185, 196, 0.3);
}

.policy-brand img {
  width: 26px;
  height: 26px;
  border-radius: 8px;
}

.legal-document {
  width: min(100%, 820px);
  margin: 34px 0 72px;
  padding: 44px 46px;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius);
  background: var(--bg-surface);
}

.legal-document h1 {
  font-family: var(--font-rounded);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.legal-document h2 {
  margin-top: 34px;
  font-size: 1.28rem;
  line-height: 1.3;
}

.legal-document h2 + p {
  margin-top: 12px;
}

.legal-document p {
  margin-top: 14px;
  font-size: 1.02rem;
  line-height: 1.62;
  color: var(--text-secondary);
}

.legal-document strong {
  color: var(--text-primary);
  font-weight: 700;
}

.legal-document a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-document ul {
  margin-top: 14px;
  padding-left: 22px;
}

.legal-document li {
  margin-top: 9px;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.updated {
  margin-top: 14px !important;
  font-size: 0.92rem !important;
  font-weight: 700;
  color: var(--text-tertiary) !important;
}

.lede {
  font-size: 1.12rem !important;
  color: var(--text-secondary) !important;
}

.support-mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--sand-400);
  font-family: var(--font-rounded);
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--marine-1000);
  text-decoration: none;
}

.support-mail:hover {
  color: var(--marine-1000);
  background: var(--sand-300);
}

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 1000px) {
  .shots {
    grid-template-columns: repeat(2, 1fr);
    max-width: 620px;
    margin: 0 auto;
  }

  .features {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .hero {
    padding: 40px 0 64px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
    text-align: center;
  }

  .brand-row,
  .cta-row {
    justify-content: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .section {
    padding: 60px 0;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .shots {
    grid-template-columns: repeat(2, 1fr);
  }

  .legal-document {
    padding: 30px 24px;
  }

  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 0 20px;
  }

  .shots {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 0 auto;
  }

  .footer-links {
    justify-content: center;
    gap: 18px;
  }
}

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