/* ---- Tokens ---- */
:root {
  color-scheme: light dark;
  --bg: #fbfbfa;
  --fg: #151515;
  --muted: #6b6b6b;
  --line: #e4e4e0;
  --card: #fff;
  --accent: #d9480f;
  --accent-fg: #fff;
  --live: #d11;
  --soft: #f3f3f0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111;
    --fg: #ececec;
    --muted: #9a9a9a;
    --line: #2b2b2b;
    --card: #1a1a1a;
    --accent: #f26a2e;
    --accent-fg: #111;
    --live: #f55;
    --soft: #181818;
  }
}

/* ---- Base ---- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Anchor targets stop below the sticky header instead of under it. */
section[id] { scroll-margin-top: 72px; }

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

a { color: inherit; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -.01em; margin: 0; }

p { margin: 0 0 1em; }

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 56px 0; }

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 600;
  text-decoration: none;
  border: 0;
  font-size: 16px;
  cursor: pointer;
  font-family: inherit;
}

.btn:hover { filter: brightness(1.08); }

.btn.ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
}

/* ---- Header ---- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.navwrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.logo .mark { flex: none; border-radius: 7px; }

.menu {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.menu a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}

.menu a:hover { color: var(--fg); border-bottom-color: var(--accent); }

.navcta { padding: 9px 16px; font-size: 14px; border-radius: 999px; }

/* ---- Hero ---- */
.hero { padding: 96px 0 56px; text-align: center; }

.hero h1 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -.03em;
  text-wrap: balance;
  max-width: 640px;
  margin: 0 auto;
}

.hero .lede {
  font-size: 20px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 560px;
  margin: 28px auto 0;
}

.hero .lede span,
.hero .lede b { display: block; margin-top: 6px; }

.hero .lede > :first-child { margin-top: 0; }

.hero .lede b { color: var(--fg); }

.hero .cta {
  margin-top: 40px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .dev {
  display: inline-block;
  margin: 36px 0 0;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero .dev::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: 1px;
  animation: pulse 1.6s infinite;
}

@keyframes pulse { 50% { opacity: .35; } }

@media (prefers-reduced-motion: reduce) { .hero .dev::before { animation: none; } }

/* ---- Phone browser mock ---- */
.mock { padding: 16px 20px 44px; display: flex; justify-content: center; }

.phone {
  width: 350px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 40px;
  padding: 10px;
  background: var(--card);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .45);
  font-size: 13px;
  line-height: 1.3;
}

.phone > * { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }

.pstatus {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 22px 4px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: var(--soft);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 30px 30px 0 0;
  position: relative;
}

.pstatus .notch {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 90px;
  height: 22px;
  margin-left: -45px;
  border-radius: 12px;
  background: var(--fg);
  opacity: .9;
}

.pstatus b { font-size: 11px; }

.paddr {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.paddr .aa { color: var(--muted); font-size: 11px; letter-spacing: .02em; }

.paddr .url {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 13px;
}

.paddr .url svg { color: var(--muted); }

.paddr .reload { color: var(--muted); font-size: 15px; }

.site { position: relative; background: var(--bg); padding: 12px 12px 0; }

.sitehead { display: flex; align-items: baseline; gap: 8px; font-size: 15px; }

.sitehead span { color: var(--muted); font-size: 10px; }

.filter {
  margin-top: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--card);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  gap: 8px;
  align-items: center;
}

.filter .arrow { color: var(--muted); font-size: 9px; }

.site .day {
  margin: 14px 0 5px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}

.site .day.today { color: var(--fg); }

.site .g {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 5px 0;
  padding: 9px 10px 8px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 7px;
  position: relative;
  overflow: hidden;
}

.site .g::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--c);
}

.site .g.live { outline: 2px solid var(--live); outline-offset: -1px; }

