/* ============ SETTINGS (change colors and sizes here) ============ */
:root {
  --bg: #ffffff;          /* page background: pure white */
  --text: #0a0a0a;        /* main text */
  --muted: #4a4a4a;       /* softer text */
  --border: #e6e6e6;      /* card borders */
  --hover: #f3f3f3;       /* button hover tint */
  --max-width: 1200px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;   /* makes the buttons glide down the page */
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

/* ============ TOP BAR ============ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 48px;
  background: var(--bg);
}
.logo { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.topbar nav { display: flex; flex-wrap: wrap; gap: 4px; }
.topbar nav a {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
}
.topbar nav a:hover { background: var(--hover); color: var(--text); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 32px;
  border: 1.5px solid var(--text);
  border-radius: 999px;        /* rounded borders */
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}
.btn-solid { background: var(--text); color: #fff; }
.btn-solid:hover { background: #2b2b2b; }
.btn-line { background: var(--bg); color: var(--text); }
.btn-line:hover { background: var(--hover); }
.btn-small { height: 44px; padding: 0 24px; font-size: 16px; }
.button-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ============ HERO ============ */
.hero {
  min-height: calc(100vh - 76px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 28px;
  padding: 96px 48px 160px;
}
.hero h1 {
  margin: 0;
  max-width: 960px;
  font-size: clamp(40px, 7vw, 80px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.lead {
  margin: 0;
  max-width: 620px;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--muted);
  text-wrap: pretty;
}

/* ============ GENERIC SECTION ============ */
.section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 64px;
  padding: 112px 48px;
  scroll-margin-top: 60px;   /* keeps the heading from hiding under the top bar */
}
.section h2 {
  margin: 0;
  text-align: center;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* ============ CARDS ============ */
.card-grid {
  width: 100%;
  max-width: var(--max-width);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
}
.card-grid.four { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 36px;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  background: var(--bg);
}
.card h3 { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.card p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.step {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

/* ============ DEMO PHONE ============ */
.demo-section { padding: 80px 24px; }
.phone {
  width: min(414px, 100%);
  padding: 12px;
  background: var(--text);
  border-radius: 64px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
}
.phone-screen {
  position: relative;
  height: 844px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 52px;
  overflow: hidden;
}
.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 112px;
  height: 32px;
  border-radius: 999px;
  background: var(--text);
}
.phone-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 96px 28px 24px;
}
.eyebrow {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.demo-screen h3 { margin: 0 0 16px; font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.demo-screen p { margin: 0; font-size: 17px; color: var(--muted); }
.demo-screen[hidden] { display: none; }
.phone-buttons { display: flex; gap: 12px; padding: 0 28px 40px; }
.phone-buttons .btn { flex: 1; height: 52px; font-size: 16px; }
.phone-home-bar {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 134px;
  height: 5px;
  border-radius: 999px;
  background: var(--text);
}

/* ============ PRICING ============ */
.pricing-grid {
  width: 100%;
  max-width: 1000px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 24px;
}
.price-card { padding: 40px; gap: 20px; border-radius: 28px; }
.price-card h3 { font-size: 30px; }
.price-card.featured { border-color: var(--text); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 0; }
.price .amount { font-size: 56px; line-height: 1; font-weight: 600; letter-spacing: -0.03em; color: var(--text); }
.price .amount.small { font-size: 40px; line-height: 1.1; }
.price .unit { font-size: 18px; color: var(--muted); }
.price-card ul {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 17px;
  color: var(--muted);
}
.price-card hr { width: 100%; height: 1.5px; margin: 12px 0; border: 0; background: var(--border); }

/* ============ FAQ ============ */
.faq {
  width: 100%;
  max-width: 900px;
  border-top: 1.5px solid var(--border);
}
.faq details { border-bottom: 1.5px solid var(--border); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 44px;
  padding: 24px 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 28px; font-weight: 400; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0 0 24px; max-width: 760px; font-size: 17px; color: var(--muted); text-wrap: pretty; }

/* ============ CONTACT ============ */
.contact { min-height: 70vh; gap: 24px; text-align: center; }
.contact .btn { margin-top: 8px; }
.email { color: var(--text); font-weight: 600; }
.email:hover { text-decoration: underline; }

/* ============ SMALL SCREENS ============ */
@media (max-width: 720px) {
  .topbar { padding: 12px 20px; }
  .hero, .section { padding-left: 24px; padding-right: 24px; }
  .card { padding: 28px; }
}

/* Live demo and responsive navigation. */
html { scroll-padding-top: calc(var(--header-height, 80px) + 16px); }
.section { scroll-margin-top: 0; }
.hero { scroll-margin-top: var(--header-height, 80px); }
.demo-intro { display: grid; justify-items: center; gap: 20px; text-align: center; }
.live-demo { display: block; width: 100%; height: 100%; border: 0; }
.demo-caption { margin: 0; color: var(--muted); text-align: center; }
.email { overflow-wrap: anywhere; }
@media (max-width: 1000px) {
  .topbar { gap: 8px; padding: 12px 24px; }
  .topbar nav { order: 3; flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto; }
  .topbar nav a { flex-shrink: 0; height: 40px; padding: 0 14px; }
}
@media (max-width: 480px) {
  .phone { padding: 8px; border-radius: 40px; }
  .phone-screen { height: min(780px, 82svh); min-height: 550px; border-radius: 32px; }
  .section { gap: 36px; padding-top: 80px; padding-bottom: 80px; }
  .demo-section { padding-left: 16px; padding-right: 16px; }
  .price .amount { font-size: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
