:root {
  --ink: #1A2A4F;
  --ink-deep: #0F1A33;
  --ink-soft: #404860;
  --paper: #fbfdff;
  --paper-raised: #ffffff;
  --paper-sunk: #f2f4f7;
  --sky: #2BA0FF;
  --sky-soft: #d8ecff;
  --moss: #3DAE3D;
  --moss-soft: #b8e6b8;
  --rust: #FD6847;
  --rust-soft: #ffd0bc;
  --pink: #F8477E;
  --pink-soft: #ffd6e2;
  --blue-mist: #c0d8e8;
  --line: #e1e6ed;
  --line-strong: #c0cad8;
  --text-2: #404860;
  --text-3: #7a8aa0;
  --radius: 8px;
  --radius-lg: 20px;
  --shadow: 0 18px 60px rgba(26, 42, 79, 0.13);
  --page-x: clamp(20px, 4vw, 72px);
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(216, 236, 255, 0.52), rgba(251, 253, 255, 0) 640px),
    var(--paper);
  color: var(--ink);
}

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

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

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

.site-header {
  position: fixed;
  inset: 16px var(--page-x) auto;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  min-height: 56px;
  padding: 8px 8px 8px 12px;
  background: rgba(251, 253, 255, 0.86);
  border: 1px solid rgba(225, 230, 237, 0.86);
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(26, 42, 79, 0.08);
  backdrop-filter: blur(18px);
}

.brand-link,
.site-footer div {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 750;
  letter-spacing: 0;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(26, 42, 79, 0.18);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
  color: var(--text-2);
  font-size: 0.94rem;
  font-weight: 650;
}

.nav-links a,
.site-footer a {
  border-radius: 999px;
  outline-offset: 5px;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--sky);
}

.nav-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper-raised);
  font-weight: 750;
  box-shadow: 0 9px 20px rgba(26, 42, 79, 0.22);
}

.hero {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.86fr);
  align-items: center;
  gap: clamp(28px, 5vw, 88px);
  padding: clamp(92px, 10vh, 116px) var(--page-x) clamp(24px, 4vh, 44px);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(126deg, rgba(43, 160, 255, 0.16), transparent 46%),
    linear-gradient(24deg, rgba(61, 174, 61, 0.13), transparent 50%),
    var(--paper);
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-art-image {
  position: absolute;
  width: clamp(220px, 26vw, 440px);
  opacity: 0.18;
  filter: saturate(1.08);
}

.hero-art-diary {
  left: -70px;
  top: 110px;
  transform: rotate(-11deg);
}

.hero-art-explore {
  right: 28%;
  top: 52px;
  transform: rotate(7deg);
  opacity: 0.14;
}

.hero-art-memory {
  right: -72px;
  bottom: 18px;
  transform: rotate(11deg);
  opacity: 0.16;
}

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

.download-icon {
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 22px 0 12px;
  color: var(--sky);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  font-family: var(--serif);
  font-size: 5.2rem;
  font-weight: 750;
  line-height: 0.96;
  letter-spacing: 0;
  color: var(--ink-deep);
}

h2 {
  font-family: var(--serif);
  font-size: clamp(2.15rem, 4.4vw, 5.15rem);
  line-height: 0.96;
  font-weight: 720;
  letter-spacing: 0;
  color: var(--ink-deep);
}

h3 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2vw, 2.05rem);
  line-height: 1.05;
  font-weight: 720;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 720px;
  margin-top: 28px;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  line-height: 1.05;
  color: var(--ink);
}

.hero-body {
  max-width: 660px;
  margin-top: 20px;
  color: var(--text-2);
  font-size: clamp(1.03rem, 1.45vw, 1.25rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.store-button {
  display: inline-grid;
  gap: 1px;
  align-content: center;
  min-width: 204px;
  min-height: 64px;
  padding: 10px 22px;
  border-radius: 14px;
  background: var(--ink-deep);
  color: var(--paper-raised);
  box-shadow: 0 16px 34px rgba(15, 26, 51, 0.24);
}

.store-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 42px rgba(15, 26, 51, 0.28);
}

.store-button-disabled,
.store-button-disabled:hover {
  cursor: default;
  transform: none;
}

.store-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(251, 253, 255, 0.74);
}

.store-name {
  font-size: 1.38rem;
  font-weight: 800;
  line-height: 1;
}

.language-chip img {
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(26, 42, 79, 0.08);
}

.screenshot-wrap {
  justify-self: center;
  width: clamp(230px, 24vw, 360px);
}

.app-screenshot {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(78vh, 800px);
  object-fit: contain;
  border: 0;
  background: transparent;
  filter: drop-shadow(0 32px 62px rgba(15, 26, 51, 0.2));
}

@media (max-width: 1100px) {
  h1 {
    font-size: 4.35rem;
  }

  .hero {
    gap: clamp(24px, 4vw, 48px);
    padding-top: 82px;
    padding-bottom: 22px;
  }
}

.intro-strip {
  padding: clamp(24px, 4vw, 46px) var(--page-x);
  background: var(--ink);
  color: var(--paper-raised);
}

.intro-strip p {
  max-width: 980px;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 3.5rem);
  line-height: 1.08;
}

.story-section,
.workflow-section,
.languages-section,
.privacy-section,
.download-section {
  padding: clamp(76px, 11vw, 148px) var(--page-x);
}

.section-heading {
  max-width: 900px;
}

.section-heading .eyebrow,
.privacy-copy .eyebrow {
  margin-top: 0;
}

.section-heading.narrow {
  max-width: 1060px;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(34px, 5vw, 64px);
}

.story-card {
  display: grid;
  gap: 16px;
  align-content: start;
  min-height: 100%;
  padding: clamp(18px, 2.2vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-raised);
}

