/* Watchkeel — Harbor Night */
:root {
  --navy: #0B1B2B;
  --navy-2: #12283d;
  --navy-3: #1b3550;
  --teal: #1FB5A3;
  --teal-dark: #0f7a6e; /* AA contrast on paper for text */
  --sky: #38B6FF;
  --paper: #F4F7FA;
  --white: #ffffff;
  --ink: #0B1B2B;
  --muted: #4a5d70;
  --line: #dbe3ec;
  --fl: #1FB5A3;   /* FieldLog accent */
  --hh: #38B6FF;   /* HazardHarbor accent */
  --sw: #356cf6;   /* SiteWalk accent (subtle) */
  --radius: 16px;
  --shadow: 0 1px 2px rgba(11,27,43,.06), 0 8px 24px rgba(11,27,43,.08);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 1.0625rem; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.container { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -3rem; background: var(--teal); color: var(--navy); padding: .6rem 1rem; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.25rem; border-radius: 10px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background-color .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: var(--navy); }
.btn-primary:hover { background: #29c9b6; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }
.btn-lg { padding: 1rem 1.5rem; font-size: 1.05rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11,27,43,.92); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid rgba(255,255,255,.06); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--paper); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; }
.brand img { width: 44px; height: auto; }
.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.75rem; }
.nav-menu a { color: #c9d6e3; text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav-menu a:hover { color: var(--white); }
.nav-menu .nav-cta { color: var(--navy); background: var(--teal); padding: .5rem 1rem; border-radius: 8px; font-weight: 600; }
.nav-menu .nav-cta:hover { color: var(--navy); background: #29c9b6; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 0; }
.bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: var(--paper); margin: auto; position: relative; transition: transform .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { background: radial-gradient(1000px 500px at 85% -10%, rgba(31,181,163,.22), transparent 60%), radial-gradient(800px 500px at -10% 110%, rgba(56,182,255,.18), transparent 60%), var(--navy); color: var(--paper); padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3.5rem, 8vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--teal-dark); margin-bottom: .9rem; }
.hero .eyebrow, .section-dark .eyebrow { color: var(--teal); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; max-width: 16ch; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #c3d1de; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.75rem; }
.hero .btn-ghost { color: var(--paper); border-color: rgba(244,247,250,.3); }
.hero .btn-ghost:hover { border-color: var(--paper); }
.watch-card { background: linear-gradient(180deg, var(--navy-2), #0f2234); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 1.25rem 1.25rem .5rem; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.watch-head { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .9rem; color: #9fb3c6; margin-bottom: .75rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(31,181,163,.2); }
.watch-list { list-style: none; margin: 0; padding: 0; }
.watch-list li { display: flex; flex-direction: column; gap: .3rem; padding: .85rem 0; border-top: 1px solid rgba(255,255,255,.07); font-size: .95rem; color: #e3ebf3; }
.tag { align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: .15rem .5rem; border-radius: 999px; }
.tag-fl { background: rgba(31,181,163,.16); color: #5fe0cf; }
.tag-hh { background: rgba(56,182,255,.16); color: #8fd3ff; }
.tag-sw { background: rgba(53,108,246,.22); color: #a9c1ff; }

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head h2, .why-grid h2, .contact-box h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }

/* App cards */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.app-card { --accent: var(--fl); background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.app-hh { --accent: var(--hh); } .app-sw { --accent: var(--sw); }
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.app-top h3 { font-size: 1.6rem; font-weight: 800; margin: 0; }
.app-tagline { font-weight: 600; color: var(--ink); margin: .6rem 0 .8rem; }
.app-card > p { color: var(--muted); }
.app-card > p.app-tagline { color: var(--ink); }
.status { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .25rem .6rem; border-radius: 999px; white-space: nowrap; vertical-align: middle; }
.status-live { background: #e3f6f3; color: #0d6b60; }
.status-soon { background: #e8eefe; color: #2448b5; }
.features { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .55rem; }
.features li { position: relative; padding-left: 1.6rem; font-size: .98rem; }
.features li::before { content: ""; position: absolute; left: 0; top: .5em; width: .8rem; height: .45rem; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.app-sw .features li::before { border-color: var(--sw); }
.app-for { font-size: .95rem; font-style: italic; }
.app-price { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .98rem; }
.app-price strong { color: var(--ink); font-size: 1.1rem; }
.app-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.app-host { font-size: .82rem; color: var(--muted); word-break: break-all; }
.badge-soon { display: inline-flex; align-items: center; padding: .75rem 1.25rem; border-radius: 10px; font-weight: 600; background: #e8eefe; color: #2448b5; cursor: not-allowed; border: 2px dashed #b8c8f7; }

/* Why */
.section-dark { background: var(--navy); color: var(--paper); }
.why-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.why-grid > div p { color: #c3d1de; font-size: 1.1rem; }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pillars li { background: var(--navy-2); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius); padding: 1.4rem; }
.pillars h3 { font-size: 1.1rem; color: var(--white); }
.pillars h3::before { content: ""; display: block; width: 28px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--teal), var(--sky)); margin-bottom: .8rem; }
.pillars p { color: #b4c4d4; font-size: .97rem; margin: 0; }

/* Pricing */
.billing-toggle { display: inline-flex; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-top: .5rem; }
.billing-toggle button { font: inherit; font-weight: 600; font-size: .95rem; border: 0; background: none; padding: .5rem 1.1rem; border-radius: 999px; cursor: pointer; color: var(--muted); }
.billing-toggle button[aria-pressed="true"] { background: var(--navy); color: var(--paper); }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.price-col { --accent: var(--fl); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.price-col h3 { font-size: 1.35rem; font-weight: 800; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.price-col h3::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--accent); }
.plans { list-style: none; margin: 0 0 1.25rem; padding: 0; flex: 1; }
.plans li { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "plan amt" "note note"; gap: .1rem 1rem; padding: .9rem 0; border-top: 1px solid var(--line); }
.plan { grid-area: plan; font-weight: 700; }
.amt { grid-area: amt; font-weight: 800; font-size: 1.25rem; text-align: right; }
.amt small { font-size: .78rem; font-weight: 500; color: var(--muted); }
.note { grid-area: note; font-size: .88rem; color: var(--muted); }
.amt .y { display: none; }
[data-billing-mode="yearly"] .amt .m { display: none; }
[data-billing-mode="yearly"] .amt .y { display: inline; }
.fine { color: var(--muted); font-size: .9rem; margin-top: 1.5rem; }

/* Contact */
.section-contact { padding-top: 0; }
.contact-box { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; background: linear-gradient(120deg, var(--navy) 0%, var(--navy-3) 100%); color: var(--paper); border-radius: 24px; padding: clamp(2rem, 5vw, 3.25rem); }
.contact-box p { color: #c3d1de; margin: 0; max-width: 55ch; }
.contact-box h2 { margin-bottom: .4rem; }

/* Footer */
.site-footer { background: var(--navy); color: #a9bacb; padding: 3rem 0 1.5rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-tag { margin: .75rem 0 0; }
.footer-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--paper); margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer a { color: #c9d6e3; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .88rem; }
.footer-bottom p { margin: 0; }

/* Legal pages */
.legal { max-width: 760px; padding: 3.5rem 0 4.5rem; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2rem; }
.legal .todo { background: #fff6dd; border: 1px solid #f1d78b; border-radius: 10px; padding: 1rem 1.2rem; }

/* Responsive */
@media (max-width: 1020px) {
  .apps, .price-grid { grid-template-columns: 1fr 1fr; }
  .apps .app-sw, .price-grid .app-sw { grid-column: 1 / -1; }
  .why-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .nav-toggle { display: block; }
  .nav-menu { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.08); padding: .5rem 1.25rem 1.25rem; display: none; }
  .nav-menu.open { display: flex; }
  .nav-menu a { display: block; padding: .85rem 0; font-size: 1.05rem; }
  .nav-menu .nav-cta { text-align: center; margin-top: .5rem; padding: .85rem; }
}
@media (max-width: 680px) {
  .apps, .price-grid, .pillars { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .contact-box .btn-lg { width: 100%; font-size: .98rem; }
  .app-card, .price-col { padding: 1.4rem; }
}
/* Legal page header/footer */
.nav-menu.nav-static { display: flex !important; position: static; flex-direction: row; background: none; border: 0; padding: 0; }
.nav-menu.nav-static a { padding: 0; }
.footer-bottom.footer-legal { border: 0; margin: 0 auto; padding: 0; }
.site-footer .footer-legal a { text-decoration: underline; }
/* Per-app accent on pricing columns (after .price-col default) */
.price-col.app-hh { --accent: var(--hh); }
.price-col.app-sw { --accent: var(--sw); }
.app-actions { flex-direction: column; align-items: flex-start; gap: .5rem; }
.app-sw .app-actions { flex-direction: row; }
.contact-link { color: var(--teal); font-weight: 600; }
