/* Chekiraut svetainė – bendras stilius visiems puslapiams.
   Spalvos tos pačios kaip programėlėje (lib/theme.dart, logotipas):
   fonas #040405, tekstas #FFFFFF, pilka #A6A3A0, auksinė #F1C467, akcentas #0A84FF.
   Numatyta – tamsi tema; jei telefone ar kompiuteryje įjungta šviesi – šviesi. */

/* Antraščių šriftas Oswald (SIL OFL, fonts/OFL-Oswald.txt), laikomas svetainėje – be užklausų į Google. */
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/oswald-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/oswald-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-display: "Oswald", "Arial Narrow", "Helvetica Neue", sans-serif;
  --bg: #040405;
  --surface: #1C1C1E;
  --surface-2: #2C2C2E;
  --border: #38383A;
  --text: #FFFFFF;
  --text-secondary: #A6A3A0;
  --gold: #F1C467;
  --gold-text: #F1C467; /* auksinis tekstas ir rėmeliai ant fono */
  --on-gold: #040405;
  --accent: #0A84FF;

  --radius: 16px;
  --radius-small: 10px;
  --gutter: 20px;
  --max-width: 1080px;

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

  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #F2F2F7;
    --surface: #FFFFFF;
    --surface-2: #E5E5EA;
    --border: #D1D1D6;
    --text: #040405;
    --text-secondary: #6E6C69;
    --accent: #007AFF;
    --gold-text: #8A6100; /* šviesiame fone auksinis tekstas tamsesnis – kad būtų įskaitomas */
    color-scheme: light;
  }
}

/* Pagrindinis puslapis visada tamsus (kinematografinis dizainas). */
:root.always-dark {
  --bg: #040405;
  --surface: #1C1C1E;
  --surface-2: #2C2C2E;
  --border: #38383A;
  --text: #FFFFFF;
  --text-secondary: #A6A3A0;
  --gold-text: #F1C467;
  --accent: #0A84FF;
  color-scheme: dark;
}

/* --- Pagrindas --- */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

.muted {
  color: var(--text-secondary);
}

/* Matoma tik ekrano skaitytuvams (VoiceOver). */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- Išdėstymas --- */

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

.section {
  padding: 64px 0;
}

/* --- Viršus (antraštė) --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 22px;
  height: 30px;
  color: var(--text);
}

.site-nav {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--text-secondary);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
}

/* --- Mygtukai --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius-small);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
}

.btn:hover {
  text-decoration: none;
  filter: brightness(1.06);
}

/* Auksinis – kaip „Skenuoti“ programėlėje. */
.btn-gold {
  background: var(--gold);
  color: var(--on-gold);
}

.btn-outline {
  border-color: var(--border);
  color: var(--text);
}

/* --- Kortelės --- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

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

/* --- Pradinis blokas (hero) --- */

.hero {
  padding: 88px 0 64px;
  text-align: center;
}

.hero-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 28px;
  border-radius: 22px;
  box-shadow: 0 0 0 1px var(--border);
}

.hero .tagline {
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--gold-text);
  border-radius: 999px;
  color: var(--gold-text);
  font-size: 0.85rem;
  font-weight: 600;
}

/* --- Tekstiniai puslapiai (privatumas, sąlygos, pagalba) --- */

.prose {
  max-width: 720px;
}

.prose h2 {
  font-size: 1.35rem;
  margin-top: 2em;
}

/* --- Tekstiniai puslapiai (privatumas, sąlygos, pagalba) --- */

.doc .section {
  padding-top: 56px;
}

.doc-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.doc-title {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 8vw, 4rem);
  line-height: 1;
  letter-spacing: -0.005em;
}

.draft-note {
  padding: 12px 16px;
  border: 1px solid var(--gold-text);
  border-radius: var(--radius-small);
  color: var(--gold-text);
  font-size: 0.9rem;
}

.faq {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 32px 18px 0;
  position: relative;
  font-weight: 600;
  font-size: 1.08rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--gold-text);
  transition: transform 0.25s ease;
}

.faq[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq p {
  color: var(--text-secondary);
}

.faq p:last-child {
  padding-bottom: 8px;
}

/* --- Apačia --- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer a {
  color: var(--text-secondary);
}

.site-footer a:hover {
  color: var(--text);
}

/* --- Telefonas --- */

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .section {
    padding: 48px 0;
  }

  .hero {
    padding: 56px 0 40px;
  }

  .site-nav {
    gap: 14px;
  }
}
