/* Deelary — deelary.com
   Tamsus, ramus, su firmine mėlyna. Tipografija ir tarpai derinti prie
   programėlės dizaino sistemos, todėl svetainė ir programa atrodo kaip
   vienas produktas. */

:root {
    --blue: #0A5BFF;
    --blue-deep: #0134BC;
    --green: #5BE49B;
    --ink: #05070E;
    --ink-soft: #0A0E1A;
    --surface: rgba(255, 255, 255, 0.045);
    --stroke: rgba(255, 255, 255, 0.10);
    --text: #F5F7FB;
    --muted: rgba(245, 247, 251, 0.62);
    --faint: rgba(245, 247, 251, 0.40);
    --radius: 24px;
    --max: 1180px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    background: var(--ink);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Tipografija ─────────────────────────────────────────── */

h1, h2, h3 {
    letter-spacing: -0.035em;
    line-height: 1.02;
    font-weight: 800;
}

h1 { font-size: clamp(44px, 7.4vw, 92px); }
h2 { font-size: clamp(34px, 4.8vw, 60px); }
h3 { font-size: clamp(20px, 2.2vw, 25px); letter-spacing: -0.02em; line-height: 1.2; }

.lead {
    font-size: clamp(18px, 2.1vw, 22px);
    color: var(--muted);
    max-width: 620px;
    line-height: 1.5;
}

.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 20px;
}

.mark-green {
    background-image: linear-gradient(var(--green), var(--green));
    background-repeat: no-repeat;
    background-position: 0 92%;
    background-size: 100% 7%;
    padding-bottom: 2px;
}

/* ── Navigacija ──────────────────────────────────────────── */

header.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
    border-bottom: 1px solid transparent;
}

header.nav.stuck {
    background: rgba(5, 7, 14, 0.72);
    backdrop-filter: saturate(180%) blur(22px);
    -webkit-backdrop-filter: saturate(180%) blur(22px);
    border-bottom-color: var(--stroke);
}

header.nav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-weight: 700;
    font-size: 19px;
    letter-spacing: -0.02em;
}

.brand img { width: 30px; height: 30px; border-radius: 8px; }

nav.links { display: flex; align-items: center; gap: 30px; }

nav.links a {
    font-size: 15px;
    color: var(--muted);
    transition: color 0.2s;
}

nav.links a:hover { color: var(--text); }

.nav-cta {
    background: var(--blue);
    color: #fff !important;
    padding: 9px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    transition: transform 0.2s var(--ease), box-shadow 0.3s;
}

.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(10, 91, 255, 0.4); }

@media (max-width: 820px) {
    nav.links a:not(.nav-cta) { display: none; }
}

/* ── Titulinė ────────────────────────────────────────────── */

.hero {
    position: relative;
    padding: 170px 0 0;
}

.hero::before {
    content: "";
    position: absolute;
    top: -340px;
    left: 50%;
    width: 1200px;
    height: 900px;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(10, 91, 255, 0.55), transparent 72%);
    filter: blur(20px);
    pointer-events: none;
    animation: breathe 9s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { opacity: 0.85; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

.hero .wrap { position: relative; text-align: center; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 16px 7px 10px;
    border: 1px solid var(--stroke);
    border-radius: 999px;
    background: var(--surface);
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 30px;
}

.chip .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(91, 228, 155, 0.18);
}

.hero .lead { margin: 26px auto 0; }

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 38px;
}

.note-small { font-size: 14px; color: var(--faint); margin-top: 18px; }

/* App Store ženklelis */

.appstore {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    background: #fff;
    color: #000;
    border-radius: 13px;
    padding: 10px 20px 10px 16px;
    transition: transform 0.2s var(--ease), box-shadow 0.3s;
}

.appstore:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(255, 255, 255, 0.16); }
.appstore svg { width: 26px; height: 26px; }
.appstore .stack { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.appstore .small { font-size: 11px; letter-spacing: 0.02em; }
.appstore .big { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }

.ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--stroke);
    background: var(--surface);
    color: var(--text);
    border-radius: 13px;
    padding: 15px 22px;
    font-weight: 600;
    font-size: 16px;
    transition: border-color 0.2s, transform 0.2s var(--ease);
}

.ghost:hover { border-color: rgba(255, 255, 255, 0.3); transform: translateY(-2px); }

/* Titulinės įrenginys */

.hero-device {
    margin: 76px auto 0;
    width: min(306px, 62vw);
    perspective: 1400px;
}

