@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;1,9..144,400&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg:         #F7F4EE;   /* bone */
  --bg-alt:     #FFFFFF;
  --surface:    #FFFFFF;
  --surface-2:  #EFEAE1;   /* warm stone */
  --border:     #E3DDD2;
  --ink:        #17191C;
  --text:       #24272B;
  --muted:      #6E7279;
  --accent:     #4F7A5A;   /* sage */
  --accent-soft:#E4EDE5;
  --cta:        #17191C;
  --cta-ink:    #FFFFFF;
  --radius:     16px;
  --wrap:       1140px;
  --serif:      "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans:       "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0 0 .5em; color: var(--ink); }
h1, h2 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.025em;
}
h1 { font-size: clamp(2.9rem, 7vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
p  { margin: 0 0 1rem; }
em.serif { font-family: var(--serif); font-style: italic; font-weight: 400; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 680px; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* ───── Buttons ───── */
.btn {
  appearance: none;
  display: inline-block;
  border: 0;
  border-radius: 999px;
  background: var(--cta);
  color: var(--cta-ink);
  font: inherit;
  font-weight: 500;
  padding: .78rem 1.5rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, background .2s ease;
}
.btn:hover  { background: #000; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn-sm  { padding: .5rem 1.1rem; font-size: .92rem; }
.btn-lg  { padding: 1rem 2.1rem; font-size: 1.04rem; }
.btn-block { display: block; width: 100%; }
.btn[disabled] { opacity: .5; cursor: progress; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* ───── Nav ───── */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247, 244, 238, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 1.6rem; height: 66px; }
.logo {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--serif); font-weight: 500; font-size: 1.35rem; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none; margin-right: auto;
}
.logo-mark {
  width: 20px; height: 20px; border-radius: 6px;
  background: var(--ink);
  box-shadow: inset 0 0 0 2.5px var(--bg), inset 0 0 0 5px var(--ink);
}
.nav-links { display: flex; gap: 1.6rem; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }

/* ───── Hero ───── */
.hero { padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(2rem, 5vw, 4rem); }
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft); border-radius: 999px;
  padding: .36rem .85rem; margin-bottom: 1.4rem;
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 44ch; }
.hero-actions { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; margin-top: 1.9rem; }
.hero-note { font-size: .88rem; color: var(--muted); }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 2.3rem 0 0; }
.hero-badges li {
  font-size: .85rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: .34rem .85rem;
}

.hero-visual { display: flex; justify-content: center; align-items: center; }
/* <picture> is inline by default and won't constrain its <img>, so size both. */
.hero-photo { display: block; width: min(100%, 500px); }
.hero-photo img {
  display: block; width: 100%; height: auto;
  border-radius: 20px;
  box-shadow: 0 30px 60px -28px rgba(23, 25, 28, .45), 0 2px 6px -2px rgba(23, 25, 28, .12);
}
.device { width: min(100%, 440px); height: auto; }
.pulse   { animation: pulse 2.6s ease-in-out infinite; }
.falling { animation: fall 2.6s ease-in infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }
@keyframes fall  { 0% { opacity: 0; transform: translateY(-14px) } 35% { opacity: 1 } 75% { opacity: 0; transform: translateY(24px) } 100% { opacity: 0 } }
@media (prefers-reduced-motion: reduce) {
  .pulse, .falling { animation: none; }
  html { scroll-behavior: auto; }
}

/* ───── Sections ───── */
.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-title { text-align: center; margin-bottom: .6rem; }
.section-sub { text-align: center; color: var(--muted); max-width: 58ch; margin: 0 auto 2.6rem; }
.section-title + .cards, .section-title + .steps, .section-title + .specs { margin-top: 3rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.6rem;
}
.card p { color: var(--muted); margin: 0; font-size: .96rem; }

.steps { list-style: none; padding: 0; margin: 0 0 3rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.steps li { position: relative; padding-top: 3.3rem; }
.step-n {
  position: absolute; top: 0; left: 0;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  font-family: var(--serif); font-size: 1.15rem;
}
.steps p { color: var(--muted); font-size: .96rem; }

.specs { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 3rem; margin: 0; }
.specs > div {
  display: flex; justify-content: space-between; gap: 1.5rem;
  padding: 1rem .2rem; border-bottom: 1px solid var(--border);
}
.specs dt { color: var(--muted); font-size: .95rem; }
.specs dd { margin: 0; text-align: right; font-weight: 500; font-size: .95rem; color: var(--ink); }

.section-cta { background: var(--surface-2); }
.section-cta .lede { margin-inline: auto; max-width: 54ch; }
.section-cta .btn { margin: 1.2rem 0 .7rem; }

details { border-bottom: 1px solid var(--border); padding: 1.1rem .2rem; }
summary { cursor: pointer; font-weight: 500; color: var(--ink); list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--muted); font-weight: 300; font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: .8rem 0 0; font-size: .96rem; }

.footer { border-top: 1px solid var(--border); padding: 2rem 0 7rem; font-size: .88rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ───── Sticky mobile CTA ───── */
.sticky-cta {
  position: fixed; inset: auto 0 0 0; z-index: 35; display: none;
  padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(247, 244, 238, .94); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}

/* ───── Modal ───── */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(23, 25, 28, .45); backdrop-filter: blur(4px); }
.modal-box {
  position: relative; width: min(100%, 530px);
  max-height: 92vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 22px; padding: 2.1rem;
  box-shadow: 0 40px 90px -30px rgba(23, 25, 28, .45);
}
.modal-box h2 { font-size: 2rem; }
.modal-x {
  position: absolute; top: .7rem; right: .9rem;
  background: none; border: 0; color: var(--muted);
  font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.modal-x:hover { color: var(--ink); }
.modal-sub { color: var(--muted); font-size: .95rem; }

.field { display: block; margin: 1.3rem 0; border: 0; padding: 0; }
.field > span, .field legend { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .5rem; padding: 0; color: var(--ink); }
.field em { font-weight: 400; color: var(--muted); font-style: normal; }
input[type="email"], input[type="password"], input[type="text"], textarea {
  width: 100%; font: inherit; font-size: 1rem;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--border); border-radius: 10px;
  padding: .72rem .9rem; resize: vertical;
}
input[type="email"]:focus, input[type="password"]:focus, input[type="text"]:focus, textarea:focus {
  outline: none; border-color: var(--ink);
}

.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; font-size: .9rem;
  border: 1px solid var(--border); border-radius: 999px;
  padding: .44rem .9rem; color: var(--text); background: var(--surface);
  transition: all .15s ease;
}
.chips label:hover span { border-color: var(--ink); }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #B23B2E; font-size: .9rem; margin: 0 0 .7rem; }
.fineprint { font-size: .8rem; color: var(--muted); text-align: center; margin: .9rem 0 0; }

.success { text-align: center; }
.tick {
  width: 56px; height: 56px; margin: 0 auto 1.1rem;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-size: 1.7rem; font-weight: 600;
}
.success p { color: var(--muted); font-size: .96rem; }
.success .btn { margin-top: 1.2rem; }

/* ───── Responsive ───── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-photo { width: min(92%, 420px); margin-inline: auto; }
  .cards, .steps { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .sticky-cta { display: block; }
  .nav .btn-sm { display: none; }
  .modal-box { padding: 1.5rem 1.2rem; }
  .specs > div { flex-direction: column; gap: .2rem; }
  .specs dd { text-align: left; }
}
