/* Padeleja web — brand system from the app repo's BRAND.md.
   forest #1B3F24 · lime #E1EF6D · mint #E7F4D3 (the only brand hues).
   Lime is never text on a light ground; it is a fill, or the highlight
   on forest. Forest hero surfaces are the same in light and dark. */

:root {
  --forest: #1b3f24;
  --forest-raised: #24502f;
  --lime: #e1ef6d;
  --mint: #e7f4d3;
  --brick: #b4463f;

  --bg: #f6f9f1;
  --card: #ffffff;
  --text: #14271a;
  --muted: #56665a;
  --ink: var(--forest);
  --line: #dfe7d6;
  --wash: rgb(231 244 211 / .6);
  --shadow: 0 2px 8px rgb(0 0 0 / .06);
  --shadow-hero: 0 4px 16px rgb(0 0 0 / .10);

  --btn-bg: var(--forest);
  --btn-text: var(--mint);

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --wrap: 1120px;
  --r-chip: 10px;
  --r-control: 12px;
  --r-card: 16px;
  --r-hero: 20px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c120e;
    --card: #152119;
    --text: #e7f4d3;
    --muted: #a9bea2;
    --ink: var(--mint);
    --line: #26402d;
    --wash: rgb(27 63 36 / .45);
    --shadow: none;
    --shadow-hero: none;
    --btn-bg: var(--lime);
    --btn-text: var(--forest);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--card); padding: 8px 12px; z-index: 10; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand-link { display: flex; align-items: center; }
.brand-link img { height: 26px; width: auto; }
.header-nav { display: flex; align-items: center; gap: 6px; }
.header-nav > a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 10px; border-radius: var(--r-control); color: var(--text); }
.header-nav > a:hover, .header-nav > a[aria-current="page"] { background: var(--wash); }

.lang-switch { position: relative; }
.lang-switch summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; font: 700 14px/1 var(--rounded);
  padding: 9px 12px; border-radius: 999px; background: var(--wash); color: var(--ink); user-select: none; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary svg { width: 16px; height: 16px; }
.lang-switch ul { position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; min-width: 180px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: 0 12px 32px rgb(0 0 0 / .14); }
.lang-switch li a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: var(--r-control);
  text-decoration: none; color: var(--text); font-weight: 600; font-size: 15px; }
.lang-switch li a:hover { background: var(--wash); }
.lang-switch li a[aria-current="true"]::after { content: "✓"; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 24px;
  border-radius: 14px; font: 700 17px/1 var(--sans); text-decoration: none; border: 0; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-text); transition: transform .12s ease, opacity .12s ease; }
