:root {
  --paper: #f7f5f0;
  --ink: #16182d;
  --mute: #7b7d90;
  --soft: #5f6173;
  --line: rgba(22, 24, 45, 0.1);
  --line-strong: rgba(22, 24, 45, 0.22);
  --rust: #8b2e1a;
  --tint: #f1eee8;
  --white: #ffffff;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ol, ul { margin: 0; }

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 245, 240, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 20px;
}

.brand .mark { width: 14px; height: 14px; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--soft);
}

.nav-links a:hover { color: var(--ink); }

.nav-links .btn-ink,
.nav-links .btn-ink:hover { color: var(--white); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: #262a4d; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: rgba(22, 24, 45, 0.04); }
.btn-paper { background: var(--paper); color: var(--ink); }

/* Hero */
.hero {
  padding: 72px 0 80px;
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(255, 179, 124, 0.22), transparent 70%),
    radial-gradient(700px 380px at 10% 20%, rgba(185, 200, 255, 0.18), transparent 65%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.chip {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  font-weight: 600;
  color: var(--soft);
}

h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 5.4vw, 58px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.lede {
  margin-top: 16px;
  max-width: 36em;
  font-size: 17px;
  line-height: 1.55;
  color: var(--soft);
}

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

.thanks {
  padding: 72px 0 32px;
}

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

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--mute);
  font-size: 13px;
}

.trust li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.35;
}

.hero-stage { display: flex; justify-content: center; }

/* Sections */
.section { padding: 88px 0; }
.section--tint { background: var(--tint); }

.section-head { max-width: 640px; margin-bottom: 40px; }

.label {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mute);
}

h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.section-head .lede { margin-top: 12px; }

/* Flow */
.flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 0;
  list-style: none;
}

.flow li {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.flow-n {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--paper);
}

.flow-n img {
  width: 16px;
  height: 16px;
}

.flow h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.flow p { font-size: 14px; color: var(--soft); line-height: 1.5; }

.demo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 48px;
}

.demo-row > * {
  margin: 0;
  flex: 0 0 auto;
  position: static;
}

.demo-row .browser.browser--sm {
  width: min(380px, 100%);
}

.demo-row .popup {
  width: min(260px, 100%);
}

/* Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
}

.icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--paper);
}

.icon img {
  width: 16px;
  height: 16px;
}

.card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card p { font-size: 14px; color: var(--soft); line-height: 1.5; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

/* Install steps */
.steps-ui {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.steps-ui li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
}

.steps-ui span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
}

.steps-ui p { font-size: 15px; color: var(--ink); }
.steps-ui a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.steps-ui code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(22, 24, 45, 0.06);
}

.shots {
  display: grid;
  gap: 12px;
}

.shots img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: top center;
  border-radius: 14px;
  background: #1a1c24;
}

.shots img:last-child {
  object-fit: cover;
  object-position: center 26%;
}

/* FAQ */
.faq-wrap { max-width: 720px; }

.faq { display: flex; flex-direction: column; gap: 8px; }

.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  padding: 4px 18px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 0;
  font-weight: 600;
  font-size: 15px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq details p {
  padding: 0 0 16px;
  color: var(--soft);
  font-size: 15px;
}

/* Download / Beehiiv */
#download {
  min-height: calc(100svh - 72px);
  display: flex;
  align-items: center;
  scroll-margin-top: 72px;
}

.download-gate {
  width: min(560px, 100%);
  margin: 0 auto;
}

.download-gate iframe {
  max-width: 100%;
}

/* Footer */
.site-foot {
  padding: 28px 0 40px;
  font-size: 13px;
  color: var(--mute);
}

.site-foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-foot .brand { font-size: 18px; color: var(--ink); }
.site-foot a:hover { color: var(--ink); }

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 18px;
  font-size: 13px;
}

