/* mapped days — marketing site. Tokens mirror AtlasBrand.swift. */
:root {
  --page: #F7F5F0;
  --panel: #F0EEE8;
  --raised: #FFFFFF;
  --separator: #E1DED6;
  --ink: #14161B;
  --ink-2: #5C6370;
  --route: #3255A4;
  --action: #14161B;
  --on-action: #FFFFFF;
  --water: #DCE4EB;
  --shadow: 0 1px 2px rgba(20, 22, 27, .06), 0 18px 40px -12px rgba(20, 22, 27, .22);
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #14161B;
    --panel: #1C1C1E;
    --raised: #2C2C2E;
    --separator: #38383A;
    --ink: #FFFFFF;
    --ink-2: #AEAEB2;
    --route: #7E9BE0;
    --action: #FFFFFF;
    --on-action: #14161B;
    --water: #232A33;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -12px rgba(0, 0, 0, .6);
  }
}
:root[data-theme="dark"] {
  --page: #14161B; --panel: #1C1C1E; --raised: #2C2C2E; --separator: #38383A;
  --ink: #FFFFFF; --ink-2: #AEAEB2; --route: #7E9BE0; --action: #FFFFFF; --on-action: #14161B;
  --water: #232A33;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:lang(zh) body, body:lang(zh) { letter-spacing: .01em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Wordmark */
.wordmark { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.wordmark svg { width: 22px; height: 16px; }
.wordmark span {
  font-family: var(--display);
  font-weight: 720;
  font-stretch: 84%;
  font-size: 19px;
  letter-spacing: -.01em;
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--page) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--separator); }
.nav .wrap { display: flex; align-items: center; height: 60px; gap: 24px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.lang { font-size: 14px; color: var(--ink-2); text-decoration: none; padding: 4px 10px; border: 1px solid var(--separator); border-radius: 99px; }
.lang:hover { color: var(--ink); border-color: var(--ink-2); }
@media (max-width: 760px) { .nav-links { display: none; } .nav .lang { margin-left: auto; } }

/* Buttons */
.btn-store {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--action); color: var(--on-action);
  text-decoration: none;
  padding: 12px 22px 12px 18px; border-radius: 14px;
  font-weight: 600; font-size: 16px; line-height: 1.15;
  transition: transform .15s ease;
}
a.btn-store:hover { transform: translateY(-1px); }
.btn-store svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.btn-store small { display: block; font-weight: 400; font-size: 11px; opacity: .75; letter-spacing: .02em; }
.btn-store.sm { padding: 7px 14px 7px 12px; border-radius: 11px; font-size: 14px; }
.btn-store.sm svg { width: 16px; height: 16px; }
.btn-store.sm small { display: none; }
@media (max-width: 420px) { .nav .btn-store.sm { display: none; } }

/* Type */
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--route); margin: 0 0 14px;
}
h1, h2, h3 { font-family: var(--display); font-stretch: 82%; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(42px, 7vw, 84px); line-height: .98; font-weight: 760; }
h2 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.02; font-weight: 740; }
h3 { font-size: 22px; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
:lang(zh) h1 { line-height: 1.12; letter-spacing: 0; }
:lang(zh) h2 { line-height: 1.18; letter-spacing: 0; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 34em; margin: 22px 0 0; }

section { padding: clamp(72px, 11vw, 140px) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head p { color: var(--ink-2); margin: 18px 0 0; font-size: 18px; }

/* Hero */
.hero { padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(64px, 9vw, 120px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 36px; }
.hero-note { font-size: 14px; color: var(--ink-2); }
.hero-art { position: relative; aspect-ratio: 4 / 4.6; }
.hero-art .card {
  position: absolute; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow);
  background: #F7F5F0;
}
.hero-art .card.main { width: 74%; right: 4%; top: 0; transform: rotate(1.6deg); z-index: 2; }
.hero-art .card.back { width: 52%; left: 0; bottom: 2%; transform: rotate(-4deg); z-index: 1; }
.route-doodle { position: absolute; inset: auto 0 -6% 0; width: 100%; z-index: 3; pointer-events: none; }
.route-doodle path { stroke: var(--route); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; width: 100%; margin: 12px auto 0; }
}

/* Moments strip */
.moments { border-top: 1px solid var(--separator); border-bottom: 1px solid var(--separator); padding: 22px 0; }
.moments ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 34px; justify-content: center; font-family: var(--mono); font-size: 13px; color: var(--ink-2); letter-spacing: .04em; }
.moments li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--route); margin-right: 10px; vertical-align: 1px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.step .phone { margin-bottom: 26px; }
.step-num { font-family: var(--mono); font-size: 13px; color: var(--route); margin-bottom: 8px; }
.step p { color: var(--ink-2); margin: 10px 0 0; font-size: 16px; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 56px; }
  .step { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: center; }
  .step .phone { margin: 0; }
}
@media (max-width: 420px) { .step { grid-template-columns: 112px 1fr; gap: 18px; } }

