/* Akar — akar.alkan.dev
   A landlord's ledger: warm paper, squared like a kareli defter, teal ink.
   Display: Instrument Serif (italic for the one word that matters).
   Body + numbers: Schibsted Grotesk with tabular figures.
   The hero ledger mirrors the app's Tahsilat grid, which is dark like the app. */

:root {
  color-scheme: light;

  --paper: #f4f1ea;
  --paper-2: #ebe6da;
  --card: #fffdf8;
  --ink: #14211e;
  --ink-2: #44524e;
  --ink-3: #75817d;
  --line: rgba(20, 33, 30, 0.12);
  --line-soft: rgba(20, 33, 30, 0.07);
  --grid: rgba(14, 124, 107, 0.075);

  --teal: #0e7c6b;          /* app accent, light mode */
  --teal-deep: #0a5d51;     /* icon check ink */
  --teal-bright: #17a68c;
  --mint: #3bae9b;          /* app accent, dark mode */
  --red: #b3564a;
  --grad: linear-gradient(140deg, var(--teal-bright) 0%, var(--teal-deep) 100%);

  /* the dark ledger card, same neutrals as the app */
  --l-bg: #14171b;
  --l-card: #1c2025;
  --l-raise: #22262c;
  --l-line: #2c3239;
  --l-ink: #e6e9ec;
  --l-mute: #9aa4ae;
  --l-paid: #30c35c;

  --f-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --f-body: "Schibsted Grotesk", "Helvetica Neue", Helvetica, sans-serif;
  /* the ledger, chip and receipt imitate the app, which uses the system font */
  --f-app: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 20px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  background-color: var(--paper);
  /* kareli defter: a 28px square grid, fading out toward the bottom of the hero */
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -1px -1px;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--teal); color: #fff; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--teal);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  z-index: 200;
}
.skip:focus { left: 12px; }

.num { font-variant-numeric: tabular-nums; }

/* ───────────── Header ───────────── */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 241, 234, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--grad);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px -6px rgba(10, 93, 81, 0.6);
  flex: none;
  overflow: hidden;
}
.brand-mark svg { width: 32px; height: 32px; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
  font-size: 15px;
  font-weight: 500;
}
.nav a { text-decoration: none; color: var(--ink-2); transition: color 0.2s; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--teal); }

@media (max-width: 640px) {
  .nav-optional { display: none; }
}

/* ───────────── Type ───────────── */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.display {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.02;
  margin: 0;
  overflow-wrap: break-word;
  hyphens: manual;
}
.display em {
  font-style: italic;
  color: var(--teal);
}

.lede {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--ink-2);
  max-width: 34em;
  margin: 0;
}

/* ───────────── Buttons ───────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px 11px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.15;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -14px rgba(20, 33, 30, 0.5); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-3); letter-spacing: 0.02em; }
.btn span { line-height: 1.15; }
.btn[aria-disabled="true"] { cursor: default; }
.btn[aria-disabled="true"]:hover { transform: none; box-shadow: none; }

.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.btn-primary small { color: rgba(244, 241, 234, 0.62); }

.store-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ───────────── Hero ───────────── */

.hero {
  position: relative;
  padding: clamp(48px, 8vw, 104px) 0 clamp(64px, 9vw, 120px);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(54px, 8.4vw, 112px);
  margin-bottom: 26px;
}
.hero h1 em { display: block; }

.hero .lede { margin-bottom: 34px; }

.hero-note {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--ink-3);
}

@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .ledger-wrap { max-width: 560px; width: 100%; justify-self: center; }
}

.rise {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.9s var(--ease) forwards;
}
.rise.d1 { animation-delay: 0.08s; }
.rise.d2 { animation-delay: 0.18s; }
.rise.d3 { animation-delay: 0.3s; }
.rise.d4 { animation-delay: 0.42s; }

@keyframes rise { to { opacity: 1; transform: none; } }

/* ───────────── The ledger (hero visual) ───────────── */

.ledger-wrap {
  position: relative;
  font-family: var(--f-app);
  margin: 0;
  padding: 0 0 46px 0;
}

.ledger {
  position: relative;
  background: var(--l-bg);
  color: var(--l-ink);
  border-radius: 28px;
  padding: 22px clamp(14px, 2.4vw, 24px) 20px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 40px 80px -36px rgba(20, 33, 30, 0.55),
    0 12px 24px -16px rgba(20, 33, 30, 0.4);
  transform: rotate(1.2deg);
}

