/* crewtide.app marketing site. Brand: Direction A "Tideline" (crewtide/src/brand/crewtide.js).
   Colors and fonts are tokens here; nothing below hardcodes a brand color except the logo's coral wave. */
/* Fonts are self-hosted (latin subset, SIL Open Font License), preloaded in each page.
   font-display: optional means no layout shift: on a slow first visit the system font is used for that page view. */
@font-face { font-family: "Sora"; font-style: normal; font-weight: 600 700; font-display: optional; src: url("/fonts/sora-latin-v17.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: optional; src: url("/fonts/dm-sans-latin-v17.woff2") format("woff2"); }
:root {
  --harbor: #0B3C46;
  --harbor-2: #0E4652;
  --harbor-3: #124B56;
  --coral: #FF6A4D;
  --coral-hover: #FF8771;
  --on-coral: #2A0F08;
  --foam: #E7F2F0;
  --shallows: #3F8F8A;
  --shallows-ink: #2E6E6A;     /* shallows darkened for text on white (AA) */
  --ink: #12262B;
  --muted: #4A5E63;
  --line: #D3E3E0;
  --surface: #FFFFFF;
  --on-harbor: #E7F2F0;
  --on-harbor-muted: #A9CACB;
  --font-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --radius: 14px;
  --gutter: 16px;
  --shadow: 0 1px 2px rgba(11, 60, 70, .06), 0 8px 24px rgba(11, 60, 70, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--shallows-ink); text-underline-offset: 3px; }
a:hover { color: var(--harbor); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.02em; margin: 0; color: var(--harbor); }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.3rem); font-weight: 700; max-width: 22ch; }
h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
:where(ul[role="list"]) { list-style: none; margin: 0; padding: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--coral); color: var(--on-coral); padding: 10px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 820px; }
@media (min-width: 720px) { :root { --gutter: 28px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-family: var(--font-body); font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn-coral { background: var(--coral); color: var(--on-coral); }
.btn-coral:hover { background: var(--coral-hover); color: var(--on-coral); }
.btn-ghost-light { border-color: rgba(231, 242, 240, .55); color: var(--on-harbor); }
.btn-ghost-light:hover { border-color: var(--on-harbor); color: #fff; background: rgba(255, 255, 255, .06); }
.btn-harbor { background: var(--harbor); color: #fff; }
.btn-harbor:hover { background: var(--harbor-3); color: #fff; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .92rem; }
.btn-block { width: 100%; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(11, 60, 70, .97); border-bottom: 1px solid rgba(231, 242, 240, .1); }
.top-inner { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--on-harbor); }
.brand:hover { color: #fff; }
.brand-mark { width: 34px; height: 34px; color: var(--on-harbor); }
.brand-word { font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; letter-spacing: -0.03em; line-height: 1; padding-bottom: 3px; }
.top-nav { display: none; gap: 22px; margin-left: auto; }
.top-nav a { color: var(--on-harbor-muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.top-nav a:hover { color: #fff; }
.top .btn { margin-left: auto; }
@media (min-width: 900px) { .top-nav { display: flex; } .top .btn { margin-left: 8px; } }

/* Shared section bits */
.section { padding: 64px 0; }
@media (min-width: 720px) { .section { padding: 96px 0; } }
.band-foam { background: var(--foam); }
.band-harbor { background: var(--harbor); color: var(--on-harbor); }
.band-harbor h2, .band-harbor h3 { color: #fff; }
.band-harbor .section-lede { color: var(--on-harbor-muted); }
.band-harbor a { color: #fff; }
.eyebrow { font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--shallows-ink); margin-bottom: 12px; }
.eyebrow-light { color: #8FD3CC; }
.section-lede { font-size: 1.1rem; color: var(--muted); max-width: 60ch; margin-top: 14px; }
.muted { color: var(--muted); margin-top: 14px; max-width: 56ch; }
.note { margin-top: 32px; padding: 16px 18px; border-left: 4px solid var(--shallows); background: var(--foam); border-radius: 0 10px 10px 0; color: var(--ink); max-width: 75ch; }
.fine { font-size: .86rem; color: var(--muted); margin-top: 12px; }
.fine-light { color: var(--on-harbor-muted); max-width: 90ch; }
.h-sm { font-size: 1.15rem; max-width: none; }

/* Hero */
.hero { background: radial-gradient(120% 90% at 85% 10%, var(--harbor-3) 0%, var(--harbor) 60%); color: var(--on-harbor); padding: 48px 0 56px; overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero .eyebrow { color: #8FD3CC; }
.hero h1 { color: #fff; font-size: clamp(2rem, 6.4vw, 3.3rem); font-weight: 700; letter-spacing: -0.03em; max-width: 18ch; }
.hero h1 .hl { color: var(--coral); }
.hero .lede { margin-top: 18px; font-size: 1.15rem; color: var(--on-harbor-muted); max-width: 54ch; }
.hero .lede strong { color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; font-weight: 500; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 20px; height: 20px; color: var(--coral); }
.hero-phones { margin: 0; display: grid; justify-items: center; gap: 14px; }
.phone-pair { position: relative; width: min(380px, 92vw); aspect-ratio: 380 / 640; }
.phone-pair .phone { position: absolute; width: 66%; }
.phone-back { left: 0; top: 0; transform: rotate(-4deg); opacity: .96; }
.phone-front { right: 0; bottom: 0; transform: rotate(3deg); }
.hero-phones figcaption { font-size: .88rem; color: var(--on-harbor-muted); text-align: center; max-width: 34ch; }
@media (min-width: 900px) {
  .hero { padding: 72px 0 80px; }
  .hero-grid { grid-template-columns: 1.25fr .75fr; gap: 56px; }
}

/* Phone frame around app screenshots */
.phone { width: min(300px, 78vw); aspect-ratio: 390 / 844; border-radius: 38px; padding: 9px; background: #0A2329; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 60px rgba(0, 0, 0, .35); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 30px; background: var(--foam); }
.phone-sm { width: min(240px, 70vw); border-radius: 32px; padding: 8px; box-shadow: var(--shadow); }
.phone-sm img { border-radius: 25px; }

/* Who it's for */
.band-foam:not(.section) { padding: 36px 0; }
.who-grid { display: grid; gap: 20px; margin-top: 18px; }
@media (min-width: 800px) { .who-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.who-h { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--shallows-ink); font-family: var(--font-body); font-weight: 700; }
.trades { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.trades li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 500; color: var(--harbor); }

/* Features */
.features { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.feature p { margin-top: 8px; color: var(--muted); font-size: .98rem; }
.f-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--foam); margin-bottom: 14px; }
.f-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--harbor); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Demo */
.video-slot { margin-top: 36px; aspect-ratio: 16 / 9; max-width: 880px; border-radius: var(--radius); background: linear-gradient(135deg, var(--harbor) 0%, var(--harbor-3) 100%); display: grid; place-items: center; text-align: center; color: var(--on-harbor); padding: 20px; box-shadow: var(--shadow); }
.play { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--coral); margin-bottom: 12px; }
.play svg { width: 28px; height: 28px; fill: var(--on-coral); margin-left: 3px; }
.video-title { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; color: #fff; }
.video-sub { color: var(--on-harbor-muted); margin-top: 4px; }
.video-sub a { color: #fff; }
.shots { display: grid; gap: 36px; margin-top: 48px; }
@media (min-width: 600px) { .shots { grid-template-columns: 1fr 1fr; gap: 40px 24px; } }
@media (min-width: 1080px) { .shots { grid-template-columns: repeat(4, 1fr); } }
.shot { margin: 0; display: grid; justify-items: center; gap: 16px; align-content: start; }
.shot figcaption { max-width: 32ch; text-align: center; color: var(--muted); font-size: .95rem; }
.shot figcaption strong { color: var(--harbor); }

/* Pricing */
.pricing-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .pricing-grid { grid-template-columns: 1fr minmax(360px, 420px); gap: 64px; } }
.price-card { background: var(--surface); border: 2px solid var(--harbor); border-radius: 20px; padding: 28px 24px; box-shadow: var(--shadow); }
.price-tag { display: inline-block; background: var(--foam); color: var(--harbor); font-weight: 700; font-size: .82rem; border-radius: 999px; padding: 4px 12px; }
.price { font-family: var(--font-head); font-weight: 700; color: var(--harbor); font-size: 4rem; line-height: 1; margin-top: 18px; letter-spacing: -0.04em; }
.price .cur { font-size: 2rem; vertical-align: top; margin-right: 2px; position: relative; top: 8px; }
.price .per { font-size: 1.05rem; font-family: var(--font-body); font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.price-sub { color: var(--muted); margin-top: 6px; }
.ticks { display: grid; gap: 10px; margin: 22px 0 24px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.ticks svg { width: 20px; height: 20px; color: var(--shallows); margin-top: 3px; }

/* Compare */
.table-wrap { margin-top: 32px; overflow-x: auto; border-radius: var(--radius); border: 1px solid rgba(231, 242, 240, .18); }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .98rem; }
.compare th, .compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid rgba(231, 242, 240, .14); vertical-align: top; }
.compare thead th { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-harbor-muted); font-weight: 700; background: rgba(0, 0, 0, .12); }
.compare tbody th { font-weight: 600; color: #fff; }
.compare td:nth-child(2) { font-family: var(--font-head); font-weight: 600; color: #fff; white-space: nowrap; }
.compare td:last-child { color: var(--on-harbor-muted); }
.compare tr.us { background: rgba(255, 106, 77, .14); }
.compare tr.us th, .compare tr.us td { color: #fff; }
.compare tr.us td:nth-child(2) { color: #fff; }
.compare tr.us th { box-shadow: inset 4px 0 0 var(--coral); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare tr.group th { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #8FD3CC; font-weight: 700; padding-top: 18px; padding-bottom: 8px; background: rgba(0, 0, 0, .08); }
@media (max-width: 639px) {
  .table-wrap { overflow: visible; }
  .compare { min-width: 0; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tbody tr { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; padding: 14px 16px; border-bottom: 1px solid rgba(231, 242, 240, .14); }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare tbody th, .compare tbody td { padding: 0; border: 0; }
  .compare tbody td:last-child { grid-column: 1 / -1; margin-top: 4px; font-size: .92rem; }
  .compare tr.group { display: block; padding: 16px 16px 8px; }
  .compare tr.group th { padding: 0; background: none; }
  .compare tr.us th { box-shadow: none; }
  .compare tr.us { box-shadow: inset 4px 0 0 var(--coral); }
}

/* Packages */
.packages { display: grid; gap: 20px; margin-top: 40px; }
@media (min-width: 800px) { .packages { grid-template-columns: 1fr 1fr; } }
.pkg { border: 1px solid var(--line); border-radius: 20px; padding: 26px 24px; background: var(--surface); box-shadow: var(--shadow); }
.pkg-feature { border: 2px solid var(--shallows); }
.pkg-price { font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; color: var(--harbor); margin-top: 8px; letter-spacing: -0.02em; }
.pkg-price span { font-family: var(--font-body); font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.pkg .ticks { margin-bottom: 0; }

/* Founding partners */
.quotes { display: grid; gap: 20px; margin-top: 36px; }
@media (min-width: 760px) { .quotes { grid-template-columns: 1fr 1fr; } }
.quote { margin: 0; background: var(--surface); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.quote blockquote { margin: 0; font-size: 1.05rem; }
.quote figcaption { margin-top: 12px; font-weight: 700; color: var(--harbor); font-size: .92rem; }
.quote-empty { border-style: dashed; border-color: #9DBDB8; background: transparent; }
.quote-empty blockquote { color: var(--muted); font-style: italic; }

/* FAQ */
.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-family: var(--font-head); font-weight: 600; color: var(--harbor); font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid var(--shallows); border-bottom: 2.5px solid var(--shallows); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 70ch; }

/* Something different */
.different { max-width: 860px; }
.different .cta-row { align-items: center; gap: 12px 22px; }
.link-strong { font-weight: 700; color: var(--harbor); }

/* Contact */
.contact-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr minmax(380px, 460px); gap: 64px; align-items: start; } }
.contact-alt { margin-top: 18px; color: var(--on-harbor-muted); }
.contact-form { background: var(--harbor-2); border: 1px solid rgba(231, 242, 240, .14); border-radius: 20px; padding: 24px 20px; display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; gap: 16px; }
@media (min-width: 480px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-weight: 500; font-size: .95rem; color: var(--on-harbor); }
.opt { color: var(--on-harbor-muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 2px solid transparent; border-radius: 10px; padding: 11px 12px; min-height: 48px; }
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--coral); }
.field input[aria-invalid="true"] { border-color: var(--coral); }
.form-error { color: #FFB8A8; font-weight: 500; }

/* Footer */
.foot { background: #082E36; color: var(--on-harbor-muted); padding: 48px 0 28px; font-size: .95rem; }
.foot a { color: var(--on-harbor); }
.foot-inner { display: grid; gap: 28px; }
@media (min-width: 760px) { .foot-inner { grid-template-columns: 1.4fr 1fr; } }
.foot-inner p { margin-top: 10px; }
.brand-foot .brand-word { font-size: 1.3rem; }
.foot-links { display: grid; gap: 8px; }
.soon { color: #8DAFB0; }
.copy { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(231, 242, 240, .1); font-size: .82rem; }
