/* ───────── Fonts (self-hosted) ───────── */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/instrument-sans-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/instrument-sans-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/archivo-black-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/archivo-black-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ───────── Tokens ───────── */
:root {
  --ink: #16130E;
  --paper: #F5F0E6;
  --paper-2: #EBE3D4;
  --cream: #FBF6EE;
  --muted: #5E574C;
  --body: #3D372E;
  --accent: #2F4BFF;
  --accent-on-dark: #7F92FF;
  --link: #2438D6;
  --link-on-dark: #9EAEFF;
  --whosaid: #FF5A3C;
  --line: #3A352C;

  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --text: 'Instrument Sans', system-ui, sans-serif;
  --gutter: clamp(20px, 6vw, 80px);
  --section-gap: clamp(56px, 8vw, 112px);
}

/* ───────── Base ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--text);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--link); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
.accent { color: var(--accent); }
.wrap { max-width: 1280px; margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; }

/* ───────── Logo A ───────── */
.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(26px, 2.4vw, 30px);
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark:hover { color: var(--ink); }
.logo-stack {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.05em;
  color: var(--paper);
}

/* ───────── Header ───────── */
.site-header { border-bottom: 1.5px solid var(--ink); }
.site-header .wrap {
  height: clamp(72px, 7.5vw, 96px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav { display: flex; gap: 40px; align-items: center; font-size: 17px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav .pill-dark, .pill-dark {
  color: var(--paper);
  background: var(--ink);
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
}
.nav .pill-dark:hover { color: var(--paper); text-decoration: none; opacity: 0.9; }
.back-link { color: var(--ink); font-weight: 600; font-size: 17px; }

.lang {
  display: flex;
  align-items: center;
  height: 44px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 3px;
  font-size: 14px;
  font-weight: 600;
}
.lang > * { display: flex; align-items: center; height: 100%; padding: 0 12px; border-radius: 999px; }
.lang [aria-current] { background: var(--ink); color: var(--paper); }
.lang a { color: var(--ink); text-decoration: none; }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--paper); }
.btn-primary:hover { color: var(--paper); background: #2238E0; }
.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* ───────── Hero ───────── */
.hero .wrap {
  padding-top: clamp(40px, 7.5vw, 96px);
  padding-bottom: var(--section-gap);
  display: flex;
  gap: 64px;
  align-items: center;
}
.hero-copy { flex: 1 1 auto; max-width: 640px; display: flex; flex-direction: column; gap: clamp(24px, 2.5vw, 32px); }
.eyebrow { font-size: clamp(13px, 1.2vw, 15px); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(44px, 7.2vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.lead { font-size: clamp(18px, 1.65vw, 21px); line-height: 1.5; color: var(--body); max-width: 540px; }
.cta-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

.hero-art {
  position: relative;
  flex-shrink: 0;
  width: 460px;
  aspect-ratio: 1;
  container-type: inline-size;
}
.hero-art .logo-stack {
  position: absolute;
  right: 0;
  top: 0;
  width: 87%;
  aspect-ratio: 1;
  border-radius: 15.6cqw;
  background: var(--ink);
  padding: 12cqw 11.3cqw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 28.7cqw;
}
.hero-art img {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42.6%;
  height: auto;
  border-radius: 9.6cqw;
  transform: rotate(-8deg);
  box-shadow: 0 18px 40px rgba(22,19,14,0.25);
  border: 5px solid var(--paper);
}

/* ───────── Apps ───────── */
.apps .wrap { padding-bottom: var(--section-gap); display: flex; flex-direction: column; gap: clamp(20px, 2.5vw, 32px); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.section-title { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 4.4vw, 56px); letter-spacing: -0.03em; }
.section-meta { font-size: 17px; color: var(--muted); }

.app-card {
  background: var(--whosaid);
  border-radius: clamp(28px, 3vw, 40px);
  padding: clamp(28px, 5vw, 64px) clamp(24px, 5vw, 64px);
  display: flex;
  gap: clamp(20px, 5vw, 64px);
  align-items: flex-start;
}
.app-icon {
  width: 280px;
  height: 280px;
  border-radius: 64px;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(22,19,14,0.12);
}
.app-body { display: flex; flex-direction: column; gap: clamp(20px, 2vw, 24px); flex: 1 1 auto; min-width: 0; }
.tags { display: flex; gap: 10px; flex-wrap: wrap; }
.tag { font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--ink); color: var(--ink); }
.tag-dark { background: var(--ink); color: var(--cream); }
.app-title {
  font-family: 'Archivo Black', system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(56px, 6.9vw, 88px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--cream);
}
.app-title span { color: var(--ink); }
.app-desc { font-size: clamp(17px, 1.7vw, 22px); line-height: 1.5; color: var(--ink); max-width: 620px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li {
  background: rgba(251,246,238,0.9);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.steps .num { font-family: 'Archivo Black', system-ui, sans-serif; font-size: 28px; }
.steps .txt { font-size: 16px; font-weight: 600; line-height: 1.35; }
.store-row { display: flex; gap: 16px 24px; align-items: center; flex-wrap: wrap; padding-top: 8px; }
.store-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  height: 64px;
  padding: 0 28px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
}
.store-btn:hover { color: var(--cream); }
.store-btn[aria-disabled="true"] { cursor: default; }
.store-btn small { font-size: 12px; font-weight: 500; opacity: 0.8; }
.store-btn strong { font-size: 19px; font-weight: 600; }
.app-card .text-link { color: var(--ink); font-weight: 600; font-size: 17px; }

.next-app {
  border: 2px dashed #B7AC98;
  border-radius: clamp(28px, 3vw, 40px);
  padding: clamp(24px, 3vw, 40px) clamp(24px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.next-app h3 { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.02em; }
.next-app p { font-size: clamp(16px, 1.4vw, 18px); color: var(--muted); margin-top: 6px; }
.next-app .q { font-family: var(--display); font-weight: 800; font-size: clamp(52px, 5.6vw, 72px); color: #D8CDB9; line-height: 1; }

/* ───────── Contact ───────── */
.contact .wrap { padding-bottom: var(--section-gap); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.card { border-radius: clamp(28px, 2.5vw, 32px); padding: clamp(28px, 3.75vw, 48px) clamp(24px, 3.75vw, 48px); display: flex; flex-direction: column; gap: clamp(12px, 1.25vw, 16px); align-items: flex-start; }
.card h2 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3.1vw, 40px); letter-spacing: -0.02em; }
.card p { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.55; }
.card-light { background: var(--paper-2); }
.card-light p { color: var(--body); }
.card-light a { font-weight: 600; font-size: clamp(17px, 1.4vw, 18px); }
.card-dark { background: var(--ink); color: var(--paper); }
.card-dark p { color: #D9D1C2; }
.card-dark a { font-weight: 600; font-size: clamp(19px, 1.7vw, 22px); color: var(--link-on-dark); }
.card-dark a:hover { color: var(--paper); }

/* ───────── Footer ───────── */
.site-footer { background: var(--ink); color: #D9D1C2; }
.site-footer .wrap { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); display: flex; flex-direction: column; gap: 40px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; }
.footer-top .logo-stack { font-size: clamp(56px, 5vw, 64px); }
.footer-top .logo-stack .accent { color: var(--accent-on-dark); }
.footer-nav { display: flex; gap: 32px; font-size: 16px; }
.footer-nav a { color: var(--paper); text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 4px; color: var(--paper); }
.legal { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; gap: 8px 24px; font-size: 14px; line-height: 1.6; }
.site-footer.compact .wrap { padding-top: 32px; padding-bottom: 32px; }
.site-footer.compact .legal { border-top: 0; padding-top: 0; }

/* ───────── Privacy page ───────── */
.policy .wrap { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(56px, 7.5vw, 96px); display: flex; gap: 80px; align-items: flex-start; }
.policy aside { width: 320px; flex-shrink: 0; display: flex; flex-direction: column; gap: 24px; position: sticky; top: 32px; }
.policy aside img { width: 120px; height: 120px; border-radius: 28px; }
.summary { background: var(--ink); color: var(--paper); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.summary .label { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #B9B0A1; }
.summary ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.summary li { font-size: 17px; line-height: 1.45; }
.policy article { flex: 1 1 auto; min-width: 0; max-width: 720px; display: flex; flex-direction: column; gap: 36px; }
.policy h1 { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -0.04em; }
.policy .updated { font-size: 16px; color: var(--muted); margin-top: 14px; }
.policy section { display: flex; flex-direction: column; gap: 10px; }
.policy h2 { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2vw, 26px); }
.policy p { font-size: clamp(17px, 1.4vw, 18px); line-height: 1.65; color: #2B2620; }

/* ───────── Responsive ───────── */
@media (max-width: 1100px) {
  .hero-art { width: 380px; }
  .app-icon { width: 200px; height: 200px; border-radius: 46px; }
  .policy .wrap { gap: 48px; }
  .policy aside { width: 260px; }
}

@media (max-width: 900px) {
  .nav { gap: 8px; }
  .nav .nav-link { display: none; }
  .nav .pill-dark { padding: 0 18px; height: 44px; display: inline-flex; align-items: center; font-size: 15px; font-weight: 600; }
  .lang { border: 0; padding: 0; }
  .lang [aria-current] { display: none; }
  .lang a { border: 1.5px solid var(--ink); min-width: 44px; justify-content: center; }
  .page-privacy .site-header .wrap > div { gap: 12px; }
  .back-link { font-size: 15px; }

  .hero .wrap { flex-direction: column; align-items: stretch; gap: 32px; }
  .hero-copy { max-width: none; }
  .cta-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .btn { height: 54px; }
  .hero-art { width: min(100%, 340px); align-self: center; }
  .hero-art img { border-width: 4px; }

  .section-meta { display: none; }
  .app-card { flex-direction: column; }
  .app-icon { width: 120px; height: 120px; border-radius: 28px; box-shadow: none; }
  .tag { font-size: 13px; padding: 6px 12px; }
  .steps { grid-template-columns: 1fr; gap: 10px; }
  .steps li { flex-direction: row; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; }
  .steps .num { font-size: 20px; }
  .steps .txt { font-size: 15px; }
  .store-row { flex-direction: column; align-items: stretch; gap: 4px; }
  .store-btn { align-items: center; height: 60px; }
  .store-btn strong { font-size: 18px; }
  .app-card .text-link { text-align: center; padding: 10px 0; font-size: 16px; }

  .contact .wrap { grid-template-columns: 1fr; }

  .footer-top { flex-direction: column; }
  .footer-nav { flex-direction: column; gap: 4px; }
  .footer-nav a { padding: 10px 0; }
  .legal { flex-direction: column; border-top-width: 1px; padding-top: 20px; font-size: 13px; }

  .policy .wrap { flex-direction: column; gap: 40px; }
  .policy aside { position: static; width: 100%; flex-direction: row; align-items: flex-start; flex-wrap: wrap; }
  .policy aside img { width: 88px; height: 88px; border-radius: 22px; }
  .summary { flex: 1 1 240px; padding: 24px; }
}

@media (max-width: 420px) {
  .page-privacy .back-link .long { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
