/* Noah's Pool Tools — site styles */
:root {
  --pool: #17607D;
  --pool-dark: #0E4359;
  --pool-light: #CFE6EC;
  --highlight: #F4A261;
  --ink: #1D2A30;
  --ink-soft: #33434A;
  --ink-muted: #4A5A61;
  --paper: #F3EFE6;
  --sand: #E6E1D6;
  --white: #ffffff;
  --numeral: #B8541B;
  --tape: rgba(214, 190, 140, 0.8);
  --display: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif;
  --hand: 'Caveat', 'Comic Sans MS', cursive;
  --body: 'Work Sans', 'Helvetica Neue', Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--pool); }
a:hover { color: var(--pool-dark); }
:focus-visible { outline: 3px solid var(--highlight); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.hand { font-family: var(--hand); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.5px; }
.logo-tag { font-family: var(--hand); font-size: 19px; color: var(--ink-muted); margin-top: 2px; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; font-weight: 500; }
.main-nav a { color: var(--ink); text-decoration: none; padding: 12px 0; }
.main-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.main-nav a.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 999px; font-weight: 600; }
.main-nav a.pill:hover { text-decoration: none; background: #000; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 40px; padding-bottom: 96px; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--ink); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(2.7rem, 6vw, 4.6rem); line-height: 0.98; letter-spacing: -1.5px; }
.marker { background: linear-gradient(transparent 60%, var(--highlight) 60%); padding: 0 4px; }
.lede { margin: 0; font-size: 20px; line-height: 1.55; max-width: 34rem; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 4px; }
.btn-pool { display: inline-flex; align-items: center; gap: 10px; background: var(--pool); color: var(--white); text-decoration: none; padding: 16px 26px; border-radius: 12px; font-weight: 600; font-size: 17px; box-shadow: 0 4px 0 var(--pool-dark); }
.btn-pool:hover { color: var(--white); transform: translateY(1px); box-shadow: 0 3px 0 var(--pool-dark); }
.text-link { color: var(--ink); font-weight: 600; font-size: 17px; padding: 12px 0; text-underline-offset: 5px; }
.hero-note { margin: 8px 0 0; font-family: var(--hand); font-size: 27px; line-height: 1.2; color: var(--ink-muted); transform: rotate(-1.5deg); max-width: 28rem; }
.hero-photo { flex: 1 1 400px; min-width: 0; display: flex; justify-content: center; padding: 20px 0; }

/* Polaroids */
.polaroid { position: relative; margin: 0; background: var(--white); padding: 16px 16px 60px; box-shadow: 0 18px 40px rgba(29,42,48,0.18), 0 2px 6px rgba(29,42,48,0.12); width: 100%; }
.polaroid.tilt-right { transform: rotate(2.5deg); max-width: 440px; }
.polaroid.tilt-left { transform: rotate(-3deg); max-width: 320px; padding: 14px 14px 56px; }
.polaroid .tape { position: absolute; top: -16px; left: 50%; width: 130px; height: 32px; transform: translateX(-50%) rotate(-5deg); background: var(--tape); }
.polaroid.tilt-left .tape { left: auto; right: 24px; width: 100px; height: 28px; transform: rotate(8deg); }
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-family: var(--hand); font-size: 26px; color: var(--ink-soft); }
.photo-slot { display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; font-weight: 600; font-size: 16px; }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.polaroid .photo-slot { aspect-ratio: 4 / 3; background: var(--pool-light); border: 2px dashed #6E9DAD; color: #2F5664; }
.polaroid.tilt-left .photo-slot { aspect-ratio: 1 / 1; background: var(--sand); border-color: #A79F8E; color: #4E483D; font-size: 15px; }
.photo-slot.has-photo { padding: 0; border: none; }

/* Waves */
.wave { display: block; width: 100%; height: 48px; }
.wave path { fill: var(--pool); }
.wave.flip { transform: scaleY(-1); }

/* Product */
.product { background: var(--pool); color: var(--white); }
.product-inner { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-top: 56px; padding-bottom: 88px; }
.gallery { flex: 1 1 440px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gallery .photo-slot { aspect-ratio: 1 / 1; border: 2px dashed rgba(255,255,255,0.6); background: rgba(255,255,255,0.1); border-radius: 14px; font-size: 15px; overflow: hidden; }
.gallery .photo-slot.main { grid-column: span 2; aspect-ratio: 4 / 3; font-size: 16px; }
.product-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.stamp { align-self: flex-start; background: var(--highlight); color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: 2px; padding: 8px 14px; border-radius: 6px; transform: rotate(-3deg); }
.product h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; letter-spacing: -1px; }
.product-tagline { margin: 0; font-family: var(--hand); font-size: 32px; line-height: 1.1; color: #E3F1F5; }
.product-intro { margin: 0; font-size: 18px; line-height: 1.6; color: #E8F3F6; }
.perks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.perks li { display: flex; gap: 14px; align-items: flex-start; }
.check { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; background: var(--white); color: var(--pool); display: flex; align-items: center; justify-content: center; }
.perks strong { display: block; font-size: 18px; margin-bottom: 2px; }
.perks span.desc { color: #E8F3F6; line-height: 1.55; }

/* Buy card */
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.price { font-family: var(--display); font-weight: 800; font-size: 40px; }
.ships { font-size: 15px; color: var(--ink-muted); }
.btn-buy { display: flex; align-items: center; justify-content: center; text-decoration: none; flex: 0 0 auto; }
.btn-buy:hover { color: var(--white); }
.checkout-note { font-size: 14px !important; color: var(--ink-muted) !important; }
.waitlist { margin-top: 12px; background: var(--white); color: var(--ink); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 6px 0 var(--pool-dark); }
.waitlist h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1.1; }
.waitlist p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-soft); }
.fits { font-size: 15px; }
.signup { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 220px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field textarea { width: 100%; min-height: 50px; border: 2px solid var(--ink); border-radius: 10px; padding: 12px 14px; font: inherit; font-size: 17px; color: var(--ink); background: var(--white); }
.field textarea { min-height: 130px; resize: vertical; }
.btn-ink { flex: 1 1 180px; min-height: 52px; border: none; border-radius: 12px; background: var(--ink); color: var(--white); font: inherit; font-weight: 600; font-size: 17px; cursor: pointer; padding: 0 22px; }
.btn-ink:hover { background: #000; }
.waitlist .aside { font-family: var(--hand); font-size: 22px; color: var(--ink-muted); }
.honeypot { display: none; }

/* Section headings */
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; margin-bottom: 40px; }
.section-head h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3rem); letter-spacing: -1px; }
.section-head .hand { font-size: 28px; color: var(--ink-muted); }

/* How it works */
.how { padding-top: 80px; padding-bottom: 40px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 28px; }
.steps li { flex: 1 1 280px; background: var(--white); border-radius: 6px; padding: 28px; box-shadow: 0 10px 24px rgba(29,42,48,0.1); display: flex; flex-direction: column; gap: 10px; }
.steps li:nth-child(1) { transform: rotate(-1deg); }
.steps li:nth-child(2) { transform: rotate(0.8deg); }
.steps li:nth-child(3) { transform: rotate(-0.6deg); }
.num { font-family: var(--hand); font-weight: 700; font-size: 64px; line-height: 0.9; color: var(--numeral); }
.steps h3 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 24px; }
.steps p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink-soft); }

