/* Vocabulary — marketing site. Mono ink on warm paper, sticker lettering,
   passport cards: the same design language as the app. */

:root {
  --bg: #f3f1ec;
  --paper: #fcfbf7;
  --ink: #1a1917;
  --ink-soft: #6f6c66;
  --hardware: #dcd8d0;
  --line: rgba(26, 25, 23, 0.14);
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131312;
    --ink: #efede7;
    --ink-soft: #9b9891;
    --hardware: #23221f;
    --line: rgba(239, 237, 231, 0.16);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  font-family: "Nunito Sans", -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  /* faint chart contours, like the app's board */
  background-image: radial-gradient(ellipse 640px 420px at 12% 8%, transparent 62%, var(--line) 62.4%, transparent 63%),
    radial-gradient(ellipse 700px 520px at 92% 38%, transparent 66%, var(--line) 66.4%, transparent 67%),
    radial-gradient(ellipse 560px 380px at 22% 88%, transparent 60%, var(--line) 60.4%, transparent 61%);
  background-attachment: fixed;
}

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 22px; }

/* ---------- type ---------- */

h1, h2, h3, .display {
  font-family: "Baloo 2", "Nunito Sans", sans-serif;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.mono {
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Die-cut sticker lettering: ink with a thick white vinyl outline. */
.sticker {
  color: #1a1917;
  text-shadow:
    3px 0 0 #fff, -3px 0 0 #fff, 0 3px 0 #fff, 0 -3px 0 #fff,
    2.2px 2.2px 0 #fff, -2.2px 2.2px 0 #fff, 2.2px -2.2px 0 #fff, -2.2px -2.2px 0 #fff,
    3px 1.5px 0 #fff, -3px 1.5px 0 #fff, 3px -1.5px 0 #fff, -3px -1.5px 0 #fff,
    0 5px 10px rgba(0, 0, 0, 0.16);
}

/* ---------- header / footer ---------- */

.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px 16px; flex-wrap: wrap; }
.brand-row { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand-row img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.brand-row .name { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 21px; }
.site-header nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-header nav a {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  border: 1.2px solid var(--line); border-radius: 4px; padding: 8px 12px;
}
.site-header nav a:hover { background: var(--paper); color: #1a1917; }

.site-footer { border-top: 1px solid var(--line); margin-top: 90px; padding: 30px 0 44px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-soft); text-decoration: none; font-size: 14px; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .copy { color: var(--ink-soft); font-size: 13px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: "Nunito Sans", sans-serif;
  font-weight: 700; font-size: 16px;
  padding: 14px 30px; border-radius: 999px;
  text-decoration: none;
  background: var(--ink); color: var(--bg);
  transition: transform .12s ease;
}
.btn:hover { transform: scale(1.03); }
.btn:active { transform: scale(0.97); }
.btn.secondary { background: transparent; color: var(--ink); border: 1.4px solid var(--ink); }

/* ---------- hero ---------- */

.hero { padding: 56px 0 30px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); margin: 14px 0 18px; }
.hero .lede { font-size: 19px; color: var(--ink-soft); max-width: 46ch; }
.hero .cta-row { display: flex; align-items: center; gap: 18px; margin-top: 30px; flex-wrap: wrap; }
.hero .trust { margin-top: 18px; }

.phone {
  background: var(--paper);
  border-radius: 38px;
  padding: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22), inset 0 0 0 1.4px var(--line);
  max-width: 320px;
  margin: 0 auto;
  transform: rotate(1.6deg);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 28px; }
.phone.tilt-left { transform: rotate(-1.8deg); }

/* circular ES stamp ornament */
.stamp {
  position: relative;
  width: 84px; height: 84px; border-radius: 50%;
  border: 3px solid var(--ink);
  box-shadow: inset 0 0 0 4.5px var(--bg), inset 0 0 0 5.6px var(--ink);
  display: grid; place-content: center; text-align: center;
  transform: rotate(-12deg);
  font-family: ui-monospace, Menlo, monospace; color: var(--ink);
  opacity: .9;
}
.stamp b { font-size: 19px; letter-spacing: .04em; }
.stamp span { font-size: 8px; letter-spacing: .12em; }

/* ---------- passport section cards ---------- */

section { padding: 44px 0; }
.section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.section-head::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.section-title { font-size: clamp(28px, 3.6vw, 38px); margin-bottom: 8px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }

.passport-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.09);
  color: #1a1917;
}
.passport-card::before {
  content: "";
  position: absolute; inset: 5px;
  border: 1px solid rgba(26, 25, 23, 0.32);
  border-radius: 9px; pointer-events: none;
}
.passport-card::after {
  content: "";
  position: absolute; inset: 8px;
  border: 0.7px solid rgba(26, 25, 23, 0.14);
  border-radius: 8px; pointer-events: none;
}
.passport-card:nth-child(odd) { transform: rotate(0.35deg); }
.passport-card:nth-child(even) { transform: rotate(-0.3deg); }
.passport-card .mono { color: rgba(26, 25, 23, 0.5); display: block; margin-bottom: 8px; }
.passport-card h3 { font-size: 21px; margin-bottom: 8px; }
.passport-card p { font-size: 15px; color: rgba(26, 25, 23, 0.72); }
.passport-card .glyph { font-size: 26px; line-height: 1; margin-bottom: 12px; display: block; }

