/* disprendimai.lt: dark, airy, one accent. No build step. */

:root {
  --bg: #03040a;
  --bg-raise: #080a14;
  --card: rgba(11, 14, 27, 0.78);
  --card-hi: rgba(16, 20, 38, 0.86);
  --line: rgba(170, 186, 255, 0.12);
  --line-hi: rgba(170, 186, 255, 0.26);
  --text: #eef1ff;
  --muted: #a7afcb;
  --dim: #7a83a3;
  --accent: #8d9eff;
  --accent-hi: #b6c1ff;
  --accent-ink: #090c1d;
  --accent-tint: rgba(141, 158, 255, 0.12);
  --radius: 22px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: 16px;
  color-scheme: dark;
}

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

html { background: var(--bg); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.025em; }
p { margin: 0; }
a { color: inherit; }
svg { display: block; }

::selection { background: rgba(141, 158, 255, 0.35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 3px;
  border-radius: 10px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 50;
  padding: 10px 16px; border-radius: 12px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; text-decoration: none;
  transition: top .2s ease;
}
.skip:focus { top: 16px; }

/* ---------- sky canvas ---------- */

#sky {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  z-index: 0;
  pointer-events: none;
  background: var(--bg);
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font: inherit; font-size: 15.5px; font-weight: 600; line-height: 1;
  text-decoration: none; white-space: nowrap;
  border: 0; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset, 0 8px 30px rgba(110, 130, 255, 0.28);
}
.btn-primary:hover { background: var(--accent-hi); transform: translateY(-1px); }
.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line-hi);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover { border-color: rgba(190, 202, 255, 0.5); background: rgba(255, 255, 255, 0.07); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14.5px; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16.5px; }

/* ---------- nav ---------- */

.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px max(var(--gutter), env(safe-area-inset-left)) 0;
  max-width: 1240px; margin: 0 auto;
}
@media (min-width: 720px) { .nav { padding: 26px 32px 0; } }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 600; font-size: 18px; letter-spacing: -0.02em;
  color: var(--text);
}
.brand-mark { width: 30px; height: 30px; color: var(--accent-hi); border-radius: 9px; box-shadow: 0 0 0 1px var(--line-hi); }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links > a:not(.btn) {
  padding: 8px 12px; border-radius: 10px;
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500;
  transition: color .2s ease;
}
.nav-links > a:not(.btn):hover { color: var(--text); }
@media (max-width: 640px) { .nav-links > a:not(.btn) { display: none; } }

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

.hero {
  position: relative; z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 104px var(--gutter) 128px;
  text-align: center;
}

.hero-inner { width: 100%; max-width: 900px; }

.hero h1 {
  font-size: clamp(38px, 6.4vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 13ch;
  margin: 0 auto;
  text-wrap: balance;
  text-shadow: 0 0 30px rgba(3, 4, 10, 0.9), 0 0 2px rgba(3, 4, 10, 0.6);
}

.hero-sub {
  max-width: 34em;
  margin: 22px auto 0;
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.55;
  color: #c3c9e2;
  text-wrap: balance;
  text-shadow: 0 0 18px rgba(3, 4, 10, 0.95), 0 0 2px rgba(3, 4, 10, 0.8);
}

.ask-slot { margin: 44px auto 0; max-width: 720px; }

.ask {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  min-height: 132px;
  padding: 22px 14px 14px 26px;
  border-radius: 28px;
  background: #04050b;
  border: 1px solid rgba(196, 208, 255, 0.16);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 1px 0 rgba(255, 255, 255, 0.07) inset,
    0 0 26px rgba(141, 158, 255, 0.16);
  text-align: left;
}

.ask-line {
  min-height: 1.5em;
  font-size: 18px;
  line-height: 1.5;
  color: #e6eaff;
  padding-right: 8px;
}
.caret {
  display: none;
  width: 2px; height: 1.15em;
  margin-left: 2px;
  vertical-align: -0.18em;
  background: var(--accent-hi);
  border-radius: 1px;
  animation: caret 1.05s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
/* The caret shows only while hero.js runs the typewriter. */
.hero-on:not(.still) .caret { display: inline-block; }
.frozen .caret { animation: none; }

.ask-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ask-hint {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--dim); font-size: 14px; font-weight: 500;
}
.ask-hint svg { width: 17px; height: 17px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; }
@media (max-width: 380px) {
  .ask-hint { font-size: 13px; gap: 6px; }
  .ask-row .btn { padding: 0 16px; }
}

.more {
  position: absolute; left: 50%; bottom: 26px; z-index: 2;
  translate: -50% 0;
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 14px;
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500;
  transition: color .2s ease;
}
.more svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.more:hover { color: var(--text); }

/* Intro: hidden until hero.js reveals each part as a function of time. */
.js:not(.final) [data-reveal] { opacity: 0; }

@media (max-width: 640px) {
  .hero { padding: 92px var(--gutter) 112px; }
  .hero-sub { margin-top: 16px; }
  .ask-slot { margin-top: 34px; }
  .ask { min-height: 124px; padding: 18px 10px 10px 18px; border-radius: 24px; gap: 14px; }
  .ask-line { font-size: 16px; min-height: 3em; }
}

/* ---------- sections ---------- */

.below {
  position: relative; z-index: 1;
  background: linear-gradient(to bottom, rgba(3, 4, 10, 0) 0, rgba(3, 4, 10, 0.55) 260px, rgba(3, 4, 10, 0.66) 100%);
}

.section { padding: clamp(64px, 8.5vw, 116px) var(--gutter); }
.section-tight { padding-top: clamp(24px, 4vw, 48px); }
.wrap { max-width: 1120px; margin: 0 auto; }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
  color: var(--accent-hi); font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
}
.kicker::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-hi); box-shadow: 0 0 12px var(--accent);
}
.section h2 { font-size: clamp(30px, 4.3vw, 50px); line-height: 1.08; letter-spacing: -0.035em; text-wrap: balance; }
.lead { margin-top: 18px; color: var(--muted); font-size: clamp(16.5px, 1.4vw, 19px); line-height: 1.6; max-width: 40em; }

