:root {
    --bg: #ffffff;
    --text: #1a1a1a;
    --muted: #726a84;
    --subtle: #b5aec4;
    --light: #f5f9fc;
    --lighter: #fafafa;
    --line: #ebebeb;
    --brand: #674ACC;
    --brand-dark: #674ACC;
    --brand-bg: rgba(103,74,204,0.08);
    --accent: #EE3491;
    --accent-bg: rgba(238,52,145,0.06);
    --warm-start: #f7941d;
    --warm-mid: #ee3491;
    --warm-end: #9b59b6;
    --app-gradient: linear-gradient(135deg, #f7941d 0%, #ee3491 50%, #9b59b6 100%);
    --swiss: #d42e30;
    --swiss-bg: rgba(212,46,48,0.06);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow: 0 12px 32px rgba(0,0,0,0.06);
    --shadow-lg: 0 20px 48px rgba(0,0,0,0.08);
    --radius: 16px;
    --radius-lg: 24px;
    --container: 1120px;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

.section { padding: 88px 0; }

.section-tag {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(1.9rem, 3.8vw, 2.6rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
    color: var(--brand);
}

.section-title--center { text-align: center; }

.section-lead {
    max-width: 680px;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.6;
}

.section-lead--center {
    margin: 0 auto;
    text-align: center;
}

/* NAV */
.topbar {
    position: sticky; top: 0; z-index: 100;
    background: var(--brand);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 64px; gap: 20px;
}
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo img { height: 54px; width: auto; }
.logo-text {
    font-size: 2.1rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    margin-left: 10px;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
}
.nav-links { display: flex; gap: 24px; font-size: 0.95rem; font-weight: 600; color: rgba(255,255,255,0.95); }
.nav-links a:hover { color: #fff; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-cta {
    display: inline-flex; align-items: center; height: 38px; padding: 0 18px;
    border-radius: 999px; font-size: 0.88rem; font-weight: 700;
    background: var(--accent); color: white; white-space: nowrap;
}

/* LANGUAGE SELECTOR */
.lang-select {
    position: relative; font-size: 0.88rem; color: var(--muted);
}
.lang-select select {
    appearance: none; -webkit-appearance: none;
    background: transparent; border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 999px; padding: 6px 28px 6px 12px;
    font-size: 0.88rem; font-weight: 600; color: #fff;
    cursor: pointer; outline: none;
}
.lang-select select option {
    background: var(--brand); color: #fff;
}
.lang-select select:hover { border-color: rgba(255,255,255,0.6); }
.lang-select::after {
    content: "▾"; position: absolute; right: 10px; top: 50%;
    transform: translateY(-50%); pointer-events: none;
    font-size: 0.75rem; color: rgba(255,255,255,0.7);
}

/* HERO */
.hero {
    position: relative; overflow: hidden;
    padding: 48px 0 40px;
}
.hero::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 520px;
    height: 520px;
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.07;
    pointer-events: none;
    z-index: 0;
}
.hero > .container {
    position: relative;
    z-index: 1;
}
.hero-grid {
    display: grid; grid-template-columns: 1.15fr 0.85fr;
    gap: 48px; align-items: center;
}
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 999px;
    background: var(--brand-bg); color: var(--brand);
    font-weight: 700; font-size: 0.84rem; margin-bottom: 22px;
    border: 1px solid rgba(103,74,204,0.18);
}
h1 {
    font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.05;
    letter-spacing: -0.035em; font-weight: 700;
    margin-bottom: 20px;
    color: #3a3146;
}
h1 em { font-style: normal; color: var(--accent); }
.hero-sub {
    font-size: 1.12rem; color: var(--muted);
    max-width: 560px; margin-bottom: 8px;
}
.hero-diff {
    font-size: 1rem; color: var(--text); font-weight: 600;
    margin-bottom: 30px;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 50px; padding: 0 24px; border-radius: 999px;
    font-weight: 700; font-size: 0.98rem; transition: 0.2s ease;
    border: none; cursor: pointer;
}
.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 2px 8px rgba(103,74,204,0.10);
    border-radius: 999px;
    font-weight: 700;
    transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
}
.btn-primary:hover {
    background: var(--brand-dark);
    box-shadow: 0 4px 16px rgba(103,74,204,0.16);
    transform: translateY(-1px) scale(1.03);
}
.btn-outline {
    background: white; color: var(--brand-dark); border: 1.5px solid var(--brand);
}
.btn-outline:hover { background: var(--brand-bg); border-color: var(--brand-dark); color: var(--brand-dark); }
.hero-note { font-size: 0.89rem; color: var(--subtle); }