.phone {
  container-type: inline-size;
  border-radius: 14% / 6.6%; background: #0E0F12;
  box-shadow: var(--shadow);
  max-width: 280px; margin: 0 auto;
}
.phone img {
  width: 100%; border: 1.8cqw solid #0E0F12; border-radius: inherit;
}

/* Styles wall */
.styles { background: var(--panel); }
.wall { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 2vw, 24px); align-items: start; }
.work { margin: 0; }
.work .frame { border-radius: 5px; overflow: hidden; box-shadow: var(--shadow); background: #F7F5F0; transition: transform .3s ease; }
.work:hover .frame { transform: translateY(-4px); }
.work figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 14px; }
.work figcaption b { font-weight: 600; }
.work figcaption span { color: var(--ink-2); font-family: var(--mono); font-size: 12px; padding-top: 2px; }
.w-a { grid-column: 1 / span 5; }
.w-b { grid-column: 6 / span 4; margin-top: 64px; }
.w-c { grid-column: 10 / span 3; margin-top: 24px; }
.w-d { grid-column: 1 / span 3; margin-top: 8px; }
.w-e { grid-column: 4 / span 4; margin-top: -40px; }
.w-f { grid-column: 8 / span 5; margin-top: -8px; }
@media (max-width: 860px) {
  .wall { grid-template-columns: 1fr 1fr; }
  .wall .work { grid-column: auto; margin-top: 0; }
  .wall .work:nth-child(even) { margin-top: 40px; }
}
.wall-note { margin-top: 48px; color: var(--ink-2); font-size: 15px; text-align: center; }
.gallery-home-link { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 6px; }

/* Atlas */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split.rev .split-art { order: -1; }
.split-art { display: flex; gap: clamp(12px, 2vw, 24px); justify-content: center; align-items: flex-start; }
.split-art .phone { flex: 1; max-width: 250px; }
.split-art .phone:nth-child(2) { margin-top: 64px; }
.points { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 20px; }
.points li { padding-left: 28px; position: relative; color: var(--ink-2); }
.points li b { color: var(--ink); font-weight: 600; display: block; }
.points li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--route); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.rev .split-art { order: 0; }
}

/* Privacy */
.privacy-band { background: var(--ink); color: var(--page); }
.privacy-band .eyebrow { color: color-mix(in srgb, var(--page) 60%, var(--route)); }
.privacy-band h2 { max-width: 14em; }
.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 56px; }
.privacy-grid h3 { font-size: 19px; }
.privacy-grid p { margin: 10px 0 0; font-size: 15px; opacity: .72; }
.privacy-band a { color: inherit; }
@media (max-width: 860px) { .privacy-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .privacy-grid { grid-template-columns: 1fr; } }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 860px; }
.plan { background: var(--raised); border: 1px solid var(--separator); border-radius: 20px; padding: 32px; }
.plan.pro { border-color: var(--ink); }
.plan .tag { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.plan h3 { font-size: 30px; margin-top: 8px; }
.plan .sub { color: var(--ink-2); margin: 6px 0 0; font-size: 15px; }
.plan ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15px; }
.plan li { padding-left: 24px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 12px; height: 7px; border-left: 2px solid var(--route); border-bottom: 2px solid var(--route); transform: rotate(-45deg); }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 780px; }
.faq details { border-top: 1px solid var(--separator); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--separator); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--ink-2); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin: 12px 0 0; }

/* Final CTA */
.final { text-align: center; }
.final h2 { max-width: 13em; margin: 0 auto; }
.final .btn-store { margin-top: 36px; }

/* Footer */
footer { border-top: 1px solid var(--separator); padding: 40px 0 56px; font-size: 14px; color: var(--ink-2); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: flex-start; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .fine { flex-basis: 100%; font-size: 12px; }

/* Long-form pages */
.doc { max-width: 720px; padding-top: 56px; padding-bottom: 96px; }
.doc h1 { font-size: clamp(36px, 5vw, 56px); }
.doc h2 { font-size: 26px; margin-top: 48px; font-stretch: 90%; }
.doc h3 { font-size: 19px; margin-top: 28px; }
.doc p, .doc li { color: var(--ink-2); }
.doc strong { color: var(--ink); }
.doc .updated { font-family: var(--mono); font-size: 13px; color: var(--ink-2); margin-top: 14px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 16px 0; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--separator); vertical-align: top; }
.doc th { color: var(--ink); font-weight: 600; white-space: nowrap; }
.doc hr { border: 0; border-top: 1px solid var(--separator); margin: 64px 0; }

/* Reveal */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.in { opacity: 1; transform: none; }
  .route-doodle path { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.4s .4s ease forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* Chinese headlines need a smaller size to wrap cleanly. */
:lang(zh) h1 { font-size: clamp(30px, 3.7vw, 52px); }
@media (max-width: 860px) { :lang(zh) h1 { font-size: clamp(30px, 6.4vw, 52px); } }
.phrase { display: inline-block; }
.nav .wordmark + .lang { margin-left: auto; }
