/*
 * Tvarka ID public landing page styles (Voice visual standard).
 * CSP-safe external stylesheet supporting light and dark themes on tvarka.pro and tvarka.eu.
 */

.tid-root, .tid-root * { box-sizing: border-box; }
.tid-root {
    --tid-brand: #1B4D4B;
    --tid-brand-accent: #62C4A5;
    --tid-brand-deep: #153D3B;
    --tid-surface: var(--tv-surface, #ffffff);
    --tid-raised: var(--tv-raised, #f8faf9);
    --tid-line: var(--tv-line, #d9e3e0);
    --tid-line-strong: var(--tv-line-strong, #b6cbc5);
    --tid-text: var(--tv-text, #0f181d);
    --tid-text-2: var(--tv-text-2, #25363d);
    --tid-muted: var(--tv-muted, #5a6b6f);
    --tid-amber: var(--tv-primary, #f0ad4e);
    --tid-amber-hover: var(--tv-primary-hover, #e49b34);
    --tid-amber-ink: var(--tv-primary-ink, #211500);
    --tid-calm: var(--tv-calm, #e6f4f0);
    --tid-calm-ink: var(--tv-calm-ink, #144442);
    color: var(--tid-text);
    font-size: 1rem;
    line-height: 1.55;
}

html[data-sign-theme="dark"] .tid-root,
:root[data-color-scheme="dark"] .tid-root,
html.dark .tid-root {
    --tid-brand: #62C4A5;
    --tid-brand-accent: #62C4A5;
    --tid-brand-deep: #143338;
    --tid-surface: #111b20;
    --tid-raised: #17262c;
    --tid-line: #263841;
    --tid-line-strong: #2f6f72;
    --tid-text: #edf6f3;
    --tid-text-2: #dbe8e5;
    --tid-muted: #a9bbb7;
    --tid-amber: #f0ad4e;
    --tid-amber-hover: #f5c882;
    --tid-amber-ink: #211500;
    --tid-calm: #143338;
    --tid-calm-ink: #8fe1d6;
}

.tid-shell { margin: 0 auto; max-width: 1180px; padding: 28px 20px 60px; }

.tid-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.tid-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--tid-brand);
    text-decoration: none;
}
.tid-lang-pills {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.tid-lang-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid var(--tid-line);
    color: var(--tid-muted);
    background: var(--tid-surface);
    text-decoration: none;
}
.tid-lang-pill:hover { border-color: var(--tid-brand); color: var(--tid-brand); }
.tid-lang-pill.is-active {
    background: var(--tid-calm);
    border-color: var(--tid-brand);
    color: var(--tid-calm-ink);
}

.tid-btn-amber {
    background: var(--tid-amber) !important;
    color: var(--tid-amber-ink) !important;
    border-color: transparent !important;
    font-weight: 700;
}
.tid-btn-amber:hover {
    background: var(--tid-amber-hover) !important;
    color: var(--tid-amber-ink) !important;
}
.tid-btn-teal {
    background: #1B4D4B !important;
    color: #ffffff !important;
    border-color: #1B4D4B !important;
}
.tid-btn-teal:hover { background: #153D3B !important; color: #ffffff !important; }
.tid-btn-outline {
    background: var(--tid-surface);
    color: var(--tid-text);
    border: 1px solid var(--tid-line-strong);
}
.tid-btn-outline:hover { background: var(--tid-raised); border-color: var(--tid-brand); }
.tid-btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; align-items: center; }

.tid-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    gap: 36px;
    align-items: center;
    padding: 8px 0 36px;
}
@media (max-width: 900px) {
    .tid-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: 24px; }
}
.tid-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--tid-calm);
    color: var(--tid-calm-ink);
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 14px;
}
.tid-hero h1 {
    font-size: clamp(1.85rem, 3.2vw, 2.7rem);
    line-height: 1.16;
    letter-spacing: -0.02em;
    font-weight: 800;
    margin: 0 0 14px;
    color: var(--tid-text);
}
.tid-hero-lead {
    font-size: 1.08rem;
    line-height: 1.58;
    color: var(--tid-text-2);
    margin: 0 0 12px;
    max-width: 58ch;
}
.tid-hero-sub {
    font-size: 0.96rem;
    line-height: 1.55;
    color: var(--tid-muted);
    margin: 0 0 20px;
    max-width: 58ch;
}
.tid-trust-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}
.tid-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    background: var(--tid-raised);
    border: 1px solid var(--tid-line);
    color: var(--tid-text-2);
}
.tid-hero-media {
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    background: var(--tid-raised);
    border: 1px solid var(--tid-line);
    box-shadow: 0 14px 36px rgba(15, 24, 29, 0.08);
}
.tid-hero-media img { display: block; width: 100%; height: auto; }
.tid-hero-media figcaption {
    padding: 10px 16px;
    font-size: 0.86rem;
    color: var(--tid-muted);
    background: var(--tid-surface);
    border-top: 1px solid var(--tid-line);
}

.tid-spotlight {
    background: #1B4D4B;
    color: #f4faf8;
    border-radius: 18px;
    padding: 28px 30px;
    margin: 12px 0 40px;
}
.tid-spotlight h2 {
    margin: 0 0 8px;
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
}
.tid-spotlight-lead {
    margin: 0 0 20px;
    color: #d5ece7;
    font-size: 0.98rem;
    max-width: 74ch;
}
.tid-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}
.tid-stat-card {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    padding: 14px 16px;
}
.tid-stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #62C4A5;
    line-height: 1.15;
    margin-bottom: 4px;
}
.tid-stat-label { font-size: 0.9rem; color: #eef8f5; margin: 0; font-weight: 600; }
.tid-stat-sub { font-size: 0.8rem; color: #bddbd4; margin: 4px 0 0; }
.tid-spotlight-foot {
    margin: 18px 0 0;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.9rem;
    color: #d5ece7;
}

.tid-section { margin: 44px 0; }
.tid-section-head { margin-bottom: 18px; }
.tid-section-head h2 {
    margin: 0 0 6px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--tid-text);
}
.tid-section-head p { margin: 0; color: var(--tid-muted); max-width: 70ch; }

.tid-steps-visual {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--tid-line);
    background: var(--tid-surface);
}
.tid-steps-visual img { display: block; width: 100%; height: auto; }
.tid-steps-captions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 18px 20px;
    border-top: 1px solid var(--tid-line);
    background: var(--tid-raised);
}
@media (max-width: 760px) {
    .tid-steps-captions { grid-template-columns: minmax(0, 1fr); }
}
.tid-step-item { display: flex; gap: 12px; align-items: flex-start; }
.tid-step-num {
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #1B4D4B;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.88rem;
}
.tid-step-item h3 { margin: 0 0 4px; font-size: 1rem; font-weight: 700; color: var(--tid-text); }
.tid-step-item p { margin: 0; font-size: 0.9rem; color: var(--tid-muted); }

.tid-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
    gap: 16px;
}
.tid-card {
    background: var(--tid-surface);
    border: 1px solid var(--tid-line);
    border-radius: 14px;
    padding: 20px;
}
.tid-card h3 { margin: 0 0 8px; font-size: 1.06rem; font-weight: 700; color: var(--tid-text); }
.tid-card p { margin: 0; font-size: 0.93rem; color: var(--tid-muted); }
.tid-card-tag {
    display: inline-block;
    margin-bottom: 10px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: var(--tid-calm);
    color: var(--tid-calm-ink);
}

