:root {
  --ink: #4f3932;
  --ink-strong: #271b18;
  --ink-soft: #765c52;
  --clay: #b36553;
  --clay-soft: #f7ddd3;
  --sage: #6a8b63;
  --sage-soft: #eef6ea;
  --blue: #5f8794;
  --blue-soft: #edf6f7;
  --paper: #fffaf5;
  --surface: #fffdfb;
  --sand: #f4ece2;
  --line: rgba(97, 70, 61, 0.16);
  --shadow: rgba(97, 70, 61, 0.14);
  --page-width: min(1120px, calc(100vw - 40px));
  --display: "Baskerville", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --ui: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--ui);
  background: var(--paper);
}

main {
  flex: 1;
}

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

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

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

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  padding: 14px max(20px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid rgba(97, 70, 61, 0.14);
  background: rgba(255, 250, 245, 0.94);
  backdrop-filter: blur(14px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(179, 101, 83, 0.16);
}

.brand-wordmark {
  width: 148px;
  height: auto;
}

.header-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

.header-links a,
.footer-links a,
.legal-card a {
  text-decoration: underline;
  text-decoration-color: rgba(97, 70, 61, 0.28);
  text-underline-offset: 0.2em;
}

.hero-section {
  position: relative;
  min-height: 740px;
  overflow: hidden;
  isolation: isolate;
  background: var(--sand);
}

.hero-section::after {
  content: "";
  display: none;
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 115px;
  background: var(--surface);
  clip-path: polygon(0 42%, 100% 0, 100% 100%, 0 100%);
}

.hero-inner {
  width: var(--page-width);
  min-height: inherit;
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: 54px 0 74px;
}

.hero-copy {
  max-width: 560px;
  display: grid;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  color: var(--clay);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.download-copy h2,
.legal-hero h1,
.legal-card h2,
.not-found-shell h1 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.98;
  color: var(--ink);
}

.hero-copy h1 {
  max-width: 11ch;
  font-size: 5rem;
}

.lede,
.hero-support,
.summary-item p,
.story-copy p,
.privacy-list span,
.download-copy p,
.footer-copy,
.footer-legal,
.legal-card p,
.legal-list,
.legal-meta,
.not-found-shell p:not(.section-kicker) {
  color: var(--ink-soft);
  font-size: 1.06rem;
  line-height: 1.65;
}

.lede {
  max-width: 34rem;
  font-size: 1.25rem;
}

.hero-support {
  max-width: 36rem;
}

.store-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.store-badge-link {
  display: inline-flex;
  align-items: center;
}

.store-badge-image {
  display: block;
  width: auto;
  height: 52px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.5;
  list-style: none;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-points li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
}

.hero-scene {
  position: absolute;
  right: max(24px, calc((100vw - 1120px) / 2));
  top: 42px;
  bottom: 52px;
  z-index: 0;
  width: min(40vw, 460px);
  height: auto;
  pointer-events: none;
}

.device-shell {
  position: absolute;
  top: 0;
  right: 0;
  width: min(346px, 100%);
  padding: 12px;
  border: 1px solid rgba(179, 101, 83, 0.24);
  border-radius: 42px;
  background: #f8e9de;
  box-shadow: 0 28px 70px var(--shadow);
  transform: rotate(1deg);
}

.device-top-speaker {
  position: absolute;
  top: 16px;
  left: 50%;
  z-index: 2;
  width: 22%;
  height: 10px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(97, 70, 61, 0.18);
}

.device-screen-window {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1080 / 2050;
  border-radius: 30px;
  background: var(--surface);
}

.device-screen-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.summary-band {
  background: var(--surface);
}

.summary-grid {
  width: var(--page-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.summary-item {
  display: grid;
  grid-template-rows: 3.2rem auto;
  align-content: start;
  gap: 10px;
  min-height: 186px;
  padding: 32px 30px;
  border-left: 1px solid var(--line);
}

.summary-item:first-child {
  border-left: 0;
}

.summary-item h2 {
  max-width: 15rem;
  color: var(--ink-strong);
  font-size: 1.35rem;
  line-height: 1.18;
}

.story-section {
  width: var(--page-width);
  margin: 0 auto;
  display: grid;
  gap: 48px;
  padding: 74px 0;
}

.section-heading {
  display: grid;
  gap: 16px;
  max-width: 700px;
}

.section-heading h2,
.download-copy h2 {
  max-width: 14ch;
  font-size: 3rem;
}

.story-list {
  display: grid;
  gap: 70px;
}

.story-item {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1fr);
  align-items: center;
  gap: 52px;
}

.story-item-reverse {
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.8fr);
}

.story-item-reverse .story-media {
  order: 2;
}

.story-media {
  position: relative;
  overflow: visible;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 22px 0;
}

.story-media::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: min(430px, 100%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 72% 46%, rgba(238, 246, 234, 0.92), transparent 45%),
    radial-gradient(circle at 28% 42%, rgba(247, 221, 211, 0.82), transparent 48%);
}

