:root {
  color-scheme: light;
  --bg: #f4f6f5;
  --surface: #ffffff;
  --surface-soft: #edf2ef;
  --text: #151a17;
  --muted: #626a65;
  --line: #dce2de;
  --sage: #507963;
  --sage-soft: #dce9e2;
  --coral: #f07d69;
  --dark: #171a19;
  --dark-surface: #222625;
  --radius: 8px;
  --page: min(1240px, calc(100vw - 48px));
  --shadow: 0 28px 70px rgba(34, 49, 41, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(80, 121, 99, 0.45);
  outline-offset: 4px;
}

.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--text);
  color: white;
  border-radius: var(--radius);
}

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  width: var(--page);
  height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  transition: background-color 180ms ease, box-shadow 180ms ease, width 180ms ease;
}

.site-header.is-scrolled {
  width: 100%;
  padding-inline: max(24px, calc((100vw - 1240px) / 2));
  background: rgba(244, 246, 245, 0.9);
  box-shadow: 0 1px 0 rgba(21, 26, 23, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  color: #294c3a;
  font-size: 17px;
  font-weight: 650;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 560;
}

.site-nav a,
.site-footer nav a,
.back-link {
  color: #333b36;
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-footer nav a:hover,
.back-link:hover {
  color: var(--sage);
}

.header-cta {
  justify-self: end;
  padding: 10px 16px;
  color: white;
  background: var(--text);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 650;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  color: var(--text);
  background: transparent;
}

.menu-button svg {
  width: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.hero {
  position: relative;
  min-height: min(900px, 96vh);
  overflow: hidden;
  padding: 164px max(24px, calc((100vw - 1240px) / 2)) 92px;
  background: #f8faf9;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 560px;
}

.hero h1 {
  margin: 0;
  color: var(--sage);
  font-size: 22px;
  font-weight: 650;
}

.hero-statement {
  max-width: 620px;
  margin: 24px 0 18px;
  font-size: clamp(56px, 6.2vw, 92px);
  line-height: 0.98;
  font-weight: 720;
}

.hero-description {
  max-width: 510px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 38px;
}

.app-store-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px 18px;
  color: white;
  background: #0b0c0b;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 620;
  line-height: 1.05;
}

.app-store-button svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.app-store-button span {
  display: grid;
  gap: 2px;
}

.app-store-button small {
  font-size: 10px;
  font-weight: 500;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sage);
  font-size: 15px;
  font-weight: 650;
}

.hero-product {
  position: absolute;
  z-index: 2;
  top: 118px;
  left: max(52%, calc(50% + 80px));
  right: max(16px, calc((100vw - 1320px) / 2));
  height: 690px;
}

.device {
  position: absolute;
  margin: 0;
  overflow: hidden;
  background: #080908;
  border: 8px solid #141716;
  border-radius: 46px;
  box-shadow: var(--shadow);
}

.device img,
.phone-frame img,
.dark-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.device-primary {
  z-index: 2;
  top: 0;
  left: 0;
  width: 310px;
  aspect-ratio: 1320 / 2868;
}

.device-secondary {
  z-index: 1;
  top: 96px;
  left: 235px;
  width: 270px;
  aspect-ratio: 1320 / 2868;
  opacity: 0.94;
}

.hero-foot {
  position: absolute;
  z-index: 4;
  bottom: 38px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 13px;
  transform: translateX(-50%);
  color: #68716c;
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
}

.hero-foot i {
  width: 4px;
  height: 4px;
  background: var(--sage);
  border-radius: 50%;
}

.feature-band,
.history-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(520px, 1.15fr);
  align-items: center;
  gap: 72px;
  min-height: 700px;
  padding: 110px max(24px, calc((100vw - 1240px) / 2));
  background: #eaf0ed;
}

.section-copy,
.section-heading,
.closure-intro,
.pro-copy,
.privacy-copy {
  max-width: 560px;
}