/* PHONE */
.phone-wrap {
    max-width: 380px; margin-left: auto;
}
.phone {
    background: white; border: 1px solid var(--line);
    border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg);
}
.phone-bar {
    padding: 14px 18px; font-weight: 700; font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    background: var(--app-gradient); color: white;
}
.iou-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; border-bottom: 1px solid var(--line); gap: 12px;
}
.iou-row:last-child { border-bottom: 0; }
.iou-left { display: flex; gap: 10px; align-items: center; }
.iou-icon {
    width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center;
    background: #f0edfa; font-size: 1.05rem; flex-shrink: 0;
    border: 2px solid #2196f3;
}
.iou-name { font-weight: 700; font-size: 0.94rem; line-height: 1.25; }
.iou-detail { color: var(--muted); font-size: 0.84rem; line-height: 1.25; }
.iou-badge {
    white-space: nowrap; padding: 5px 10px; border-radius: 999px;
    font-size: 0.78rem; font-weight: 700; flex-shrink: 0;
}
.badge-pending { background: #e3f2fd; color: #1e88e5; }
.badge-accepted { background: #e3f2fd; color: #1e88e5; }
.badge-rejected { background: #ffebee; color: #c62828; }
.badge-settled { background: #e0f2f1; color: #00897b; }
.badge-waived { background: #f3e5f5; color: #7b1fa2; }
.iou-change .iou-badge {
    position: relative;
    overflow: visible;
}
.iou-change .iou-badge::after {
    content: "Δ";
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1565c0;
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    display: grid;
    place-items: center;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* FLOW STRIP */
.flow {
    padding: 24px 0;
    background: var(--app-gradient);
    border: none;
}
.flow-inner {
    display: flex; align-items: center; justify-content: center;
    gap: 14px; text-align: center; font-weight: 700; font-size: 0.95rem;
    color: white;
}
.flow-arrow { color: rgba(255,255,255,0.7); font-size: 1.2rem; }

/* PAIN SECTION */
.pain { background: #fdf7f2; }
.pain-box {
    max-width: 780px; margin: 28px auto 0;
    background: white; border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 32px 36px;
    box-shadow: var(--shadow); text-align: center;
    font-size: 1.06rem; color: var(--muted); line-height: 1.65;
}
.pain-box strong { color: var(--text); }

/* DIFF SECTION */
.diff-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
    max-width: 800px; margin: 36px auto 0;
}
.diff-col {
    border-radius: var(--radius); padding: 28px; font-size: 0.96rem;
}
.diff-col h3 { font-size: 1.05rem; margin-bottom: 14px; }
.diff-them {
    background: #f9f7f8; border: 1px solid #e4e0e6;
}
.diff-them h3 { color: #7a7182; }
.diff-us {
    background: linear-gradient(135deg, rgba(247,148,29,0.12) 0%, rgba(238,52,145,0.10) 50%, rgba(155,89,182,0.12) 100%);
    border: 1px solid rgba(155,89,182,0.18); color: var(--text);
}
.diff-us h3 { color: var(--brand); }
.diff-list {
    list-style: none; padding: 0; margin: 0; color: var(--muted);
}
.diff-list li {
    padding: 5px 0 5px 22px; position: relative;
}
.diff-list li::before {
    position: absolute; left: 0; top: 5px;
}
.diff-them .diff-list li::before { content: "✗"; color: #9a8da0; }
.diff-us .diff-list li::before { content: "✓"; color: var(--brand); font-weight: 700; }
.diff-us .diff-list { color: var(--muted); }

/* CARDS */
.cards {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 20px; margin-top: 40px;
}
.card {
    background: white; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 28px;
    box-shadow: var(--shadow-sm);
}
.card-emoji { font-size: 1.6rem; margin-bottom: 14px; }
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.96rem; }

/* EXAMPLES */
.examples {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 14px; max-width: 960px; margin: 36px auto 0;
}
.example {
    padding: 18px 20px; background: white; border: 1px solid var(--line);
    border-radius: 14px; font-weight: 600; font-size: 0.95rem;
}
.example span { margin-right: 6px; }

/* STEPS */
.steps {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 20px; margin-top: 40px;
}
.step {
    text-align: center; padding: 32px 24px;
    background: white; border: 1px solid var(--line);
    border-radius: var(--radius);
}
.step-num {
    width: 48px; height: 48px; margin: 0 auto 14px;
    border-radius: 50%; display: grid; place-items: center;
    background: var(--brand-bg);
    color: var(--brand);
    font-weight: 800; font-size: 1.05rem;
}
.step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.94rem; }

/* FAMILY */
.family-grid {
    display: grid; grid-template-columns: 1.1fr 0.9fr;
    gap: 28px; align-items: stretch; margin-top: 40px;
}
.family-panel {
    background: white; border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm);
}
.family-panel h3 { font-size: 1.15rem; margin-bottom: 10px; }
.family-panel > p { color: var(--muted); font-size: 0.98rem; margin-bottom: 18px; }
.mini-list {
    list-style: none; padding: 0; color: var(--muted); font-size: 0.96rem;
}
.mini-list li {
    padding: 6px 0 6px 24px; position: relative;
}
.mini-list li::before {
    content: "✓"; color: var(--brand-dark); font-weight: 700;
    position: absolute; left: 0; top: 6px;
}

/* SWISS SECTION */
.swiss-strip {
    background: var(--lighter); border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line); padding: 56px 0;
}
.swiss-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px; text-align: center;
}
.swiss-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.swiss-item p { color: var(--muted); font-size: 0.94rem; }
.swiss-icon {
    width: 48px; height: 48px; margin: 0 auto 14px;
    border-radius: 50%; display: grid; place-items: center;
    background: var(--swiss-bg); font-size: 1.2rem;
}

/* USE CASES */
.cases {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 20px; margin-top: 40px;
}
.case {
    background: white; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 28px; text-align: center;
}
.case-emoji { font-size: 1.5rem; margin-bottom: 12px; }
.case h3 { font-size: 1.05rem; margin-bottom: 8px; }
.case p { color: var(--muted); font-size: 0.94rem; }

/* SEO + FAQ */
.seo-prose {
    max-width: 820px; margin: 32px auto 0;
    color: var(--muted); font-size: 1.02rem;
}
.seo-prose p { margin-bottom: 16px; }
.faq-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 20px; margin-top: 36px;
}
.faq {
    background: white; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm);
}
.faq h3 { font-size: 1.02rem; margin-bottom: 8px; }
.faq p { color: var(--muted); font-size: 0.95rem; }

/* CTA */
.cta-block {
    text-align: center;
    background:
            radial-gradient(ellipse at 20% 30%, rgba(247,148,29,0.08), transparent 50%),
            radial-gradient(ellipse at 80% 50%, rgba(155,89,182,0.07), transparent 50%),
            linear-gradient(135deg, rgba(238,52,145,0.05), rgba(103,74,204,0.06));
    border: 1px solid rgba(238,52,145,0.10);
    border-radius: var(--radius-lg); padding: 52px 28px;
}
.cta-block .btn { min-width: 240px; }
.store-badges {
    display: flex; gap: 20px; justify-content: center; align-items: center; flex-wrap: wrap;
    margin: 0 auto;
}
.store-badges a {
    display: inline-block; transition: transform 0.18s ease, opacity 0.18s ease;
    border-radius: 10px; overflow: hidden;
}
.store-badges a:hover { transform: translateY(-2px) scale(1.04); opacity: 0.88; }
.store-badges img { display: block; height: 54px; width: auto; }

/* FOOTER */
.footer {
    border-top: 1px solid var(--line);
    padding: 28px 0; color: var(--subtle);
    font-size: 0.9rem; text-align: center;
}
.footer p { margin: 0 0 6px; }
.footer-legal { font-size: 0.8rem; }
.footer-legal a { color: var(--subtle); text-decoration: underline; }
.contact-text { font-size: 1.05rem; color: var(--body); }
.contact-text a { color: var(--brand); font-weight: 600; text-decoration: none; }
.contact-text a:hover { text-decoration: underline; }

/* COOKIE BANNER */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
    padding: 16px 24px;
    display: flex; align-items: center; justify-content: center;
    gap: 16px; flex-wrap: wrap;
    font-size: 0.9rem; color: var(--text);
}
.cookie-banner.is-hidden { display: none; }
.cookie-banner p { margin: 0; }
.cookie-btn {
    border: none; cursor: pointer; border-radius: 6px;
    padding: 8px 20px; font-size: 0.85rem; font-weight: 600;
}
.cookie-btn--accept { background: var(--brand); color: #fff; }
.cookie-btn--accept:hover { opacity: 0.9; }
.cookie-btn--reject { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.cookie-btn--reject:hover { border-color: var(--muted); }

/* SHARE ICONS */
.share-row {
    display: flex; justify-content: center; gap: 12px;
    margin-bottom: 16px;
}
.share-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--lighter); border: 1px solid var(--line);
    color: var(--muted); cursor: pointer; transition: all 0.2s;
    text-decoration: none;
}
.share-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.share-btn svg { width: 18px; height: 18px; fill: currentColor; }
.share-btn--copied { background: var(--brand); color: #fff; border-color: var(--brand); }

/* RESPONSIVE */
@media (min-width: 761px) {
    .nav { min-height: 76px; }
}
@media (max-width: 980px) {
    .hero-grid, .family-grid, .cards, .steps, .cases,
    .examples, .faq-grid, .diff-grid, .swiss-grid {
        grid-template-columns: 1fr;
    }
    .phone-wrap { margin: 0 auto; }
    .flow-inner { flex-direction: column; }
    .flow-arrow { transform: rotate(90deg); }
}

/* HAMBURGER */
.hamburger {
    display: none; background: none; border: none; cursor: pointer;
    width: 36px; height: 36px; padding: 6px;
    flex-direction: column; justify-content: center; gap: 5px;
}
.hamburger span {
    display: block; height: 2px; background: #fff;
    border-radius: 2px; transition: transform 0.25s, opacity 0.2s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.lang-select--menu { display: none; }

@media (max-width: 1010px) and (min-width: 761px) {
    .nav { flex-wrap: wrap; }
    .logo { order: 1; }
    .hamburger { display: flex; order: 2; margin-left: auto; }
    .nav-cta { display: none; order: 4; }
    .nav-links { display: none; order: 5; }
    .nav-right { display: none; order: 6; }
    .nav.is-open .nav-cta {
        display: flex; justify-content: center; width: 100%;
        padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.15);
        border-radius: 0; height: auto; font-size: 0.95rem;
    }
    .nav.is-open .nav-links,
    .nav.is-open .nav-right { display: flex; flex-direction: column; width: 100%; text-align: center; gap: 0; }
    .nav.is-open .nav-right { align-items: center; padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.15); }
    .nav.is-open .nav-links a {
        display: block; padding: 12px 0;
        border-top: 1px solid rgba(255,255,255,0.15);
    }
}

