@font-face {
  font-family: "Young Serif";
  src: url("assets/YoungSerif-Regular.ttf") format("truetype");
  font-display: swap;
}

/* Atlas — the same palette the Sticta app uses (AtlasTheme.swift):
   map paper, navy ink, pushpin-red accent. */
:root {
  --desk: #D9D3C4;
  --ink: #1F2A3A;
  --mute: #6A6457;
  --line: #D6CFBE;
  --surface: #F6F2E8;
  --panel: #EDE7D9;
  --chip: #E3DCCB;
  --accent: #C8412E;
  --accent-ink: #FFF8EE;
  --selection: #F9E3C0;
  --tray: #C9B48F;
  --tray-ink: #3B2E1A;
  --outline: #FFF8EE;        /* the sticker's white outline */
  --navy: #1F2A3A;           /* app-icon background */
  --graticule: rgba(31, 42, 58, 0.07);
  --shadow: 0 1px 2px rgba(31, 42, 58, .12), 0 8px 24px rgba(31, 42, 58, .14);
  --shadow-lift: 0 2px 4px rgba(31, 42, 58, .14), 0 18px 40px rgba(31, 42, 58, .22);

  --display: "Young Serif", Georgia, serif;
  --body: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --desk: #17191D;
    --ink: #EFE7D6;
    --mute: #A79D8A;
    --line: #383A40;
    --surface: #2A2C31;
    --panel: #212327;
    --chip: #34363C;
    --accent: #E8604A;
    --accent-ink: #1B1110;
    --selection: #4A3A26;
    --tray: #3A3226;
    --tray-ink: #EFE0C2;
    --outline: #EFE7D6;
    --navy: #10141B;
    --graticule: rgba(239, 231, 214, 0.05);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, .45), 0 18px 40px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font: 17px/1.6 var(--body);
  background-color: var(--desk);
  /* a faint map graticule under everything */
  background-image:
    linear-gradient(var(--graticule) 1px, transparent 1px),
    linear-gradient(90deg, var(--graticule) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  overflow-x: hidden;
}
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3, .display { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* ---------- top bar: floating capsule, like the app's chrome ---------- */
.topbar {
  position: sticky; top: 12px; z-index: 10;
  margin: 12px auto 0; max-width: 1040px; padding: 0 16px;
}
.topbar-inner {
  display: flex; align-items: center; gap: 8px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 6px 6px 8px;
  box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span { font-family: var(--display); font-size: 22px; line-height: 1; }
.pill {
  display: inline-block; padding: 7px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none;
  transition: background .15s;
}
.pill:hover { background: var(--chip); }
.pill[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }
.pill.cta { background: var(--ink); color: var(--surface); white-space: nowrap; }
.pill.cta:hover { background: var(--accent); color: var(--accent-ink); }
.navmenu { display: none; position: relative; }
@media (max-width: 700px) {
  .topbar-inner > .pill:not(.cta) { display: none; }
  .navmenu { display: block; }
}
.navmenu summary {
  list-style: none; cursor: pointer; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--chip);
}
.navmenu summary::-webkit-details-marker { display: none; }
.navmenu summary span, .navmenu summary span::before, .navmenu summary span::after {
  display: block; width: 16px; height: 2px; border-radius: 2px; background: var(--ink); position: relative; transition: transform .2s, background .2s;
}
.navmenu summary span::before, .navmenu summary span::after { content: ""; position: absolute; left: 0; }
.navmenu summary span::before { top: -5px; } .navmenu summary span::after { top: 5px; }
.navmenu[open] summary span { background: transparent; }
.navmenu[open] summary span::before { transform: translateY(5px) rotate(45deg); }
.navmenu[open] summary span::after { transform: translateY(-5px) rotate(-45deg); }
.navmenu summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.navmenu-panel {
  position: absolute; right: -6px; top: calc(100% + 12px); min-width: 190px;
  display: grid; gap: 2px; padding: 8px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lift);
}
.navmenu-panel a { padding: 10px 14px; border-radius: 12px; font-weight: 600; color: var(--ink); text-decoration: none; }
.navmenu-panel a:hover { background: var(--chip); }
.navmenu-panel a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute);
}
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.hero h1 { font-size: clamp(40px, 6.4vw, 72px); line-height: 1.02; margin: 16px 0 20px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: 19px; color: var(--mute); max-width: 34em; margin: 0 0 28px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 16px; text-decoration: none;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, var(--shadow);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- stickers ---------- */
.sticker {
  position: relative;
  background: var(--surface);
  border: 6px solid var(--outline);
  border-radius: 20px;
  box-shadow: var(--shadow);
  transform: rotate(var(--r, 0deg));
  transition: transform .25s cubic-bezier(.3, 1.4, .5, 1), box-shadow .25s;
}
.sticker:hover { transform: rotate(0deg) translateY(-4px) scale(1.02); box-shadow: var(--shadow-lift); }

.pin {
  position: absolute; top: -12px; left: 50%; width: 22px; height: 22px; margin-left: -11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #F08A76 0 18%, var(--accent) 45%, #8C2A1C 100%);
  box-shadow: 0 3px 4px rgba(0,0,0,.28);
  z-index: 2;
}
.tape {
  position: absolute; top: -14px; width: 92px; height: 26px;
  background: color-mix(in srgb, var(--tray) 70%, transparent);
  border-left: 2px dashed rgba(255,255,255,.35); border-right: 2px dashed rgba(255,255,255,.35);
  z-index: 2;
}
.tape.l { left: 18px; transform: rotate(-6deg); }
.tape.r { right: 18px; transform: rotate(5deg); }

/* hero art: the app icon as a big sticker plus a travel route */
.hero-art { position: relative; min-height: 360px; }
.hero-art .route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route path { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 2 9; stroke-linecap: round; opacity: .75; }
.route circle { fill: var(--accent); }
.route circle.halo { fill: none; stroke: var(--accent); stroke-width: 2; opacity: .35; }
.icon-sticker {
  position: absolute; left: 50%; top: 50%; width: 220px; height: 220px; margin: -110px 0 0 -110px;
  border-radius: 54px; padding: 0; overflow: hidden; border-width: 8px;
  background: var(--navy);
  --r: -6deg;
}
.icon-sticker img { width: 100%; height: 100%; display: block; }
.chip-sticker {
  position: absolute; padding: 8px 14px; border-radius: 999px; border-width: 4px;
  font-weight: 700; font-size: 14px; white-space: nowrap;
}
.chip-sticker.a { top: 8%; right: 4%; --r: 8deg; background: var(--selection); }
.chip-sticker.b { bottom: 10%; left: 0; --r: -7deg; background: var(--accent); color: var(--accent-ink); }
.chip-sticker.c { bottom: 2%; right: 12%; --r: 4deg; background: var(--tray); color: var(--tray-ink); }

@media (prefers-reduced-motion: no-preference) {
  .float { animation: float 6s ease-in-out infinite; }
  .float.d2 { animation-delay: -2s; }
  .float.d3 { animation-delay: -4s; }
  @keyframes float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -8px; }
  }
  .route path { animation: march 30s linear infinite; }
  @keyframes march { to { stroke-dashoffset: -330; } }
  .reveal { opacity: 0; transform: translateY(14px); animation: reveal .6s ease-out forwards; }
  .reveal.d1 { animation-delay: .08s; } .reveal.d2 { animation-delay: .16s; } .reveal.d3 { animation-delay: .24s; }
  @keyframes reveal { to { opacity: 1; transform: none; } }
}

