/* Beachs site. Sand, tide, and the same green / yellow / red the grid uses. System fonts only. */

:root {
  --sand: #f4eadb;
  --sand-deep: #e7d7c0;
  --foam: #fffaf3;
  --ink: #14303c;
  --muted: #4e6570;
  --line: #d9cbb6;
  --sea: #0e3a4d;
  --tide: #1a7a72;
  --safe: #2e7d32;
  --rising: #f9a825;
  --wash: #c62828;
  --sun: #f4b942;
  --gutter: clamp(16px, 4vw, 32px);
  --measure: 1080px;
  --radius: 18px;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font: 400 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ol,
ul,
figure,
blockquote {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

a {
  color: var(--tide);
  text-underline-offset: 3px;
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--sea);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  text-wrap: balance;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.5rem, 6.5vw, 4.6rem);
  line-height: 0.98;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1.12;
  font-weight: 800;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.25;
  font-weight: 750;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
}

.skip:focus {
  left: 12px;
  z-index: 5;
  background: var(--sun);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
}

.wrap {
  width: min(var(--measure), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: color-mix(in srgb, var(--sand) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}

.brand svg {
  width: 28px;
  height: 28px;
  flex: none;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

.site-header nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-header nav a:hover {
  text-decoration: underline;
}

.hero {
  background:
    radial-gradient(900px 420px at 90% -10%, color-mix(in srgb, var(--sun) 55%, transparent), transparent 60%),
    linear-gradient(180deg, #f7f1e6 0%, var(--sand) 70%);
  padding: clamp(36px, 7vw, 80px) 0 clamp(28px, 5vw, 56px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  background: var(--foam);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rising);
}

.lead {
  margin-top: 16px;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--sea);
  color: var(--sea);
  text-decoration: none;
  font-weight: 650;
}

.button.primary {
  background: var(--sea);
  color: #f7f3ea;
}

.button:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

.phone {
  margin: 0;
}

.phone svg {
  width: min(100%, 340px);
  height: auto;
  display: block;
  margin-inline: auto;
  filter: drop-shadow(0 18px 30px rgba(20, 48, 60, 0.16));
}

.phone .body {
  fill: var(--sea);
}

.phone .screen {
  fill: #f7f1e4;
}

.phone .island {
  fill: #082430;
}

.phone .safe { fill: #2e7d32; }
.phone .rising { fill: #f9a825; }
.phone .wash { fill: #c62828; }
.phone .cell {
  stroke: rgba(255, 250, 243, 0.55);
  stroke-width: 2;
}

.phone .castle {
  fill: none;
  stroke: var(--sea);
  stroke-width: 3;
  stroke-linejoin: round;
}

.phone .caption {
  fill: var(--muted);
  font: 600 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

section {
  padding: clamp(48px, 8vw, 88px) 0;
}

.band {
  background: var(--foam);
  border-block: 1px solid var(--line);
}

.steps,
.cards,
.signals {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.steps {
  grid-template-columns: repeat(3, 1fr);
}

.cards,
.signals {
  grid-template-columns: repeat(2, 1fr);
}

.steps li,
.cards li,
.signals li,
.note {
  background: var(--foam);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.band .steps li {
  background: var(--sand);
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--sea);
  color: #f7f3ea;
  font-weight: 750;
  font-size: 0.95rem;
}

.steps p,
.cards p,
.signals p,
.note p,
.prose p {
  margin-top: 8px;
  color: var(--muted);
}

.swatch {
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  margin-right: 6px;
  border-radius: 3px;
  vertical-align: -1px;
}

.swatch.safe { background: var(--safe); }
.swatch.rising { background: var(--rising); }
.swatch.wash { background: var(--wash); }

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.questions details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.questions summary {
  cursor: pointer;
  font-weight: 700;
}

.questions details p {
  margin-top: 8px;
  color: var(--muted);
  max-width: 42rem;
}

.prose {
  max-width: 42rem;
}

.prose p + p,
.prose ul {
  margin-top: 12px;
}

.prose ul {
  list-style: disc;
  padding-left: 1.2rem;
  color: var(--muted);
}

.site-footer {
  background: var(--sea);
  color: #e7f0f2;
  padding: 36px 0;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
}

.site-footer a {
  color: #f4eadb;
}

.site-footer .brand {
  color: #f7f3ea;
}

.fine {
  color: #c5d5db;
  font-size: 0.92rem;
  max-width: 36rem;
}

@media (max-width: 800px) {
  .hero-grid,
  .steps,
  .split,
  .cards,
  .signals {
    grid-template-columns: 1fr;
  }

  .site-header nav a[href="#edge"] {
    display: none;
  }
}