@media (max-width: 760px) {
    .nav { flex-wrap: wrap; padding: 6px 0; }
    .logo { order: 1; }
    .logo img { height: 38px; }
    .logo-text { font-size: 1.6rem; }
    .hamburger { display: flex; order: 2; margin-left: auto; }
    .nav-cta { display: none; order: 4; }
    .nav-links { order: 5; }
    .nav-right { order: 6; }
    .nav-cta, .nav-links, .nav-right {
        width: 100%; text-align: center;
    }
    .nav-links, .nav-right {
        display: none; flex-direction: column; gap: 0;
    }
    .nav.is-open .nav-cta {
        display: flex; justify-content: center;
        padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.15);
        border-radius: 0; height: auto; font-size: 0.95rem;
    }
    .nav.is-open .nav-links,
    .nav.is-open .nav-right { display: flex; }
    .nav-links a {
        display: block; padding: 12px 0;
        border-top: 1px solid rgba(255,255,255,0.15);
        font-size: 0.95rem; font-weight: 600; color: rgba(255,255,255,0.85);
    }
    .nav-right {
        border-top: 1px solid rgba(255,255,255,0.15);
        padding: 12px 0; align-items: center; gap: 10px;
    }
    .lang-select--menu select {
        font-size: 0.92rem; padding: 6px 28px 6px 14px;
        border-color: rgba(255,255,255,0.3); color: #fff; background: transparent;
    }
    .cta-row { flex-direction: column; }
    .btn { min-height: 46px; padding: 0 20px; font-size: 0.92rem; width: 100%; }
    .cta-block .btn { min-width: 0; }
    .section { padding: 34px 0; }
    .hero { padding: 20px 0 36px; }
    .badge { margin-bottom: 14px; }
    .pain-box, .card, .step, .case, .faq, .family-panel,
    .diff-col { padding: 22px; }
    .swiss-strip { padding: 40px 0; }
}
