:root {
  --paper: #f7f8f4;
  --white: #ffffff;
  --ink: #15241f;
  --muted: #5a6862;
  --route: #176b4d;
  --route-dark: #0d4d37;
  --locker: #f4c95d;
  --signal: #3e6fe8;
  --concrete: #dde3dd;
  --navy: #061b4e;
  --orange: #f68b00;
  --line: #cad2cc;
  --danger: #9d3f36;
  color-scheme: light;
  font-family: Aptos, "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 100;
  left: 1rem;
  top: 1rem;
  padding: .65rem 1rem;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.site-header,
footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header { min-height: 86px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--navy);
  font-size: 1.32rem;
  font-weight: 780;
  letter-spacing: -.035em;
  text-decoration: none;
}
.site-header nav,
footer nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); }
.site-header nav a,
footer nav a { color: var(--muted); font-size: .92rem; font-weight: 650; text-decoration: none; }
.site-header nav a:hover,
footer nav a:hover { color: var(--ink); text-decoration: underline; }

main > section {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}
.hero {
  min-height: calc(100vh - 86px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(500px, 7fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
  padding: 6rem 0 8rem;
}
.hero > *,
.message-inbox > * { min-width: 0; }
.hero-copy { max-width: 580px; }
.availability {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1.5rem;
  color: var(--route-dark);
  font-size: .84rem;
  font-weight: 740;
}
.availability span {
  width: .7rem;
  height: .7rem;
  border-radius: 50%;
  background: var(--route);
  box-shadow: 0 0 0 5px #d9eadf;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 12ch;
  margin-bottom: 1.4rem;
  color: var(--navy);
  font-size: clamp(3.6rem, 7.5vw, 7rem);
  font-weight: 790;
  letter-spacing: -.075em;
  line-height: .91;
}
.hero-lede {
  max-width: 50ch;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
}
.hero-actions { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.15rem;
  border: 2px solid transparent;
  border-radius: 9px;
  font-weight: 760;
  text-decoration: none;
}
.button-primary { background: var(--navy); color: var(--white); }
.button-primary:hover { background: #102d70; }
.button-secondary { border-color: var(--navy); color: var(--navy); }
.button-secondary:hover { background: var(--navy); color: var(--white); }
.release-note { color: var(--muted); font-size: .9rem; }

.message-inbox {
  display: grid;
  gap: .7rem;
  padding: clamp(1.25rem, 3vw, 2.4rem);
  border: 1px solid #d5dcd6;
  border-radius: 34px 6px 34px 6px;
  background: var(--white);
  box-shadow: 0 28px 80px rgba(22, 54, 43, .09);
}
.inbox-day {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-top: .25rem;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 760;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.inbox-day::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.message-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .9rem;
  padding: 1rem;
  border-radius: 6px 18px 18px 18px;
  background: #edf2fb;
  color: #26334e;
}
.message-item > div { min-width: 0; }
.message-item p { margin: .2rem 0 .35rem; font-size: .9rem; line-height: 1.4; }
.message-item small { display: block; color: #64708a; font-size: .74rem; }
.message-item em {
  margin-left: .4rem;
  padding: .18rem .45rem;
  border-radius: 999px;
  background: var(--locker);
  color: var(--ink);
  font-size: .62rem;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}
.message-source {
  display: grid;
  width: 48px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  font-size: .64rem;
  font-weight: 820;
}
.source-sms { background: var(--route); }
.source-viber { background: #665cac; }
.message-item.reminder { background: #fff7df; }
.inbox-result {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: .45rem 0 0;
  padding: .85rem 1rem;
  border-radius: 12px;
  background: var(--ink);
  color: var(--white);
  font-size: .84rem;
  font-weight: 720;
}
.inbox-result span { display: grid; flex: 0 0 26px; height: 26px; place-items: center; border-radius: 50%; background: var(--locker); color: var(--ink); }

.shortcut { padding: 8rem 0; border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 4rem; align-items: end; margin-bottom: 4rem; }
.section-heading h2 {
  max-width: 18ch;
  margin-bottom: 0;
  color: var(--navy);
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: .98;
  letter-spacing: -.06em;
}
.section-heading p { max-width: 50ch; margin-bottom: .35rem; color: var(--muted); }
.comparison { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); background: var(--white); }
.comparison-lane { padding: clamp(1.5rem, 4vw, 3.2rem); }
.comparison-lane + .comparison-lane { border-left: 1px solid var(--line); }
.comparison-lane h3 { margin-bottom: 2rem; font-size: 1.35rem; }
.comparison-lane ol { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.comparison-lane li { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: .8rem; counter-increment: steps; }
.comparison-lane li::before { content: counter(steps); display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--concrete); color: var(--muted); font-weight: 780; }
.comparison-lane.with { background: #e8f4ed; }
.comparison-lane.with li::before { background: var(--route); color: var(--white); }
.without li span { color: var(--muted); text-decoration: line-through; text-decoration-color: #acb5ae; }
.consent-note { max-width: 75ch; margin: 1.25rem 0 0 auto; color: var(--muted); font-size: .86rem; }

.screens { width: 100%; max-width: none; padding: 8rem max(20px, calc((100% - 1180px) / 2)); background: var(--navy); color: var(--white); overflow: hidden; }
.screens-heading h2 { color: var(--white); max-width: 16ch; }
.screens-heading p { color: #bdc8dc; }
.capture-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 390px));
  justify-content: center;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.app-capture { margin: 0; }
.capture-frame {
  max-width: 390px;
  margin: 0 auto;
  border: 8px solid #0a0d15;
  border-radius: 42px;
  overflow: hidden;
  background: #f9f4fc;
  box-shadow: 0 34px 80px rgba(0, 0, 0, .4);
}
.capture-frame img { width: 100%; height: auto; }
.app-capture figcaption { max-width: 48ch; margin: 1.4rem auto 0; color: #cbd5e8; text-align: center; font-size: .9rem; }

footer { min-height: 130px; padding: 2rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.footer-brand { font-size: 1.05rem; }
footer p { margin: 0; }

.legal-layout { width: min(900px, calc(100% - 40px)); margin: 0 auto; padding: 5rem 0 8rem; }
.legal-header { margin-bottom: 4rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.legal-header h1 { max-width: 14ch; font-size: clamp(3.2rem, 7vw, 6rem); }
.legal-meta { color: var(--muted); }
.legal-content { max-width: 75ch; }
.legal-content h2 { margin: 3.5rem 0 1rem; color: var(--navy); font-size: 1.7rem; letter-spacing: -.035em; }
.legal-content li + li { margin-top: .55rem; }
.legal-notice { padding: 1.2rem 1.4rem; border-left: 5px solid var(--locker); background: var(--white); }
.legal-action { margin: 1.5rem 0; padding: 1.4rem 1.5rem; border: 1px solid #9cc9af; background: #e8f4ed; }
.legal-action h2,
.legal-action h3 { margin: 0 0 .7rem; color: var(--route-dark); font-size: 1.2rem; letter-spacing: -.02em; }
.legal-action p { margin: 0; }
.legal-action .button { margin-top: 1.1rem; }
.deletion-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 2rem 0; padding: 1px; background: var(--line); }
.deletion-step { padding: 1.4rem; background: var(--white); }
.deletion-step strong { display: block; margin-bottom: .45rem; color: var(--route-dark); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.deletion-step p { margin: 0; }
.back-link { display: inline-flex; margin-bottom: 3rem; color: var(--route-dark); font-weight: 720; }

.error-page { min-height: 100vh; display: grid; place-items: center; }
.error-page main { width: min(700px, calc(100% - 40px)); }
.error-page h1 { max-width: 10ch; }
.error-page p:not(.availability) { color: var(--muted); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 4rem; }
  .hero-copy { max-width: 720px; }
  .message-inbox { width: min(680px, 100%); justify-self: center; }
  .section-heading { grid-template-columns: 1fr; gap: 1.4rem; }
  footer { flex-wrap: wrap; gap: 1rem 2rem; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .site-header { min-height: 72px; }
  .site-header nav a:not(:last-child) { display: none; }
  h1 { font-size: clamp(3.25rem, 17vw, 5.1rem); }
  .hero { padding: 3rem 0 6rem; gap: 4rem; }
  .message-inbox { border-radius: 26px 5px; }
  .shortcut { padding: 6rem 0; }
  .comparison { grid-template-columns: 1fr; }
  .comparison-lane + .comparison-lane { border-left: 0; border-top: 1px solid var(--line); }
  .screens { padding-top: 6rem; padding-bottom: 6rem; }
  .capture-gallery { grid-template-columns: minmax(0, 340px); }
  .capture-frame { max-width: 340px; border-radius: 36px; }
  .deletion-steps { grid-template-columns: 1fr; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
