/* Boat Manager — shared site styles */

:root {
  --ink: #16324f;
  --ink-soft: #4a5f70;
  --accent: #9c6a1f;
  --accent-soft: #f3e6cc;
  --bg: #fbfbfa;
  --bg-alt: #f0f3ee;
  --line: #d8dfd9;
  --white: #ffffff;
  --display: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e7ecef;
    --ink-soft: #a9b7bf;
    --accent: #d9a758;
    --accent-soft: #2c2416;
    --bg: #10171b;
    --bg-alt: #18211f;
    --line: #2b3a37;
    --white: #16201f;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- header ---- */
header.site {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  max-width: 860px;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
}
.brand img { width: 30px; height: 30px; }
nav.site-nav {
  display: flex;
  gap: 22px;
  font-size: 15px;
  flex-wrap: wrap;
}
nav.site-nav a { color: var(--ink-soft); }
nav.site-nav a.current { color: var(--accent); font-weight: 600; }

/* ---- hero ---- */
.hero {
  padding: 64px 0 48px;
  text-align: center;
}
.hero .wrap { max-width: 700px; }
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
h1 {
  font-family: var(--display);
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.15;
  margin: 0 0 18px;
  text-wrap: balance;
}
.sub {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 54ch;
  margin: 0 auto;
}
.cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}
.app-store-badge {
  display: inline-flex;
  line-height: 0;
}
.app-store-badge:hover { opacity: 0.82; }
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
}
.btn-primary {
  background: var(--ink);
  color: var(--white) !important;
  text-decoration: none !important;
}
.btn-primary:hover { opacity: 0.9; }
.btn-secondary {
  background: var(--bg-alt);
  color: var(--ink) !important;
  text-decoration: none !important;
  border: 1px solid var(--line);
}

/* ---- content sections ---- */
main { padding: 8px 0 72px; }
section { padding: 40px 0; }
section + section { border-top: 1px solid var(--line); }
h2 {
  font-family: var(--display);
  font-size: 26px;
  margin: 0 0 14px;
}
h3 {
  font-family: var(--display);
  font-size: 19px;
  margin: 0 0 8px;
}
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 8px; }

.lede {
  font-size: 18px;
  color: var(--ink-soft);
}

.callout {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 24px;
  margin: 28px 0;
}
.callout h3 { margin-top: 0; color: var(--accent); }

/* feature blocks */
.feature {
  padding: 22px 0;
}
.feature + .feature { border-top: 1px solid var(--line); }
.feature h3 { margin-bottom: 6px; }

/* faq */
.faq dt {
  font-weight: 700;
  margin-top: 18px;
}
.faq dd {
  margin: 6px 0 0;
  color: var(--ink-soft);
}

/* contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 480px;
}
.contact-form label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 12px;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  font: inherit;
  font-size: 15px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.contact-form button {
  margin-top: 20px;
  align-self: flex-start;
  border: none;
  cursor: pointer;
  font: inherit;
}
.form-alt {
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* legal pages */
.legal h2 { font-size: 20px; margin-top: 34px; }
.legal p, .legal li { font-size: 15px; color: var(--ink-soft); }
.legal .meta { font-size: 14px; color: var(--ink-soft); margin-bottom: 30px; }

/* footer */
footer.site {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
}
footer.site .wrap {
  max-width: 860px;
  padding-top: 32px;
  padding-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--ink-soft);
}
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site nav a { color: var(--ink-soft); }

@media (max-width: 560px) {
  header.site .wrap { justify-content: center; text-align: center; }
  nav.site-nav { justify-content: center; }
  footer.site .wrap { flex-direction: column; text-align: center; }
}
