:root {
  color-scheme: light dark;
  --paper: #f5f4ee;
  --surface: #eeede6;
  --text: #282b24;
  --muted: #666b60;
  --line: #dcded4;
  --accent: #397352;
  --selected: #e6eade;
  --phone-ratio: 1242 / 2688;
}

* { box-sizing: border-box; letter-spacing: 0; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-underline-offset: 4px; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible, .carousel-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
h1, h2, .hero-tagline { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
h1 { margin: 0; font-size: 88px; line-height: 1; }
h2 { margin: 0; font-size: 52px; line-height: 1.12; overflow-wrap: break-word; }
.eyebrow { margin: 0 0 16px; color: var(--muted); font-size: 13px; font-weight: 600; }

.hero { position: relative; display: flex; align-items: center; height: min(680px, calc(100svh - 220px)); min-height: 360px; color: #fffaf0; isolation: isolate; }
.hero-photo, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-photo { object-fit: cover; object-position: 50% 58%; }
.hero::after { content: ""; background: rgba(13, 24, 24, 0.38); }
.hero-content { padding-top: 32px; padding-bottom: 32px; }
.hero-tagline { margin: 12px 0 0; font-size: 40px; line-height: 1.15; }
.hero-copy { max-width: 35ch; margin: 20px 0 0; font-size: 18px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.app-store-link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 22px; border: 1px solid var(--text); border-radius: 8px; background: var(--text); color: var(--paper); font-size: 15px; font-weight: 600; text-align: center; text-decoration: none; }
.app-store-link:hover { opacity: 0.88; }
.hero .app-store-link { border-color: #fffaf0; background: #fffaf0; color: #282b24; }
.hero a:focus-visible { outline-color: #fffaf0; }
.explore-link { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255, 250, 240, 0.65); border-radius: 50%; }
.explore-link img { width: 20px; height: 20px; filter: invert(1); }
.hero-facts { margin: 20px 0 0; font-size: 13px; }

.section { padding: 72px 0; border-bottom: 1px solid var(--line); }
.showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr); gap: 64px; align-items: center; }
.showcase-copy { min-width: 0; }
.section-intro { max-width: 42ch; margin: 20px 0 0; color: var(--muted); }
.preview-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; margin-top: 30px; }
.preview-option { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 58px; padding: 12px; border: 0; border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; background: transparent; color: var(--text); cursor: pointer; text-align: left; font-size: 14px; }
.preview-option:hover { background: var(--surface); }
.preview-option.is-active { border-bottom-color: var(--feature-color); background: var(--selected); font-weight: 600; }
.feature-icon { display: inline-block; flex: 0 0 24px; width: 24px; height: 24px; background: var(--feature-color); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
[data-feature="tree"] { --feature-color: #287b47; --icon: url("lucide/tree-deciduous.svg"); }
[data-feature="write"] { --feature-color: #0876b9; --icon: url("lucide/pen-line.svg"); }
[data-feature="archive"] { --feature-color: #7351d6; --icon: url("lucide/folder.svg"); }
[data-feature="landscape"] { --feature-color: #b44f5c; --icon: url("lucide/orbit.svg"); }
[data-feature="todos"] { --feature-color: #1479b8; --icon: url("lucide/list-todo.svg"); }
[data-feature="time"] { --feature-color: #bb6419; --icon: url("lucide/clock.svg"); }
[data-feature="widget"] { --feature-color: #607d44; --icon: url("lucide/panels-top-left.svg"); }
[data-feature="reflect"] { --feature-color: #a36a25; --icon: url("lucide/sunrise.svg"); }
.screen-description { min-height: 116px; margin-top: 28px; }
.screen-description h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.4; font-weight: 600; }
.screen-description p { margin: 0; color: var(--muted); max-width: 44ch; }
.phone-stage { width: min(100%, 326px); min-width: 0; justify-self: center; }
.carousel-track { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 8px; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { flex: 0 0 100%; min-width: 0; margin: 0; background: #f5f4ee; scroll-snap-align: center; }
.carousel-slide img { display: block; width: 100%; height: auto; aspect-ratio: var(--phone-ratio); object-fit: contain; }
.preview-controls { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 18px; }
.carousel-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }
.carousel-button:hover { background: var(--selected); }
.carousel-button img { width: 18px; height: 18px; }
.screen-count { min-width: 42px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--muted); }

.privacy-heading { max-width: 700px; }
.privacy-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: 0; margin: 36px 0 0; list-style: none; }
.privacy-strip li { border-top: 1px solid var(--line); padding-top: 16px; }
.privacy-strip strong { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 600; }
.privacy-strip span { display: block; color: var(--muted); font-size: 15px; }
.privacy-link { display: inline-block; margin-top: 26px; font-size: 14px; }
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr); gap: 64px; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-list details:first-child { padding-top: 0; }
summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; cursor: pointer; list-style: none; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex-shrink: 0; color: var(--accent); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "-"; }
details p { max-width: 52ch; margin: 14px 0 0; color: var(--muted); font-size: 15px; }
.closing { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.closing p { margin: 16px 0 0; color: var(--muted); }
.closing .app-store-link { flex-shrink: 0; }
footer { padding: 28px 0; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }

@media (prefers-color-scheme: dark) {
  :root { --paper: #151713; --surface: #21251f; --text: #f4f3eb; --muted: #afb5a8; --line: #363c32; --accent: #a2c599; --selected: #283225; }
  [data-feature="tree"] { --feature-color: #8ec58e; }
  [data-feature="write"], [data-feature="todos"] { --feature-color: #77bdea; }
  [data-feature="archive"] { --feature-color: #b7a2ff; }
  [data-feature="landscape"] { --feature-color: #e69dba; }
  [data-feature="time"] { --feature-color: #e9ad74; }
  [data-feature="widget"] { --feature-color: #b1c38b; }
  [data-feature="reflect"] { --feature-color: #e0bd7c; }
  .carousel-button img { filter: invert(1); }
}

@media (max-width: 920px) {
  .wrap { max-width: 720px; }
  h2 { font-size: 42px; }
  .showcase, .faq-layout { gap: 36px; }
  .preview-option { gap: 8px; padding: 10px 8px; }
}

@media (max-width: 700px) {
  .wrap { padding-right: 20px; padding-left: 20px; }
  h1 { font-size: 64px; }
  h2 { font-size: 38px; }
  .hero { height: calc(100svh - 192px); min-height: 350px; max-height: 620px; }
  .hero-content { padding-top: 24px; padding-bottom: 24px; }
  .hero-tagline { font-size: 32px; }
  .hero-copy { font-size: 16px; max-width: 31ch; margin-top: 16px; }
  .hero-facts { margin-top: 16px; }
  .actions { margin-top: 22px; }
  .app-store-link { font-size: 14px; padding-right: 17px; padding-left: 17px; }
  .explore-link { width: 44px; height: 44px; }
  .section { padding: 48px 0; }
  .showcase, .faq-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .preview-options { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 24px; }
  .preview-option { flex-direction: column; justify-content: center; gap: 8px; min-height: 76px; padding: 10px 2px; text-align: center; font-size: 12px; }
  .screen-description { min-height: 104px; margin-top: 24px; }
  .screen-description h3 { font-size: 17px; }
  .screen-description p { font-size: 15px; }
  .phone-stage { width: min(100%, 296px); }
  .privacy-strip { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 28px; }
  .privacy-strip strong { margin-bottom: 4px; }
  .closing { flex-direction: column; align-items: flex-start; gap: 24px; }
  .closing .app-store-link { width: 100%; }
}

@media (max-width: 380px) {
  .wrap { padding-right: 16px; padding-left: 16px; }
  h1 { font-size: 56px; }
  h2 { font-size: 34px; }
  .hero-tagline { font-size: 29px; }
  .hero-copy { font-size: 15px; }
  .hero .app-store-link { font-size: 13px; padding-right: 14px; padding-left: 14px; }
  .actions { gap: 10px; }
  .preview-option { font-size: 11px; }
}

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