/* ============================================================
   SlotPrenotami — editorial redesign (v2)
   Aesthetic: literary minimalism, generous whitespace,
   small-caps labels, serif display + clean sans body.
   ============================================================ */

:root {
    --ink: #1a1a1a;
    --ink-soft: #4a4a4a;
    --ink-muted: #8a8a8a;
    --paper: #f7f5f0;
    --paper-card: #ffffff;
    --rule: #d8d4cb;
    --rule-soft: #ebe8e0;
    --accent: #2e5d3a;
    --accent-deep: #1f4128;
    --warning-soft: #f5f0e0;
    --warning-rule: #b58a3c;
    --error-soft: #f5e8e6;
    --error-rule: #b04030;
    --success-soft: #e6f0e9;
    --success-rule: #2e5d3a;

    --serif: 'EB Garamond', 'Garamond', 'Hoefler Text', 'Times New Roman', serif;
    --sans:  'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --mono:  'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 28px;
}

/* === Typography === */
h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--ink);
}

h1 { font-size: 2.8rem; line-height: 1.1; }
h2 { font-size: 2rem;   line-height: 1.2; }
h3 { font-size: 1.25rem; line-height: 1.3; }

p { color: var(--ink-soft); }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-deep); }

.eyebrow {
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-muted);
    font-weight: 500;
    margin-bottom: 18px;
    display: block;
}

/* === Header === */
header {
    padding: 22px 0;
    border-bottom: 1px solid var(--rule);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(8px);
    background: rgba(247, 245, 240, 0.92);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.logo {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 1.4rem;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.logo-tag {
    font-family: var(--sans);
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-left: 12px;
}

.lang-switch {
    display: flex;
    gap: 4px;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.lang-switch a {
    text-decoration: none;
    color: var(--ink-muted);
    padding: 4px 8px;
    border-radius: 2px;
}
.lang-switch a.active { color: var(--ink); font-weight: 600; }
.lang-switch a:hover:not(.active) { color: var(--ink); }

/* === Hero === */
.hero {
    padding: 110px 0 90px;
    border-bottom: 1px solid var(--rule);
}

.hero .eyebrow { text-align: left; }

.hero h1 {
    font-size: 3.1rem;
    margin-bottom: 28px;
    max-width: 640px;
}

.hero .subtitle {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.35rem;
    color: var(--ink-soft);
    margin-bottom: 48px;
    max-width: 560px;
    line-height: 1.5;
}

.cta-button {
    display: inline-block;
    background: var(--ink);
    color: var(--paper);
    padding: 16px 32px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    border: 1px solid var(--ink);
    transition: all 0.2s ease;
}
.cta-button:hover {
    background: var(--paper);
    color: var(--ink);
}
.cta-button.ghost { background: transparent; color: var(--ink); }
.cta-button.ghost:hover { background: var(--ink); color: var(--paper); }
.cta-button::after { content: " →"; font-family: var(--serif); }

/* === Sections === */
section {
    padding: 90px 0;
    border-bottom: 1px solid var(--rule);
}

section h2 {
    margin-bottom: 18px;
    max-width: 600px;
}

section .lede {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--ink-soft);
    max-width: 560px;
    margin-bottom: 56px;
    line-height: 1.5;
}

/* === Live stats === */
.stats-section { background: var(--paper-card); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}

.stat-block {
    padding: 32px 28px;
    border-right: 1px solid var(--rule-soft);
    border-bottom: 1px solid var(--rule-soft);
}
.stat-block:nth-child(2n) { border-right: none; }
.stat-block:nth-last-child(-n+2) { border-bottom: none; }

.stat-label {
    font-family: var(--sans);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 12px;
}

.stat-value {
    font-family: var(--serif);
    font-size: 2rem;
    color: var(--ink);
    line-height: 1.1;
    margin-bottom: 6px;
}

.stat-sub {
    font-family: var(--serif);
    font-style: italic;
    color: var(--ink-muted);
    font-size: 0.95rem;
    line-height: 1.4;
}

.stats-footnote {
    margin-top: 28px;
    font-size: 0.85rem;
    color: var(--ink-muted);
    text-align: left;
}

.stat-live-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: scale(0.95); }
    50%      { opacity: 1;   transform: scale(1.1); }
}