.tid-shopify-band {
    background: var(--tid-raised);
    border: 1px solid var(--tid-line-strong);
    border-radius: 18px;
    padding: 26px 28px;
}
.tid-shopify-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}
@media (max-width: 820px) {
    .tid-shopify-grid { grid-template-columns: minmax(0, 1fr); }
}
.tid-shopify-card {
    background: var(--tid-surface);
    border: 1px solid var(--tid-line);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.tid-shopify-card h3 { margin: 0; font-size: 1.08rem; font-weight: 700; color: var(--tid-text); }
.tid-shopify-card p { margin: 0; font-size: 0.92rem; color: var(--tid-muted); }
.tid-shopify-list {
    margin: 4px 0 8px;
    padding-left: 18px;
    font-size: 0.9rem;
    color: var(--tid-text-2);
    display: grid;
    gap: 5px;
}

.tid-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--tid-line);
    border-radius: 14px;
    background: var(--tid-surface);
}
.tid-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.93rem;
}
.tid-compare-table th, .tid-compare-table td {
    padding: 13px 16px;
    text-align: left;
    border-bottom: 1px solid var(--tid-line);
}
.tid-compare-table th {
    background: var(--tid-raised);
    font-weight: 700;
    color: var(--tid-text);
}
.tid-compare-table tbody tr:last-child td { border-bottom: none; }
.tid-compare-win { color: var(--tid-brand); font-weight: 700; }

.tid-bottom-split {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 24px;
    align-items: start;
}
@media (max-width: 860px) {
    .tid-bottom-split { grid-template-columns: minmax(0, 1fr); }
}
.tid-price-card {
    background: var(--tid-surface);
    border: 1.5px solid var(--tid-line-strong);
    border-radius: 16px;
    padding: 24px;
}
.tid-price-big {
    font-size: 2rem;
    font-weight: 800;
    color: var(--tid-brand);
    line-height: 1.15;
    margin: 8px 0 4px;
}
.tid-price-sub { font-size: 0.92rem; color: var(--tid-muted); margin: 0 0 12px; }
.tid-price-list {
    list-style: none;
    padding: 0;
    margin: 14px 0 20px;
    display: grid;
    gap: 8px;
}
.tid-price-list li {
    padding-left: 22px;
    position: relative;
    font-size: 0.94rem;
    color: var(--tid-text-2);
}
.tid-price-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--tid-brand);
    font-weight: 800;
}
.tid-faq-list { display: grid; gap: 10px; }
.tid-faq-item {
    background: var(--tid-surface);
    border: 1px solid var(--tid-line);
    border-radius: 12px;
    padding: 14px 16px;
}
.tid-faq-item summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--tid-text);
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.tid-faq-item summary::-webkit-details-marker { display: none; }
.tid-faq-item summary::after {
    content: "+";
    color: var(--tid-brand);
    font-weight: 800;
    flex: none;
}
.tid-faq-item[open] summary::after { content: "\2212"; }
.tid-faq-item p { margin: 10px 0 0; font-size: 0.93rem; color: var(--tid-muted); }
