:root {
  --night: #16212D;
  --night-2: #1E2C3B;
  --ink: #1A232E;
  --paper: #FBFAF7;
  --stone: #ECE5D6;
  --stone-2: #E1D8C5;
  --green: #1F4A3D;
  --green-ink: #163A30;
  --lamp: #F2C46B;
  --lamp-deep: #E3A944;
  --muted: #56616D;
  --line: #D9D1C1;
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 34rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green); text-underline-offset: .18em; }
a:hover { color: var(--green-ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.005em; margin: 0; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); line-height: 1.15; }
h3 { font-size: 1.25rem; line-height: 1.3; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--lamp-deep); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(1160px, 100% - 3rem); margin-inline: auto; }
.narrow { width: min(720px, 100% - 3rem); }
.sr-only, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -3rem; background: var(--lamp); color: var(--ink); padding: .5rem 1rem; z-index: 20; }
.skip:focus { top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .75rem 1.4rem;
  font: 600 1rem/1.2 var(--sans); text-decoration: none;
  border: 2px solid transparent; border-radius: 6px; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-lamp { background: var(--lamp); color: var(--ink); }
.btn-lamp:hover { background: #F6D184; color: var(--ink); }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-ghost-dark { border-color: var(--ink); color: var(--ink); }
.btn-ghost-dark:hover { background: var(--ink); color: #fff; }
.btn-small { min-height: 2.5rem; padding: .45rem 1rem; font-size: .9375rem; background: var(--lamp); color: var(--ink); }
.btn-small:hover { background: #F6D184; color: var(--ink); }

/* Nav */
.nav { position: absolute; inset: 0 0 auto 0; z-index: 10; color: #fff; }
.nav-inner { display: flex; align-items: center; gap: 2rem; height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font: 400 1.3rem/1 var(--serif); color: inherit; text-decoration: none; }
.brand:hover { color: inherit; }
.nav nav { display: flex; gap: 1.75rem; margin-left: auto; }
.nav nav a { color: rgba(255,255,255,.82); text-decoration: none; font-size: .9375rem; }
.nav nav a:hover { color: #fff; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #111A24 0%, var(--night) 45%, var(--night-2) 100%);
  color: #fff;
  padding: 8rem 0 0;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 4rem; align-items: center;
}
.hero-kicker { color: var(--lamp); font-size: .9375rem; font-weight: 500; margin-bottom: 1.25rem; }
.hero h1 { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4rem); line-height: 1.05; max-width: 15ch; }
.hero-lede { margin-top: 1.5rem; max-width: var(--measure); color: rgba(255,255,255,.8); font-size: 1.125rem; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
.street {
  position: relative; z-index: 1;
  width: 100%; height: clamp(220px, 34vw, 420px); object-fit: cover; object-position: center bottom;
  margin-top: 3.5rem;
}

/* Phone / chat surfaces */
.phone, .chat {
  background: #ECE5DB;
  border-radius: 14px;
  overflow: hidden;
  color: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.06);
}
.phone { margin: 0; width: 100%; max-width: 400px; justify-self: center; box-shadow: 0 30px 60px -24px rgba(0,0,0,.6); }
.phone-head {
  display: flex; align-items: center; gap: .75rem;
  background: var(--green); color: #fff; padding: .8rem 1rem;
}
.phone-head strong { display: block; font-size: .975rem; font-weight: 600; }
.phone-head span:not(.avatar) { display: block; font-size: .8rem; color: rgba(255,255,255,.75); }
.avatar {
  width: 2.25rem; height: 2.25rem; flex: none; border-radius: 50%;
  display: grid; place-items: center; background: var(--stone); color: var(--green);
  font: 400 .85rem/1 var(--serif);
}
.phone-body { padding: 1rem .9rem 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.day { align-self: center; font-size: .75rem; color: var(--muted); background: rgba(255,255,255,.7); padding: .15rem .6rem; border-radius: 6px; margin-bottom: .25rem; }
.bubble {
  position: relative; max-width: 86%; padding: .5rem .7rem 1.15rem; border-radius: 9px;
  font-size: .9375rem; line-height: 1.42; box-shadow: 0 1px 0 rgba(0,0,0,.08);
}
.bubble time { position: absolute; right: .55rem; bottom: .3rem; font-size: .6875rem; color: var(--muted); }
.bubble.in { align-self: flex-start; background: #fff; border-top-left-radius: 2px; }
.bubble.out { align-self: flex-end; background: #DCEFD6; border-top-right-radius: 2px; }

/* Sections */
.section { padding: clamp(4rem, 3rem + 4vw, 7rem) 0; }
.lead { margin-top: 1.25rem; font-size: 1.1875rem; line-height: 1.6; color: var(--ink); max-width: 38rem; }
.split-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: end; margin-bottom: 3rem; }
.split-head p { color: var(--muted); max-width: var(--measure); }

/* Problem */
.problem { background: var(--paper); }
.timeline { list-style: none; margin: 2.75rem 0 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: 0 0 1.4rem 1.5rem; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--muted); }
.timeline li:last-child::before { background: #9B3B3B; border-color: #9B3B3B; }
.timeline time { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.timeline span { color: var(--muted); }
.aside { margin-top: 1.5rem; padding: 1.1rem 1.25rem; background: var(--stone); border-radius: 6px; max-width: 38rem; }

/* How */
.how { background: var(--stone); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.steps li::before { content: counter(step); display: block; font: 400 2.25rem/1 var(--serif); color: var(--green); margin-bottom: 1rem; }
.steps h3 { margin-bottom: .6rem; }
.steps p { color: var(--muted); font-size: 1rem; }

/* Demo */
.demo { background: var(--paper); }
.demo-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 2.5rem; align-items: start; }
.chat { display: flex; flex-direction: column; height: 560px; box-shadow: 0 0 0 1px var(--line), 0 18px 40px -24px rgba(22,33,45,.45); }
.restart { margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.4); color: #fff; font: 500 .8125rem var(--sans); padding: .35rem .7rem; border-radius: 5px; cursor: pointer; }
.restart:hover { border-color: #fff; }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.typing { align-self: flex-start; background: #fff; border-radius: 9px; padding: .6rem .8rem; display: flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9AA3AD; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0 1rem .75rem; }
.chips button { font: 500 .875rem var(--sans); background: #fff; color: var(--green); border: 1px solid #C9D6CE; border-radius: 999px; padding: .4rem .85rem; cursor: pointer; }
.chips button:hover { border-color: var(--green); }
.chat-input { display: flex; gap: .5rem; padding: .65rem; background: #F4EFE8; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; min-width: 0; font: 400 1rem var(--sans); padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); }
.send { width: 2.9rem; height: 2.9rem; flex: none; border: 0; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; cursor: pointer; }
.send:disabled { opacity: .5; cursor: default; }

.lead-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1.5rem; }
.lead-card-title { font: 400 1.2rem/1.3 var(--serif); margin-bottom: 1rem; }
.lead-card dl { margin: 0; }
.lead-card dl > div { display: grid; grid-template-columns: 6rem 1fr; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid #EEE9DF; }
.lead-card dt { color: var(--muted); font-size: .9375rem; }
.lead-card dd { margin: 0; font-weight: 500; color: #9AA3AD; transition: color .3s; }
.lead-card dd.filled { color: var(--ink); }
.lead-card dd.flash { animation: flash 1.2s ease-out; }
@keyframes flash { from { background: #FBEBC4; } to { background: transparent; } }
.lead-card .viewing dd.filled { color: var(--green); font-weight: 600; }
.lead-foot { margin-top: 1rem; font-size: .9375rem; color: var(--muted); }

/* Included */
.included { background: var(--stone); }
.included h2 { margin-bottom: 2.5rem; }
.included-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 4rem; }
.included-grid h3 { margin-bottom: .5rem; }
.included-grid p { color: var(--muted); max-width: var(--measure); }

/* Founder */
.founder { background: var(--green); color: #fff; }
.founder blockquote { margin: 0; }
.founder blockquote p { font: 400 clamp(1.3rem, 1rem + 1.1vw, 1.7rem)/1.5 var(--serif); }
.founder footer { margin-top: 1.5rem; color: var(--lamp); font-weight: 500; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.plan { border: 1px solid var(--line); border-radius: 10px; padding: 2rem; display: flex; flex-direction: column; background: #fff; }
.plan-founding { border: 2px solid var(--ink); }
.plan-note { color: var(--muted); font-size: .9375rem; margin-top: .25rem; }
.price { margin: 1.5rem 0; color: var(--muted); }
.price span { font: 400 2.75rem/1 var(--serif); color: var(--ink); margin-right: .25rem; }
.plan ul { list-style: none; margin: 0 0 2rem; padding: 0; }
.plan li { padding: .55rem 0 .55rem 1.6rem; border-top: 1px solid #EEE9DF; position: relative; }
.plan li::before { content: ""; position: absolute; left: .2rem; top: 1.05rem; width: .7rem; height: .38rem; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; align-self: flex-start; }
.vat { margin-top: 1rem; color: var(--muted); font-size: .875rem; }

/* FAQ */
.faq { background: var(--paper); border-top: 1px solid var(--line); }
.faq h2 { margin-bottom: 2rem; }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 1.15rem 2rem 1.15rem 0; position: relative; font-weight: 600; font-size: 1.0625rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: .35rem; top: 1.45rem; width: .55rem; height: .55rem; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .2s; }
details[open] summary::after { transform: rotate(-135deg); top: 1.7rem; }
details p { padding: 0 0 1.25rem; color: var(--muted); max-width: 38rem; }

/* Contact */
.contact { background: var(--night); color: #fff; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 4rem; align-items: start; }
.contact-copy p { margin-top: 1.1rem; color: rgba(255,255,255,.78); max-width: 26rem; }
.contact-copy a { color: var(--lamp); }
.form { background: var(--paper); color: var(--ink); border-radius: 10px; padding: 2rem; display: grid; gap: 1.1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form label { display: grid; gap: .4rem; font-weight: 500; font-size: .9375rem; }
.opt { color: var(--muted); font-weight: 400; }
.form input:not([type=radio]), .form textarea {
  font: 400 1rem var(--sans); color: var(--ink); background: #fff;
  border: 1px solid #C9C1B0; border-radius: 6px; padding: .7rem .8rem; width: 100%;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 500; font-size: .9375rem; margin-bottom: .5rem; padding: 0; }
.radios { display: flex; flex-wrap: wrap; gap: .5rem; }
.radios label { display: inline-flex; align-items: center; gap: .45rem; font-weight: 400; border: 1px solid #C9C1B0; border-radius: 6px; padding: .5rem .8rem; background: #fff; cursor: pointer; }
.radios input { accent-color: var(--green); margin: 0; }
.radios label:has(input:checked) { border-color: var(--green); background: #EDF4EF; }
.form .btn { justify-self: start; }
.form-note { font-size: .875rem; color: var(--muted); }

/* Footer */
.foot { background: #101820; color: rgba(255,255,255,.7); padding: 2rem 0; font-size: .9375rem; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: center; }
.foot .brand { color: #fff; font-size: 1.1rem; margin-right: auto; }
.foot a { color: rgba(255,255,255,.85); }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .demo-grid, .contact-grid, .split-head { grid-template-columns: 1fr; }
  .hero-grid { gap: 3rem; }
  .phone { justify-self: start; }
  .street { margin-top: 2.5rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .wrap, .narrow { width: calc(100% - 2rem); }
  .nav nav { display: none; }
  .nav-inner { justify-content: space-between; }
  .hero { padding-top: 6.5rem; }
  .steps, .included-grid, .plans, .form .row { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: .15rem; }
  .chat { height: 520px; }
  .form, .plan { padding: 1.5rem; }
  .split-head { margin-bottom: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