.addr { font-family: var(--mono); font-size: 0.86em; color: var(--accent-hi); overflow-wrap: anywhere; }

/* ---------- trust ---------- */

.trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 900px) { .trust-grid { grid-template-columns: minmax(0, 1fr); } }

.mail {
  margin: 0;
  padding: 0 0 22px;
  border-radius: var(--radius);
  background: var(--card-hi);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.mail-top { display: flex; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.mail-top i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.mail-head { margin: 0; padding: 10px 22px 4px; }
.mail-row { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px dashed rgba(170, 186, 255, 0.1); font-size: 15px; }
.mail-row dt { color: var(--dim); }
.mail-row dd { margin: 0; color: var(--text); position: relative; padding-right: 30px; }
.mail-row dd strong { font-weight: 600; }
.mail-body { display: grid; gap: 10px; padding: 22px 22px 6px; }
.mail-body i { display: block; height: 9px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); }
.mail-body i.short { width: 55%; }
.mail-foot { position: relative; margin: 18px 22px 0; padding: 14px 30px 0 0; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; line-height: 1.5; }
.mail-foot u { color: var(--muted); text-underline-offset: 2px; }
.pin {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  font-size: 12px; font-weight: 700; line-height: 1;
  box-shadow: 0 0 16px rgba(141, 158, 255, 0.55);
}
.mail-foot .pin { top: calc(50% + 7px); }
@media (max-width: 480px) {
  .mail-row { grid-template-columns: 1fr; gap: 2px; }
  .mail-head { padding: 6px 18px 4px; }
  .mail-body { padding: 18px 18px 4px; }
  .mail-foot { margin: 16px 18px 0; }
}

.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.facts li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 16px; }
.facts .num {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-hi);
  color: var(--accent-hi); font-weight: 600; font-size: 15px;
  background: var(--accent-tint);
}
.facts h3 { font-size: 19px; line-height: 1.35; margin: 4px 0 6px; }
.facts p { color: var(--muted); font-size: 16px; }

.operator {
  display: flex; gap: 14px; align-items: flex-start;
  margin-top: clamp(36px, 5vw, 56px);
  padding: 18px 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(11, 14, 27, 0.6);
  color: var(--muted); font-size: 15.5px;
}
.operator > svg { flex: none; width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.operator a:not(.btn), .footer a:not(.btn):not(.brand) { color: var(--accent-hi); text-underline-offset: 3px; }

/* ---------- feature cards ---------- */

.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

.card {
  position: relative;
  padding: 26px 26px 28px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  transition: border-color .25s ease, transform .25s ease, background-color .25s ease;
}
.card:hover { border-color: var(--line-hi); background: var(--card-hi); transform: translateY(-2px); }
.card h3 { margin: 18px 0 8px; font-size: 19px; line-height: 1.3; }
.card p { color: var(--muted); font-size: 15.5px; line-height: 1.6; }

.icon {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 13px;
  background: var(--accent-tint);
  box-shadow: 0 0 0 1px rgba(141, 158, 255, 0.2) inset;
}
.icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent-hi); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- principle strip ---------- */

