:root {
  --cream: #f3f2ed;
  --cream-2: #ebeae4;
  --ink: #14130f;
  --ink-2: #1c1a17;
  --muted: #5c574f;
  --amber: #f2b15a;
  --white: #ffffff;
  --shadow: 12px;
  --shadow-sm: 6px;
  --max: 1120px;
  --display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --body: "Figtree", "Segoe UI", sans-serif;
  --pad-y: 56px;
  --pad-x: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.brand img { width: 36px; height: 36px; }

.nav-links {
  display: none;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Buttons / forms */
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 22px;
  border: 2px solid var(--ink);
  background: var(--amber);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm) var(--shadow-sm) 0 var(--ink);
  transform: translate(-1px, -1px);
}

.btn:hover { transform: translate(0, 0); box-shadow: 3px 3px 0 var(--ink); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn:disabled { opacity: 0.6; cursor: wait; }

.btn-nav {
  min-height: 44px;
  min-width: 44px;
  padding: 0 16px;
  font-size: 15px;
}

.field {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 2px solid var(--ink);
  background: var(--white);
  font-family: var(--body);
  font-size: 16px;
  color: var(--ink);
}

.field:focus { outline: 3px solid var(--amber); outline-offset: 0; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.waitlist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.waitlist .btn { width: 100%; }

.fine {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.form-status {
  min-height: 1.4em;
  font-size: 15px;
  font-weight: 600;
  margin: 8px 0 0;
}
.form-status.ok { color: #1f6b3a; }
.form-status.err { color: #9b2c2c; }

/* Hero */
.hero {
  padding: var(--pad-y) 0 32px;
}

.eyebrow {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 13px;
  margin: 0 0 16px;
}

h1, h2, h3 { font-family: var(--display); letter-spacing: -0.04em; line-height: 0.95; margin: 0; }

h1 { font-size: clamp(44px, 8vw, 104px); font-weight: 800; max-width: 14ch; }

.hero-copy { margin-top: 28px; }

.subhead {
  margin: 0 0 20px;
  max-width: 38ch;
  color: var(--ink);
}

/* Hero story card */
.story {
  margin-top: 48px;
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-sm) var(--shadow-sm) 0 var(--ink);
  padding: 20px;
  display: grid;
  gap: 28px;
}

.story-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.kicker {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 13px;
}

.phone {
  width: 220px;
  aspect-ratio: 9 / 19.5;
  background: #000;
  border: 3px solid var(--ink);
  border-radius: 32px;
  padding: 0;
  box-shadow: 0 18px 40px color-mix(in srgb, var(--ink) 25%, transparent);
  overflow: hidden;
  position: relative;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.phone-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 6px 8px;
}

.chip {
  background: var(--amber);
  color: var(--ink);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
}

.camera-view {
  flex: 1;
  margin: 0 4px;
  height: calc(100% - 88px);
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 50% 58%, #c47a3a 0 18%, transparent 19%),
    radial-gradient(ellipse at 50% 62%, #8b3d1c 0 38%, transparent 39%),
    linear-gradient(#2a241c, #1a1612);
  position: relative;
}

.camera-view::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 42%;
  height: 28%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #e8d5a3, #c9a15b 40%, #8a5a22 70%);
  box-shadow: inset 0 0 0 6px #6b3a16;
}

.shutter {
  width: 44px;
  height: 44px;
  border: 3px solid #fff;
  border-radius: 50%;
  margin: 10px auto 0;
  display: grid;
  place-items: center;
}
.shutter span {
  width: 32px;
  height: 32px;
  background: #fff;
  border-radius: 50%;
}

.readout {
  padding: 28px 8px 8px;
}
.readout .about { font-size: 18px; color: var(--muted); margin: 0; }
.readout .big {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(120px, 15vw, 200px);
  line-height: 0.85;
  letter-spacing: -0.06em;
  margin: 0;
}
.readout .unit { font-size: 28px; font-weight: 800; }
.readout .range { margin: 6px 0 0; font-weight: 700; }
.readout .note { margin: 16px 0 0; color: var(--muted); font-size: 15px; }

.dash-hero { padding: 8px 10px 0; }
.dash-hero .cal {
  font-family: var(--display);
  font-size: 42px;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
}
.dash-hero .goal { color: #a89f93; font-size: 12px; }
.bar {
  height: 7px;
  background: color-mix(in srgb, var(--cream) 16%, transparent);
  border-radius: 99px;
  margin: 8px 0 12px;
  overflow: hidden;
}
.bar > i { display: block; height: 100%; width: 28%; background: var(--amber); }
.week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  height: 52px;
  align-items: end;
  margin-bottom: 10px;
}
.week b {
  display: block;
  background: var(--amber);
  border-radius: 3px 3px 0 0;
}
.meal {
  background: var(--ink-2);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

/* Features */
.section { padding: var(--pad-y) 0; }
h2 { font-size: clamp(36px, 5vw, 64px); font-weight: 800; max-width: 16ch; }

.tiles {
  display: grid;
  gap: 18px;
  margin-top: 36px;
}

.tile {
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-sm) var(--shadow-sm) 0 var(--ink);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
}

.tile h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 800; }
.tile p { margin: 0; color: var(--ink); }

.tile-shot {
  height: 220px;
  background: var(--ink);
  border-radius: 16px;
  overflow: hidden;
}
.tile-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.tile:nth-child(3) .tile-shot img { object-position: center 42%; }

.tile.privacy {
  background: var(--amber);
}
.tile.privacy h3 { font-size: clamp(26px, 3vw, 34px); line-height: 1.05; max-width: 12ch; }

.assume { margin: 8px 0; padding: 8px 10px; background: var(--ink-2); border-radius: 8px; }
.assume strong { color: var(--amber); }
.fix-box {
  margin-top: 8px;
  background: var(--cream);
  color: var(--ink);
  border-radius: 8px;
  padding: 10px;
  font-weight: 600;
}
.past {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--cream) 20%, transparent);
}

/* Comparison */
.compare { overflow-x: hidden; }
table.ways {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
}
.ways th, .ways td {
  text-align: left;
  padding: 18px 16px;
  vertical-align: top;
}
.ways thead { display: none; }
.ways tbody tr {
  display: block;
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-sm) var(--shadow-sm) 0 var(--ink);
  margin-bottom: 16px;
  padding: 8px;
}
.ways td { display: block; padding: 8px 12px; }
.ways td:first-child { color: var(--muted); }
.ways td:last-child { font-weight: 700; }
.ways td:last-child::before {
  content: "The Ballparker way";
  display: inline-block;
  background: var(--amber);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  margin: 0 8px 6px 0;
  border: 1.5px solid var(--ink);
}

/* FAQ */
.faq-grid {
  display: grid;
  gap: 28px;
  margin-top: 32px;
}
.faq h3 { font-size: 22px; margin-bottom: 8px; }
.faq p { margin: 0; }

/* Final CTA */
.cta {
  background: var(--ink);
  color: var(--cream);
  padding: var(--pad-y) 0;
}
.cta h2 {
  font-size: clamp(48px, 8.5vw, 108px);
  color: var(--cream);
  max-width: 12ch;
}
.cta .waitlist { margin-top: 28px; max-width: 100%; }
.cta .field { background: var(--cream); }
.cta .fine { color: #c4bdb2; }
.cta .form-status.ok { color: var(--amber); }

.footer {
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

@media (min-width: 640px) {
  :root { --pad-y: 80px; --pad-x: 40px; --shadow: 12px; --shadow-sm: 6px; }
  .nav-links { display: flex; }
  .hero-copy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
  }
  .waitlist { flex-direction: row; align-items: stretch; }
  .waitlist .btn { width: auto; white-space: nowrap; }
  .story {
    grid-template-columns: 1fr 1.1fr 1fr;
    align-items: center;
    padding: 28px;
  }
  .phone { width: 180px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile-shot { height: 240px; }
  .ways thead { display: table-header-group; }
  .ways tbody tr {
    display: table-row;
    box-shadow: none;
    border: 0;
    background: transparent;
    margin: 0;
    padding: 0;
  }
  .ways td { display: table-cell; padding: 18px 16px; border-top: 2px solid var(--ink); }
  .ways td:last-child::before { display: none; }
  .ways th {
    font-family: var(--display);
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding-bottom: 8px;
  }
  .faq-grid { grid-template-columns: 1fr 1fr; }
  .cta .waitlist { max-width: 560px; }
  .footer {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  :root { --pad-y: 96px; --pad-x: 80px; --shadow-sm: 12px; }
  .btn, .story, .tile, .ways tbody tr { box-shadow: 12px 12px 0 var(--ink); }
  .phone { width: 220px; }
  .story { padding: 36px; }
}

@media (max-width: 639px) {
  .ways td:first-child::before {
    content: "The usual way";
    display: block;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 4px;
    font-weight: 700;
  }
}
