/* PinePath site — shared styles
   Layout concept: a trail map. Topographic contours behind the hero, an elevation-profile
   ruler between sections, phones that sit on the "ground line" like checkpoints. */
:root {
  --bg: #f3f7f2;
  --surface: #ffffff;
  --surface-2: #e6efe8;
  --ink: #10211a;
  --ink-2: #4b5f55;
  --line: #d3e1d7;
  --pine: #0b3d2e;
  --forest: #1c6a51;
  --accent: #0f7a63;
  --moss: #8db580;
  --mint: #7fe0b0;
  --gold: #e3a62a;
  --hero-bg: #0b3d2e;
  --hero-ink: #f1f7f3;
  --hero-ink-2: rgba(241, 247, 243, .74);
  --contour: rgba(127, 224, 176, .16);

  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-data: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: clamp(.82rem, .79rem + .15vw, .9rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.1rem + .5vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3.2rem);
  --step-4: clamp(2.6rem, 1.9rem + 3.6vw, 4.9rem);

  --radius: 22px;
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #09150f; --surface: #10211a; --surface-2: #163027; --ink: #e8f1eb; --ink-2: #a3b8ad;
    --line: #22392f; --pine: #0b3d2e; --forest: #2fa384; --accent: #5fd3a7; --moss: #8db580;
    --hero-bg: #06231a; --contour: rgba(127, 224, 176, .12); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #09150f; --surface: #10211a; --surface-2: #163027; --ink: #e8f1eb; --ink-2: #a3b8ad;
  --line: #22392f; --pine: #0b3d2e; --forest: #2fa384; --accent: #5fd3a7; --moss: #8db580;
  --hero-bg: #06231a; --contour: rgba(127, 224, 176, .12); color-scheme: dark;
}