.principle {
  position: relative;
  padding: clamp(30px, 5vw, 56px);
  border-radius: 28px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(141, 158, 255, 0.16), transparent 55%),
    rgba(10, 13, 26, 0.86);
  border: 1px solid var(--line-hi);
}
.principle h2 { font-size: clamp(28px, 3.6vw, 42px); max-width: 16ch; }
.principle-list {
  list-style: none; margin: clamp(28px, 4vw, 40px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px);
}
@media (max-width: 860px) { .principle-list { grid-template-columns: minmax(0, 1fr); } }
.principle-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.principle-list h3 { font-size: 17.5px; line-height: 1.35; margin: 2px 0 6px; }
.principle-list p { color: var(--muted); font-size: 15.5px; }

/* ---------- invitation ---------- */

.cta { text-align: center; }
.cta h2 { max-width: 18ch; margin: 0 auto; }
.cta .lead { margin-left: auto; margin-right: auto; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* ---------- contact: copy address, write via Gmail ---------- */

.cta .lead a { color: var(--accent-hi); text-underline-offset: 3px; }
.contact-email {
  margin: 30px auto 0;
  font-size: clamp(19px, 2.2vw, 24px); font-weight: 600; letter-spacing: -0.01em;
  color: var(--text);
  user-select: all;
  overflow-wrap: anywhere;
}
.cta .cta-row { margin-top: 18px; }
.btn-xs { min-height: 30px; padding: 0 12px; font-size: 13px; gap: 6px; }
.btn-xs svg { width: 14px; height: 14px; }

/* Copy buttons need JS; without it the address and the Gmail link remain. */
.copy-btn { display: none; }
.copy-ready .copy-btn { display: inline-grid; place-items: center; }
.copy-face {
  grid-area: 1 / 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: opacity .15s ease;
}
.btn-xs .copy-face { gap: 6px; }
.copy-done, .copy-fail { opacity: 0; }
.copy-btn.is-copied .copy-idle, .copy-btn.is-failed .copy-idle { opacity: 0; }
.copy-btn.is-copied .copy-done, .copy-btn.is-failed .copy-fail { opacity: 1; }
.copy-buffer { position: fixed; top: -1000px; left: 0; width: 1px; height: 1px; opacity: 0; }

.operator-text { display: block; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.footer-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }

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

.footer {
  position: relative; z-index: 1;
  padding: 36px var(--gutter) calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(3, 4, 10, 0.92);
}
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.footer-text { flex: 1 1 320px; color: var(--muted); font-size: 14.5px; line-height: 1.7; }

/* ---------- pause / play control ---------- */

.motion-toggle {
  position: fixed; z-index: 30;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center;
  height: 36px; min-width: 36px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line-hi);
  background: rgba(8, 10, 20, 0.78);
  color: var(--muted);
  font: 500 13px/1 var(--font);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.motion-toggle[hidden] { display: none; }
.motion-toggle:hover, .motion-toggle:focus-visible { color: var(--text); border-color: rgba(190, 202, 255, 0.5); background: rgba(14, 17, 32, 0.92); }
.motion-toggle:focus-visible { outline-offset: 2px; border-radius: 999px; }
.motion-toggle svg { flex: none; width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.motion-toggle .i-play { fill: currentColor; stroke-width: 1.4; }
.motion-toggle[data-state="playing"] .i-play,
.motion-toggle[data-state="paused"] .i-pause { display: none; }
/* The label stays in the accessibility tree; it slides open on hover and keyboard focus. */
.motion-label {
  max-width: 0; overflow: hidden; white-space: nowrap;
  transition: max-width .25s ease, margin .25s ease;
}
.motion-toggle:hover .motion-label,
.motion-toggle:focus-visible .motion-label { max-width: 220px; margin-left: 8px; }
@media (prefers-reduced-motion: reduce) { .motion-label { transition: none; } }
/* Phones: stay a round icon button so it never covers the centred "Kas tai?" link. */
@media (max-width: 640px) {
  .motion-toggle:hover .motion-label,
  .motion-toggle:focus-visible .motion-label { max-width: 0; margin-left: 0; }
}

/* ---------- debug readout (?fps=1) ---------- */

.fps {
  position: fixed; left: 10px; bottom: 10px; z-index: 99;
  padding: 6px 10px; border-radius: 8px;
  background: rgba(0, 0, 0, 0.7); color: #9fe6a0;
  font: 12px/1.3 var(--mono); pointer-events: none;
}
