/* BlueWake website. Plain CSS, no build step. Colours follow the app (navy, chart blue, wake teal). */
:root {
  --navy: #0b2a4a;
  --navy-2: #12385f;
  --blue: #1f6fb2;
  --teal: #0fa3a3;
  --teal-dark: #0b7f80;
  --sand: #f3ead7;
  --ink: #142334;
  --muted: #5a6b7d;
  --line: #dfe6ee;
  --bg: #ffffff;
  --bg-soft: #f4f8fb;
  --card: #ffffff;
  --danger: #c0392b;
  --ok: #1e8e5a;
  --warn: #c77700;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(11, 42, 74, 0.08);
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e6eef6;
    --muted: #9fb1c3;
    --line: #22384f;
    --bg: #0a1826;
    --bg-soft: #0f2133;
    --card: #11263a;
    --sand: #1a2c3d;
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
@media (prefers-color-scheme: dark) { a { color: #6fb6f0; } }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 800; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.center { text-align: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--navy); color: #fff; }
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.25rem; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: #d6e4f2; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 700; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.1); }
.nav .btn { margin-left: 6px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.menu-btn svg { width: 28px; height: 28px; }
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--navy); padding: 8px 16px 16px; gap: 2px; }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

/* Buttons */
.btn { display: inline-block; border: 0; border-radius: 999px; padding: 12px 22px; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; background: var(--teal); color: #fff !important; transition: background 0.15s; }
.btn:hover { background: var(--teal-dark); }
.btn.small { padding: 8px 16px; font-size: 0.95rem; }
.btn.ghost { background: transparent; color: var(--ink) !important; box-shadow: inset 0 0 0 2px var(--line); }
.btn.ghost:hover { background: var(--bg-soft); }
.btn.light { background: #fff; color: var(--navy) !important; }
.btn.light:hover { background: #e8f1f8; }
.btn.danger { background: var(--danger); }
.btn[disabled] { opacity: 0.6; cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, #155a7e 100%); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 0; }
.hero p.lead { font-size: 1.2rem; color: #d6e4f2; max-width: 34em; }
.hero .phones { display: flex; gap: 18px; justify-content: center; align-self: end; }
.hero .phones .phone:nth-child(2) { margin-top: 48px; }
.hero .copy { padding-bottom: 64px; }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; }
  .hero .copy { padding-bottom: 8px; }
  .hero .phones .phone:nth-child(2) { display: none; }
}
.page-hero { background: var(--navy); color: #fff; padding: 56px 0 48px; }
.page-hero p { color: #d6e4f2; font-size: 1.15rem; max-width: 40em; margin: 0; }

/* Phone frame around screenshots */
.phone { width: 230px; max-width: 46vw; border-radius: 28px; padding: 8px; background: #0a1520; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); flex: none; }
.phone img { border-radius: 21px; width: 100%; height: auto; }
.hero .phone { border-bottom-left-radius: 0; border-bottom-right-radius: 0; padding-bottom: 0; }
.hero .phone img { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

/* Sections */
section { padding: 72px 0; }
section.soft { background: var(--bg-soft); }
.section-head { max-width: 46em; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-weight: 800; font-size: 0.8rem; color: var(--teal); margin-bottom: 8px; display: block; }

.grid { display: grid; gap: 20px; }
.grid.cols-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 6px; }
.card p:last-child { margin-bottom: 0; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(15, 163, 163, 0.12); color: var(--teal); margin-bottom: 12px; }
.icon svg { width: 24px; height: 24px; }

/* Feature rows with a screenshot */
.feature { display: grid; grid-template-columns: 1fr 260px; gap: 48px; align-items: center; padding: 40px 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; }
.feature.flip { grid-template-columns: 260px 1fr; }
.feature.flip .phone { order: -1; }
.feature ul { padding-left: 1.2em; margin: 0; }
.feature li { margin-bottom: 0.4em; }
@media (max-width: 760px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 24px; }
  .feature .phone, .feature.flip .phone { order: 0; margin: 0 auto; }
}

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.stat { text-align: center; padding: 18px; }
.stat b { display: block; font-size: 2.2rem; font-weight: 900; color: var(--teal); line-height: 1.1; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); position: relative; }
.plan.best { border: 2px solid var(--teal); }
.plan .badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--teal); color: #fff; font-size: 0.78rem; font-weight: 800; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.plan .price { font-size: 2.4rem; font-weight: 900; line-height: 1.1; margin: 8px 0 2px; }
.plan .per { color: var(--muted); font-weight: 700; font-size: 1rem; }
.plan .note { color: var(--muted); min-height: 3em; }
.plan .btn { margin-top: auto; text-align: center; }
.checks { list-style: none; padding: 0; margin: 0; columns: 2 260px; column-gap: 32px; }
.checks li { padding-left: 30px; position: relative; margin-bottom: 10px; break-inside: avoid; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/13px no-repeat; }
details.faq { border-bottom: 1px solid var(--line); padding: 16px 0; }
details.faq summary { font-weight: 800; cursor: pointer; }
details.faq p { margin: 10px 0 0; color: var(--muted); }

/* Coverage list */
.areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.area { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.area h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.area h3 span { font-size: 0.85rem; color: var(--muted); font-weight: 700; white-space: nowrap; }
.area ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: 0.95rem; max-height: 340px; overflow: auto; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 0.95rem; color: var(--muted); }

/* Forms and account */
.panel { max-width: 460px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.panel.wide { max-width: 760px; }
label { display: block; font-weight: 800; margin: 14px 0 6px; font-size: 0.95rem; }
input[type="email"], input[type="password"], input[type="text"] { width: 100%; padding: 12px 14px; font: inherit; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
input:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: transparent; }
form .btn { width: 100%; margin-top: 20px; }
.msg { margin-top: 14px; padding: 10px 14px; border-radius: 10px; font-size: 0.95rem; display: none; }
.msg.show { display: block; }
.msg.err { background: rgba(192, 57, 43, 0.1); color: var(--danger); }
.msg.ok { background: rgba(30, 142, 90, 0.12); color: var(--ok); }
.msg.info { background: rgba(31, 111, 178, 0.1); color: var(--blue); }
.rows { margin: 0; }
.rows > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rows > div:last-child { border-bottom: 0; }
.rows dt { color: var(--muted); font-weight: 700; }
.rows dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
@media (max-width: 520px) { .rows > div { grid-template-columns: 1fr; gap: 2px; } }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.82rem; font-weight: 800; background: var(--bg-soft); color: var(--muted); }
.pill.ok { background: rgba(30, 142, 90, 0.14); color: var(--ok); }
.pill.warn { background: rgba(199, 119, 0, 0.14); color: var(--warn); }
.pill.err { background: rgba(192, 57, 43, 0.12); color: var(--danger); }
.acct-grid { display: grid; gap: 20px; }
.acct-grid .card h2 { font-size: 1.3rem; }
.hidden { display: none !important; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); cursor: pointer; text-decoration: underline; }

/* CTA band and footer */
.cta { background: linear-gradient(135deg, var(--teal-dark), var(--blue)); color: #fff; border-radius: 22px; padding: 44px 32px; text-align: center; }
.cta p { color: #e6f4f7; font-size: 1.1rem; }
.cta .btn-row { justify-content: center; }
.site-footer { background: var(--navy); color: #b9cbdd; padding: 40px 0; font-size: 0.95rem; margin-top: 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.site-footer a { color: #d6e4f2; text-decoration: none; margin-right: 18px; }
.site-footer a:hover { color: #fff; }
.site-footer .notice { flex-basis: 100%; font-size: 0.85rem; color: #8ea6bd; }
