/* BeachGuard — palette lifted directly from BeachGuardDesign.swift so the site
   and the app read as one product. */
:root {
  --paper: #f4f3ed;
  --paper-raised: #fbfaf6;
  --ink: #0f0f0f;
  --ink-soft: rgba(15, 15, 15, 0.62);
  --ink-faint: rgba(15, 15, 15, 0.60);
  --hairline: rgba(15, 15, 15, 0.12);
  --signal: #ff3b30;
  --signal-text: #c7231a;
  --signal-soft: rgba(255, 59, 48, 0.10);
  --green: #34c759;
  --radius: 30px;
  --measure: 680px;
  --wide: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b0c0d;
    --paper-raised: #131416;
    --ink: #f5f5f5;
    --ink-soft: rgba(245, 245, 245, 0.64);
    --ink-faint: rgba(245, 245, 245, 0.50);
    --hairline: rgba(245, 245, 245, 0.14);
    --signal-soft: rgba(255, 59, 48, 0.14);
    --signal-text: #ff6b61;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.measure { max-width: var(--measure); }

/* ---------- Type ---------- */

h1, h2, h3 {
  letter-spacing: -0.033em;
  line-height: 1.08;
  font-weight: 600;
  margin: 0;
}

h1 { font-size: clamp(2.6rem, 6.4vw, 4.35rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); letter-spacing: -0.028em; }
h3 { font-size: 1.12rem; letter-spacing: -0.018em; line-height: 1.35; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

.eyebrow {
  font-size: 0.685rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 22px;
}

.lede {
  font-size: clamp(1.12rem, 2.05vw, 1.34rem);
  line-height: 1.55;
  color: var(--ink-soft);
  letter-spacing: -0.016em;
}

.muted { color: var(--ink-soft); }
.small { font-size: 0.895rem; line-height: 1.58; }

/* ---------- Header ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.masthead.scrolled { border-bottom-color: var(--hairline); }

.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  text-decoration: none;
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.brand span { color: var(--ink-faint); letter-spacing: 0.02em; text-transform: none; font-weight: 400; font-size: 0.76rem; }

.masthead nav {
  display: flex;
  gap: 26px;
  font-size: 0.87rem;
}
.masthead nav a {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.masthead nav a:hover { color: var(--ink); }

@media (max-width: 620px) {
  .masthead nav { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(72px, 12vw, 132px) 0 clamp(56px, 8vw, 96px);
  text-align: center;
}

.hero h1 { margin-bottom: 24px; }
.hero .lede { margin: 0 auto; max-width: 33ch; }

/* The circular control, rebuilt from the app's home screen. */
.dial {
  position: relative;
  width: min(272px, 72vw);
  aspect-ratio: 1;
  margin: clamp(46px, 7vw, 72px) auto clamp(38px, 6vw, 58px);
  display: grid;
  place-items: center;
}

.dial .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  animation: breathe 2.6s ease-in-out infinite;
}
.dial .ring:nth-child(1) { inset: -34px; animation-delay: 0s; }
.dial .ring:nth-child(2) { inset: -18px; animation-delay: 0.22s; opacity: 0.72; }
.dial .ring:nth-child(3) { inset: -2px;  animation-delay: 0.44s; opacity: 0.5; }

@keyframes breathe {
  0%, 100% { transform: scale(1);     opacity: 0.95; }
  50%      { transform: scale(1.045); opacity: 0.45; }
}

.dial .face {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
  box-shadow: 0 22px 60px -28px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
}

.dial .face svg { width: 26px; height: 26px; opacity: 0.9; }
.dial .kicker {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.dial .title { font-size: 1.33rem; font-weight: 600; letter-spacing: -0.02em; }

/* ---------- Pills / badges ---------- */

.pillrow {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 100px;
  border: 1px solid var(--hairline);
  font-size: 0.83rem;
  color: var(--ink-soft);
  background: var(--paper-raised);
}
.pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); flex: none;
}

.status {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 100px;
  background: var(--signal-soft);
  color: var(--signal-text);
  font-size: 0.79rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ---------- Sections ---------- */

section { padding: clamp(64px, 9vw, 108px) 0; }
.section-head { margin-bottom: clamp(40px, 5vw, 62px); }
.section-head h2 { margin-bottom: 18px; }
.section-head .lede { max-width: 46ch; }

.rule { height: 1px; background: var(--hairline); border: 0; margin: 0; }

/* ---------- Steps ---------- */

.steps {
  display: grid;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 840px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step { background: var(--paper); padding: 34px 28px; }
.step .n {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 9px; }
.step p { color: var(--ink-soft); font-size: 0.925rem; line-height: 1.58; }

/* ---------- Feature grid ---------- */

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
}

.card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 32px 30px;
  background: var(--paper-raised);
}
.card .ic {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  margin-bottom: 20px;
}
.card .ic svg { width: 18px; height: 18px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 0.93rem; line-height: 1.6; }