.ledger-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}
.ledger-top b { font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.02em; }
.ledger-top span { font-size: 12px; color: var(--l-mute); }

.lg {
  display: grid;
  grid-template-columns: minmax(70px, 1.5fr) repeat(6, minmax(0, 1fr));
  gap: 6px clamp(4px, 0.8vw, 8px);
  align-items: center;
  background: var(--l-card);
  border-radius: 18px;
  padding: 12px clamp(8px, 1.4vw, 14px) 14px;
  font-variant-numeric: tabular-nums;
}

.lg .m {
  text-align: center;
  font-size: 12px;
  color: var(--l-mute);
}
.lg .m.now { color: var(--l-ink); font-weight: 700; }

.lg .who {
  grid-column: 2 / -1;
  font-size: 11.5px;
  color: var(--l-mute);
  background: var(--l-raise);
  border-radius: 6px;
  padding: 1px 8px;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lg .prop {
  font-size: clamp(12px, 1.3vw, 14px);
  line-height: 1.25;
  color: var(--l-ink);
}

.c {
  aspect-ratio: 1;
  border-radius: 9px;
  border: 1px solid var(--l-line);
  display: grid;
  place-items: center;
  position: relative;
}
.c::after {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--l-mute);
  opacity: 0.6;
}

/* a paid cell: green with a check, dropping in one after another */
.c.ok {
  border-color: transparent;
  background: var(--l-paid);
  opacity: 0;
  transform: scale(0.6);
  animation: tick 0.42s var(--ease) forwards;
  animation-delay: calc(0.5s + var(--i, 0) * 45ms);
}
.c.ok::after,
.c.later::after {
  width: 42%;
  height: 42%;
  border-radius: 0;
  opacity: 1;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>") center / contain no-repeat;
}

.c.late { border-color: rgba(211, 121, 110, 0.7); }
.c.late::after {
  content: "!";
  width: auto;
  height: auto;
  background: none;
  opacity: 1;
  color: #e5675a;
  font-size: 13px;
  font-weight: 700;
}

/* the one that gets paid while you watch: dekont read → matched → receipt */
.c.later {
  animation: settle 0.5s var(--ease) 3.1s forwards;
}
.c.later::after { opacity: 0; animation: show 0.3s 3.25s forwards; }

@keyframes tick { to { opacity: 1; transform: none; } }
@keyframes settle {
  0% { background: transparent; }
  50% { transform: scale(1.18); background: var(--l-paid); border-color: transparent; box-shadow: 0 0 0 6px rgba(48, 195, 92, 0.25); }
  100% { transform: none; background: var(--l-paid); border-color: transparent; box-shadow: none; }
}
@keyframes show { to { opacity: 1; } }

.lg .sum {
  font-size: 12px;
  color: var(--l-mute);
  text-align: center;
  padding-top: 8px;
  border-top: 1px solid var(--l-line);
  margin-top: 6px;
}
.lg .sum.lbl { text-align: left; }
.lg .sum.lbl b { color: var(--l-ink); }

/* floating notes on top of the ledger */
.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 14px 30px -14px rgba(20, 33, 30, 0.55);
  white-space: nowrap;
  opacity: 0;
  animation: pop 0.5s var(--ease) 2.5s forwards;
}
.chip .dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
}
.chip.dekont { top: -16px; right: clamp(8px, 4vw, 40px); }

@keyframes pop {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.receipt {
  position: absolute;
  left: clamp(-8px, -1vw, 0px);
  bottom: 0;
  width: min(260px, 70%);
  background: var(--card);
  color: var(--ink);
  border-radius: 6px 6px 14px 14px;
  padding: 14px 16px 16px;
  box-shadow: 0 24px 44px -20px rgba(20, 33, 30, 0.6), 0 0 0 1px var(--line-soft);
  transform: rotate(-4deg);
  opacity: 0;
  animation: slip 0.7s var(--ease) 3.55s forwards;
  font-variant-numeric: tabular-nums;
}
/* torn top edge */
.receipt::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -6px;
  height: 7px;
  background: radial-gradient(circle at 5px -1px, transparent 5px, var(--card) 5.5px) 0 0 / 10px 7px repeat-x;
}
.receipt .r-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 8px;
  margin-bottom: 8px;
}
.receipt .r-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); }
.receipt .r-amt { font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; margin-top: 4px; }
.receipt .stamp {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border: 2px solid var(--teal);
  color: var(--teal);
  border-radius: 8px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: rotate(-10deg);
  opacity: 0.88;
}

