:root {
    --bg: #f3f5f7;
    --panel: #ffffff;
    --accent: #4cb8ad;
    --accent-strong: #3da99e;
    --accent-soft: #e6f4f2;
    --text: #1a1f2c;
    --muted: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    --shadow-hover: 0 8px 22px rgba(15, 23, 42, 0.10);
}
* { box-sizing: border-box; }
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    max-width: 100%;
}
body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
header, main, footer {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
header {
    padding: 28px 24px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand, a.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.2px;
}
.brand .dot {
    width: 64px; height: 64px;
    border-radius: 18px;
    background-image: url("/img/app_icon.png");
    background-size: 124%;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.15s ease;
}
.brand:hover .dot {
    transform: translateY(-2px);
}
.brand-name {
    font-weight: 800;
    font-size: 26px;
    letter-spacing: -0.5px;
    color: var(--text);
}

.back-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
}
.back-link:hover { color: var(--text); }

.lang-switch {
    display: inline-flex;
    gap: 6px;
    font-size: 13px;
    background: var(--panel);
    padding: 4px;
    border-radius: 999px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.lang-switch a {
    color: var(--muted);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 600;
    transition: color 0.15s ease, background 0.15s ease;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a.active {
    color: #fff;
    background: var(--accent);
}
.header-right {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

/* ---------- Landing ---------- */
.hero {
    padding: 24px 0 8px;
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 56px;
    align-items: center;
    text-align: left;
}
.hero-content { min-width: 0; }
.hero h1 {
    font-size: clamp(32px, 4.2vw, 46px);
    margin: 0 0 16px;
    line-height: 1.08;
    letter-spacing: -0.8px;
    color: var(--text);
}
.hero p {
    color: var(--muted);
    font-size: 17px;
    max-width: 520px;
    margin: 0;
}
.hero .stores {
    justify-content: flex-start;
    margin-top: 28px;
}

.hero-stage {
    position: relative;
    min-width: 0;
}
.hero-phones {
    position: relative;
    height: 600px;
    width: 520px;
    margin: 0 auto;
    max-width: 100%;
}
.hero-phones .hero-phone {
    position: absolute;
    width: 200px;
    aspect-ratio: 9 / 19.5;
    object-fit: cover;
    border-radius: 32px;
    border: 7px solid #111;
    background: #111;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.22);
    display: block;
    color: transparent;
    font-size: 0;
}
.hero-phone-left   { left: 30px;  top: 90px;  transform: rotate(-9deg); z-index: 1; }
.hero-phone-center { left: 50%;   top: 30px;  transform: translateX(-50%) rotate(0deg); z-index: 3; }
.hero-phone-right  { right: 30px; top: 90px;  transform: rotate(9deg);  z-index: 2; }

/* Floating widgets around the phones */
.float-widget {
    position: absolute;
    background: rgba(255, 255, 255, 0.20);
    -webkit-backdrop-filter: blur(8px) saturate(150%);
    backdrop-filter: blur(8px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 22px;
    padding: 22px 22px 20px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.10), 0 2px 6px rgba(15, 23, 42, 0.05);
    max-width: 240px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}
.float-widget .float-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex: 0 0 auto;
    box-shadow: 0 4px 10px rgba(76, 184, 173, 0.18);
}
.float-widget > div { width: 100%; }
.float-widget h3 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: var(--text);
}
.float-widget p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
    max-width: none;
}
.float-tl { top: -20px;   left: -80px;   }
.float-r  { top: 240px;   right: -90px;  }
.float-bl { bottom: -10px; left: -40px;  }

