/* SeaWise public site — shared stylesheet.
 * Brand tokens match the mobile app's theme (app/constants/theme.ts):
 *   navy hull   #0A2540   primary, hero + footer bg, app icon ground
 *   sun gold    #F4B942   accents, button bg, hero tagline
 *   sea glass   #5DA9A1   secondary accent, section dividers
 *   sail        #FAF7F2   page background
 * --brass-dim is kept as the older muted gold (#8a6d3a) because it's
 * the only swatch in this palette that hits WCAG AA contrast as
 * link/body text on a light background; the brighter sun gold fails
 * 4.5:1 on paper. The variable name stays "brass" for diff size.
 */

:root {
  --navy: #0a2540;
  --navy-2: #132e4d;
  --brass: #f4b942;
  --brass-light: #f8d67e;
  --brass-dim: #8a6d3a;
  --sea-glass: #5da9a1;
  --paper: #faf7f2;
  --paper-2: #f2ece0;
  --ink: #1a2236;
  --ink-soft: #54607a;
  --line: #d8d0bd;
  --green: #2d6a4f;
  --red: #9b2c2c;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

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

a {
  color: var(--brass-dim);
  text-decoration: none;
  border-bottom: 1px solid rgba(138, 109, 58, 0.3);
  transition: border-color 120ms ease;
}
a:hover { border-bottom-color: var(--brass-dim); }

/* ============ Top nav ============ */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  color: var(--navy);
  border-bottom: none;
}
.nav-brand:hover { border-bottom: none; }

.nav-brand img { width: 32px; height: 32px; border-radius: 7px; }

.nav-links {
  display: flex;
  gap: 22px;
  font-size: 14px;
}
.nav-links a {
  color: var(--ink-soft);
  border-bottom: none;
}
.nav-links a:hover { color: var(--navy); }

/* ============ Hero (landing) ============ */
.hero {
  background: var(--navy);
  color: var(--paper);
  padding: 80px 24px 100px;
  text-align: center;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin: 0 auto 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.hero h1 {
  font-size: 56px;
  font-weight: 300;
  letter-spacing: -1.5px;
  margin: 0 0 8px;
  color: var(--paper);
}

.hero-tagline {
  color: var(--brass);
  font-style: italic;
  font-size: 18px;
  margin-bottom: 24px;
}

.hero p {
  color: rgba(250, 247, 240, 0.78);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero-cta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

/* Trust line under the hero CTAs — small differentiators in scannable
 * dot-separated form. Sits in the muted-paper tone so it reads as
 * supporting context, not competing with the buttons. */
.hero-trust {
  margin-top: 28px;
  font-size: 13px;
  letter-spacing: 0.2px;
  color: rgba(250, 247, 240, 0.55);
}
.hero-trust strong {
  color: rgba(250, 247, 240, 0.82);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 10px;
  background: var(--brass);
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  border-bottom: none;
  transition: transform 100ms ease, box-shadow 120ms ease;
}
.btn:hover {
  border-bottom: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(201, 165, 96, 0.3);
}
.btn-ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(250, 247, 240, 0.4);
}
.btn-ghost:hover { background: rgba(250, 247, 240, 0.06); }

/* ============ Store badges (hero + #disponibilitate) ============ */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin: 22px 0 26px;
}
/* Badge links wrap an <img> only; the global underlined-link style
 * (`a { border-bottom: 1px solid ... }`) leaks a 1px brass line right
 * under the badge — visible on tightly-cropped PNGs (Google Play),
 * less so on SVGs with internal padding (App Store). Stripping the
 * border-bottom here makes both badges read clean and identical. */
.store-badges a,
.store-badges a:hover { border-bottom: none; }
.store-badges img {
  display: block;
  height: 60px;
  width: auto;
}

/* Hero variant: centred in the hero column, no top/bottom margin
 * since the trust line and hero <p> handle the vertical rhythm. */
.hero-store-badges {
  justify-content: center;
  margin: 8px 0 0;
}

/* Subtle secondary anchor under the hero badges — keeps the
 * "Vezi ce conține" affordance, but as a quiet text link rather
 * than competing with the store badges as a second button. */
