:root {
  color-scheme: light;
  --ink: #17211e;
  --muted: #475852;
  --accent: #205b46;
  --line: #d5ded8;
  --paper: #f9faf6;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure { margin: 0; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .13em; }
button { font: inherit; cursor: pointer; }
:is(a, button):focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; inset: 12px auto auto 12px; z-index: 1; padding: 8px 12px; background: white; translate: 0 -160%; }
.skip-link:focus { translate: 0; }
.site-header { border-bottom: 1px solid var(--line); }
.masthead { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 1.16rem; font-weight: 760; letter-spacing: -.045em; color: var(--ink); text-decoration: none; }
.mark { display: inline-block; width: 23px; height: 25px; position: relative; }
.mark::before, .mark::after { content: ""; position: absolute; width: 17px; height: 12px; border: 2px solid var(--accent); border-radius: 4px 4px 4px 1px; }
.mark::before { top: 3px; left: 1px; }
.mark::after { top: 10px; left: 6px; background: #d6e7db; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: .92rem; font-weight: 600; }
nav a:hover { text-decoration: underline; }
.main-nav { gap: 4px 16px; }
.main-nav .button { margin: 0; min-height: 44px; padding: 8px 15px; font-size: .92rem; }
.nav-sign-in { min-height: 44px; border: 0; padding: 0 5px; background: transparent; color: var(--accent); font-size: .92rem; font-weight: 650; }
.nav-sign-in:hover { text-decoration: underline; text-underline-offset: .18em; }

.hero { border-bottom: 1px solid var(--line); background: linear-gradient(115deg, #f9faf6 40%, #eaf2e9); }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 6vw, 88px); padding-block: clamp(40px, 6vw, 68px); }
.eyebrow { color: var(--accent); font-size: .82rem; font-weight: 700; margin-bottom: 12px; }
h1, h2 { line-height: 1.08; letter-spacing: -.06em; text-wrap: balance; }
h1 { font-size: clamp(2.55rem, 5.2vw, 4.5rem); font-weight: 720; }
.intro { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.14rem); max-width: 48ch; margin-top: 20px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; padding: 11px 17px; min-height: 46px; border: 1px solid transparent; border-radius: 8px; background: var(--accent); color: white; text-decoration: none; font-weight: 650; margin-top: 24px; }
.button:hover { background: #173e30; }
.button-secondary { color: var(--accent); background: #fff; border-color: #b7c9bf; }
.button-secondary:hover { background: #edf4ef; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-actions .button { margin: 0; }
.phone-demo { min-width: 0; }
.phone-stage {
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 34px);
  border: 1px solid #d3e1d3;
  border-radius: 24px;
  background: radial-gradient(circle at 35% 20%, #eff6db, transparent 64%), linear-gradient(150deg, #eff4e8, #dceadf);
}
.phone {
  width: min(100%, 284px);
  overflow-wrap: anywhere;
  border: 7px solid #192923;
  border-radius: 36px;
  padding: 9px 11px 8px;
  background: #fcfdf8;
  box-shadow: 0 2px 0 1px #50685b, 0 16px 35px #224a3333;
  font-size: .84rem;
}
.phone-status { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-inline: 7px; font-size: .72rem; font-weight: 750; }
.phone-camera { width: 70px; height: 16px; border-radius: 20px; background: #192923; }
.phone-battery { justify-self: end; position: relative; width: 17px; height: 9px; border: 1px solid #50675c; border-radius: 2px; }
.phone-battery::before { content: ""; position: absolute; inset: 1px; background: #50675c; border-radius: 1px; }
.phone-battery::after { content: ""; position: absolute; inset: 2px -3px 2px auto; width: 2px; background: #50675c; }
.phone-app { display: flex; align-items: center; gap: 10px; margin: 18px 0 14px; padding-inline: 5px; }
.phone-app strong { display: block; font-size: 1.12rem; line-height: 1.15; letter-spacing: -.035em; }
.phone-app span:not(.mark) { color: var(--muted); font-size: .7rem; }
.phone-notification {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid #bfd3c3;
  border-radius: 12px;
  background: #e4f1e6;
  color: #1f4936;
}
.phone-notification small { display: block; color: var(--muted); font-size: .72rem; }
.notification-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: #398058; box-shadow: 0 0 0 4px #c9e4ce; }
.phone-item { display: flex; align-items: center; gap: 9px; margin-top: 8px; padding: 9px 8px; border: 1px solid #dde7df; border-radius: 10px; background: #fff; }
.phone-item p, .phone-draft p { color: var(--muted); font-size: .76rem; line-height: 1.4; }
.event-type { margin-inline-start: auto; color: var(--accent); font-size: .7rem; background: #e2eee5; padding: 2px 6px; border-radius: 5px; }
.avatar { display: block; border-radius: 50%; object-fit: cover; background: #dce8df; }
.phone-draft { margin: 8px 0 10px 14px; padding: 9px 10px; border: 1px solid #e7dfbc; border-radius: 10px; background: #faf5e1; }
.phone-draft div { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0 10px; margin-bottom: 3px; }
.phone-draft span { color: #694f21; font-size: .7rem; font-weight: 600; }
.phone-home { width: 72px; height: 4px; border-radius: 10px; margin: 14px auto 0; background: #374b42; }
.demo-caption { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 8px 0; color: var(--muted); font-size: .85rem; }
.replay-button { min-height: 44px; border: 0; padding: 4px 8px; border-radius: 7px; background: transparent; color: var(--accent); font-size: .85rem; font-weight: 650; }
.replay-button:hover { background: #e7f0e9; }
.replay-button span { margin-inline-end: 3px; font-size: 1.06rem; }

.pricing { padding-block: clamp(42px, 6vw, 74px); scroll-margin-top: 20px; }
.section-heading { margin-bottom: 22px; }
.section-heading h2 { font-size: clamp(2rem, 3vw, 2.7rem); }
.section-heading p { color: var(--muted); margin-top: 8px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.plan { display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); border-radius: 13px; padding: 19px 21px; background: #fff; }
.plan.featured { background: #eff5ef; border-color: #a6c5b3; }
.plan h3 { font-size: .94rem; font-weight: 660; }
.plan p { color: var(--muted); font-size: .9rem; }
.plan .price { line-height: 1.15; font-size: 1.85rem; letter-spacing: -.05em; color: var(--ink); font-weight: 730; margin: 8px 0; }
.price span { font-size: .85rem; letter-spacing: 0; font-weight: 500; color: var(--muted); }
.plan .custom-price { font-size: 1.55rem; line-height: 1.37; }
.plan .plan-limit { margin-bottom: 20px; }
.plan .button { margin-top: auto; align-self: stretch; font-size: .94rem; }
.site-footer { border-top: 1px solid var(--line); padding-block: 23px; }
.footer-layout { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px 30px; flex-wrap: wrap; }
.operator { font-size: .82rem; color: var(--muted); overflow-wrap: anywhere; }
.operator strong { color: var(--ink); font-size: .92rem; }
.operator p { margin-top: 3px; }

.legal { width: min(700px, calc(100% - 48px)); padding-block: clamp(40px, 6vw, 72px); overflow-wrap: anywhere; }
.legal h1 { font-size: clamp(2.35rem, 5vw, 3.5rem); }
.legal .intro { max-width: 60ch; }
.legal h2 { font-size: 1.35rem; letter-spacing: -.025em; margin: 28px 0 9px; }
.legal ol { padding-inline-start: 1.38em; margin-block: 0; }
.legal li + li { margin-top: 8px; }

.access-dialog {
  position: fixed;
  width: min(480px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px 28px 28px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 22px 72px #17211e29;
}
.access-dialog::backdrop { background: #17211e70; }
.access-dialog h2 { padding-right: 32px; font-size: clamp(1.5rem, 4vw, 2rem); }
.access-dialog p { margin-top: 12px; color: var(--muted); }
.dialog-close { position: absolute; inset: 9px 9px auto auto; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 1.55rem; }
.dialog-close:hover { background: #edf4ef; }

@media (prefers-reduced-motion: no-preference) {
  .phone-notification, .phone-comment, .phone-draft { animation: appear 380ms cubic-bezier(.2, .7, .25, 1) both; }
  .phone-notification { animation-delay: 300ms; }
  .phone-comment { animation-delay: 1030ms; }
  .phone-draft { animation-delay: 1810ms; }
  .access-dialog[open] { animation: appear 180ms ease-out both; }
  .button { transition: background-color 140ms ease-out; }
}

@media (prefers-reduced-motion: reduce) {
  .replay-button { display: none; }
}

@keyframes appear {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 760px) {
  .hero-layout { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 15ch; }
  .phone-demo { width: min(100%, 520px); }
}

@media (max-width: 530px) {
  .wrap, .legal { width: calc(100% - 36px); }
  .masthead { min-height: 64px; gap: 10px; }
  nav { gap: 0 13px; }
  .main-nav { justify-content: flex-end; gap: 4px 8px; }
  .main-nav .button { padding-inline: 10px; }
  .plans { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .footer-layout { gap: 6px; }
}

@media (max-width: 360px) {
  .masthead { flex-wrap: wrap; gap: 3px; padding-block: 10px; }
  .main-nav { justify-content: flex-start; }
}