@media (max-width: 920px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }
    .hero h1 { text-align: center; }
    .hero p { margin: 0 auto; }
    .hero .stores { justify-content: center; }

    .hero-stage {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    .hero-stage .float-widget {
        position: static;
        max-width: 360px;
        width: 100%;
        margin: 0 auto;
    }
    .hero-phones {
        order: -1;
        height: 460px;
        width: 100%;
        max-width: 460px;
    }
    .hero-phones .hero-phone { width: 180px; }
    .hero-phone-left   { left: 0;   top: 60px;  transform: rotate(-8deg); }
    .hero-phone-center { left: 50%; top: 10px;  transform: translateX(-50%); }
    .hero-phone-right  { right: 0;  left: auto; top: 60px;  transform: rotate(8deg); }

    /* Force single-column card grids so cards fill the viewport */
    .feature-grid,
    .steps,
    .nav-cards {
        grid-template-columns: 1fr;
    }
    .section-label {
        flex-wrap: wrap;
        gap: 8px;
    }
}
@media (max-width: 560px) {
    .hero h1 { font-size: clamp(28px, 8vw, 38px); }
    .hero p { font-size: 16px; }

    .hero-phones {
        height: 380px;
        max-width: 340px;
    }
    .hero-phones .hero-phone { width: 140px; }
    .hero-phone-left   { left: 0;  top: 50px; }
    .hero-phone-right  { right: 0; left: auto; top: 50px; }
    .hero-phone-center { top: 0; }

    .store-btn { min-width: 0; padding: 10px 16px; font-size: 18px; }
    .store-btn .store-icon { width: 26px; height: 26px; }
    .stores { gap: 10px; }
}
@media (max-width: 380px) {
    .hero-phones {
        height: 340px;
        max-width: 300px;
    }
    .hero-phones .hero-phone { width: 120px; }
}

/* ---------- Paired feature showcase ---------- */
.showcase {
    margin-top: 88px;
    display: flex;
    flex-direction: column;
    gap: 88px;
}
.showcase-row {
    display: flex;
    align-items: center;
    gap: 64px;
}
.showcase-row > * { flex: 1; }
.showcase-row.reverse { flex-direction: row-reverse; }

.showcase-row .phone-widget {
    max-width: 440px;
    padding: 28px 30px;
}
.showcase-row .phone-widget h3 {
    font-size: 24px;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}
.showcase-row .phone-widget p {
    font-size: 15.5px;
    line-height: 1.55;
}
.showcase-phone {
    display: flex;
    justify-content: center;
}
.showcase-phone img {
    width: 260px;
    aspect-ratio: 9 / 19.5;
    object-fit: cover;
    border-radius: 38px;
    border: 8px solid #111;
    background: #111;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.22);
    color: transparent;
    font-size: 0;
    display: block;
}
.showcase-row:nth-child(odd)  .showcase-phone img { transform: rotate(-3deg); }
.showcase-row:nth-child(even) .showcase-phone img { transform: rotate(3deg); }

@media (max-width: 860px) {
    .showcase { gap: 56px; margin-top: 48px; }
    .showcase-row, .showcase-row.reverse {
        flex-direction: column;
        gap: 24px;
    }
    .showcase-row .phone-widget { max-width: none; width: 100%; }
}

/* ---------- (legacy) two-phone hero showcase ---------- */
.phone-showcase {
    margin: 56px auto 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 96px;
    max-width: 1180px;
}
.phone-widget {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 22px;
    box-shadow: var(--shadow);
    text-align: left;
    max-width: 280px;
}
.phone-widget .widget-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 12px;
}
.phone-widget h3 {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}
.phone-widget p {
    margin: 0;
    color: var(--muted);
    font-size: 14.5px;
    max-width: none;
}
.widget-left  { justify-self: end;   transform: translateY(40px); }
.widget-right { justify-self: start; transform: translateY(-40px); }

.phones {
    position: relative;
    width: 280px;
    height: 580px;
}
.phones .phone {
    position: absolute;
    top: 0;
    left: 0;
    width: 240px;
    aspect-ratio: 9 / 19.5;
    object-fit: cover;
    border-radius: 36px;
    border: 8px solid #111;
    background: #111;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.22);
    display: block;
    color: transparent;
    font-size: 0;
}
.phone-back {
    transform: translate(-110px, 50px) rotate(-8deg);
    opacity: 0.92;
    z-index: 1;
}
.phone-front {
    transform: translate(90px, 0) rotate(6deg);
    z-index: 2;
}

@media (max-width: 860px) {
    .phone-showcase {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 36px;
    }
    .widget-left, .widget-right {
        transform: none;
        justify-self: center;
        max-width: 360px;
        width: 100%;
    }
    .phones {
        width: 320px;
        height: 540px;
        margin: 0 auto;
    }
    .phones .phone { width: 220px; }
    .phone-back  { transform: translate(-60px, 30px) rotate(-8deg); }
    .phone-front { transform: translate(60px, 0)  rotate(6deg); }
}