@keyframes slip {
  from { opacity: 0; transform: translateY(24px) rotate(2deg); }
  to { opacity: 1; transform: rotate(-4deg); }
}

@media (prefers-reduced-motion: reduce) {
  .rise, .c.ok, .c.later, .c.later::after, .chip, .receipt {
    animation-duration: 0.01s !important;
    animation-delay: 0s !important;
  }
}

/* ───────────── Sections ───────────── */

section { position: relative; }

.section {
  padding: clamp(72px, 10vw, 128px) 0;
  border-top: 1px solid var(--line-soft);
  background: var(--paper);
}
.section.alt { background: var(--paper-2); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px 48px;
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.section-head h2 { font-size: clamp(40px, 5.4vw, 68px); }
.section-head p { margin: 0; color: var(--ink-2); font-size: 18px; }

@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; }
}

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  counter-reset: step;
}
.step {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px 26px 30px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--f-display);
  font-size: 44px;
  line-height: 1;
  color: var(--teal);
  margin-bottom: 22px;
}
.step h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -0.015em; }
.step p { margin: 0; color: var(--ink-2); font-size: 16px; }

@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
}

/* features: a bento of ledger pages */
.features {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.feature {
  grid-column: span 2;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.feature:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -26px rgba(20, 33, 30, 0.45); }
.feature.wide { grid-column: span 3; }
.feature .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.feature h3 { margin: 0 0 8px; font-size: 21px; line-height: 1.25; letter-spacing: -0.015em; }
.feature p { margin: 0; color: var(--ink-2); font-size: 16px; }
.feature.ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.feature.ink p { color: rgba(244, 241, 234, 0.72); }
.feature.ink .tag { color: var(--mint); }

@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature, .feature.wide { grid-column: span 1; }
}
@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; }
}

/* screens: real app screenshots in a scrolling strip */
.screens {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(200px, 22vw, 250px);
  gap: clamp(16px, 2.4vw, 28px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px var(--gutter) 28px;
  margin: 0 calc(var(--gutter) * -1);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent);
}
.screens figure { margin: 0; scroll-snap-align: start; }
.phone {
  border-radius: 34px;
  padding: 7px;
  background: #0b0d0f;
  box-shadow: 0 30px 50px -30px rgba(20, 33, 30, 0.7), 0 0 0 1px rgba(20, 33, 30, 0.2);
}
.phone img {
  border-radius: 28px;
  width: 100%;
  height: auto;
  aspect-ratio: 1320 / 2868;
  background: #000;
}
.screens figcaption {
  margin-top: 14px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.4;
}
.screens figcaption b { display: block; color: var(--ink); font-size: 16px; }