/* ---------- sections ---------- */
section { padding: 32px 0; }
.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin: 0; line-height: 1.1; }
.section-head .count { font-family: var(--display); color: var(--accent); font-size: 20px; }

/* contact polaroid */
.polaroid {
  max-width: 560px; margin: 8px auto 0; padding: 28px 28px 24px; --r: -1.5deg;
  border-radius: 6px; border-width: 0;
  background: var(--surface);
}
.polaroid h3 { font-size: 26px; line-height: 1.2; margin: 8px 0 10px; }
.polaroid .mail { font-family: var(--display); font-size: clamp(22px, 4.6vw, 30px); color: var(--accent); text-decoration: none; overflow-wrap: anywhere; }
.polaroid .mail:hover { text-decoration: underline; }
.checklist { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.checklist li {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 8px 12px; font-size: 14px; font-weight: 600; margin: 0;
  display: flex; gap: 8px; align-items: center;
}
.checklist li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* FAQ board */
.faq { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.faq details {
  --r: 0deg;
  padding: 0; border-width: 5px; border-radius: 18px;
}
.faq details:nth-child(4n+1) { --r: -.8deg; }
.faq details:nth-child(4n+2) { --r: .7deg; }
.faq details:nth-child(4n+3) { --r: .5deg; }
.faq details:nth-child(4n+4) { --r: -.6deg; }
.faq details[open] { transform: none; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px; font-family: var(--display); font-size: 20px; line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .dot {
  flex: none; width: 30px; height: 30px; border-radius: 50%; margin-top: -2px;
  display: grid; place-items: center;
  background: var(--selection); color: var(--accent);
  font: 700 18px/1 var(--body);
  transition: transform .2s, background .2s, color .2s;
}
.faq details[open] summary .dot { transform: rotate(45deg); background: var(--accent); color: var(--accent-ink); }
.faq .answer { padding: 0 20px 18px 64px; color: var(--mute); }
.faq .answer p { margin: 0; }
.faq summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 14px; }

/* ---------- privacy ---------- */
.promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 8px; }
.promise { padding: 20px 18px 18px; text-align: left; }
.promise:nth-child(1) { --r: -2deg; }
.promise:nth-child(2) { --r: 1.5deg; background: var(--selection); }
.promise:nth-child(3) { --r: -1deg; }
.promise:nth-child(4) { --r: 2deg; background: var(--selection); }
.promise .big { font-family: var(--display); font-size: 44px; line-height: 1; color: var(--accent); }
.promise .label { font-weight: 700; margin-top: 6px; }
.promise .sub { font-size: 14px; color: var(--mute); margin-top: 2px; line-height: 1.4; }

.sheet {
  position: relative;
  background: var(--surface);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 56px clamp(20px, 6vw, 72px) 48px;
  max-width: 820px; margin: 24px auto 0;
}
.sheet .meta { color: var(--mute); font-size: 15px; margin: 0 0 8px; }
.sheet h2 { font-size: clamp(30px, 4.4vw, 42px); margin: 0 0 24px; line-height: 1.1; }
.clause { display: grid; grid-template-columns: 56px 1fr; gap: 4px 12px; padding: 22px 0; border-top: 1px dashed var(--line); }
.clause .n { font-family: var(--display); font-size: 26px; color: var(--accent); line-height: 1.1; }
.clause h3 { font-size: 22px; margin: 0 0 8px; line-height: 1.2; }
.clause p { margin: 0 0 10px; }
.clause p:last-child { margin-bottom: 0; }
.tldr {
  background: var(--selection); border-radius: 14px; padding: 18px 20px; margin: 0 0 12px;
  font-size: 18px;
}
.tldr strong { font-family: var(--display); font-weight: 400; color: var(--accent); }

/* ---------- footer ---------- */
footer { padding: 48px 0 40px; }
.foot {
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line); padding-top: 20px; color: var(--mute); font-size: 14px;
}
.foot .display { font-size: 18px; color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 300px; }
  .promises { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .faq { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .brand span { font-size: 19px; }
  .pill { padding: 7px 11px; font-size: 14px; }
  .icon-sticker { width: 170px; height: 170px; margin: -85px 0 0 -85px; border-radius: 42px; }
  .clause { grid-template-columns: 1fr; }
  .faq .answer { padding-left: 20px; }
}
@media (max-width: 380px) {
  .promises { grid-template-columns: 1fr; }
}