/* ---------- gallery ---------- */

.gallery { display: flex; gap: 22px; overflow-x: auto; padding: 18px 4px 26px; scroll-snap-type: x mandatory; }
.gallery figure { flex: 0 0 236px; scroll-snap-align: start; }
.gallery .phone { max-width: 236px; padding: 9px; border-radius: 30px; }
.gallery .phone img { border-radius: 22px; }
.gallery figcaption { text-align: center; margin-top: 12px; }

/* ---------- steps ---------- */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 22px 22px 22px 66px; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute; left: 8px; top: 20px;
  font-family: ui-monospace, Menlo, monospace;
  font-weight: 700; font-size: 22px; color: var(--ink);
  border-bottom: 3px solid var(--ink);
  padding-bottom: 2px;
}
.step h3 { font-size: 20px; margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: 15px; }

/* ---------- FAQ ---------- */

.faq details {
  background: var(--paper); border-radius: 10px; margin-bottom: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,.07); color: #1a1917;
}
.faq summary {
  cursor: pointer; padding: 17px 20px;
  font-family: "Baloo 2", sans-serif; font-weight: 700; font-size: 17px;
  list-style: none;
}
.faq summary::before { content: "+ "; font-weight: 800; }
.faq details[open] summary::before { content: "– "; }
.faq details p { padding: 0 20px 18px; font-size: 15px; color: rgba(26,25,23,.75); }

/* ---------- CTA band ---------- */

.cta-band { text-align: center; padding: 70px 0; }
.cta-band .stamp { margin: 0 auto 22px; }
.cta-band h2 { font-size: clamp(30px, 4.4vw, 44px); margin-bottom: 12px; }
.cta-band p { color: var(--ink-soft); margin-bottom: 26px; }

/* ---------- legal / contact docs ---------- */

.legal { padding: 30px 0 10px; }
.doc {
  background: var(--paper); border-radius: var(--radius);
  padding: 46px clamp(22px, 5vw, 60px) 56px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.09);
  color: #1a1917;
  position: relative;
}
.doc::before {
  content: ""; position: absolute; inset: 7px;
  border: 1px solid rgba(26, 25, 23, 0.28); border-radius: 9px; pointer-events: none;
}
.doc > * { position: relative; }
.doc .back {
  font-family: ui-monospace, Menlo, monospace; font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(26,25,23,.6); text-decoration: none; display: inline-block; margin-bottom: 22px;
}
.doc .back:hover { color: #1a1917; }
.doc h1 { font-size: clamp(30px, 4.4vw, 40px); margin-bottom: 6px; }
.doc .updated {
  font-family: ui-monospace, Menlo, monospace; font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(26,25,23,.5); margin-bottom: 26px;
}
.doc h2 { font-size: 21px; margin: 32px 0 10px; }
.doc h3 { font-size: 17px; margin: 20px 0 6px; }
.doc p { margin-bottom: 12px; color: rgba(26,25,23,.82); }
.doc ul { margin: 0 0 14px 22px; color: rgba(26,25,23,.82); }
.doc li { margin-bottom: 7px; }
.doc a { color: #1a1917; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding-top: 30px; text-align: center; }
  .hero .lede { margin: 0 auto; }
  .hero .cta-row { justify-content: center; }
  .phone { max-width: 260px; }
}

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