/* Boat Buddy marketing site — nautical, calm, offline-app-honest. */

:root {
  --navy-950: #0a1f2e;
  --navy-900: #0f2b40;
  --navy-800: #163d59;
  --navy-700: #1f4f70;
  --teal-600: #1b7a72;
  --teal-500: #219488;
  --teal-100: #e2f2ef;
  --amber-500: #c98a2b;
  --cream-50: #faf7f0;
  --cream-100: #f3ede0;
  --ink-900: #182226;
  --ink-700: #3c4a50;
  --ink-500: #647178;
  --line: #e1dccd;
  --white: #ffffff;

  --bg: var(--cream-50);
  --bg-alt: var(--cream-100);
  --fg: var(--ink-900);
  --fg-muted: var(--ink-700);
  --card-bg: var(--white);
  --header-bg: var(--navy-950);
  --header-fg: var(--cream-50);

  --radius: 14px;
  --max-width: 1080px;
  --shadow: 0 2px 10px rgba(15, 43, 64, 0.08);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1a24;
    --bg-alt: #0f212d;
    --fg: #eef3f2;
    --fg-muted: #b7c3c6;
    --card-bg: #122636;
    --header-bg: #081420;
    --header-fg: #eef3f2;
    --line: #23384a;
    --shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  line-height: 1.15;
  color: var(--fg);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4vw + 1rem, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2.2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; color: var(--fg-muted); }

a {
  color: var(--teal-600);
  text-decoration-thickness: 1.5px;
}

@media (prefers-color-scheme: dark) {
  a { color: #5fc9bd; }
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.site-header {
  background: var(--header-bg);
  color: var(--header-fg);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--header-fg);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  font-family: "Fraunces", Georgia, serif;
}

.brand__mark { display: block; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--header-fg);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.9;
}

.site-nav a:hover { opacity: 1; text-decoration: underline; }
.site-nav a.button { opacity: 1; }

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  font-size: 1rem;
  cursor: pointer;
}

.button--primary {
  background: var(--teal-500);
  color: var(--white);
}
.button--primary:hover { background: var(--teal-600); }

.button--ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.button--small {
  padding: 8px 16px;
  font-size: 0.85rem;
  background: var(--teal-500);
  color: var(--white);
}
.button--small:hover { background: var(--teal-600); }

/* Hero */

.hero {
  background: linear-gradient(180deg, var(--navy-950), var(--navy-800));
  color: var(--cream-50);
  padding: 80px 0 96px;
}

.hero__inner { max-width: 720px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal-500);
  margin: 0 0 14px;
}

.hero h1 { color: var(--white); }

.hero__lede {
  color: rgba(250, 247, 240, 0.85);
  font-size: 1.15rem;
  max-width: 60ch;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero .button--ghost { color: var(--cream-50); }

/* Sections */

.section { padding: 72px 0; }
.section--alt { background: var(--bg-alt); }
.section__lede { max-width: 60ch; font-size: 1.05rem; }
.section__more { margin-top: 24px; }
.section__more a { font-weight: 700; text-decoration: none; }

.page-hero { padding-bottom: 40px; }
.page-hero .section__lede { max-width: 68ch; }

/* Feature cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.card h3 { margin-top: 12px; margin-bottom: 8px; font-size: 1.1rem; }
.card p { margin: 0; font-size: 0.95rem; }

.material-icon {
  font-family: "Material Symbols Outlined";
  font-size: 28px;
  color: var(--teal-600);
}

.material-icon--lg { font-size: 40px; }

/* Trial band */

.trial-band {
  background: var(--navy-900);
  color: var(--cream-50);
  border-radius: var(--radius);
  padding: 48px;
}

.trial-band h2 { color: var(--white); }
.trial-band p { color: rgba(250, 247, 240, 0.85); max-width: 60ch; }
.section--alt .trial-band { margin: 0; }

/* Signup form */

.signup__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 800px) {
  .signup__inner { grid-template-columns: 1fr; }
}

.signup-form {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.field--honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; }

.field input[type="text"],
.field input[type="email"] {
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  font-size: 1rem;
  font-family: inherit;
}