/* === Pricing === */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    margin-bottom: 28px;
}

.pricing-card {
    padding: 32px 24px;
    border-right: 1px solid var(--rule-soft);
}
.pricing-card:last-child { border-right: none; }
.pricing-card .eyebrow { margin-bottom: 12px; font-size: 0.65rem; }
.pricing-value {
    font-family: var(--serif);
    font-size: 1.9rem;
    color: var(--ink);
    margin-bottom: 12px;
    line-height: 1.1;
}
.pricing-desc {
    font-size: 0.95rem;
    color: var(--ink-soft);
    line-height: 1.6;
}

/* === Numbered list (steps) === */
.numbered-list {
    list-style: none;
    counter-reset: step;
}
.numbered-list > li {
    counter-increment: step;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 24px;
    padding: 32px 0;
    border-top: 1px solid var(--rule-soft);
}
.numbered-list > li:last-child { border-bottom: 1px solid var(--rule-soft); }
.numbered-list > li::before {
    content: counter(step, decimal-leading-zero);
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--ink-muted);
    padding-top: 4px;
    letter-spacing: 0.02em;
}
.numbered-list h3 {
    margin-bottom: 8px;
    font-family: var(--serif);
    font-weight: 500;
}
.numbered-list p { color: var(--ink-soft); }

/* === Disclaimers === */
.disclaimers { background: transparent; border: none; padding: 0; }
.disclaimers .lede { margin-bottom: 36px; }

.disclaimers ul {
    list-style: none;
}
.disclaimers li {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid var(--rule-soft);
    color: var(--ink-soft);
}
.disclaimers li:last-child { border-bottom: 1px solid var(--rule-soft); }
.disclaimers li::before {
    content: "—";
    color: var(--ink-muted);
    font-family: var(--serif);
}

/* === Consulates === */
.consolates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid var(--rule-soft);
    border-bottom: 1px solid var(--rule-soft);
}
.consolate-card {
    padding: 36px 36px 36px 0;
    border-right: 1px solid var(--rule-soft);
}
.consolate-card:last-child {
    padding-left: 36px;
    padding-right: 0;
    border-right: none;
}
.consolate-card .eyebrow { font-size: 0.7rem; margin-bottom: 12px; }
.consolate-card h3 { margin-bottom: 4px; font-family: var(--serif); }
.consolate-card .jurisdiction {
    font-family: var(--serif);
    font-style: italic;
    color: var(--ink-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}
.consolate-card ul { list-style: none; }
.consolate-card li {
    padding: 8px 0;
    color: var(--ink-soft);
    font-size: 0.98rem;
    border-top: 1px solid var(--rule-soft);
}
.consolate-card li:first-child { border-top: none; }

.contact-note {
    margin-top: 36px;
    padding: 24px 0;
    text-align: left;
    font-family: var(--serif);
    font-style: italic;
    color: var(--ink-soft);
    font-size: 1.05rem;
}

/* === Guides list === */
.guides-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}
.guide-link {
    padding: 32px 0;
    border-bottom: 1px solid var(--rule-soft);
    text-decoration: none;
    color: var(--ink);
    display: block;
    transition: padding-left 0.2s ease;
}
.guide-link:last-child { border-bottom: none; }
.guide-link:hover { padding-left: 12px; color: var(--ink); }
.guide-link .eyebrow { font-size: 0.65rem; margin-bottom: 10px; color: var(--ink-muted); }
.guide-link h3 {
    font-family: var(--serif);
    font-size: 1.35rem;
    margin-bottom: 8px;
    color: var(--ink);
}
.guide-link p {
    color: var(--ink-soft);
    font-size: 0.98rem;
    margin: 0;
}

/* === About === */
.about { background: var(--paper); }
.about p {
    font-family: var(--serif);
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--ink);
    margin-bottom: 22px;
    max-width: 640px;
}
.about p:first-of-type::first-letter {
    font-size: 3.2rem;
    float: left;
    line-height: 1;
    margin-right: 10px;
    margin-top: 4px;
    font-weight: 500;
    color: var(--accent);
}

