/* ============================================================
   Coastal 360 Pro — marketing site
   Palette: #0A1420 (base) · #101E30 (panel) · #3FD4F5 (cyan)
            #1E6FE0 (deep blue) · #F5A623 (amber) · #EDF3F8 (text)
            #7C93A8 (muted)
   Type: Big Shoulders Display (display) · IBM Plex Sans (body)
         IBM Plex Mono (data readouts only)
   ============================================================ */

:root{
  --bg: #0A1420;
  --panel: #101E30;
  --panel-2: #0D1826;
  --line: #1C3049;
  --cyan: #3FD4F5;
  --blue: #1E6FE0;
  --amber: #F5A623;
  --text: #EDF3F8;
  --muted: #7C93A8;
  --radius-sm: 6px;
  --radius-md: 10px;
  --maxw: 1120px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3{
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.98;
  margin: 0;
  color: var(--text);
}

p{ margin: 0; }

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

.mono{
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.02em;
}

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

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

:focus-visible{
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ---------- Top nav ---------- */
.topnav{
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 20, 32, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topnav .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img{
  height: 38px;
  width: 38px;
  border-radius: 9px;
}
.brand span{
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.topnav nav{
  display: flex;
  gap: 28px;
}
.topnav nav a{
  color: var(--muted);
  font-size: 15px;
}
.topnav nav a:hover{ color: var(--text); text-decoration: none; }

/* ---------- Status chip (real state, not a CTA) ---------- */
.status-chip{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 11px;
  border: 1px solid rgba(245, 166, 35, 0.45);
  background: rgba(245, 166, 35, 0.08);
  border-radius: 999px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
}
.status-chip .dot{
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.18);
}

/* ---------- Hero ---------- */
.hero{
  position: relative;
  padding: 96px 0 0;
  overflow: hidden;
}
.hero .wrap{
  position: relative;
  z-index: 2;
  max-width: 640px;
}
.hero h1{
  font-size: clamp(36px, 7vw, 76px);
  letter-spacing: 0;
  margin: 22px 0 20px;
}
.hero h1 em{
  display: inline-block;
  white-space: nowrap;
  font-style: normal;
  background: linear-gradient(100deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede{
  font-size: 19px;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 30px;
}
.hero-curve{
  display: block;
  width: 100%;
  height: auto;
  margin-top: 64px;
}
.hero-curve path.fill{
  fill: url(#tideFillGrad);
}
.hero-curve path.line{
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2;
  stroke-linecap: round;
}

.hero + .feature{ border-top: 0; }

/* ---------- Section divider (tide curve, reused) ---------- */
.tide-divider{
  display: block;
  width: 100%;
  height: 48px;
}
.tide-divider path{
  fill: none;
  stroke: var(--line);
  stroke-width: 1.5;
}

/* ---------- Feature sections ---------- */
.feature{
  padding: 84px 0;
  border-top: 1px solid var(--line);
}
.feature .grid{
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.feature.reverse .grid{
  grid-template-columns: 1.1fr 1fr;
}
.feature.reverse .grid > .copy{ order: 2; }
.feature.reverse .grid > .shot{ order: 1; }

.feature .kicker{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
  display: block;
}
.feature h2{
  font-size: clamp(30px, 4vw, 42px);
  margin-bottom: 18px;
}
.feature .copy p{
  color: var(--muted);
  font-size: 16.5px;
  max-width: 48ch;
  margin-bottom: 14px;
}
.feature .copy p:last-child{ margin-bottom: 0; }
.feature .copy p strong{ color: var(--text); font-weight: 600; }

/* Full screenshots inside a compact phone bezel. */
.shot-frame{
  position: relative;
  width: min(100%, 320px);
  margin: 0 auto;
  border-radius: 44px;
  padding: 9px;
  background: #090c10;
  border: 2px solid #526170;
  box-shadow: inset 0 0 0 2px #1d2630, 0 24px 60px rgba(0,0,0,.35);
}
.shot-frame::before,
.shot-frame::after{
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: #526170;
}
.shot-frame::before{ left: -5px; top: 100px; height: 56px; box-shadow: 0 66px 0 #526170; }
.shot-frame::after{ right: -5px; top: 142px; height: 72px; }
.shot-frame img{
  border-radius: 33px;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 804 / 1748;
}

/* ---------- Plan-ahead / calendar spotlight ---------- */
.spotlight{
  padding: 90px 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(63,212,245,0.035) 40%, transparent);
}
.spotlight .head{
  max-width: 560px;
  margin: 0 auto 44px;
  text-align: left;
}
.spotlight .kicker{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
  display: block;
}
.spotlight h2{ font-size: clamp(30px, 4vw, 42px); margin-bottom: 16px; }
.spotlight p{ color: var(--muted); max-width: 52ch; }
.spotlight .shot-frame{
  max-width: 320px;
  margin: 0 auto;
}

/* ---------- Tab strip (mirrors the app's own bottom nav) ---------- */
.tabstrip-wave{
  display: block;
  width: 100%;
  height: clamp(48px, 7vw, 80px);
}
.tabstrip-wave .fill{ fill: url(#tabWaveFade); }
.tabstrip-wave .line{ fill: none; stroke: var(--cyan); stroke-width: 2; }
.tabstrip-wrap{
  background: linear-gradient(180deg, rgba(63,212,245,.10), rgba(63,212,245,0));
  padding-bottom: 32px;
}
.tabstrip{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--maxw);
  margin: 0 auto;
}
.tabstrip a{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 26px 12px;
  color: var(--muted);
  border-right: 1px solid var(--line);
  font-size: 14px;
}
.tabstrip a:last-child{ border-right: none; }
.tabstrip a:hover{ color: var(--cyan); text-decoration: none; background: rgba(63,212,245,0.04); }
.tabstrip svg{ width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Differentiators ---------- */
.differentiators{
  padding: 90px 0;
}
.differentiators .head{
  max-width: 560px;
  margin-bottom: 48px;
}
.differentiators .kicker{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
  display: block;
}
.differentiators h2{ font-size: clamp(30px, 4vw, 42px); }

.diff-grid{
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.diff-card{
  background: var(--panel);
  padding: 32px 28px;
}
.diff-card:first-child{
  grid-row: span 2;
  background: linear-gradient(160deg, rgba(63,212,245,0.09), var(--panel) 60%);
}
.diff-card:last-child{
  grid-column: span 2;
}
.diff-card h3{
  font-size: 22px;
  margin-bottom: 12px;
  text-transform: none;
}
.diff-card p{
  color: var(--muted);
  font-size: 15.5px;
}

/* ---------- FAQ ---------- */
.faq{
  padding: 90px 0 100px;
  border-top: 1px solid var(--line);
}
.faq-content{
  width: calc(100% - 40px);
  max-width: 760px;
  margin: 0 auto;
}
.faq .kicker{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
  display: block;
}
.faq h2{ font-size: clamp(30px, 4vw, 40px); margin-bottom: 34px; }

.faq-item{
  border-top: 1px solid var(--line);
}
.faq-item:last-child{ border-bottom: 1px solid var(--line); }
.faq-item summary{
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  font-size: 17.5px;
  font-weight: 500;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary .plus{
  flex: none;
  width: 22px;
  height: 22px;
  position: relative;
}
.faq-item summary .plus::before,
.faq-item summary .plus::after{
  content: '';
  position: absolute;
  background: var(--cyan);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}
.faq-item summary .plus::before{ width: 14px; height: 2px; }
.faq-item summary .plus::after{ width: 2px; height: 14px; transition: transform .18s ease; }
.faq-item[open] summary .plus::after{ transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.faq-item .a{
  padding: 0 4px 24px;
  color: var(--muted);
  max-width: 58ch;
}

/* ---------- Footer ---------- */
footer{
  border-top: 1px solid var(--line);
  background: var(--panel-2);
  padding: 48px 0;
}
footer .wrap{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-brand{
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand img{ height: 30px; width: 30px; border-radius: 7px; }
.footer-brand .legal{
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}
.footer-links{
  display: flex;
  gap: 24px;
  font-size: 14.5px;
}
.footer-links a{ color: var(--muted); }
.footer-links a:hover{ color: var(--cyan); }

/* ---------- Responsive ---------- */
@media (max-width: 860px){
  .feature .grid,
  .feature.reverse .grid{
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .feature.reverse .grid > .copy,
  .feature.reverse .grid > .shot{ order: initial; }
  .diff-grid{ grid-template-columns: 1fr; }
  .diff-card:first-child{ grid-row: auto; }
  .diff-card:last-child{ grid-column: auto; }
  .tabstrip{ grid-template-columns: repeat(2, 1fr); }
  .tabstrip a:nth-child(2){ border-right: none; }
  .topnav nav{ display: none; }
}

@media (max-width: 520px){
  .wrap{ padding: 0 20px; }
  .hero{ padding-top: 64px; }
  .hero h1{ font-size: 34px; }
  footer .wrap{ flex-direction: column; align-items: flex-start; }
}

/* Shared navigation, document pages, and accessibility. */
.brand { color: var(--text); }
.brand:hover { text-decoration: none; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 100; padding: 12px 18px; background: var(--cyan); color: var(--bg); font-weight: 600; }
.skip-link:focus { top: 12px; }
html { scroll-padding-top: 125px; }
img { height: auto; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin: 28px 0 20px; }
.button { display: inline-flex; align-items: center; gap: 24px; background: var(--cyan); color: var(--bg); border-radius: 6px; padding: 12px 20px; font-weight: 600; min-height: 48px; }
.button:hover { background: #85e6fa; text-decoration: none; }
.caption { color: var(--muted); font-size: 14px; line-height: 1.6; }
.hero .caption { margin: 0; }
.safety-note { padding-top: 48px; padding-bottom: 56px; }
.safety-note h2 { font-size: 32px; margin-bottom: 16px; }
.safety-note p { max-width: 75ch; margin: 12px 0 0; color: var(--muted); }
.document { max-width: 860px; padding-top: 50px; padding-bottom: 84px; overflow-wrap: anywhere; }
.back-link { display: inline-block; padding: 10px 0; margin-bottom: 24px; }
.document h1 { font-size: clamp(40px, 7vw, 68px); margin-bottom: 20px; }
.document-lede { font-size: 20px; color: var(--muted); margin-bottom: 28px; }
.document section { margin-top: 42px; padding-top: 28px; border-top: 1px solid var(--line); }
.document h2 { font-size: 30px; line-height: 1.15; margin: 0 0 18px; }
.document p + p { margin-top: 16px; }
.document section p, .document li { color: #b6c7d6; }
.document li { margin-bottom: 12px; }
.document ul { padding-left: 24px; }
.document a:not(.back-link), .safety-note a { text-decoration: underline; text-underline-offset: 3px; }
.draft-note { border-left: 3px solid var(--amber); background: #211f1b; color: #f1cf93; padding: 18px 22px; margin: 22px 0; font-size: 15px; }
.footer-links { flex-wrap: wrap; column-gap: 24px; row-gap: 8px; }
.footer-links a { padding: 8px 0; }
@media (max-width: 860px) {
 .topnav .wrap { min-height: 72px; height: auto; flex-wrap: wrap; gap: 6px 20px; padding-top: 12px; padding-bottom: 8px; }
 .topnav nav { display: flex; flex-wrap: wrap; column-gap: 18px; row-gap: 0; }
 .topnav nav a { display: inline-block; padding: 7px 0; font-size: 14px; }
 .feature.reverse .grid > .copy { order: 0; }
 .feature.reverse .grid > .shot { order: 1; }
}
@media (max-width: 520px) {
 .status-chip { font-size: 11px; letter-spacing: .04em; }
 .hero { padding-top: 48px; }
 .hero-curve { margin-top: 36px; }
 .document { padding-top: 28px; }
 .document h2 { font-size: 28px; }
 .feature { padding: 52px 0; }
}

.map-credit { color: var(--muted); font-size: 12px; line-height: 1.6; margin-top: 14px; }
.map-credit a { text-decoration: underline; text-underline-offset: 2px; }

.document a[href^="mailto:"] { overflow-wrap: anywhere; }

footer .map-credit { flex-basis: 100%; margin-top: 0; }