.device {
    position: relative;
    border-radius: 13% / 6.2%;
    /* Natūralaus titano korpusas: šviesus kraštas atskiria telefoną nuo
       tamsaus fono, kitaip juoda ant juodos susilieja. */
    background: linear-gradient(150deg, #F2F3F6 0%, #AEB4C0 28%, #6F7684 58%, #C9CED8 82%, #8A909C 100%);
    padding: 9px;
    box-shadow:
        0 60px 110px -34px rgba(0, 0, 0, 0.95),
        0 0 0 1px rgba(255, 255, 255, 0.22),
        0 0 70px -10px rgba(10, 91, 255, 0.35);
    transform-style: preserve-3d;
    transition: transform 0.5s var(--ease);
}

/* Švelnus šviesos ratas už įrenginio. */
.device::before {
    content: "";
    position: absolute;
    inset: -14% -22%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(120, 160, 255, 0.28), transparent 72%);
    filter: blur(28px);
    pointer-events: none;
}

.device img {
    border-radius: 11% / 5.4%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55);
}

/* ── Skaičių juosta ──────────────────────────────────────── */

.strip {
    margin-top: 120px;
    border-top: 1px solid var(--stroke);
    border-bottom: 1px solid var(--stroke);
    background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
}

.strip .wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding-top: 42px;
    padding-bottom: 42px;
    text-align: center;
}

.stat .n {
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.stat .t { font-size: 14px; color: var(--faint); margin-top: 4px; }

@media (max-width: 720px) {
    .strip .wrap { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
}

/* ── Sekcijos ────────────────────────────────────────────── */

section { padding: 130px 0; }

/* Ten, kur stovi įrenginiai, fonas pakeliamas nuo juodos iki grafito —
   antraip metalinis rėmelis neturi į ką atsiremti. */
#features {
    background: linear-gradient(180deg, transparent, #0B0F1B 12%, #0B0F1B 88%, transparent);
}

.section-head { max-width: 760px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 19px; margin-top: 18px; }

/* Pakaitinės funkcijų eilutės */

.feature {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 80px;
    align-items: center;
    margin-bottom: 150px;
}

.feature:nth-child(even) { grid-template-columns: 330px 1fr; }
.feature:nth-child(even) .feature-text { order: 2; }
.feature:nth-child(even) .feature-shot { order: 1; }

.feature h3 { margin-bottom: 16px; }
.feature p { color: var(--muted); font-size: 18px; }

.feature ul { list-style: none; margin-top: 24px; display: grid; gap: 11px; }

.feature li {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    color: var(--muted);
    font-size: 16px;
}

.feature li::before {
    content: "";
    flex: none;
    width: 18px; height: 18px;
    margin-top: 4px;
    border-radius: 50%;
    background: rgba(91, 228, 155, 0.16);
    box-shadow: inset 0 0 0 1.5px rgba(91, 228, 155, 0.55);
}

.feature-shot .device { padding: 8px; }
.feature-shot { max-width: 300px; justify-self: center; }

@media (max-width: 900px) {
    .feature,
    .feature:nth-child(even) { grid-template-columns: 1fr; gap: 44px; margin-bottom: 96px; }
    .feature:nth-child(even) .feature-text,
    .feature:nth-child(even) .feature-shot { order: initial; }
    .feature-shot { max-width: 320px; }
}

/* ── Galerija ────────────────────────────────────────────── */

.gallery {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 6px 24px 30px;
    margin: 0 -24px;
    scrollbar-width: none;
}

.gallery::-webkit-scrollbar { display: none; }

.gallery img {
    flex: none;
    width: 270px;
    border-radius: 22px;
    scroll-snap-align: center;
    border: 1px solid var(--stroke);
    transition: transform 0.4s var(--ease);
}

.gallery img:hover { transform: translateY(-8px); }

/* ── iPad ────────────────────────────────────────────────── */

.ipad-band {
    background:
        radial-gradient(1000px 520px at 50% 0%, rgba(10, 91, 255, 0.28), transparent 70%),
        var(--ink-soft);
    border-top: 1px solid var(--stroke);
    border-bottom: 1px solid var(--stroke);
    text-align: center;
}

.ipad-frame {
    max-width: 880px;
    margin: 56px auto 0;
    border-radius: 30px;
    padding: 12px;
    background: linear-gradient(160deg, #23262E, #0B0C10 60%);
    box-shadow: 0 60px 110px -40px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255,255,255,0.06);
}

.ipad-frame img { border-radius: 20px; }

/* ── Kainos ──────────────────────────────────────────────── */

.plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    max-width: 840px;
    margin: 0 auto;
}

.plan {
    border: 1px solid var(--stroke);
    background: var(--surface);
    border-radius: var(--radius);
    padding: 34px;
}

.plan.pro {
    border-color: rgba(10, 91, 255, 0.55);
    background: linear-gradient(170deg, rgba(10, 91, 255, 0.16), rgba(255, 255, 255, 0.03));
    box-shadow: 0 30px 80px -40px rgba(10, 91, 255, 0.9);
}

.plan .tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--green);
    border-radius: 999px;
    padding: 4px 11px;
    margin-bottom: 14px;
}