/* === CTA section === */
.cta-section {
    text-align: left;
    padding: 110px 0;
    background: var(--ink);
    color: var(--paper);
    border-bottom: none;
}
.cta-section h2 { color: var(--paper); margin-bottom: 24px; }
.cta-section .lede { color: rgba(247, 245, 240, 0.7); }
.cta-section .eyebrow { color: rgba(247, 245, 240, 0.5); }
.cta-section .cta-button {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--paper);
}
.cta-section .cta-button:hover { background: transparent; color: var(--paper); }

/* === Footer === */
footer {
    background: var(--paper);
    color: var(--ink-soft);
    padding: 60px 0 40px;
    font-size: 0.9rem;
    border-top: 1px solid var(--rule);
}
footer .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--rule-soft);
}
footer .footer-brand {
    font-family: var(--serif);
    font-size: 1.2rem;
    color: var(--ink);
    margin-bottom: 8px;
}
footer .footer-tag {
    font-family: var(--serif);
    font-style: italic;
    color: var(--ink-muted);
    max-width: 380px;
}
footer .footer-meta {
    font-size: 0.8rem;
    color: var(--ink-muted);
    letter-spacing: 0.02em;
}
footer .footer-meta a { color: var(--ink-soft); }
footer .footer-meta p { margin-bottom: 6px; color: var(--ink-muted); }

/* === Forms (subscribe / unsubscribe / generic) === */
.form-section {
    padding: 80px 0 100px;
    min-height: 60vh;
}
.form-section .container { max-width: 600px; }

.form-card {
    background: var(--paper-card);
    border: 1px solid var(--rule);
    padding: 48px;
}

.form-card-header {
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--rule-soft);
}
.form-card-header h1 {
    font-family: var(--serif);
    font-size: 2rem;
    margin-bottom: 12px;
    line-height: 1.2;
}
.form-card-header p {
    font-family: var(--serif);
    font-style: italic;
    color: var(--ink-soft);
    font-size: 1.05rem;
}

.beta-banner {
    background: var(--warning-soft);
    border-left: 3px solid var(--warning-rule);
    padding: 18px 22px;
    margin-bottom: 32px;
    font-size: 0.95rem;
    color: var(--ink-soft);
    line-height: 1.6;
}
.beta-banner strong { color: var(--ink); }

.form-group { margin-bottom: 24px; }
.form-group label {
    display: block;
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-muted);
    font-weight: 500;
    margin-bottom: 10px;
}
.form-group label span.optional {
    text-transform: none;
    letter-spacing: 0;
    color: var(--ink-muted);
    font-weight: 400;
    font-size: 0.85rem;
}
.form-group input[type="email"],
.form-group input[type="text"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid var(--rule);
    background: transparent;
    font-family: var(--serif);
    font-size: 1.1rem;
    color: var(--ink);
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
}
.form-group select {
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238a8a8a' stroke-width='1.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 4px center;
    padding-right: 24px;
    cursor: pointer;
}
.form-group textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--ink);
}
.form-group small {
    color: var(--ink-muted);
    font-size: 0.85rem;
    display: block;
    margin-top: 8px;
    font-family: var(--sans);
    font-style: italic;
}

.checkbox-group {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 12px;
    align-items: flex-start;
    padding: 18px 0;
    margin: 16px 0 32px;
    border-top: 1px solid var(--rule-soft);
    border-bottom: 1px solid var(--rule-soft);
}
.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    accent-color: var(--accent);
    transform: scale(1.1);
    cursor: pointer;
}
.checkbox-group label {
    font-family: var(--sans);
    font-size: 0.9rem;
    color: var(--ink-soft);
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.5;
    margin: 0;
    cursor: pointer;
}

.form-submit {
    display: inline-block;
    background: var(--ink);
    color: var(--paper);
    padding: 16px 32px;
    border: 1px solid var(--ink);
    font-family: var(--sans);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}
.form-submit::after { content: " →"; font-family: var(--serif); }
.form-submit:hover:not(:disabled) {
    background: var(--paper);
    color: var(--ink);
}
.form-submit:disabled { opacity: 0.6; cursor: wait; }

.form-message {
    margin-top: 28px;
    padding: 22px;
    font-size: 0.95rem;
    line-height: 1.6;
    display: none;
}
.form-message.success {
    background: var(--success-soft);
    border-left: 3px solid var(--success-rule);
    color: var(--ink);
}
.form-message.error {
    background: var(--error-soft);
    border-left: 3px solid var(--error-rule);
    color: var(--ink);
}
.form-message strong { color: var(--ink); }

