/* =========================================================================
   VISITUX - public site
   "Nordic Editorial / Deep Forest" - warm light surfaces, deep forest accent
   ========================================================================= */

:root {
    --bg: #faf8f3;
    --bg-alt: #f1eee6;
    --surface: #ffffff;
    --surface-2: #f7f4ee;
    --ink: #17211d;
    --ink-dim: #64716a;
    --line: #e3ded2;
    --forest: #1f5e52;
    --forest-dark: #17483f;
    --forest-soft: #e5efe9;
    --copper: #b8794a;
    --green: #2f7d5b;
    --orange: #b7791f;
    --radius: 14px;

    /* legacy aliases kept for existing inline markup */
    --bg-dark: var(--bg);
    --card-bg: var(--surface);
    --card-bg-2: var(--surface-2);
    --accent: var(--forest);
    --accent-soft: var(--forest-soft);
    --text-main: var(--ink);
    --text-dim: var(--ink-dim);
    --glass: var(--line);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

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

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 780px; }

.accent { color: var(--forest); }

.muted { color: var(--ink-dim); }

/* ---------- Navigation ---------- */
nav {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    background: rgba(250, 248, 243, 0.86);
    backdrop-filter: blur(12px);
    z-index: 50;
}
nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.logo-mark {
    width: 32px;
    height: 32px;
    margin-right: 9px;
    border-radius: 9px;
    background: var(--forest);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.95rem;
}
.logo .logo-mark { color: #ffffff; }
.logo span { color: var(--forest); }
.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 0.88rem;
    font-weight: 500;
}
.nav-links a { color: var(--ink-dim); transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.btn-primary { color: #ffffff; }
.nav-links a.btn-primary:hover { color: #ffffff; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.92rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn-primary {
    background: var(--forest);
    color: #ffffff;
}
.btn-primary:hover {
    background: var(--forest-dark);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(23, 72, 63, 0.22);
}
.btn-secondary {
    background: transparent;
    border-color: var(--line);
    color: var(--ink);
}
.btn-secondary:hover { border-color: var(--forest); color: var(--forest); }
.btn-sm { padding: 8px 15px; font-size: 0.82rem; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 88px 0 68px;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -300px;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 640px;
    background: radial-gradient(ellipse at center, rgba(31, 94, 82, 0.10), transparent 66%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    top: 140px;
    right: -160px;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle at center, rgba(184, 121, 74, 0.10), transparent 64%);
    pointer-events: none;
}
.hero .container {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(31, 94, 82, 0.22);
    background: var(--forest-soft);
    color: var(--forest);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 22px;
}
.hero h1 {
    font-size: clamp(2.2rem, 4.6vw, 3.45rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin-bottom: 22px;
    font-weight: 700;
    color: var(--ink);
}
.hero p.lead {
    font-size: 1.08rem;
    color: var(--ink-dim);
    max-width: 560px;
    margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note {
    margin-top: 26px;
    font-size: 0.82rem;
    color: var(--ink-dim);
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note i { color: var(--forest); }

/* ---------- Product mockup ---------- */
.mock {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 30px 70px rgba(23, 33, 29, 0.12), 0 2px 6px rgba(23, 33, 29, 0.04);
    transform: perspective(1200px) rotateY(-5deg) rotateX(1.5deg);
}
.mock-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 14px;
}
.mock-title { font-weight: 600; font-size: 0.92rem; }
.mock-sub { font-size: 0.7rem; color: var(--ink-dim); }
.mock-chip {
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--forest);
    background: var(--forest-soft);
    padding: 4px 10px;
    border-radius: 999px;
}
.mock-route {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 12px;
    height: 150px;
    position: relative;
    overflow: hidden;
    margin-bottom: 14px;
}
.mock-route svg { width: 100%; height: 100%; display: block; }
.mock-list { display: flex; flex-direction: column; gap: 8px; }
.mock-visit {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 9px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    font-size: 0.78rem;
}
.mock-visit strong { font-size: 0.78rem; font-weight: 600; }
.mock-visit small { color: var(--ink-dim); font-size: 0.68rem; display: block; }
.mock-dot {
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--forest-soft);
    border: 1px solid rgba(31, 94, 82, 0.3);
    color: var(--forest);
    font-size: 0.66rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.pill {
    font-size: 0.6rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
}
.pill-done { background: #e7f2ec; color: #2f7d5b; }
.pill-now { background: #fbf1e0; color: #8a5a12; }
.pill-next { background: var(--forest-soft); color: var(--forest); }

/* ---------- Sections ---------- */
section { padding: 78px 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 {
    font-size: clamp(1.65rem, 3vw, 2.3rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 14px;
    font-weight: 700;
}
.section-head p { color: var(--ink-dim); font-size: 1rem; }
.kicker {
    color: var(--copper);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* ---------- Value strip ---------- */
.strip {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 26px 0;
    background: var(--bg-alt);
}
.strip .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.strip-item { display: flex; align-items: center; gap: 12px; font-size: 0.86rem; color: var(--ink-dim); }
.strip-item i { color: var(--forest); font-size: 1rem; }
.strip-item strong { color: var(--ink); display: block; font-size: 0.9rem; font-weight: 600; }

/* ---------- Features ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.feature {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.feature:hover {
    border-color: rgba(31, 94, 82, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(23, 33, 29, 0.08);
}
.feature-icon {
    width: 42px; height: 42px;
    border-radius: 11px;
    background: var(--forest-soft);
    border: 1px solid rgba(31, 94, 82, 0.16);
    color: var(--forest);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    margin-bottom: 18px;
}
.feature h3 { font-size: 1.02rem; margin-bottom: 8px; font-weight: 600; }
.feature p { color: var(--ink-dim); font-size: 0.9rem; }

/* ---------- Steps ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    counter-reset: step;
}
.step {
    position: relative;
    padding: 28px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
}
.step::before {
    counter-increment: step;
    content: '0' counter(step);
    font-size: 1.9rem;
    font-weight: 700;
    color: rgba(31, 94, 82, 0.22);
    display: block;
    margin-bottom: 8px;
    letter-spacing: -0.04em;
}
.step h3 { font-size: 1.02rem; margin-bottom: 8px; font-weight: 600; }
.step p { color: var(--ink-dim); font-size: 0.9rem; }

/* ---------- FAQ ---------- */
.faq details {
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
}
.faq summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--forest); font-size: 1.35rem; line-height: 1; font-weight: 400; }
.faq details[open] summary::after { content: '–'; }
.faq p { color: var(--ink-dim); margin-top: 12px; max-width: 760px; font-size: 0.94rem; }

/* ---------- CTA ---------- */
.cta {
    text-align: center;
    border: 1px solid rgba(31, 94, 82, 0.18);
    background: radial-gradient(ellipse at top, rgba(31, 94, 82, 0.09), transparent 70%), var(--surface);
    border-radius: 20px;
    padding: 60px 30px;
}
.cta h2 { font-size: clamp(1.65rem, 3vw, 2.3rem); margin-bottom: 14px; letter-spacing: -0.02em; font-weight: 700; }
.cta p { color: var(--ink-dim); margin-bottom: 28px; }
.cta .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
footer {
    border-top: 1px solid var(--line);
    padding: 44px 0 34px;
    color: var(--ink-dim);
    font-size: 0.84rem;
    background: var(--bg-alt);
}
footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
footer .footer-links { display: flex; gap: 22px; }
footer a:hover { color: var(--forest); }

/* ---------- Legal ---------- */
.legal { padding: 72px 0 90px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 12px; letter-spacing: -0.03em; font-weight: 700; }
.legal h2 { font-size: 1.2rem; margin: 40px 0 14px; font-weight: 600; }
.legal h3 { font-size: 1rem; margin: 24px 0 8px; font-weight: 600; }
.legal p, .legal li { color: var(--ink-dim); font-size: 0.94rem; margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--forest); text-decoration: underline; text-underline-offset: 2px; }
.legal .card-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    margin-top: 32px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .hero .container { grid-template-columns: 1fr; gap: 44px; }
    .mock { transform: none; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .strip .container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
    .nav-links a:not(.btn) { display: none; }
    section { padding: 58px 0; }
    .hero { padding: 60px 0 50px; }
    .feature-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .strip .container { grid-template-columns: 1fr; }
    .hero-note { gap: 12px; }
    .cta { padding: 42px 20px; }
}

/* ---------- Pricing ---------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.price-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.price-card:hover {
    border-color: rgba(31, 94, 82, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(23, 33, 29, 0.08);
}
.price-card.featured {
    border-color: rgba(31, 94, 82, 0.35);
    box-shadow: 0 18px 40px rgba(23, 33, 29, 0.08);
}
.price-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}
.price-head h3 { font-size: 1.15rem; font-weight: 600; }
.price-tag {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--forest);
}
.price-sub { color: var(--ink-dim); font-size: 0.88rem; margin-bottom: 20px; }
.price-list { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 26px; }
.price-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--ink-dim); }
.price-list i { color: var(--forest); margin-top: 4px; font-size: 0.8rem; }
.price-card .btn { margin-top: auto; justify-content: center; }
.pricing-note {
    max-width: 760px;
    margin: 22px auto 0;
    text-align: center;
    color: var(--ink-dim);
    font-size: 0.83rem;
}
@media (max-width: 700px) {
    .pricing-grid { grid-template-columns: 1fr; }
}

/* ---------- SMS prices ---------- */
.sms-price-head { padding: 64px 0 26px; }
.sms-price-head h1 {
    font-size: clamp(2rem, 4vw, 2.9rem);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 8px 0 14px;
}
.sms-price-head .lead { max-width: 720px; }
.sms-price-head .small { margin-top: 12px; }
.sms-price-section { padding-top: 28px; }
.sms-price-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.sms-price-search {
    width: min(320px, 100%);
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 0.9rem;
}
.sms-price-search:focus {
    outline: none;
    border-color: rgba(31, 94, 82, 0.45);
    box-shadow: 0 0 0 3px rgba(31, 94, 82, 0.1);
}
.sms-price-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.sms-price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.sms-price-table th,
.sms-price-table td {
    padding: 12px 18px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
.sms-price-table th {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-dim);
    background: var(--surface-2);
}
.sms-price-table tbody tr:last-child td { border-bottom: 0; }
.sms-price-table tbody tr:hover td { background: rgba(31, 94, 82, 0.04); }
.sms-price-table .text-right { text-align: right; }
.sms-price-note {
    max-width: 760px;
    margin-top: 18px;
    color: var(--ink-dim);
    font-size: 0.83rem;
}
@media (max-width: 620px) {
    .sms-price-tools { flex-direction: column; align-items: stretch; }
    .sms-price-search { width: 100%; }
    .sms-price-table th,
    .sms-price-table td { padding: 10px 12px; }
}

@media (max-width: 620px) {
    .sms-price-table th:nth-child(2),
    .sms-price-table td:nth-child(2),
    .sms-price-table th:nth-child(3),
    .sms-price-table td:nth-child(3) { display: none; }
}
@media (max-width: 620px) {
    .sms-price-table td:first-child,
    .sms-price-table th:first-child { white-space: normal; }
}