.plan .price {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin: 10px 0 4px;
}

.plan .price span { font-size: 17px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .per { color: var(--faint); font-size: 15px; }

.plan ul { list-style: none; margin-top: 24px; display: grid; gap: 10px; }
.plan li { color: var(--muted); font-size: 16px; display: flex; gap: 10px; }
.plan li::before { content: "✓"; color: var(--green); font-weight: 700; }

@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* Mokėjimo periodo perjungiklis */

.billing {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    margin: 0 auto 26px;
    border: 1px solid var(--stroke);
    background: var(--surface);
    border-radius: 999px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.billing-option {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.3s var(--ease), color 0.3s;
}

.billing-option em {
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--green);
    margin-left: 7px;
}

.billing-option.is-on {
    background: #fff;
    color: var(--ink);
}

.billing-option.is-on em { color: var(--blue-deep); }

/* ── DUK ─────────────────────────────────────────────────── */

.faq { max-width: 820px; margin: 0 auto; }

details {
    border-bottom: 1px solid var(--stroke);
    padding: 22px 0;
}

summary {
    cursor: pointer;
    list-style: none;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.015em;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

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

summary::after {
    content: "+";
    color: var(--faint);
    font-weight: 400;
    font-size: 26px;
    line-height: 1;
    transition: transform 0.3s var(--ease);
}

details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin-top: 14px; max-width: 700px; }

/* ── Tinklelio kortelės (blogas) ─────────────────────────── */

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

.card {
    border: 1px solid var(--stroke);
    background: var(--surface);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform 0.35s var(--ease), border-color 0.3s, background 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.07);
}

.card .kicker { font-size: 13px; color: var(--green); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.card h3 { margin: 12px 0 10px; }
.card p { color: var(--muted); font-size: 16px; }
.card .meta { color: var(--faint); font-size: 14px; margin-top: 18px; }

/* ── Baigiamasis kvietimas ───────────────────────────────── */

.cta {
    text-align: center;
    background:
        radial-gradient(760px 420px at 50% 100%, rgba(10, 91, 255, 0.38), transparent 70%),
        var(--ink-soft);
    border-top: 1px solid var(--stroke);
}

/* ── Poraštė ─────────────────────────────────────────────── */

footer {
    border-top: 1px solid var(--stroke);
    padding: 64px 0 56px;
    font-size: 15px;
    color: var(--faint);
}

footer .cols {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 48px;
}

footer h4 {
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 16px;
    font-weight: 600;
}

footer a { display: block; color: var(--muted); padding: 5px 0; transition: color 0.2s; }
footer a:hover { color: var(--text); }
footer .legal { border-top: 1px solid var(--stroke); padding-top: 26px; line-height: 1.7; }

@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr 1fr; } }

/* ── Teisiniai ir straipsnių puslapiai ───────────────────── */

.doc { max-width: 780px; margin: 0 auto; padding: 150px 0 110px; }
.doc h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 12px; }
.doc .updated { color: var(--faint); font-size: 15px; margin-bottom: 44px; }
.doc h2 { font-size: 26px; margin: 46px 0 14px; letter-spacing: -0.02em; }
.doc h3 { font-size: 20px; margin: 30px 0 10px; }
.doc p, .doc li { color: var(--muted); margin-bottom: 14px; }
.doc ul, .doc ol { padding-left: 22px; margin-bottom: 18px; }
.doc a { color: #6FA0FF; }
.doc a:hover { text-decoration: underline; }
.doc strong { color: var(--text); font-weight: 600; }

.doc table { width: 100%; border-collapse: collapse; margin: 18px 0 26px; font-size: 15.5px; }
.doc th, .doc td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--stroke); vertical-align: top; color: var(--muted); }
.doc th { color: var(--text); font-weight: 600; }

.doc blockquote {
    border-left: 3px solid var(--green);
    padding: 4px 0 4px 20px;
    margin: 26px 0;
    color: var(--text);
    font-size: 19px;
}

/* ── Judesys ─────────────────────────────────────────────── */

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* Mobile fix: stop sideways scroll (hero glow) and centre the billing toggle */
html { overflow-x: hidden; }
.hero { overflow-x: clip; }
.billing { display: flex; width: fit-content; left: auto; transform: none; }