.site .t { display: flex; gap: 8px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

.site .t em { font-style: normal; color: var(--muted); font-size: 10px; font-weight: 400; }

.site .t .pt { color: var(--muted); font-weight: 400; font-size: 11px; }

.site .s { text-align: center; font-size: 20px; font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums; line-height: 1.1; margin-top: 2px; }

.site .s i { font-style: normal; color: var(--muted); font-weight: 400; padding: 0 6px; }

.site .s small { display: block; font-size: 9px; letter-spacing: .05em; text-transform: uppercase; color: var(--live); font-weight: 600; margin-top: 2px; }

.site .m { text-align: center; font-size: 14px; padding: 2px 0; }

.site .m b { font-weight: 700; }

.site .m i { font-style: normal; color: var(--muted); padding: 0 3px; }

.site .m sup { font-size: 9px; color: var(--muted); margin-right: 1px; }

.site .tv { color: var(--muted); font-size: 10px; }

.site .gap {
  margin: 8px 0 0 2px;
  padding: 2px 0 2px 10px;
  border-left: 2px dotted var(--line);
  font-size: 10px;
  color: var(--muted);
}

.site .fade {
  height: 34px;
  margin: -18px -12px 0;
  background: linear-gradient(transparent, var(--bg));
  position: relative;
  pointer-events: none;
}

.ptool {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 18px 6px;
  background: var(--soft);
  border-top: 1px solid var(--line);
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
}

.ptool span:nth-child(2) { opacity: .35; }

.homebar {
  height: 22px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 30px 30px;
  position: relative;
}

.homebar::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 110px;
  height: 4px;
  margin-left: -55px;
  border-radius: 2px;
  background: var(--fg);
  opacity: .6;
}

.caption {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: -28px;
  padding: 0 20px 24px;
}

/* ---- Story ---- */
.story { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.story p { font-size: 19px; max-width: 620px; }

.story p.punch { font-weight: 700; font-size: 22px; letter-spacing: -.01em; }

/* ---- Value props ---- */
.props h2 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }

.props .sub { color: var(--muted); margin-bottom: 28px; }

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  background: var(--card);
}

.card.big {
  grid-column: 1 / -1;
  border-color: var(--accent);
  border-width: 2px;
}

.card h3 { font-size: 18px; margin-bottom: 6px; }

.card.big h3 { font-size: 24px; }

.card p { margin: 0; color: var(--muted); font-size: 15px; }

.card.big p { font-size: 17px; }

/* ---- Founder ---- */
.founder { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.founder .head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.founder img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--card);
  box-shadow: 0 0 0 1px var(--line);
}

.founder h2 { font-size: 26px; font-weight: 800; }

.founder .who { color: var(--muted); font-size: 15px; }

.founder p { max-width: 620px; }

.founder .sig { font-weight: 600; margin-top: 6px; }

/* ---- Signup ---- */
.signup { text-align: center; padding-bottom: 72px; }

.signup h2 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }

.signup .sub { color: var(--muted); margin: 10px auto 26px; max-width: 480px; }

form {
  max-width: 440px;
  margin: 0 auto;
  text-align: left;
}

label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 6px; }

label span { color: var(--muted); font-weight: 400; }

input[type=email], input[type=text] {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--fg);
  margin-bottom: 14px;
}

input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }

form .btn { width: 100%; padding: 14px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.cf-turnstile { margin-bottom: 14px; }

.msg { margin-top: 14px; font-size: 15px; text-align: center; }

.msg.ok { color: #2a8a3c; font-weight: 600; }

.msg.err { color: var(--live); }

.fine { font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; }

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

footer a { text-decoration: none; }

/* ---- Mobile ---- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 44px 0; }
  .hero { padding: 64px 0 40px; }
  .hero .lede { margin-top: 22px; }
  .hero .cta { margin-top: 32px; }
  .navwrap { height: 58px; padding: 0 16px; gap: 12px; }
  .menu { display: none; }
  .navcta { margin-left: auto; padding: 8px 14px; font-size: 13px; }
  .logo { font-size: 16px; }
  .hero h1 { font-size: 32px; }
  .hero .dev { margin-top: 30px; }
  .hero .lede { font-size: 18px; }
  .grid { grid-template-columns: 1fr; }
  .story p { font-size: 17px; }
  .story p.punch { font-size: 20px; }
  .founder .head { flex-direction: column; align-items: flex-start; }
  .mock { padding: 4px 12px 36px; }
  .phone { width: 320px; }
}