/* what Akar won't do */
.nots {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.nots h2 { font-size: clamp(40px, 5.4vw, 68px); }
.menu { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.menu li {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.menu .x {
  grid-row: span 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--red);
  color: var(--red);
  display: grid;
  place-items: center;
  font-size: 17px;
  line-height: 1;
  margin-top: 1px;
}
.menu b { font-size: 18px; letter-spacing: -0.01em; }
.menu span { color: var(--ink-2); font-size: 16px; }

@media (max-width: 820px) {
  .nots { grid-template-columns: 1fr; }
}

/* pledge */
.pledge {
  background: var(--ink);
  color: var(--paper);
  border-radius: 28px;
  padding: clamp(36px, 6vw, 72px);
  position: relative;
  overflow: hidden;
}
.pledge::after {
  /* the icon's tiles, huge and faint, in the corner */
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 320px;
  height: 320px;
  background:
    linear-gradient(rgba(59, 174, 155, 0.16), rgba(59, 174, 155, 0.16)) 0 0 / 46% 46% no-repeat,
    linear-gradient(rgba(59, 174, 155, 0.16), rgba(59, 174, 155, 0.16)) 100% 0 / 46% 46% no-repeat,
    linear-gradient(rgba(59, 174, 155, 0.16), rgba(59, 174, 155, 0.16)) 0 100% / 46% 46% no-repeat,
    linear-gradient(rgba(59, 174, 155, 0.45), rgba(59, 174, 155, 0.45)) 100% 100% / 46% 46% no-repeat;
  transform: rotate(-8deg);
  border-radius: 24px;
}
.pledge .eyebrow { color: var(--mint); }
.pledge blockquote {
  margin: 0 0 22px;
  font-family: var(--f-display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  max-width: 15em;
  position: relative;
  z-index: 1;
}
.pledge blockquote em { font-style: italic; color: var(--mint); }
.pledge p { color: rgba(244, 241, 234, 0.72); max-width: 40em; margin: 0; position: relative; z-index: 1; }
.pledge p a { color: var(--mint); }

/* pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.plan {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  padding: clamp(26px, 3.4vw, 40px);
}
.plan.pro { border: 2px solid var(--teal); }
.plan h3 {
  margin: 0 0 6px;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.1;
}
.plan h3 em { color: var(--teal); }
.plan .sub { margin: 0 0 22px; color: var(--ink-2); }
.plan ul { list-style: none; margin: 0; padding: 0; }
.plan li {
  position: relative;
  padding: 9px 0 9px 32px;
  border-top: 1px solid var(--line-soft);
  font-size: 16px;
}
.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect width='24' height='24' rx='7' fill='%230e7c6b'/><path d='M7 12.5l3.2 3.2L17 8.8' stroke='white' stroke-width='2.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
}
.plan .fine { margin: 18px 0 0; font-size: 14px; color: var(--ink-3); }

@media (max-width: 760px) {
  .plans { grid-template-columns: 1fr; }
}

/* closing */
.closing {
  padding: clamp(80px, 11vw, 140px) 0;
  text-align: center;
  border-top: 1px solid var(--line-soft);
}
.closing h2 { font-size: clamp(48px, 7vw, 92px); margin-bottom: 20px; }
.closing .lede { margin: 0 auto 34px; }
.closing .store-row { justify-content: center; }

/* ───────────── Footer ───────────── */

.site-foot {
  border-top: 1px solid var(--line);
  padding: 30px 0 40px;
  font-size: 14px;
  color: var(--ink-3);
  background: var(--paper-2);
}
.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: space-between;
  align-items: center;
}
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-foot a { text-decoration: none; color: var(--ink-2); }
.site-foot a:hover { color: var(--teal); }
.site-foot .wrap + .wrap { margin-top: 18px; }

.langs { display: flex; flex-wrap: wrap; gap: 6px; }
.langs a {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
}
.langs a[aria-current="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ───────────── Documents (legal, support) ───────────── */

.doc-hero { padding: clamp(48px, 8vw, 96px) 0 clamp(28px, 4vw, 44px); }
.doc-hero h1 { font-size: clamp(46px, 7vw, 84px); margin-bottom: 14px; }
.doc-hero .meta { margin: 0; color: var(--ink-3); font-size: 15px; }

.translation-notice {
  font-size: 14px;
  color: var(--ink-2);
  margin-top: -8px;
  margin-bottom: 28px;
}
.translation-notice a { color: var(--teal); }

.doc {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  padding-bottom: clamp(72px, 10vw, 120px);
  align-items: start;
}
.toc { position: sticky; top: 88px; font-size: 14px; }
.toc p { margin: 0 0 10px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.toc a { text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--teal); }

@media (max-width: 860px) {
  .doc { grid-template-columns: 1fr; }
  .toc { position: static; }
}

.prose {
  max-width: 720px;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 48px);
}
.prose .summary {
  background: rgba(14, 124, 107, 0.07);
  border-radius: 16px;
  padding: 20px 22px 6px;
  margin-bottom: 30px;
}
.prose .summary h2 { margin-top: 0; font-size: 18px; font-family: var(--f-body); font-weight: 700; }
.prose h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.15;
  margin: 38px 0 12px;
  scroll-margin-top: 90px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17px; margin: 22px 0 6px; }
.prose p, .prose li { color: var(--ink-2); font-size: 16.5px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--teal); }
.prose a { color: var(--teal); }
.prose strong { color: var(--ink); }

.table-scroll { overflow-x: auto; margin: 16px 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); font-weight: 600; }
.prose td { color: var(--ink-2); }

.contact-card {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  justify-content: space-between;
  align-items: center;
  border-radius: 18px;
  padding: 22px 24px;
  background: rgba(14, 124, 107, 0.07);
  margin-bottom: 18px;
}
.contact-card b { font-family: var(--f-display); font-weight: 400; font-size: 28px; }
.contact-card p { margin: 2px 0 0; }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 36px 18px 0;
  font-weight: 600;
  font-size: 17px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 14px;
  font-size: 24px;
  font-weight: 400;
  color: var(--teal);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 14px; }
.faq details p { margin: 0 0 10px; }

/* 404 */
.lost {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  text-align: center;
}
.lost > div { min-width: 0; }
.lost h1 { font-size: clamp(48px, 8vw, 96px); margin-bottom: 18px; }