/* language switching: content carries class "tr" or "en" */
:root:not([data-lang="en"]) .en { display: none !important; }
:root[data-lang="en"] .tr { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
body {
  background: var(--bg); color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
img { display: block; }

.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--hero-bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--hero-bg); }
.topbar .wrap { display: flex; align-items: center; gap: 16px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--hero-ink); text-decoration: none; font: 800 1.2rem var(--font-display); letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.topnav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.topnav a { color: var(--hero-ink-2); text-decoration: none; font-weight: 600; font-size: var(--step--1); }
.topnav a:hover { color: var(--hero-ink); }
.lang {
  display: inline-flex; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: 3px;
}
.lang button {
  font: 700 .78rem var(--font-data); letter-spacing: .08em; border: 0; cursor: pointer;
  background: transparent; color: var(--hero-ink-2); padding: 6px 10px; border-radius: 999px;
}
.lang button[aria-pressed="true"] { background: var(--mint); color: #063d2c; }
@media (max-width: 720px) { .topnav a.nav-link { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--hero-ink);
  background:
    radial-gradient(900px 600px at 78% 30%, rgba(47, 163, 132, .35), transparent 60%),
    linear-gradient(180deg, var(--hero-bg), #072a20);
}
.hero canvas.contours { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 1; pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-block: 72px 0; }
.hero-copy { padding-bottom: 72px; min-width: 0; }
.eyebrow { font: 600 .78rem var(--font-data); letter-spacing: .14em; text-transform: uppercase; color: var(--mint); }
.hero h1 { font-size: var(--step-4); font-weight: 800; margin-top: 18px; }
.hero h1 em { font-style: normal; color: var(--mint); }
.hero .lede { margin-top: 22px; font-size: var(--step-1); color: var(--hero-ink-2); max-width: 34ch; line-height: 1.5; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; font: 700 1rem var(--font-body);
  padding: 14px 22px; border-radius: 14px; text-decoration: none; border: 0; cursor: pointer;
}
.btn-primary { background: var(--hero-ink); color: var(--pine); }
.btn-primary svg { width: 22px; height: 22px; }
.btn-ghost { color: var(--hero-ink); border: 1px solid rgba(255, 255, 255, .3); }
.btn small { display: block; font: 600 .7rem var(--font-data); letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 40px; }
.hero-stats div { font: 600 .74rem var(--font-data); color: var(--hero-ink-2); text-transform: uppercase; letter-spacing: .1em; }
.hero-stats strong { display: block; font: 800 1.7rem var(--font-display); color: var(--hero-ink); letter-spacing: -.01em; text-transform: none; }

.hero-visual { position: relative; align-self: end; display: flex; justify-content: center; min-width: 0; }
.ground { position: absolute; left: -40px; right: -40px; bottom: 0; height: 120px; }

/* ---------- phone ---------- */
.phone {
  position: relative; width: min(300px, 78vw); aspect-ratio: 9 / 19.4; border-radius: 46px; padding: 10px;
  background: linear-gradient(140deg, #3b4045, #121416 45%, #2c3035);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .35), inset 0 0 0 2px rgba(255, 255, 255, .14);
  flex: none;
}
.phone .screen { width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: #f6f9f7; position: relative; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone .island { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 88px; height: 26px; border-radius: 20px; background: #000; z-index: 2; }
.hero .phone { transform: rotate(-4deg) translateY(36px); margin-bottom: -10px; }
.float-chip {
  position: absolute; z-index: 3; background: var(--surface); color: var(--ink); border-radius: 18px; padding: 12px 14px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .28); font-size: .82rem; min-width: 0;
}
.float-chip .k { font: 600 .66rem var(--font-data); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.float-chip .v { font: 800 1.35rem var(--font-display); }
.chip-elev { left: -6px; top: 28%; width: 210px; }
.chip-elev svg { width: 100%; height: 46px; margin-top: 6px; }
.chip-tree { right: -4px; top: 58%; display: flex; gap: 10px; align-items: center; }
.chip-tree .tree { font-size: 1.6rem; line-height: 1; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 48px 0; }
  .hero-copy { padding-bottom: 8px; }
  .chip-elev { left: 0; }
  .chip-tree { right: 0; }
}

/* ---------- profile ruler (section divider) ---------- */
.ruler { padding-block: 34px 8px; }
.ruler svg { width: 100%; height: 64px; display: block; overflow: visible; }
.ruler .labels { display: flex; justify-content: space-between; font: 500 .72rem var(--font-data); color: var(--ink-2); letter-spacing: .06em; margin-top: 6px; }

/* ---------- sections ---------- */
section { padding-block: 72px; }
.section-head { max-width: 640px; }
.section-head h2 { font-size: var(--step-3); font-weight: 800; margin-top: 12px; }
.section-head p { margin-top: 14px; color: var(--ink-2); font-size: var(--step-1); line-height: 1.5; }
.kicker { font: 600 .76rem var(--font-data); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

.feature { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 6vw, 84px); align-items: center; padding-block: 44px; }
.feature.flip { grid-template-columns: 1fr 300px; }
.feature.flip .phone { order: 2; }
.feature .phone { width: 300px; max-width: 100%; }
.feature-copy { min-width: 0; }
.feature-copy h3 { font-size: var(--step-2); font-weight: 800; margin-top: 10px; }
.feature-copy p { margin-top: 14px; color: var(--ink-2); max-width: 48ch; }
.feature-copy ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.feature-copy li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.feature-copy li::before { content: ""; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; border: 3px solid var(--accent); }
.badge-premium { display: inline-block; font: 700 .68rem var(--font-data); letter-spacing: .12em; text-transform: uppercase; background: var(--gold); color: #3a2600; padding: 4px 9px; border-radius: 999px; vertical-align: middle; margin-left: 8px; }
@media (max-width: 760px) {
  .feature, .feature.flip { grid-template-columns: 1fr; justify-items: center; text-align: left; }
  .feature.flip .phone { order: 0; }
  .feature-copy { justify-self: stretch; }
}

.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 40px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.tile .shot { height: 260px; overflow: hidden; background: var(--surface-2); }
.tile .shot img { width: 100%; height: auto; transform: translateY(-6%); }
.tile .body { padding: 18px 20px 22px; }
.tile h3 { font-size: var(--step-1); font-weight: 700; }
.tile p { color: var(--ink-2); margin-top: 6px; font-size: .95rem; }

/* mascots */
.mascots { background: var(--surface-2); }
.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 36px; }
.mascot { background: var(--surface); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.mascot .face { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 2.2rem; }
.mascot h3 { font-size: var(--step-1); margin-top: 16px; }
.mascot .sp { font: 600 .72rem var(--font-data); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-top: 4px; }
.mascot p { margin-top: 10px; color: var(--ink-2); font-size: .95rem; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 40px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 6px; }
.plan.best { border: 2px solid var(--accent); position: relative; }
.plan.best::after { content: attr(data-flag); position: absolute; top: -12px; right: 20px; background: var(--gold); color: #3a2600; font: 700 .68rem var(--font-data); letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.plan .name { font: 700 .8rem var(--font-data); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.plan .price { font: 800 2.2rem var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.plan .per { color: var(--ink-2); font-size: .9rem; }
.plan .note { margin-top: 10px; color: var(--ink-2); font-size: .92rem; }
.compare { margin-top: 28px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: .95rem; }
.compare th, .compare td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.compare th { font: 700 .72rem var(--font-data); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.compare td:nth-child(n+2) { font-variant-numeric: tabular-nums; }
.compare tr:last-child td { border-bottom: 0; }
.fine { margin-top: 14px; font-size: .82rem; color: var(--ink-2); max-width: 80ch; }

/* privacy promise */
.promise { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 26px; margin-top: 36px; }
.promise div { border-top: 2px solid var(--accent); padding-top: 16px; }
.promise h3 { font-size: var(--step-1); }
.promise p { margin-top: 8px; color: var(--ink-2); font-size: .95rem; }

/* faq */
.faq { margin-top: 32px; display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 700 1.2rem var(--font-data); color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--ink-2); }

/* footer */
footer { background: var(--hero-bg); color: var(--hero-ink-2); padding-block: 44px; font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 40px; justify-content: space-between; align-items: flex-start; }
footer a { color: var(--hero-ink); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer .copy { font: 500 .78rem var(--font-data); letter-spacing: .04em; }
.mail { font-family: var(--font-data); font-size: .9em; user-select: all; }

/* ---------- legal pages ---------- */
.legal-hero { background: var(--hero-bg); color: var(--hero-ink); padding-block: 56px 44px; }
.legal-hero h1 { font-size: var(--step-3); font-weight: 800; margin-top: 12px; }
.legal-hero .meta { margin-top: 14px; font: 500 .8rem var(--font-data); color: var(--hero-ink-2); letter-spacing: .04em; }
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding-block: 48px 80px; }
.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 80px); align-self: start; font-size: .9rem; }
.toc ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--accent); }
.doc { max-width: 70ch; min-width: 0; }
.doc h2 { font-size: var(--step-2); margin-top: 44px; scroll-margin-top: 90px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: var(--step-1); margin-top: 24px; }
.doc p, .doc li { color: var(--ink); }
.doc p { margin-top: 12px; }
.doc ul { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.doc .callout { margin-top: 18px; background: var(--surface-2); border-radius: 16px; padding: 16px 18px; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: .92rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { font: 700 .7rem var(--font-data); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.table-scroll { overflow-x: auto; }
.table-scroll table { min-width: 560px; }
@media (max-width: 860px) {
  .legal { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
html { scroll-behavior: smooth; }

/* free band (replaces pricing) */
.free-band { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); }
.free-band h2 { font-size: var(--step-3); font-weight: 800; letter-spacing: -.02em; margin-top: 8px; }
.free-band p { margin-top: 14px; color: var(--ink-2); max-width: 56ch; }
.free-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.free-list li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: center; font-weight: 600; }
.free-list li::before { content: "✓"; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); font-weight: 800; }
@media (max-width: 760px) { .free-band { grid-template-columns: 1fr; } }

/* grade mock card */
.mock { width: 300px; max-width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 12px; box-shadow: 0 24px 60px -30px rgba(11, 61, 46, .45); }
.mock-head { font: 700 .95rem var(--font-display); }
.mock .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font: 700 .88rem var(--font-data); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mock .stats small { display: block; font: 500 .68rem var(--font-body); color: var(--ink-2); margin-top: 2px; }
.mock svg { width: 100%; height: auto; display: block; }
.mock .split { display: flex; gap: 2px; height: 10px; border-radius: 999px; overflow: hidden; }
.mock .split i { display: block; height: 100%; }
.mock .legend { display: flex; justify-content: space-between; gap: 6px; font: 600 .68rem var(--font-data); color: var(--ink-2); }
.mock .alert { display: flex; gap: 10px; align-items: flex-start; background: var(--pine); color: var(--hero-ink); border-radius: 14px; padding: 10px 12px; font-size: .82rem; line-height: 1.4; }
.feature.flip .mock { order: 2; }
@media (max-width: 760px) { .feature.flip .mock { order: 0; } }

/* what's new */
.news { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 36px; }
.news article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.news .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.45rem; background: var(--surface-2); }
.news h3 { font-size: var(--step-1); font-weight: 700; margin-top: 14px; }
.news p { color: var(--ink-2); margin-top: 6px; font-size: .95rem; }