/* === Unsubscribe states === */
.unsub-info {
    margin: 28px 0;
    padding: 24px;
    background: var(--paper);
    border: 1px solid var(--rule-soft);
}
.unsub-info dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px 20px;
}
.unsub-info dt {
    font-family: var(--sans);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-muted);
    padding-top: 4px;
}
.unsub-info dd {
    font-family: var(--serif);
    font-size: 1.05rem;
    color: var(--ink);
}

.button-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 32px;
}
.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--ink);
    padding: 14px 28px;
    border: 1px solid var(--ink);
    text-decoration: none;
    font-family: var(--sans);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-secondary:hover { background: var(--ink); color: var(--paper); }
.btn-danger {
    display: inline-block;
    background: var(--error-rule);
    color: var(--paper);
    padding: 14px 28px;
    border: 1px solid var(--error-rule);
    text-decoration: none;
    font-family: var(--sans);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-danger:hover:not(:disabled) {
    background: transparent;
    color: var(--error-rule);
}
.btn-danger:disabled { opacity: 0.6; cursor: wait; }

/* === Legal pages (privacy, terms, security, glossary) === */
.doc-section { padding: 80px 0; }
.doc-section .container { max-width: 720px; }
.doc-meta {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--ink-muted);
    margin-bottom: 56px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--rule);
    letter-spacing: 0.02em;
}
.doc-h1 {
    font-family: var(--serif);
    font-size: 2.8rem;
    margin-bottom: 24px;
    font-weight: 500;
    line-height: 1.15;
}
.doc-intro {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--ink-soft);
    line-height: 1.5;
    margin-bottom: 56px;
    max-width: 600px;
}
.doc-section h2 {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 500;
    margin-top: 56px;
    margin-bottom: 20px;
}
.doc-section p { margin-bottom: 18px; color: var(--ink-soft); line-height: 1.7; }
.doc-section ul, .doc-section ol {
    list-style: none;
    margin-bottom: 24px;
}
.doc-section ul li {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid var(--rule-soft);
    color: var(--ink-soft);
    line-height: 1.6;
}
.doc-section ul li:last-child { border-bottom: 1px solid var(--rule-soft); }
.doc-section ul li::before {
    content: "·";
    color: var(--ink-muted);
    font-family: var(--serif);
    font-size: 1.3rem;
    line-height: 1;
    flex-shrink: 0;
    width: 12px;
}
.doc-section ol {
    counter-reset: doc-step;
    list-style: none;
}
.doc-section ol li {
    counter-increment: doc-step;
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--rule-soft);
    color: var(--ink-soft);
    line-height: 1.6;
}
.doc-section ol li:last-child { border-bottom: 1px solid var(--rule-soft); }
.doc-section ol li::before {
    content: counter(doc-step, decimal-leading-zero);
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--ink-muted);
    flex-shrink: 0;
    width: 24px;
}

/* === Responsive === */
@media (max-width: 720px) {
    body { font-size: 16px; }
    .container { padding: 0 22px; }
    h1 { font-size: 2.1rem; }
    .hero { padding: 70px 0 60px; }
    .hero h1 { font-size: 2.3rem; }
    .hero .subtitle { font-size: 1.15rem; }
    section { padding: 70px 0; }
    section h2 { font-size: 1.6rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .stat-block { border-right: none; }
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-card {
        border-right: none;
        border-bottom: 1px solid var(--rule-soft);
    }
    .pricing-card:last-child { border-bottom: none; }
    .consolates { grid-template-columns: 1fr; }
    .consolate-card { padding: 28px 0; border-right: none; border-bottom: 1px solid var(--rule-soft); }
    .consolate-card:last-child { padding-left: 0; border-bottom: none; }
    .form-card { padding: 28px; }
    .form-section .container { padding: 0 12px; }
    footer .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .cta-section { padding: 80px 0; }
    .about p:first-of-type::first-letter { font-size: 2.6rem; }
    .doc-h1 { font-size: 2rem; }
    .doc-intro { font-size: 1.1rem; }
}