.section-label {
  margin: 0 0 18px;
  color: var(--sage);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-size: clamp(38px, 4.2vw, 64px);
  line-height: 1.06;
  font-weight: 700;
}

.section-copy > p:not(.section-label),
.section-heading > p:not(.section-label),
.closure-intro > p:not(.section-label),
.pro-copy > p:not(.section-label),
.privacy-copy > p:not(.section-label) {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.status-list {
  margin: 32px 0 0;
}

.status-list div {
  display: grid;
  grid-template-columns: 84px 1fr;
  padding: 9px 0;
  border-bottom: 1px solid rgba(80, 121, 99, 0.2);
}

.status-list dt {
  font-weight: 700;
}

.status-list dd {
  margin: 0;
  color: var(--muted);
}

.feature-media {
  height: 530px;
  overflow: hidden;
  border: 1px solid rgba(80, 121, 99, 0.14);
  border-radius: var(--radius);
  box-shadow: 0 28px 80px rgba(54, 77, 65, 0.13);
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.insights-section {
  padding: 120px max(24px, calc((100vw - 1240px) / 2)) 0;
  overflow: hidden;
  background: #fafbfa;
}

.section-heading {
  margin-bottom: 58px;
}

.insight-stage {
  position: relative;
  width: 100%;
  height: 760px;
}

.ipad-frame {
  position: absolute;
  inset: 0 140px auto 0;
  height: 690px;
  margin: 0;
  overflow: hidden;
  background: #161817;
  border: 10px solid #1d201f;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.ipad-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.phone-frame,
.dark-phone {
  margin: 0;
  overflow: hidden;
  background: #111;
  border: 7px solid #171a19;
  border-radius: 38px;
  box-shadow: var(--shadow);
}

.reflection-phone {
  position: absolute;
  right: 0;
  bottom: -52px;
  width: 290px;
  aspect-ratio: 1320 / 2868;
}

.closure-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  align-items: center;
  padding: 112px max(24px, calc((100vw - 1240px) / 2));
  background: #f4f6f5;
}

.closure-types {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.closure-types li {
  min-height: 190px;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.closure-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 50%;
  font-size: 24px;
}

.closure-icon.completed { color: white; background: var(--sage); }
.closure-icon.partly { color: #7f6412; background: #f2dfa0; }
.closure-icon.let-go { color: #8b5960; background: #efd9dd; }
.closure-icon.replaced { color: #4b6191; background: #dce4f4; }
.closure-icon.blocked { color: #555c58; background: #e1e5e2; }

.closure-types strong {
  font-size: 15px;
}

.closure-types small {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.35;
}

.history-band {
  grid-template-columns: minmax(420px, 0.8fr) minmax(0, 1fr);
  background: #e8eeeb;
}

.history-media {
  height: 570px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.history-media .phone-frame {
  width: 315px;
  aspect-ratio: 1320 / 2868;
  transform: translateY(120px);
}

.pro-section {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  min-height: 820px;
  padding: 112px max(24px, calc((100vw - 1240px) / 2)) 0;
  overflow: hidden;
  color: #f3f6f4;
  background: var(--dark);
}

.pro-section .section-label {
  color: var(--coral);
}

.pro-copy > p:not(.section-label) {
  color: #aeb6b1;
}

.pro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px 38px;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
}

.pro-grid li {
  display: grid;
  gap: 4px;
  padding-left: 18px;
  border-left: 2px solid var(--coral);
}

.pro-grid strong {
  font-size: 16px;
}

.pro-grid span {
  color: #9da6a1;
  font-size: 14px;
  line-height: 1.4;
}

.pro-media {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.dark-phone {
  width: 360px;
  aspect-ratio: 1320 / 2868;
  transform: translateY(90px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.44);
}

.privacy-section {
  display: grid;
  grid-template-columns: 120px 0.9fr 1.2fr;
  gap: 44px;
  align-items: start;
  padding: 108px max(24px, calc((100vw - 1240px) / 2));
  background: #f9fbfa;
}

.privacy-mark {
  width: 92px;
  color: var(--sage);
}

.privacy-mark svg {
  width: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.privacy-copy .text-link {
  margin-top: 28px;
}

.privacy-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.privacy-points li {
  display: grid;
  gap: 5px;
  min-height: 130px;
  padding: 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.privacy-points strong {
  font-size: 15px;
}

.privacy-points span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.download-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 80px max(24px, calc((100vw - 1240px) / 2));
  color: white;
  background: var(--sage);
}

.download-section h2 {
  font-size: clamp(36px, 4vw, 58px);
}

.download-section p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.app-store-button.muted {
  flex: 0 0 auto;
  background: #101411;
}

.site-footer {
  width: var(--page);
  min-height: 130px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  gap: 28px;
}

.footer-meta {
  justify-self: end;
  display: grid;
  justify-items: end;
  color: var(--muted);
}

.footer-meta a:hover {
  color: var(--sage);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.legal-page {
  background: #f7f9f8;
}

.site-header.compact {
  position: relative;
}

.site-header.compact .back-link {
  grid-column: 3;
  justify-self: end;
  font-size: 14px;
  font-weight: 650;
}

.legal-shell {
  width: var(--page);
  margin: 0 auto;
  padding: 90px 0 120px;
  display: grid;
  grid-template-columns: 240px minmax(0, 760px);
  gap: 100px;
  justify-content: center;
  align-items: start;
}

.legal-aside {
  position: sticky;
  top: 110px;
  color: var(--muted);
  font-size: 14px;
}

.legal-aside .privacy-mark {
  width: 64px;
}

.legal-aside > p {
  margin: 24px 0;
}

.legal-aside nav {
  display: grid;
  border-top: 1px solid var(--line);
}

.legal-aside nav a {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.legal-aside nav a:hover {
  color: var(--sage);
}

.legal-content > header {
  margin-bottom: 72px;
}

.legal-content h1 {
  margin: 0;
  font-size: clamp(52px, 7vw, 84px);
  line-height: 1;
}

.legal-lead {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.6;
}

.legal-content section {
  padding: 45px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 100px;
}

.legal-content section h2 {
  margin-bottom: 22px;
  font-size: 29px;
}

.legal-content section h3 {
  margin: 30px 0 8px;
  font-size: 18px;
}

.legal-content p,
.legal-content li {
  color: #4c544f;
}

.legal-content ul {
  padding-left: 22px;
}

.legal-content li + li {
  margin-top: 8px;
}

.legal-highlight {
  margin-top: 28px;
  padding: 22px 24px;
  background: var(--sage-soft);
  border-left: 3px solid var(--sage);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.legal-highlight p {
  margin: 6px 0 0;
}

.legal-content address {
  color: #4c544f;
  font-style: normal;
}

.legal-content address a {
  color: var(--sage);
  font-weight: 650;
}

.legal-footer {
  border-top: 1px solid var(--line);
}

.legal-footer > a:nth-child(2) {
  justify-self: center;
  color: var(--sage);
}

.legal-footer > span {
  justify-self: end;
  color: var(--muted);
}

@media (max-width: 1050px) {
  :root {
    --page: min(940px, calc(100vw - 40px));
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .header-cta {
    grid-column: 2;
  }

  .hero {
    min-height: 940px;
    padding-top: 140px;
  }

  .hero-product {
    top: 425px;
    left: 50%;
    right: auto;
    width: 630px;
    transform: translateX(-40%);
  }

  .feature-band,
  .history-band {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .section-copy {
    max-width: 720px;
  }

  .closure-section {
    grid-template-columns: 1fr;
  }

  .pro-section {
    grid-template-columns: 1fr 360px;
    gap: 34px;
  }

  .privacy-section {
    grid-template-columns: 80px 1fr;
  }

  .privacy-points {
    grid-column: 2;
  }

  .legal-shell {
    grid-template-columns: 190px minmax(0, 680px);
    gap: 54px;
  }
}

@media (max-width: 760px) {
  :root {
    --page: calc(100vw - 32px);
  }

  body {
    font-size: 16px;
  }

  .site-header {
    height: 66px;
    grid-template-columns: 1fr auto;
  }

  .site-header.is-scrolled {
    padding-inline: 16px;
  }

  .header-cta {
    display: none;
  }

  .menu-button {
    display: block;
    grid-column: 2;
  }

  .site-nav {
    position: fixed;
    top: 66px;
    left: 16px;
    right: 16px;
    display: none;
    padding: 12px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 20px 55px rgba(34, 49, 41, 0.18);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 10px;
  }

  .hero {
    min-height: 920px;
    padding: 112px 20px 72px;
  }

  .hero h1 {
    font-size: 19px;
  }

  .hero-statement {
    max-width: 360px;
    font-size: clamp(52px, 15vw, 72px);
  }

  .hero-description {
    max-width: 450px;
    font-size: 18px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .hero-product {
    top: 510px;
    left: 50%;
    width: 480px;
    height: 470px;
    transform: translateX(-42%);
  }

  .device-primary {
    width: 225px;
  }

  .device-secondary {
    top: 62px;
    left: 172px;
    width: 198px;
  }

  .device {
    border-width: 6px;
    border-radius: 34px;
  }

  .hero-foot {
    display: none;
  }

  .feature-band,
  .history-band,
  .insights-section,
  .closure-section,
  .privacy-section {
    padding: 78px 20px;
  }

  .feature-band {
    grid-template-columns: 1fr;
  }

  .feature-media {
    height: 420px;
  }

  h2 {
    font-size: 42px;
  }

  .section-copy > p:not(.section-label),
  .section-heading > p:not(.section-label),
  .closure-intro > p:not(.section-label),
  .pro-copy > p:not(.section-label),
  .privacy-copy > p:not(.section-label) {
    font-size: 17px;
  }

  .insights-section {
    padding-bottom: 0;
  }

  .insight-stage {
    height: 620px;
  }

  .ipad-frame {
    inset: 0 0 auto;
    height: 440px;
    border-width: 7px;
    border-radius: 20px;
  }

  .reflection-phone {
    right: 16px;
    bottom: -10px;
    width: 180px;
    border-width: 5px;
    border-radius: 26px;
  }

  .closure-types {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .closure-types li:last-child {
    grid-column: 1 / -1;
  }

  .history-band {
    display: flex;
    flex-direction: column-reverse;
  }

  .history-media {
    width: 100%;
    height: 460px;
  }

  .history-media .phone-frame {
    width: 250px;
    transform: translateY(70px);
  }

  .pro-section {
    grid-template-columns: 1fr;
    padding: 78px 20px 0;
  }

  .pro-grid {
    grid-template-columns: 1fr;
  }

  .dark-phone {
    width: 270px;
    transform: translateY(74px);
  }

  .privacy-section {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .privacy-mark {
    width: 66px;
  }

  .privacy-points {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .download-section {
    align-items: flex-start;
    flex-direction: column;
    padding: 65px 20px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 38px 0;
  }

  .site-footer nav {
    gap: 20px;
  }

  .footer-meta {
    justify-self: start;
    justify-items: start;
  }

  .site-header.compact {
    padding-inline: 0;
  }

  .site-header.compact .back-link {
    grid-column: 2;
  }

  .legal-shell {
    width: var(--page);
    padding: 64px 0 90px;
    grid-template-columns: 1fr;
  }

  .legal-aside {
    position: static;
  }

  .legal-aside nav {
    display: none;
  }

  .legal-content > header {
    margin-bottom: 48px;
  }

  .legal-content h1 {
    font-size: 54px;
  }

  .legal-lead {
    font-size: 18px;
  }

  .legal-content section {
    padding: 34px 0;
  }

  .legal-footer > a:nth-child(2),
  .legal-footer > span {
    justify-self: start;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