.hero-secondary-link {
  display: inline-block;
  margin-top: 22px;
  color: rgba(250, 247, 240, 0.7);
  font-size: 14px;
  border-bottom: 1px solid rgba(250, 247, 240, 0.3);
}
.hero-secondary-link:hover {
  color: var(--paper);
  border-bottom-color: var(--paper);
}

/* ============ Sections ============ */
section {
  padding: 64px 24px;
}

.container {
  max-width: 880px;
  margin: 0 auto;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

h2 {
  font-size: 32px;
  font-weight: 500;
  color: var(--navy);
  margin: 0 0 24px;
  letter-spacing: -0.5px;
}

h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin: 32px 0 12px;
}

p { margin: 0 0 16px; }

ul, ol { padding-left: 24px; margin: 0 0 16px; }
li { margin-bottom: 6px; }

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.feature {
  background: #fff;
  padding: 22px;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.feature .emoji {
  font-size: 32px;
  display: block;
  margin-bottom: 10px;
}
.feature h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.feature p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

/* Privacy promise band */
.promise {
  background: var(--paper-2);
  border-left: 4px solid var(--sea-glass);
  padding: 28px 24px;
  border-radius: 8px;
  margin: 32px 0;
}
.promise h3 { margin-top: 0; }
.promise ul { font-size: 15px; }

/* ============ Privacy / docs ============ */
.doc {
  padding: 48px 24px 80px;
  max-width: 760px;
  margin: 0 auto;
}
.doc h1 {
  font-size: 36px;
  font-weight: 500;
  color: var(--navy);
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}
.doc .meta {
  color: var(--ink-soft);
  font-size: 13px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14.5px;
}
.doc th, .doc td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.doc th {
  background: var(--paper-2);
  font-weight: 700;
  color: var(--navy);
}
.doc .lang-switch {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 13px;
}
.doc .lang-switch a { padding: 4px 10px; border-radius: 6px; background: var(--paper-2); border-bottom: none; }
.doc hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 48px 0;
}

/* ============ Footer ============ */
/* Two-zone footer: branded link directory + copyright strip. The
 * directory follows the convention modern marketing sites converge on
 * (Apple, Stripe, Linear): brand on the left, link groups in a grid
 * on the right, separator rule, copyright centred. Jakob's Law — users
 * already know where to look for legal / contact when this shape is
 * used. */
footer {
  background: var(--navy);
  color: rgba(250, 247, 240, 0.7);
  padding: 56px 24px 24px;
  font-size: 14px;
}
.footer-container {
  max-width: 1100px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 60px;
  align-items: start;
}
.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  border-bottom: none;
  font-size: 18px;
  font-weight: 600;
}
.footer-brand-link:hover { border-bottom: none; }
.footer-icon { width: 32px; height: 32px; border-radius: 7px; }
.footer-brand-tagline {
  margin-top: 10px;
  font-size: 13px;
  font-style: italic;
  color: rgba(250, 247, 240, 0.55);
}
.footer-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-group-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: rgba(250, 247, 240, 0.45);
  margin-bottom: 6px;
}
footer a {
  color: var(--brass);
  border-bottom: none;
  font-size: 14px;
}
footer a:hover { color: var(--brass-light); border-bottom: none; }
.footer-copy {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(250, 247, 240, 0.08);
  text-align: center;
  font-size: 12px;
  color: rgba(250, 247, 240, 0.42);
}

/* ============ Mobile ============ */
@media (max-width: 720px) {
  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
    padding: 14px 20px;
  }
  .nav-brand {
    flex: 0 0 auto;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 6px 14px;
    font-size: 13px;
  }
  /* Footer collapses to single-column for brand + 2-up groups */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 24px;
  }
  .footer-groups {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .hero { padding: 60px 20px 70px; }
  .hero h1 { font-size: 44px; }
  .hero p { font-size: 15px; }
  .hero-trust { font-size: 12px; line-height: 1.7; }
  section { padding: 48px 20px; }
  h2 { font-size: 26px; }
  .doc { padding: 32px 20px 60px; }
  .doc h1 { font-size: 28px; }
  .doc table { font-size: 13.5px; }
  .doc th, .doc td { padding: 8px 10px; }
}

@media (max-width: 480px) {
  /* On narrow phones, footer link groups stack vertically — three rows
   * read more cleanly than two cramped columns. */
  .footer-groups {
    grid-template-columns: 1fr;
  }
}