.story-card-blue {
  background: var(--sky);
  color: var(--paper-raised);
  border-color: var(--sky);
}

.story-card-moss {
  background: color-mix(in srgb, var(--moss-soft) 56%, var(--paper));
}

.story-card img {
  width: 100%;
  aspect-ratio: 1.28;
  object-fit: contain;
  margin-bottom: 8px;
}

.story-card p {
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.55;
}

.story-card-blue p {
  color: rgba(251, 253, 255, 0.88);
}

.workflow-section {
  background: linear-gradient(180deg, var(--paper-sunk), var(--paper));
}

.workflow-list {
  display: grid;
  gap: 1px;
  max-width: 1120px;
  margin-top: clamp(36px, 5vw, 66px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.workflow-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 44px);
  padding: clamp(24px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--line);
}

.workflow-item:last-child {
  border-bottom: 0;
}

.workflow-index {
  color: var(--sky);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 3.1rem);
  line-height: 1;
  font-weight: 760;
}

.workflow-item p {
  max-width: 820px;
  margin-top: 12px;
  color: var(--text-2);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.65;
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(34px, 5vw, 62px);
}

.language-chip {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 2px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-raised);
}

.language-chip img {
  grid-row: 1 / span 2;
}

.language-chip span {
  font-weight: 780;
  min-width: 0;
}

.language-chip small {
  color: var(--text-2);
  min-width: 0;
}

.privacy-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.8fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: start;
  background: var(--ink-deep);
  color: var(--paper-raised);
}

.privacy-copy h2 {
  color: var(--paper-raised);
}

.privacy-copy p:last-child {
  max-width: 720px;
  margin-top: 24px;
  color: rgba(251, 253, 255, 0.76);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.7;
}

.privacy-points {
  display: grid;
  gap: 14px;
}

.privacy-points div {
  padding: 20px;
  border: 1px solid rgba(192, 216, 232, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.privacy-points strong,
.privacy-points span {
  display: block;
}

.privacy-points strong {
  font-family: var(--serif);
  font-size: 1.3rem;
}

.privacy-points span {
  margin-top: 8px;
  color: rgba(251, 253, 255, 0.72);
  line-height: 1.55;
}

.download-section {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 18px;
  background:
    linear-gradient(120deg, rgba(43, 160, 255, 0.18), transparent 42%),
    linear-gradient(260deg, rgba(248, 71, 126, 0.12), transparent 46%),
    var(--paper);
}

.download-section h2 {
  max-width: 840px;
}

.download-section p {
  max-width: 560px;
  color: var(--text-2);
  font-size: 1.08rem;
  line-height: 1.58;
}

.store-button-dark {
  margin-top: 8px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px var(--page-x);
  border-top: 1px solid var(--line);
  color: var(--text-2);
}

.site-footer div {
  color: var(--ink);
}

.site-footer img {
  border-radius: 9px;
}

.site-footer nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-weight: 650;
}

.legal-body {
  background: var(--paper);
}

.legal-header {
  position: sticky;
  margin: 16px var(--page-x) 0;
}

.legal-main {
  padding: clamp(76px, 11vw, 136px) var(--page-x) clamp(64px, 9vw, 120px);
}

.legal-document {
  max-width: 860px;
}

.legal-document h1 {
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 0.95;
  margin: 0 0 clamp(20px, 4vw, 38px);
}

.legal-document h2 {
  color: var(--sky);
  font-size: clamp(1.55rem, 2.6vw, 2.6rem);
  line-height: 1.05;
  margin: clamp(36px, 5vw, 58px) 0 14px;
}

.legal-document h3 {
  font-size: 1.24rem;
  margin: 26px 0 10px;
}

.legal-document p,
.legal-document li {
  color: var(--text-2);
  font-size: 1.04rem;
  line-height: 1.72;
}

.legal-document p {
  margin: 0 0 16px;
}

.legal-document ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

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

.legal-document a {
  color: var(--sky);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.legal-toc {
  margin: 0 0 clamp(28px, 5vw, 52px);
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.legal-toc summary {
  cursor: pointer;
  color: var(--sky);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.legal-toc nav {
  display: grid;
  gap: 10px;
  padding-top: 14px;
}

.legal-toc a {
  color: var(--ink);
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--sky);
}

.legal-document code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  color: var(--ink);
  background: var(--paper-sunk);
  border-radius: 5px;
  padding: 0.08em 0.28em;
}

.legal-document hr {
  height: 1px;
  margin: 36px 0;
  border: 0;
  background: var(--line);
}

@media (prefers-reduced-motion: no-preference) {
  .store-button,
  .nav-cta,
  .story-card,
  .language-chip {
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  }

  .story-card:hover,
  .language-chip:hover,
  .nav-cta:hover {
    transform: translateY(-2px);
  }
}

@media (max-width: 940px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 96px;
    padding-bottom: 28px;
  }

  .screenshot-wrap {
    width: min(56vw, 280px);
    margin-inline: auto;
  }

  .story-grid,
  .privacy-section {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  :root {
    --page-x: 18px;
  }

  .site-header {
    inset: 10px 10px auto;
    min-height: 54px;
    gap: 10px;
  }

  .brand-link span {
    max-width: 112px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-cta {
    padding: 0 14px;
  }

  h1 {
    font-size: 3.25rem;
    line-height: 0.9;
  }

  .hero-copy .eyebrow {
    margin-top: 0;
    margin-bottom: 8px;
  }

  .hero-lede {
    margin-top: 18px;
    font-size: clamp(1.55rem, 7vw, 2.1rem);
  }

  .hero-body {
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .store-button {
    width: 100%;
    max-width: 320px;
  }

  .workflow-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

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

  .site-footer nav {
    justify-content: flex-start;
  }
}