/* ---------- Honest limits ---------- */

.limits {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: clamp(32px, 4.6vw, 52px);
  background: var(--paper-raised);
}
.limits ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 15px; }
@media (min-width: 760px) { .limits ul { grid-template-columns: 1fr 1fr; gap: 15px 40px; } }
.limits li {
  display: flex; gap: 13px; align-items: flex-start;
  font-size: 0.94rem; color: var(--ink-soft); line-height: 1.55;
}
.limits li svg { flex: none; width: 17px; height: 17px; margin-top: 3px; color: var(--signal-text); }

/* ---------- Privacy strip ---------- */

.privacy-strip {
  display: grid;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 720px) { .privacy-strip { grid-template-columns: repeat(3, 1fr); } }
.privacy-strip div { background: var(--paper); padding: 34px 26px; text-align: center; }
.privacy-strip .v {
  font-size: 2.05rem; font-weight: 600; letter-spacing: -0.035em;
  display: block; margin-bottom: 5px;
}
.privacy-strip .k { font-size: 0.855rem; color: var(--ink-soft); }

/* ---------- Legal pages ---------- */

.legal { padding: clamp(56px, 8vw, 92px) 0 clamp(72px, 9vw, 112px); }
.legal h1 { font-size: clamp(2.1rem, 4.6vw, 3rem); margin-bottom: 14px; }
.legal .stamp {
  font-size: 0.85rem; color: var(--ink-faint);
  padding-bottom: 30px; margin-bottom: 42px;
  border-bottom: 1px solid var(--hairline);
}
.legal section { padding: 0; margin-bottom: 40px; }
.legal section:last-of-type { margin-bottom: 0; }
.legal h2 {
  font-size: 1.16rem; font-weight: 600; letter-spacing: -0.015em;
  margin-bottom: 13px;
}
.legal p { color: var(--ink-soft); }

.legal-nav {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 46px;
}
.legal-nav a {
  padding: 8px 16px; border-radius: 100px;
  border: 1px solid var(--hairline);
  text-decoration: none; font-size: 0.865rem;
  color: var(--ink-soft);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.legal-nav a:hover { color: var(--ink); border-color: var(--ink-faint); }
.legal-nav a[aria-current="page"] {
  color: var(--ink); border-color: var(--ink);
  background: var(--paper-raised);
}

.callout {
  border-left: 2px solid var(--signal);
  background: var(--signal-soft);
  border-radius: 0 14px 14px 0;
  padding: 20px 24px;
  margin: 26px 0;
}
.callout p { color: var(--ink); font-size: 0.93rem; margin: 0; }

/* ---------- Support page ---------- */

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 36px);
  background: var(--paper-raised);
  margin-bottom: 46px;
}
.contact-card .label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 7px;
}
.contact-card .addr {
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 100px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}
.btn:hover { opacity: 0.82; }
.btn svg { width: 16px; height: 16px; }

.faq { margin-bottom: 40px; }
.faq:last-of-type { margin-bottom: 0; }
.faq h2 {
  font-size: 1.16rem; font-weight: 600; letter-spacing: -0.015em;
  margin-bottom: 13px;
}
.faq p { color: var(--ink-soft); }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--hairline);
  padding: 52px 0 62px;
}
.foot {
  display: flex; flex-wrap: wrap;
  gap: 26px; justify-content: space-between; align-items: flex-start;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 22px; font-size: 0.885rem; }
.foot nav a { color: var(--ink-soft); text-decoration: none; transition: color 0.2s ease; }
.foot nav a:hover { color: var(--ink); }
.foot .fine { font-size: 0.82rem; color: var(--ink-faint); max-width: 42ch; }

/* ---------- Reveal ---------- */

/* Progressive enhancement: content is visible by default and only starts
   hidden once the inline script has confirmed JS can reveal it again. A script
   error must never leave the page blank. */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}


/* ---------- Keyboard access ---------- */

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}
.masthead nav a:focus-visible,
.foot nav a:focus-visible,
.legal-nav a:focus-visible { outline-offset: 4px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--paper-raised);
  border: 1px solid var(--ink);
  border-radius: 0 0 12px 0;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}
.skip:focus {
  left: 0;
}