/* Story */
.story { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.notebook { flex: 999 1 520px; min-width: 0; position: relative; background-color: #FFFDF8; background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, #D7E4EA 31px, #D7E4EA 32px); border-radius: 4px; padding: 40px 40px 40px 72px; box-shadow: 0 14px 34px rgba(29,42,48,0.12); }
.notebook::before { content: ""; position: absolute; top: 0; bottom: 0; left: 52px; width: 2px; background: #E7A9A0; }
.notebook h2 { margin: 0 0 8px; font-family: var(--hand); font-weight: 700; font-size: 48px; line-height: 64px; }
.notebook p { margin: 0 0 32px; font-size: 18px; line-height: 32px; color: #26353B; }
.notebook p:last-of-type { margin-bottom: 0; }
.signature { display: block; margin-top: 8px; font-family: var(--hand); font-weight: 700; font-size: 40px; line-height: 64px; color: var(--pool); }
.story-photo { flex: 1 1 280px; min-width: 0; display: flex; justify-content: center; }

/* Workbench */
.bench { padding-top: 40px; padding-bottom: 72px; }
.bench .section-head { margin-bottom: 32px; }
.bench-cards { display: flex; flex-wrap: wrap; gap: 24px; }
.bench-card { flex: 1 1 320px; border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.bench-card.next { border: 2.5px dashed #8A9AA0; }
.bench-card.idea { background: var(--ink); color: var(--paper); gap: 12px; }
.bench-card .label { font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: 2px; color: var(--ink-muted); }
.bench-card h3 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 26px; }
.bench-card p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink-soft); }
.bench-card.idea p { color: #D6DDE0; }
.btn-highlight { align-self: flex-start; margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; background: var(--highlight); color: var(--ink); text-decoration: none; padding: 14px 20px; border-radius: 10px; font-weight: 600; }
.btn-highlight:hover { color: var(--ink); background: #F7B47E; }

/* Contact */
.contact { background: var(--sand); }
.contact-inner { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: flex-start; justify-content: space-between; padding-top: 72px; padding-bottom: 72px; }
.contact-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.contact-copy h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3rem); letter-spacing: -1px; }
.contact-copy p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ink-soft); max-width: 36rem; }
.contact-form { flex: 1 1 420px; min-width: 0; background: var(--white); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.contact-form .row { display: flex; flex-wrap: wrap; gap: 14px; }
.contact-form .btn-ink { flex: 0 0 auto; align-self: flex-start; }

/* Footer */
.site-footer { background: var(--ink); color: #D6DDE0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; padding-top: 40px; padding-bottom: 40px; font-size: 15px; }
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-brand .name { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--white); }
.site-footer a { color: #D6DDE0; padding: 10px 0; }
.site-footer a:hover { color: var(--white); }
.footer-thanks { font-family: var(--hand); font-size: 22px; color: var(--white); }

/* Thank-you page */
.thanks { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px; padding-top: 60px; padding-bottom: 96px; }
.thanks h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1; letter-spacing: -1.5px; }
.thanks p { margin: 0; font-size: 20px; line-height: 1.55; color: var(--ink-soft); max-width: 34rem; }

@media (max-width: 560px) {
  .hero { gap: 32px; padding-bottom: 64px; }
  .notebook { padding: 32px 22px 32px 50px; }
  .notebook::before { left: 34px; }
  .product-inner { gap: 40px; }
}