.legal-links a {
  color: var(--soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body:has(#cookie-banner.is-visible) .site-foot {
  padding-bottom: 140px;
}

.site-foot .credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.credit-linkedin {
  display: grid;
  place-items: center;
  color: var(--mute);
}

.credit-linkedin svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.credit-linkedin:hover { color: var(--ink); }

.mobile-cta { display: none; }

/* Product UI */
figure {
  margin: 0;
}

.browser {
  margin: 0;
  width: min(460px, 100%);
  border-radius: 14px;
  overflow: hidden;
  background: #2a2c38;
  box-shadow: 0 24px 50px rgba(22, 24, 45, 0.16);
}

.browser--sm { width: min(380px, 100%); }

.browser--sm .a1 {
  width: 200px;
  height: 200px;
  right: -50px;
  top: -80px;
  opacity: 0.7;
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #2a2c38;
  color: rgba(247, 245, 240, 0.7);
  font-size: 11px;
}

.traffic { display: flex; gap: 5px; }
.traffic span { width: 8px; height: 8px; border-radius: 50%; }
.traffic span:nth-child(1) { background: #ff5f57; }
.traffic span:nth-child(2) { background: #febc2e; }
.traffic span:nth-child(3) { background: #28c840; }

.tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #3a3c4a;
  border-radius: 6px;
  padding: 4px 10px;
}

.li-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: #0a66c2;
  color: #fff;
  font-size: 7px;
  font-weight: 700;
}

.urlbar {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1d1f2b;
  border-radius: 6px;
  padding: 4px 10px;
}

.urlbar .mark { width: 10px; height: 10px; filter: invert(1) brightness(2); }

.browser-body {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}

.aurora {
  position: absolute;
  border-radius: 999px;
  filter: blur(70px);
  pointer-events: none;
}

.a1 {
  width: 280px; height: 280px; right: -80px; top: -100px;
  background: radial-gradient(circle at 40% 45%, #ffcda6 0%, #ffb37c 45%, rgba(255, 179, 124, 0) 72%);
}

.a2 {
  width: 220px; height: 220px; right: 80px; top: -30px;
  background: radial-gradient(circle at 50% 50%, #b9c8ff 0%, rgba(185, 200, 255, 0) 70%);
}

.overlay { position: relative; z-index: 1; padding: 16px 18px 18px; }
.overlay--sm { padding: 14px; }
.overlay--sm h3 { font-size: 20px; margin-bottom: 10px; }

.overlay-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.overlay-top .brand { font-size: 14px; gap: 6px; }
.overlay-top .brand .mark { width: 11px; height: 11px; }

.overlay-meta {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}

.overlay h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.it { font-style: italic; }

.overlay .sub {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--soft);
}

.log-line {
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--soft);
}

.log-line strong { color: var(--ink); font-weight: 500; }

.primary {
  display: inline-flex;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 16px;
  font-size: 13px;
}

.quiet {
  font-size: 12px;
  color: var(--mute);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lock-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.intents {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 12px;
}

.intent {
  text-align: left;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 10px;
}

.intent .label { display: block; font-family: var(--serif); font-size: 13px; }
.intent .hint { display: block; margin-top: 3px; font-size: 11px; color: var(--soft); }
.intent.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.intent.is-on .hint { color: inherit; opacity: 0.7; }
.intent.is-danger { border-color: rgba(139, 46, 26, 0.4); }
.intent.is-danger .label,
.intent.is-danger .hint { color: var(--rust); }

.when {
  margin: 0 0 8px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

.durations { display: flex; flex-wrap: wrap; gap: 6px; }
.duration {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
}
.duration.is-on { border-color: var(--ink); border-width: 1.5px; }

.popup {
  width: 260px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 18px 40px rgba(22, 24, 45, 0.14);
  border: 1px solid var(--line);
}

.popup header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.popup .brand { font-size: 15px; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--soft);
}

.status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #2f8f5b;
}

.kicker {
  margin: 0 0 4px;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

.clock {
  margin: 0;
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.intent-name {
  margin: 4px 0 10px;
  font-family: var(--serif);
  font-size: 13px;
  color: var(--soft);
}

.popup .primary { width: 100%; justify-content: center; }

.today {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 10px;
}

.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.usage { margin: 0; font-size: 11px; color: var(--soft); }

.bar {
  height: 3px;
  margin-top: 8px;
  border-radius: 999px;
  background: rgba(22, 24, 45, 0.08);
}

.bar span {
  display: block;
  width: 8%;
  height: 100%;
  background: var(--ink);
}

.settings-card {
  position: relative;
  overflow: hidden;
  width: min(400px, 100%);
  margin-left: auto;
  background: var(--white);
  border-radius: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(22, 24, 45, 0.06);
}

.settings-card h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
}

.settings-card .sub { margin: 6px 0 18px; font-size: 13px; color: var(--soft); }

.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--soft);
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 13px;
  color: var(--ink);
}

.stepper-block {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.stepper-hint { margin: 6px 0 10px; font-size: 12px; color: var(--mute); }

.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.stepper-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-size: 16px;
}

.stepper-value {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
}

@media (max-width: 900px) {
  .hero-grid, .flow, .bento, .split {
    grid-template-columns: 1fr;
  }

  .demo-row { align-items: center; }
  .hero { padding: 40px 0 56px; }
  .hero-grid { gap: 36px; }
  .nav-links a:not(.btn) { display: none; }
  .section { padding: 64px 0; }
  .settings-card { margin: 0; }

  .mobile-cta {
    display: block;
    position: sticky;
    bottom: 0;
    z-index: 30;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(247, 245, 240, 0.94);
    border-top: 1px solid var(--line);
  }

  .cookie-banner {
    bottom: 92px;
  }

  .site-foot {
    padding-bottom: 28px;
  }

  body:has(#cookie-banner.is-visible) .site-foot {
    padding-bottom: 260px;
  }

  #install,
  #download {
    padding-bottom: 120px;
  }

  .mobile-cta .btn { width: 100%; }
}

@media (max-width: 560px) {
  .wrap, .nav-inner { width: calc(100% - 32px); }
  h1 { font-size: 34px; }
}