.field input:focus {
  outline: 2px solid var(--teal-500);
  outline-offset: 1px;
}

.field--checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.field--checkbox label { margin: 0; font-weight: 500; }
.field--checkbox input { margin-top: 4px; }

.field-hint {
  margin: -8px 0 16px;
  font-size: 0.85rem;
  color: var(--fg-muted);
}

.signup-form button { width: 100%; margin-top: 4px; }

.signup-form__note {
  font-size: 0.82rem;
  margin-top: 14px;
  margin-bottom: 0;
}

.signup-form__status {
  margin-top: 14px;
  margin-bottom: 0;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 8px;
}

.signup-form__status[data-state="success"] {
  background: var(--teal-100);
  color: var(--navy-900);
}

.signup-form__status[data-state="error"] {
  background: #fbe4e1;
  color: #8a2c22;
}

@media (prefers-color-scheme: dark) {
  .signup-form__status[data-state="success"] { background: #123832; color: #d3f5ee; }
  .signup-form__status[data-state="error"] { background: #3a1e1a; color: #f5cfc8; }
}

/* Store badges */

.store-badges { text-align: center; }
.store-badges__row {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.store-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  background: var(--navy-950);
  color: var(--cream-50);
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  min-width: 170px;
}

.store-badge span { font-size: 0.72rem; opacity: 0.8; }
.store-badge strong { font-size: 1.05rem; }

/* Feature detail blocks */

.feature-block { scroll-margin-top: 24px; }
.feature-block--alt { background: var(--bg-alt); }
.feature-block__summary { font-size: 1.05rem; max-width: 68ch; }

.tool-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.tool-group h3 { margin-bottom: 10px; color: var(--teal-600); }
.tool-group ul { margin: 0; padding-left: 18px; }
.tool-group li { margin-bottom: 8px; color: var(--fg-muted); }
.tool-group li strong { color: var(--fg); }

/* Guides page */

.guide-category { margin-bottom: 40px; }
.guide-category__head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.guide-category__head h2 { margin: 0; }

.pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pill--live { background: var(--teal-100); color: var(--navy-900); }
.pill--soon { background: var(--bg-alt); color: var(--fg-muted); border: 1px solid var(--line); }

@media (prefers-color-scheme: dark) {
  .pill--live { background: #123832; color: #d3f5ee; }
}

.guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.guide-list li {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
}

.guide-list li strong { display: block; margin-bottom: 4px; }
.guide-list li span { font-size: 0.9rem; color: var(--fg-muted); }

/* Prose (privacy) */

.prose { max-width: 68ch; }
.prose h2 { margin-top: 0; }
.prose h3 { margin-top: 1.6em; color: var(--teal-600); font-family: inherit; font-size: 1.05rem; }

/* 404 */

.not-found { text-align: center; padding: 120px 0; }
.not-found .button { margin-top: 16px; }

/* Footer */

.site-footer {
  background: var(--navy-950);
  color: rgba(250, 247, 240, 0.85);
  padding-top: 56px;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(250, 247, 240, 0.15);
}

@media (max-width: 700px) {
  .site-footer__inner { grid-template-columns: 1fr; }
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-footer__brand > div,
.site-footer__brand {
  color: var(--cream-50);
  font-weight: 700;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.1rem;
}
.site-footer__brand p {
  color: rgba(250, 247, 240, 0.7);
  font-weight: 400;
  font-size: 0.9rem;
  margin: 0;
}

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 500px) {
  .site-footer__nav { grid-template-columns: 1fr 1fr; }
}

.site-footer__nav h3 {
  color: var(--cream-50);
  font-family: inherit;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.site-footer__nav div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__nav a {
  color: rgba(250, 247, 240, 0.85);
  text-decoration: none;
  font-size: 0.92rem;
}
.site-footer__nav a:hover { text-decoration: underline; }

.site-footer__legal {
  padding: 18px 24px 28px;
  font-size: 0.82rem;
  color: rgba(250, 247, 240, 0.6);
}
.site-footer__legal p { margin: 0; color: inherit; }