/* ---------- Features grid ---------- */
.features { margin-top: 80px; }
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.feature-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}
.feature-card .feature-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 12px;
}
.feature-card h3 {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
}
.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14.5px;
}

/* ---------- How it works ---------- */
.steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    counter-reset: step;
}
.steps li {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--shadow);
    counter-increment: step;
}
.steps li::before {
    content: counter(step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    font-weight: 700;
    margin-bottom: 12px;
    box-shadow: 0 6px 14px rgba(76, 184, 173, 0.35);
}
.steps li h3 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
}
.steps li p {
    margin: 0;
    color: var(--muted);
    font-size: 14.5px;
}

/* ---------- Closing CTA ---------- */
.closing-cta {
    margin: 72px auto 0;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    border-radius: 22px;
    padding: 40px 32px;
    text-align: center;
    color: #fff;
    box-shadow: 0 10px 30px rgba(76, 184, 173, 0.25);
}
.closing-cta .free-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.closing-cta h2 {
    margin: 0 0 8px;
    font-size: 28px;
    color: #fff;
    letter-spacing: -0.3px;
}
.closing-cta p {
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.92);
    font-size: 16px;
    max-width: 540px;
}
.closing-cta .stores { margin-top: 24px; }

.stores {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}
.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    height: 60px;
    min-width: 210px;
    border-radius: 12px;
    background: #000;
    border: 1px solid #000;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 22px;
    line-height: 1;
    letter-spacing: 0.2px;
    box-shadow: var(--shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.store-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: #1a1a1a;
    border-color: var(--accent);
}
.store-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}
.store-btn .store-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
}
.store-btn > span {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}
.store-btn small {
    display: block;
    font-size: 11px;
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 3px;
    line-height: 1;
}

.section-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 56px 0 14px;
}
.section-label h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
}
.section-label .badge {
    color: var(--accent-strong);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 6px 0 24px;
}
.nav-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.nav-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}
.nav-card .nav-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 10px;
}
.nav-card h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
}
.nav-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14.5px;
}
.nav-card .go {
    margin-top: 10px;
    color: var(--accent-strong);
    font-weight: 700;
    font-size: 14px;
}

/* ---------- Long-form content pages ---------- */
.content {
    max-width: 780px;
    padding: 24px 24px 64px;
}
.content > h1 {
    font-size: 34px;
    margin: 16px 0 6px;
    letter-spacing: -0.5px;
}
.content .meta {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 28px;
}
.content h2 {
    font-size: 19px;
    margin: 30px 0 8px;
    color: var(--text);
    font-weight: 700;
}
.content h3 {
    font-size: 16px;
    margin: 18px 0 6px;
}
.content p, .content li {
    color: var(--muted);
    font-size: 15.5px;
}
.content ul {
    padding-left: 22px;
    margin: 8px 0 16px;
}
.content li { margin-bottom: 4px; }
.content a { color: var(--accent-strong); }
.content a:hover { color: var(--accent); }
.content strong { color: var(--text); font-weight: 600; }
.content .callout {
    background: var(--accent-soft);
    border-left: 3px solid var(--accent);
    border-radius: 12px;
    padding: 14px 18px;
    margin: 18px 0;
    color: var(--text);
    font-size: 15px;
}
.content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 14px 0 22px;
    font-size: 15px;
    background: var(--panel);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.content th, .content td {
    border-bottom: 1px solid var(--border);
    padding: 12px 14px;
    text-align: left;
    color: var(--text);
    vertical-align: top;
}
.content tr:last-child td { border-bottom: none; }
.content th {
    background: var(--accent-soft);
    color: var(--text);
    font-weight: 700;
}
.content td { color: var(--muted); }

footer {
    padding: 32px 24px 56px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}
footer a {
    color: var(--muted);
    text-decoration: none;
}
footer a:hover { color: var(--accent-strong); }
.sep { margin: 0 10px; opacity: 0.5; }