.btn:active { transform: scale(.98); opacity: .88; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn small { display: block; font-size: 12px; font-weight: 600; opacity: .75; margin-bottom: 3px; }
.btn .stack { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.on-forest .btn, .btn.lime { background: var(--lime); color: var(--forest); }
.btn[aria-disabled="true"] { cursor: default; }

/* ---------- Hero (forest, mode-stable) ---------- */
.on-forest { background: var(--forest); color: var(--mint); }
.on-forest a:not(.btn) { color: var(--mint); }
.hero { position: relative; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; background: var(--lime); pointer-events: none; }
.hero::before { width: 520px; height: 520px; right: -160px; top: -220px; opacity: .14; }
.hero::after { width: 380px; height: 380px; left: -200px; bottom: -220px; opacity: .10; }
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 40px; padding-top: 48px; padding-bottom: 56px; }
.hero .logo { height: 40px; width: auto; margin-bottom: 28px; }
.eyebrow { display: inline-block; font: 800 12px/1 var(--rounded); letter-spacing: .08em; text-transform: uppercase;
  color: var(--forest); background: var(--lime); padding: 7px 11px; border-radius: 999px; margin-bottom: 16px; }
.hero h1 { font-size: clamp(36px, 8vw, 60px); font-weight: 800; color: #fff; max-width: 13em; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero .lead { font-size: clamp(17px, 2.2vw, 20px); color: rgb(231 244 211 / .82); margin: 18px 0 28px; max-width: 34em; }
.trust { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.trust li { display: flex; align-items: center; gap: 6px; font: 700 13px/1 var(--rounded); padding: 9px 12px; border-radius: 999px;
  background: var(--forest-raised); color: var(--mint); border: 1px solid rgb(231 244 211 / .14); }
.trust li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.hero-phones { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 300px; }
.hero-phones .phone:first-child { --w: min(46vw, 250px); transform: rotate(-4deg) translateX(10%); z-index: 1; }
.hero-phones .phone:last-child { --w: min(46vw, 250px); transform: rotate(3deg) translate(-8%, -6%); z-index: 2; }

/* ---------- Device frames ---------- */
.phone { --w: 260px; width: var(--w); padding: calc(var(--w) * .028); border-radius: calc(var(--w) * .155);
  background: #0a120c; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .10), 0 28px 60px -24px rgb(0 0 0 / .55); flex: none; }
.phone img { width: 100%; height: auto; aspect-ratio: 1206 / 2622; border-radius: calc(var(--w) * .13); background: #0a120c; }
.watch { --w: 220px; width: var(--w); padding: calc(var(--w) * .07); border-radius: calc(var(--w) * .26); background: #050806;
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / .10), 0 24px 50px -22px rgb(0 0 0 / .6); flex: none; }
.watch img { width: 100%; height: auto; aspect-ratio: 416 / 496; border-radius: calc(var(--w) * .17); }
.landscape { width: 100%; max-width: 640px; padding: 10px; border-radius: 34px; background: #0a120c;
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .10), 0 28px 60px -24px rgb(0 0 0 / .5); }
.landscape img { width: 100%; height: auto; aspect-ratio: 1778 / 1000; border-radius: 25px; }
.share-card { width: 200px; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-hero), 0 0 0 1px var(--line); flex: none; }
.share-card img { width: 100%; height: auto; aspect-ratio: 720 / 1280; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 5vw, 44px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 19px; margin-top: 14px; }
.kicker { font: 800 13px/1 var(--rounded); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; display: block; }

.feature { display: grid; gap: 32px; align-items: center; padding: 40px 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; }
.feature h3 { font-size: clamp(26px, 4vw, 34px); font-weight: 800; margin-bottom: 14px; }
.feature .body { color: var(--muted); font-size: 18px; }
.feature .body strong { color: var(--text); }
.points { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.points li { display: flex; gap: 12px; align-items: flex-start; }
.points li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231B3F24' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.feature-media { display: flex; justify-content: center; align-items: center; gap: 18px; padding: 28px 16px; border-radius: var(--r-hero);
  background: var(--wash); position: relative; overflow: hidden; }
.feature-media .phone { --w: min(58vw, 250px); }
.feature-media.pair .phone { --w: min(40vw, 220px); }
.feature-media.pair .phone:last-child { margin-top: 48px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding: 0; list-style: none; }
.chips li { font: 700 14px/1 var(--rounded); padding: 9px 12px; border-radius: var(--r-chip); background: var(--card); color: var(--text);
  border: 1px solid var(--line); }
.chips li.gold { background: var(--forest); color: var(--lime); border-color: var(--forest); }

.privacy-band { display: grid; gap: 16px; }
.privacy-band .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; box-shadow: var(--shadow); }
.privacy-band h3 { font-size: 19px; margin-bottom: 6px; }
.privacy-band p { color: var(--muted); }

.cta-band { border-radius: 28px; padding: 48px 28px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: var(--lime); opacity: .12; right: -90px; top: -120px; }
.cta-band h2 { font-size: clamp(28px, 5vw, 42px); color: #fff; font-weight: 800; position: relative; }
.cta-band p { color: rgb(231 244 211 / .8); margin: 12px auto 26px; max-width: 32em; position: relative; }
.cta-band .icon { width: 72px; height: 72px; border-radius: 17px; margin: 0 auto 20px; position: relative; }

/* ---------- Document pages (privacy / terms / support) ---------- */
.doc { padding: 40px 0 72px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(32px, 6vw, 46px); font-weight: 800; }
.doc .updated { color: var(--muted); font-size: 15px; margin: 10px 0 28px; }
.doc .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px 22px; margin-bottom: 14px; box-shadow: var(--shadow); }
.doc .card.lead { border-left: 4px solid var(--ink); }
.doc h2 { font-size: 20px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.01em; }
.doc ul { margin: 0 0 12px; padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc li:last-child { margin-bottom: 0; }
.doc .card p + ul, .doc .card ul + p { margin-top: 8px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 4px; }
.doc th, .doc td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font: 800 12px/1.3 var(--rounded); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.doc .table-scroll { overflow-x: auto; }
.doc .toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.doc .toc a { display: inline-block; font: 700 14px/1 var(--rounded); padding: 9px 12px; border-radius: 999px; background: var(--wash); color: var(--ink); text-decoration: none; }
mark.todo { background: #ffd8a8; color: #5a2d00; padding: 1px 6px; border-radius: 6px; font-weight: 700; }

.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); margin-bottom: 10px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 700; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font: 800 18px/1 var(--rounded); background: var(--wash); color: var(--ink); }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 20px 20px; color: var(--muted); }
.faq .answer strong { color: var(--text); }
.faq .answer ol, .faq .answer ul { padding-left: 22px; margin: 0 0 10px; }
.faq .answer li { margin-bottom: 6px; }
.faq h2 { font-size: 22px; margin: 32px 0 14px; }
.contact-card { border-radius: var(--r-hero); padding: 28px 24px; margin-top: 32px; }
.contact-card h2 { color: #fff; font-size: 24px; margin-bottom: 8px; }
.contact-card p { color: rgb(231 244 211 / .82); margin-bottom: 18px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: grid; gap: 20px; }
.site-footer img { height: 24px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--text); text-decoration: none; font-weight: 600; }
.footer-links a:hover { text-decoration: underline; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.footer-langs a { color: var(--muted); }
.footer-langs a[aria-current="true"] { color: var(--text); font-weight: 700; text-decoration: none; }

/* Logo swap: forest wordmark on light, mint wordmark on dark. */
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .logo-light { display: none; }
  .logo-dark { display: block; }
}

/* ---------- Larger screens ---------- */
@media (min-width: 760px) {
  .hero .wrap { grid-template-columns: 1.1fr 1fr; align-items: center; padding-top: 72px; padding-bottom: 80px; }
  .hero-phones { min-height: 560px; }
  .feature { grid-template-columns: 1fr 1fr; gap: 56px; padding: 56px 0; }
  .feature:nth-of-type(even) .feature-media { order: -1; }
  .privacy-band { grid-template-columns: repeat(3, 1fr); }
  .site-footer .wrap { grid-template-columns: auto 1fr; align-items: start; }
  .site-footer .footer-meta { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .header-nav > a { padding: 8px 6px; }
  .feature-media.pair .phone { --w: 40vw; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