.app-screenshot-image {
  position: relative;
  z-index: 1;
  width: min(330px, 100%);
  height: auto;
  border: 1px solid rgba(97, 70, 61, 0.1);
  border-radius: 28px;
  box-shadow: 0 22px 52px rgba(97, 70, 61, 0.13);
}

.story-copy {
  display: grid;
  gap: 16px;
  max-width: 560px;
}

.story-copy h3 {
  color: var(--ink-strong);
  font-size: 2rem;
  line-height: 1.12;
}

.privacy-band {
  background: var(--sage-soft);
  border-top: 1px solid rgba(106, 139, 99, 0.24);
  border-bottom: 1px solid rgba(106, 139, 99, 0.24);
}

.privacy-inner {
  width: var(--page-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: start;
  padding: 70px 0;
}

.privacy-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(106, 139, 99, 0.26);
}

.privacy-list li {
  display: grid;
  gap: 8px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(106, 139, 99, 0.26);
}

.privacy-list strong {
  color: var(--ink-strong);
  font-size: 1.12rem;
}

.download-band {
  background: var(--ink);
  color: var(--surface);
}

.download-inner {
  width: var(--page-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 56px 0;
}

.download-copy {
  display: grid;
  gap: 14px;
}

.download-copy h2 {
  color: var(--surface);
}

.download-copy p {
  color: rgba(255, 253, 251, 0.82);
}

.download-copy .section-kicker {
  color: var(--clay-soft);
}

.store-badge-row-download {
  justify-content: flex-end;
}

.site-footer {
  width: var(--page-width);
  margin: 0 auto;
  display: grid;
  gap: 10px;
  padding: 30px 0 22px;
}

.footer-brand span {
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.footer-brand .brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
}

.footer-legal {
  max-width: 68ch;
  font-size: 0.78rem;
  line-height: 1.5;
}

.legal-main {
  width: var(--page-width);
  margin: 0 auto;
  display: grid;
  gap: 18px;
  padding: 22px 0 10px;
}

.legal-hero {
  display: grid;
  gap: 16px;
  max-width: 72rem;
  padding: 18px 0 8px;
}

.legal-hero h1 {
  max-width: 16ch;
  font-size: 4.4rem;
}

.legal-lede {
  max-width: 56ch;
}

.legal-meta {
  font-size: 0.95rem;
}

.legal-card {
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.legal-card h2 {
  font-size: 2.1rem;
}

.legal-summary {
  gap: 10px;
}

.legal-list {
  margin: 0;
  padding-left: 1.2rem;
}

.not-found-shell {
  width: min(640px, calc(100vw - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 32px 0;
}

.not-found-shell .brand-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
}

.not-found-shell h1 {
  max-width: 9ch;
  font-size: 4.2rem;
}

.not-found-shell p:not(.section-kicker) {
  max-width: 28ch;
  font-size: 1.14rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
}

.button-primary {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(97, 70, 61, 0.1);
}

@media (max-width: 1040px) {
  .hero-copy h1 {
    max-width: 10ch;
    font-size: 4.25rem;
  }

  .hero-scene {
    right: -28px;
    width: 390px;
  }
}

@media (max-width: 900px) {
  .hero-section {
    min-height: auto;
    border-bottom: 1px solid var(--line);
  }

  .hero-section::after {
    display: block;
  }

  .hero-inner {
    min-height: 0;
    padding: 42px 0 18px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .hero-scene {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: min(370px, calc(100vw - 56px));
    height: 540px;
    margin: 0 auto -36px;
  }

  .device-shell {
    right: 50%;
    transform: translateX(50%) rotate(1deg);
  }

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

  .summary-item {
    min-height: 0;
    grid-template-rows: auto;
    border-left: 0;
    border-top: 0;
  }

  .summary-item:first-child {
    border-top: 0;
  }

  .story-item,
  .story-item-reverse,
  .privacy-inner {
    grid-template-columns: 1fr;
  }

  .story-item-reverse .story-media {
    order: 0;
  }

  .story-media {
    max-width: 430px;
  }

  .download-inner {
    display: grid;
    justify-items: start;
  }

  .store-badge-row-download {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  :root {
    --page-width: min(calc(100vw - 24px), 1120px);
  }

  .site-header {
    padding: 12px;
  }

  .brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .brand-wordmark {
    width: 132px;
  }

  .header-links {
    gap: 12px;
    font-size: 0.9rem;
  }

  .hero-inner {
    padding-top: 34px;
  }

  .hero-copy {
    justify-items: center;
    text-align: center;
    gap: 16px;
  }

  .hero-copy h1 {
    font-size: 2.85rem;
  }

  .lede {
    font-size: 1.08rem;
  }

  .hero-support {
    display: none;
  }

  .hero-points,
  .store-badge-row {
    justify-content: center;
  }

  .store-badge-image {
    height: 46px;
  }

  .hero-scene {
    width: min(300px, calc(100vw - 56px));
    height: 184px;
    overflow: hidden;
    margin-top: 16px;
    margin-bottom: -20px;
  }

  .device-shell {
    top: 0;
    bottom: auto;
    width: 100%;
    padding: 10px;
    border-radius: 36px;
  }

  .device-top-speaker {
    top: 14px;
    height: 9px;
  }

  .device-screen-window {
    border-radius: 26px;
  }

  .summary-item {
    padding: 26px 0;
  }

  .story-section {
    gap: 32px;
    padding: 54px 0;
  }

  .section-heading {
    justify-items: center;
    text-align: center;
  }

  .section-heading h2,
  .download-copy h2,
  .legal-card h2 {
    font-size: 2.25rem;
  }

  .story-item {
    gap: 28px;
  }

  .story-copy {
    justify-items: center;
    text-align: center;
  }

  .story-copy h3 {
    font-size: 1.65rem;
  }

  .privacy-inner {
    gap: 34px;
    padding: 52px 0;
  }

  .download-inner {
    justify-items: center;
    text-align: center;
    padding: 46px 0;
  }

  .download-copy {
    justify-items: center;
  }

  .site-footer {
    justify-items: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .legal-main {
    gap: 16px;
    padding-top: 14px;
  }

  .legal-hero {
    justify-items: center;
    text-align: center;
  }

  .legal-hero h1 {
    font-size: 3.2rem;
  }

  .legal-card {
    padding: 22px;
  }

  .not-found-shell {
    width: min(100vw - 24px, 640px);
    gap: 16px;
    padding: 24px 0;
  }

  .not-found-shell h1 {
    font-size: 3.2rem;
  }
}

@media (max-width: 380px) {
  .hero-copy h1 {
    font-size: 2.7rem;
  }

  .store-badge-image {
    height: 42px;
  }

  .header-links {
    display: none;
  }
}
