/* =========================================================
   sim-boat.com — shared styles
   Used by index.html and sim-boat.html
   ========================================================= */

/* ----- design tokens ----- */
:root {
  --water: #b6cfe0;
  --dock: #8a8474;
  --dock-edge: #6f6a5d;
  --target: #d4734a;
  --hull-stern: #4a8c5a;
  --ink: #16222d;
  --ink-2: #2a3a48;
  --muted: #5a6a78;
  --line: #d8dde2;
  --line-soft: #e7ebef;
  --bg-soft: #f4f6f8;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ----- links: never blue, never underlined by default ----- */
a {
  color: inherit;
  text-decoration: none;
}
a:hover { color: var(--target); }

.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }

/* ----- topbar ----- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 17px;
}
.brand:hover { color: var(--ink); }
.brand svg { width: 26px; height: 26px; display: block; }
.brand .dash { color: var(--target); margin: 0 1px; }
.beta {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--target);
  border: 1px solid var(--target);
  border-radius: 999px;
  padding: 2px 7px;
  margin-left: 2px;
  font-weight: 500;
  line-height: 1;
  align-self: center;
}

.lang {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 8px;
}
.lang a.on { color: var(--ink); font-weight: 600; }

.top-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.top-right .divider {
  width: 1px; height: 16px; background: var(--line);
}

.login-link {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
  padding: 6px 0;
  cursor: not-allowed;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.7;
}
.login-link .soon-mini {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 5px;
  line-height: 1;
}

/* ----- buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
  border: 1px solid var(--ink);
  transition: transform 120ms ease, background 120ms ease;
  cursor: pointer;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; color: #fff; transform: translateY(-1px); }
.btn-google {
  background: var(--bg-soft);
  color: var(--muted);
  border-color: var(--line);
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.7;
}
.btn-google svg { width: 18px; height: 18px; display: block; filter: grayscale(1) opacity(0.55); }
/* Aktyvuotas (kai backend sukonfigūruotas ir vartotojas prisijungęs) */
.btn-google.is-active {
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  pointer-events: auto;
  opacity: 1;
}
.btn-google.is-active:hover { transform: translateY(-1px); background: var(--bg-soft); }
.login-link.is-active {
  cursor: pointer;
  pointer-events: auto;
  color: var(--ink);
}
/* Trumpas Google mygtuko pažymėjimas paspaudus "Log in" */
@keyframes signin-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(66, 133, 244, 0); }
  50% { box-shadow: 0 0 0 8px rgba(66, 133, 244, 0.30); }
}
#google-signin.pulse { animation: signin-pulse 0.9s ease 2; border-radius: 10px; }

/* "Do it better" rekordo kvietimas po preview paveiksliuku */
.hero-right { min-width: 0; }
.challenge {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--ink-2);
  text-align: center;
}
.challenge .time { font-family: "JetBrains Mono", monospace; font-weight: 600; }
.challenge a { color: var(--target); font-weight: 600; text-decoration: none; }
.challenge a:hover { text-decoration: underline; }
.btn-google .soon {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 6px;
  margin-left: 4px;
  line-height: 1;
  background: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border: 1px solid var(--line);
  padding: 13px 18px;
}
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-2); }
.btn .arrow { transition: transform 120ms ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ----- text-link helper (use this for plain inline links if you want them visible) ----- */
.link {
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}
.link:hover { color: var(--target); border-bottom-color: var(--target); }

/* ----- footer ----- */
footer {
  border-top: 1px solid var(--line-soft);
  padding: 18px 32px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 10px;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }
footer .links { display: flex; gap: 18px; }

/* =========================================================
   index.html — landing-specific
   ========================================================= */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 32px 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--target); display: inline-block;
}

h1 {
  font-size: clamp(36px, 4.6vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 18px;
}
h1 .accent { color: var(--target); }

p.lede {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 46ch;
  margin: 0 0 28px;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.cta-note {
  font-size: 12.5px;
  color: var(--muted);
  margin: -12px 0 24px;
  line-height: 1.5;
}

.meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
.meta .item { display: flex; align-items: center; gap: 6px; }
.meta .check { color: var(--hull-stern); }

.preview {
  aspect-ratio: 4 / 3;
  background: var(--water);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 20px 50px -25px rgba(22, 34, 45, 0.25),
    0 4px 12px -6px rgba(22, 34, 45, 0.08);
}
.preview img { width: 100%; height: 100%; display: block; object-fit: cover; }
.preview .stamp {
  position: absolute;
  bottom: 12px; left: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(4px);
  padding: 4px 8px;
  border-radius: 4px;
}

/* ----- responsive ----- */
@media (max-width: 820px) {
  main.hero { grid-template-columns: 1fr; gap: 40px; padding-top: 16px; }
  .hero-right { order: -1; }
  .preview { aspect-ratio: 16 / 10; }
}
@media (max-width: 520px) {
  .topbar { padding: 18px 20px; }
  main.hero { padding: 16px 20px 48px; }
  footer { padding: 18px 20px; }
}

/* ----- turinio sekcijos (features / kaip veikia / DUK) ----- */
.section {
  max-width: 1100px; width: 100%;
  margin: 0 auto; padding: 26px 32px;
}
.section h2 {
  font-size: 26px; letter-spacing: -0.02em;
  margin: 0 0 18px; color: var(--ink);
}
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.feature-card {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 18px 16px; background: #fff;
}
.feature-card .f-icon { font-size: 20px; display: block; margin-bottom: 10px; }
.feature-card h3 { margin: 0 0 6px; font-size: 15.5px; letter-spacing: -0.01em; }
.feature-card p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }

.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.step { border-left: 2px solid var(--target); padding: 2px 0 2px 16px; }
.step .n {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; color: var(--target); font-weight: 600; letter-spacing: 0.08em;
}
.step h3 { margin: 4px 0 6px; font-size: 15.5px; }
.step p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }

.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 15px;
  padding: 12px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--target); font-weight: 600; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 14px; font-size: 14px; color: var(--ink-2); line-height: 1.6; }

@media (max-width: 760px) {
  .section { padding: 22px 20px; }
  .section h2 { font-size: 22px; }
}

/* =========================================================
   contact.html - jūrinė VHF racija ant vandens (telpa į vieną ekraną)
   Stilius kaip simuliatoriuje: tamsus vanduo, tamsaus stiklo prietaisai,
   mėtinis akcentas (#7ff0c8), šešėliai į pietryčius.
   ========================================================= */
body.radio-page {
  min-height: 100svh;
  background: #0f3446 url("contact-bg.jpg?v=2") center / cover no-repeat;
  color: #e6eef2;
}
/* Vinjetė - kaip simuliatoriaus vaizde */
body.radio-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0, 12, 20, 0) 35%, rgba(0, 12, 20, 0.55) 100%);
}
.radio-page .topbar { position: relative; z-index: 1; }
.radio-page .brand, .radio-page .brand:hover { color: #fff; }
.radio-page .brand .dash { color: #e8875e; }
.radio-page .beta { color: #e8875e; border-color: #e8875e; }

.top-link { font-size: 13.5px; font-weight: 500; color: #cfe0e8; }
.top-link:hover { color: #fff; }

.radio-wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 24px 32px;
}
.radio-title { text-align: center; }
.radio-title h1 { font-size: clamp(26px, 3.2vw, 36px); color: #fff; margin: 0 0 6px; }
.radio-title p { margin: 0; font-size: 15px; color: #b9cfd9; }
.radio-notes { text-align: center; }
.radio-note { margin: 0; font-size: 12.5px; color: #9db4bf; }
.radio-note + .radio-note { margin-top: 3px; font-size: 11.5px; }
.radio-note a { color: #cfe0e8; text-decoration: underline; text-underline-offset: 2px; }
.radio-note a:hover { color: #fff; }
/* reCAPTCHA ženkliukas paslėptas - vietoj jo tekstas po racija */
.grecaptcha-badge { visibility: hidden; }

/* ----- racijos korpusas ----- */
.vhf {
  position: relative;
  width: min(900px, 100%);
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 150px;
  gap: 22px;
  padding: 20px 26px 24px;
  border-radius: 20px;
  background: linear-gradient(180deg, #2b353b 0%, #1c2429 55%, #151c20 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -3px 0 rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.5),
    22px 32px 60px -18px rgba(0, 8, 14, 0.75);
}
/* Laikiklio varžtai šonuose */
.vhf::before, .vhf::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #6b767d, #2a3237 60%, #161c1f);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}
.vhf::before { left: -13px; }
.vhf::after { right: -13px; }

.vhf-grille {
  border-radius: 12px;
  background:
    radial-gradient(circle, #0a0f12 1.7px, transparent 2.1px) 0 0 / 9px 9px,
    linear-gradient(180deg, #232c31, #1a2125);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

.vhf-mid { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.vhf-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #8fa3ad;
}
.vhf-label .tx { display: inline-flex; align-items: center; gap: 6px; }
.tx-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4a2020;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.6);
}
.vhf.sending .tx-led {
  background: #ff4b3a;
  box-shadow: 0 0 8px #ff4b3a;
  animation: tx-blink 0.5s steps(2) infinite;
}
@keyframes tx-blink { 50% { opacity: 0.35; } }

/* ----- LCD ekranas ----- */
.lcd {
  border-radius: 10px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #c6eedb 0%, #a8e0c6 100%);
  color: #0e2a24;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.25),
    inset 0 3px 10px rgba(0, 40, 30, 0.35),
    0 0 0 5px #0f1518,
    0 0 0 6px rgba(255, 255, 255, 0.06);
  animation: lcd-on 0.8s ease-out both;
}
@keyframes lcd-on {
  from { filter: brightness(0.3) saturate(0.3); }
  to { filter: none; }
}
.lcd-status {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 8px;
  margin-bottom: 6px;
  border-bottom: 1px dashed rgba(14, 42, 36, 0.35);
}
.lcd-ch { font-size: 38px; font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
.lcd-ch small { font-size: 12px; margin-right: 5px; letter-spacing: 0.05em; }
.lcd-topic { font-size: 15px; font-weight: 500; }
.lcd-pw { margin-left: auto; font-size: 12px; opacity: 0.65; }

.lcd-row { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.lcd-row span { opacity: 0.7; }
.lcd input, .lcd textarea {
  font: inherit;
  font-size: 14.5px;
  color: #0e2a24;
  background: transparent;
  border: 0;
  border-bottom: 1px dotted rgba(14, 42, 36, 0.5);
  border-radius: 0;
  padding: 7px 2px;
  width: 100%;
  min-width: 0;
}
.lcd textarea {
  display: block;
  margin-top: 10px;
  height: clamp(80px, 20vh, 170px);
  resize: none;
  border: 1px dotted rgba(14, 42, 36, 0.5);
  border-radius: 4px;
  padding: 8px 10px;
  line-height: 1.45;
}
.lcd input::placeholder, .lcd textarea::placeholder { color: rgba(14, 42, 36, 0.45); }
.lcd input:focus, .lcd textarea:focus { outline: none; background: rgba(255, 255, 255, 0.35); }
.lcd-msg { margin: 8px 0 0; font-size: 12.5px; }
.lcd-msg:empty { display: none; }
.lcd-msg.bad { color: #8a1c12; }

/* Toks pat aukštis kaip formos - racija išsiuntus nešokinėja */
.lcd-sent { padding: 18px 0 14px; min-height: calc(clamp(80px, 20vh, 170px) + 48px); }
.lcd-sent p { margin: 0 0 6px; font-size: 13.5px; }
.lcd-sent .lcd-big { font-size: 24px; font-weight: 500; margin-bottom: 8px; }

/* ----- kanalų mygtukai (tema) ----- */
.channels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.channels label { position: relative; cursor: pointer; }
.channels input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; }
.channels span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 7px 4px 6px;
  border-radius: 9px;
  font-size: 12px;
  color: #c9d6dc;
  background: linear-gradient(180deg, #232b30, #161c20);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 0 #0a0e10, 0 3px 6px rgba(0, 0, 0, 0.4);
  transition: transform 80ms ease, box-shadow 80ms ease, color 80ms ease;
}
.channels b { font-family: "JetBrains Mono", monospace; font-size: 16px; font-weight: 500; color: #fff; }
.channels label:hover span { color: #fff; }
.channels input:checked + span {
  color: #7ff0c8;
  transform: translateY(1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -2px 0 #7ff0c8, 0 1px 0 #0a0e10;
}
.channels input:checked + span b { color: #7ff0c8; }
.channels input:focus-visible + span { outline: 2px solid #9fd8ff; outline-offset: 2px; }

/* ----- rankenėlės ir siuntimo mygtukas ----- */
.vhf-right {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 14px;
  padding-top: 26px;
}
.knobs { display: flex; justify-content: space-around; }
.knob {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #8fa3ad;
}
.knob i {
  position: relative;
  display: block;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: repeating-conic-gradient(#3b464c 0 5deg, #262e33 5deg 10deg);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(0, 0, 0, 0.5);
}
.knob i::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #56626a, #232a2f 70%);
}
.knob i::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 11px;
  width: 2px;
  height: 10px;
  margin-left: -1px;
  border-radius: 1px;
  background: #dfe8ec;
  transform-origin: 1px 16px;
  transform: rotate(var(--r, 0deg));
}

.send-key {
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  padding: 16px 10px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  background: linear-gradient(180deg, #e0835b, #c4623a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 3px 0 #7d3a1f, 0 6px 12px rgba(0, 0, 0, 0.45);
  transition: transform 80ms ease, box-shadow 80ms ease;
}
.send-key:hover { filter: brightness(1.06); }
.send-key:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 1px 0 #7d3a1f, 0 2px 6px rgba(0, 0, 0, 0.4); }
.send-key:focus-visible { outline: 2px solid #9fd8ff; outline-offset: 3px; }
.send-key[disabled] { cursor: progress; filter: saturate(0.6); }

/* Spąstai botams - paslėpta nuo žmonių */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ----- telefonas: racija vertikaliai, be grotelių ir rankenėlių ----- */
@media (max-width: 720px) {
  .radio-page .topbar { padding: 16px 18px; }
  .radio-wrap { gap: 14px; padding: 0 12px 20px; }
  .radio-title h1 { font-size: 26px; margin-bottom: 4px; }
  .radio-title p { font-size: 14px; }
  .vhf { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 14px 14px 16px; border-radius: 16px; }
  .vhf::before, .vhf::after, .vhf-grille, .knobs { display: none; }
  .vhf-right { padding-top: 0; }
  .channels { gap: 6px; }
  .lcd { padding: 10px 12px; }
  .lcd-ch { font-size: 30px; }
  .lcd textarea { height: clamp(80px, 18svh, 150px); }
  .lcd-sent { min-height: calc(clamp(80px, 18svh, 150px) + 48px); }
}
@media (prefers-reduced-motion: reduce) {
  .lcd, .vhf.sending .tx-led { animation: none; }
  .channels span, .send-key { transition: none; }
}
