/* ===== Reset & Variables ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== Light Theme (Default) — Deep Navy Blue + White ===== */
:root {
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #60a5fa;
    --primary-bright: #2563eb;
    --primary-bg: #eff6ff;
    --primary-bg-strong: #dbeafe;

    --bg: #ffffff;
    --bg-alt: #f1f5fc;
    --bg-card: #ffffff;
    --bg-dark-section: #061229;

    --text: #0a1f44;
    --text-light: #1c2e54;
    --text-muted: #3a4e75;
    --text-on-dark: #ffffff;
    --text-on-dark-soft: rgba(255, 255, 255, 0.85);

    --border: #d6e4ff;
    --border-light: #e8f0ff;
    --border-strong: #b3cdff;

    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
    --gradient-soft: linear-gradient(135deg, #60a5fa 0%, #1e40af 100%);
    --gradient-deep: linear-gradient(135deg, #1e3a8a 0%, #0a1936 100%);
    --gradient-mesh: radial-gradient(at 20% 0%, rgba(30, 64, 175, 0.12) 0px, transparent 50%),
                     radial-gradient(at 80% 50%, rgba(96, 165, 250, 0.10) 0px, transparent 50%),
                     radial-gradient(at 40% 100%, rgba(30, 58, 138, 0.08) 0px, transparent 50%);

    --shadow-sm: 0 2px 8px rgba(10, 31, 68, 0.05);
    --shadow-md: 0 8px 24px rgba(10, 31, 68, 0.09);
    --shadow-lg: 0 20px 48px rgba(10, 31, 68, 0.13);
    --shadow-xl: 0 32px 64px rgba(10, 31, 68, 0.18);
    --shadow-color: 0 12px 32px rgba(30, 64, 175, 0.28);

    --success: #1e40af;
    --warning: #f59e0b;
    --danger: #ef4444;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --container: 1200px;
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Dark Theme — Deep Navy Blue ===== */
[data-theme="dark"] {
    --primary: #60a5fa;
    --primary-dark: #3b82f6;
    --primary-light: #93c5fd;
    --primary-bright: #60a5fa;
    --primary-bg: rgba(96, 165, 250, 0.1);
    --primary-bg-strong: rgba(96, 165, 250, 0.18);

    --bg: #050d1f;
    --bg-alt: #0a1936;
    --bg-card: #112048;
    --bg-dark-section: #04081a;

    --text: #ffffff;
    --text-light: #d8e3f5;
    --text-muted: #9badd1;

    --border: #1e3a8a;
    --border-light: #14275a;
    --border-strong: #2a4ea8;

    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    --gradient-soft: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
    --gradient-deep: linear-gradient(135deg, #1e3a8a 0%, #04081a 100%);
    --gradient-mesh: radial-gradient(at 20% 0%, rgba(59, 130, 246, 0.18) 0px, transparent 50%),
                     radial-gradient(at 80% 50%, rgba(96, 165, 250, 0.12) 0px, transparent 50%),
                     radial-gradient(at 40% 100%, rgba(30, 64, 175, 0.15) 0px, transparent 50%);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 32px 64px rgba(0, 0, 0, 0.6);
    --shadow-color: 0 12px 32px rgba(59, 130, 246, 0.35);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Prompt', 'Sarabun', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    transition: background-color 0.3s var(--transition), color 0.3s var(--transition);
    /* iOS safe area for notched devices */
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

/* Disable tap highlight + improve touch interactions */
* {
    -webkit-tap-highlight-color: transparent;
}

button, a {
    touch-action: manipulation;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .text-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-family: inherit;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: all 0.3s var(--transition);
    text-align: center;
    white-space: nowrap;
    line-height: 1;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
    margin-top: auto;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .btn-secondary {
    background: var(--bg-card);
    color: var(--primary-light);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-color);
}

.btn-ghost {
    background: var(--primary-bg);
    color: var(--primary);
    border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
    background: var(--primary-bg-strong);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border-strong);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg);
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s var(--transition);
}

[data-theme="dark"] .navbar {
    background: rgba(5, 13, 31, 0.85);
}

.navbar.scrolled {
    border-bottom-color: var(--border-light);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    color: var(--text);
}

.logo-svg {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.25));
}

.logo-text {
    letter-spacing: -0.02em;
}

.logo-accent {
    color: var(--primary);
    margin-left: 4px;
}

.nav-links {
    display: flex;
    gap: 28px;
    margin-left: auto;
}

.nav-links a {
    font-size: 15px;
    color: var(--text-light);
    font-weight: 500;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s var(--transition);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tool-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--primary-bg);
    border: 1px solid var(--border);
    color: var(--text-light);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s var(--transition);
    padding: 0;
}

.tool-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.lang-btn {
    width: auto;
    padding: 0 12px;
    font-size: 13px;
    letter-spacing: 0.05em;
}

.lang-btn .lang-current {
    color: var(--primary);
    font-weight: 700;
}

.tool-btn:hover .lang-current {
    color: white;
}

.theme-btn .icon-sun,
.theme-btn .icon-moon {
    width: 18px;
    height: 18px;
    transition: opacity 0.3s, transform 0.3s;
}

.theme-btn .icon-sun { display: none; }
.theme-btn .icon-moon { display: block; }
[data-theme="dark"] .theme-btn .icon-sun { display: block; }
[data-theme="dark"] .theme-btn .icon-moon { display: none; }

.nav-cta {
    padding: 10px 18px;
    font-size: 14px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s var(--transition);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    padding: 140px 0 80px;
    overflow: hidden;
    background: var(--gradient-mesh);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.4;
    animation: float-blob 20s infinite ease-in-out;
}

[data-theme="dark"] .blob {
    opacity: 0.25;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--primary-light);
    top: 20%;
    right: -50px;
    animation-delay: -7s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: var(--primary-dark);
    bottom: -100px;
    left: 30%;
    animation-delay: -14s;
}

@keyframes float-blob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -40px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.95); }
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

[data-theme="dark"] .grid-overlay {
    background-image:
        linear-gradient(rgba(96, 165, 250, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 165, 250, 0.06) 1px, transparent 1px);
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.05); }
}

.hero-title {
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 32px;
}

.trust-item {
    display: flex;
    flex-direction: column;
}

.trust-item strong {
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.trust-item span {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.trust-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
}

/* Hero Visual / Card Stack */
.hero-visual {
    position: relative;
    height: 480px;
}

.card-stack {
    position: relative;
    height: 100%;
}

.float-card {
    position: absolute;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    animation: float-card 6s infinite ease-in-out;
}

.card-result {
    width: 320px;
    top: 40px;
    right: 0;
    z-index: 3;
}

.card-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.result-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.result-tag {
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
}

.tag-good {
    background: var(--primary-bg-strong);
    color: var(--primary);
}

.result-value {
    font-size: 56px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 16px;
}

.result-bar {
    height: 8px;
    background: var(--bg-alt);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 12px;
}

.result-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 100px;
    animation: fill-bar 2s var(--transition) forwards;
    transform-origin: left;
}

@keyframes fill-bar {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.result-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
}

.card-survey {
    width: 280px;
    top: 280px;
    left: 0;
    z-index: 2;
    animation-delay: -2s;
}

.survey-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.survey-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.survey-avatar svg {
    width: 22px;
    height: 22px;
}

.survey-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
}

.survey-sub {
    font-size: 12px;
    color: var(--text-muted);
}

.progress-bar {
    height: 6px;
    background: var(--bg-alt);
    border-radius: 100px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 100px;
}

.card-mini {
    width: 240px;
    top: 0;
    left: 40px;
    z-index: 1;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    animation-delay: -4s;
}

.mini-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mini-icon svg {
    width: 14px;
    height: 14px;
}

@keyframes float-card {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ===== Trust Strip ===== */
.trust-strip {
    padding: 28px 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: center;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 4px;
    transition: transform 0.2s var(--transition);
}

.trust-badge-link {
    cursor: pointer;
}

.trust-badge-link:hover {
    transform: translateY(-2px);
}

.trust-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-icon svg {
    width: 20px;
    height: 20px;
}

.trust-icon-blue {
    background: var(--primary-bg-strong);
    color: var(--primary);
}

.trust-icon-amber {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.trust-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.trust-text strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.trust-text span {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.3;
}

@media (max-width: 900px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .trust-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Marquee ===== */
.marquee-section {
    padding: 40px 0;
    background: var(--bg);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.marquee-label {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 48px;
    white-space: nowrap;
    animation: marquee 40s linear infinite;
    color: var(--text-light);
    font-weight: 500;
    font-size: 16px;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ===== Sections ===== */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-sub {
    font-size: 17px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== Services ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 40px;
    border: 1px solid var(--border-light);
    transition: all 0.4s var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--border-strong);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow-color);
}

.icon-secondary {
    background: var(--primary-bg-strong);
    color: var(--primary);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.15);
}

.service-badge {
    position: absolute;
    top: 32px;
    right: 32px;
    padding: 6px 12px;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

.badge-free {
    background: var(--primary-bg-strong);
    color: var(--primary-dark);
}

[data-theme="dark"] .badge-free {
    color: var(--primary-light);
}

.service-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.service-desc {
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.7;
}

.service-list {
    margin-bottom: 32px;
    flex: 1;
}

.service-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 15px;
}

.service-list li svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ===== Steps ===== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.step-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: left;
    border: 1px solid var(--border-light);
    transition: all 0.3s var(--transition);
    position: relative;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.step-number {
    font-size: 48px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 16px;
}

.step-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.step-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== Calculator Section ===== */
.calculator-section {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.calc-intro {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.calc-intro .section-title {
    margin-bottom: 16px;
}

.calc-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 48px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.calc-feature {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.calc-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    color: var(--primary);
}

.calc-feature-icon svg {
    width: 20px;
    height: 20px;
}

.calc-feature h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.calc-feature p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}

/* ===== Live Calculator App ===== */
.calc-app {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 80px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.calc-app-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--bg-alt);
}

.calc-app-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
    margin-bottom: 2px;
}

.calc-app-sub {
    font-size: 13px;
    color: var(--text-muted);
}

.calc-privacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

.calc-app-body {
    padding: 32px;
}

.calc-input-block {
    margin-bottom: 24px;
}

.calc-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.calc-hint {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
}

.calc-textarea {
    width: 100%;
    padding: 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: 'JetBrains Mono', 'Consolas', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    resize: vertical;
    min-height: 160px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.calc-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

.calc-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.calc-error {
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.08);
    color: var(--danger);
    border-left: 3px solid var(--danger);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.calc-results {
    border-top: 1px dashed var(--border);
    padding-top: 32px;
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Alpha Display Card */
.calc-alpha-card {
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--primary-bg-strong) 100%);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.calc-alpha-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(at top right, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.alpha-label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.alpha-value {
    font-size: clamp(48px, 8vw, 84px);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 12px;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.04em;
}

.alpha-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.alpha-tag.tag-excellent { background: var(--primary-dark); color: white; }
.alpha-tag.tag-good { background: var(--primary); color: white; }
.alpha-tag.tag-ok { background: var(--primary-light); color: white; }
.alpha-tag.tag-warn { background: #f59e0b; color: white; }
.alpha-tag.tag-poor { background: #ef4444; color: white; }

.alpha-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 100px;
    overflow: hidden;
    max-width: 320px;
    margin: 0 auto;
}

[data-theme="dark"] .alpha-bar {
    background: rgba(0, 0, 0, 0.3);
}

.alpha-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 100px;
    transition: width 0.6s var(--transition);
}

/* Stats Grid */
.calc-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.cstat {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 16px 12px;
    text-align: center;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.cstat-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.cstat-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.cstat-sub {
    font-size: 11px;
    color: var(--text-muted);
}

/* Items Block */
.calc-items-block {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-light);
}

.items-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.items-head h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.items-hint {
    font-size: 12px;
    color: var(--text-muted);
}

.items-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
}

.items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.items-table thead {
    background: var(--bg-alt);
}

.items-table th {
    padding: 12px 14px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.items-table th:first-child {
    text-align: center;
    width: 50px;
}

.items-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.items-table tbody tr:last-child td {
    border-bottom: none;
}

.items-table tbody tr {
    transition: background-color 0.15s;
}

.items-table tbody tr:hover {
    background: var(--bg-alt);
}

.items-table tbody tr.row-disabled {
    opacity: 0.4;
}

.items-table td:first-child {
    text-align: center;
}

.items-table td.col-warn {
    color: var(--danger);
    font-weight: 600;
}

.item-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.calc-formula-note {
    margin-top: 16px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-light);
    border: 1px dashed var(--border);
    line-height: 1.7;
}

.calc-formula-note strong {
    color: var(--text);
}

/* ===== Mockup (legacy, kept minimal in case used elsewhere) ===== */
.calc-mockup {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--border);
}

.mockup-header {
    background: var(--bg-alt);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

[data-theme="light"] .dot-r,
:root:not([data-theme="dark"]) .dot-r { background: #ff5f57; }
[data-theme="light"] .dot-y,
:root:not([data-theme="dark"]) .dot-y { background: #ffbd2e; }
[data-theme="light"] .dot-g,
:root:not([data-theme="dark"]) .dot-g { background: #28ca42; }

[data-theme="dark"] .dot-r,
[data-theme="dark"] .dot-y,
[data-theme="dark"] .dot-g { background: var(--border-strong); }

.mockup-url {
    margin-left: auto;
    margin-right: auto;
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-card);
    padding: 4px 16px;
    border-radius: 100px;
    border: 1px solid var(--border);
}

.mockup-body {
    padding: 32px;
}

.mockup-title {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 500;
}

.mockup-result {
    text-align: center;
    padding: 24px;
    background: var(--primary-bg);
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.result-big {
    font-size: 48px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 8px;
}

.mockup-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 24px;
}

.stat {
    text-align: center;
    padding: 12px 8px;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
}

.stat-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.mockup-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.item-row {
    display: grid;
    grid-template-columns: 32px 1fr 50px;
    gap: 12px;
    align-items: center;
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}

.item-bar {
    height: 6px;
    background: var(--bg-alt);
    border-radius: 100px;
    overflow: hidden;
}

.item-bar > div {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 100px;
}

.item-bar.item-warn > div {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}

/* Interpretation */
.interp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.interp-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    border: 1px solid var(--border-light);
    border-top: 4px solid;
    transition: transform 0.3s var(--transition);
}

.interp-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.interp-excellent { border-top-color: var(--primary-dark); }
.interp-good { border-top-color: var(--primary); }
.interp-acceptable { border-top-color: var(--primary-light); }
.interp-poor { border-top-color: var(--text-muted); }

.interp-value {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.interp-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.interp-desc {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== Pricing ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 880px;
    margin: 0 auto;
    align-items: stretch;
}

.btn-fastwork {
    background: var(--gradient-deep);
    color: white;
    box-shadow: 0 12px 28px rgba(15, 15, 41, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-fastwork:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(15, 15, 41, 0.45);
    color: white;
}

.btn-fastwork svg { color: var(--primary-light); }

.btn-line {
    background: #06c755;
    color: white;
    box-shadow: 0 12px 28px rgba(6, 199, 85, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-line:hover {
    background: #05b34d;
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(6, 199, 85, 0.42);
    color: white;
}

.btn-line svg { color: white; }

/* Fastwork channel icon also matches */
.channel-fastwork svg { color: var(--primary-light); }

.price-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    border: 2px solid var(--border-light);
    transition: all 0.3s var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.price-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.price-featured {
    border-color: var(--primary);
    background: var(--bg-card);
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
    position: relative;
}

.price-featured:hover {
    transform: scale(1.03) translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.price-popular {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-color);
    text-transform: uppercase;
    white-space: nowrap;
}

.price-popular svg {
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: -2px;
    margin-right: 4px;
}

.price-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.price-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    min-height: 36px;
    line-height: 1.5;
}

.price-delivery {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--primary-bg);
    color: var(--primary-dark);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
}

[data-theme="dark"] .price-delivery {
    color: var(--primary-light);
}

.price-delivery svg {
    width: 14px;
    height: 14px;
}

.price-tiers {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.price-tier {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border-light);
}

.price-tier:last-child { border-bottom: none; }

.price-featured .price-tier {
    background: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .price-featured .price-tier {
    background: rgba(20, 39, 90, 0.5);
}

.tier-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.tier-rate {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

[data-theme="dark"] .tier-rate {
    color: var(--primary-light);
}

.tier-unit {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 2px;
}

.price-features {
    margin-bottom: 32px;
    flex: 1;
}

.price-features li {
    padding: 10px 0;
    font-size: 14px;
    color: var(--text);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.price-features li svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.price-features li.feature-highlight {
    color: var(--primary-dark);
    font-weight: 600;
}

[data-theme="dark"] .price-features li.feature-highlight {
    color: var(--primary-light);
}

.pricing-note {
    text-align: center;
    margin-top: 40px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-callout {
    background: var(--primary-bg);
    border: 1px solid var(--border-strong);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 32px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pricing-callout svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
    flex-shrink: 0;
}

.pricing-callout-text {
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
}

.pricing-callout-text strong {
    color: var(--primary-dark);
}

[data-theme="dark"] .pricing-callout-text strong {
    color: var(--primary-light);
}

/* ===== Use Case Cards ===== */
.usecase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.usecase-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    border: 1px solid var(--border-light);
    transition: all 0.3s var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.usecase-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}

.usecase-featured {
    border-color: var(--primary);
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--primary-bg) 100%);
}

.usecase-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: var(--shadow-color);
}

.usecase-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
    letter-spacing: -0.01em;
}

.usecase-desc {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 20px;
}

.usecase-list {
    margin-bottom: 24px;
    flex: 1;
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
}

.usecase-list li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--text);
    position: relative;
    padding-left: 22px;
}

.usecase-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

.usecase-cta {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: gap 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.usecase-cta:hover {
    color: var(--primary-dark);
    gap: 8px;
}

/* ===== Mini Review (subtle pull quote) ===== */
.mini-review-section {
    padding: 56px 20px;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    background: var(--bg);
}

.mini-review {
    text-align: center;
    max-width: 580px;
    margin: 0 auto;
}

.mini-review-stars {
    color: #f59e0b;
    font-size: 14px;
    letter-spacing: 4px;
    margin-bottom: 14px;
}

.mini-review-quote {
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.5;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: -0.005em;
}

.mini-review-source {
    display: inline-block;
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.mini-review-source:hover {
    color: var(--primary);
}

/* ===== FAQ ===== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all 0.3s var(--transition);
}

.faq-item[open] {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    padding: 20px 24px;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.2s;
    color: var(--text);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    color: var(--primary);
}

.faq-icon {
    transition: transform 0.3s var(--transition);
    color: var(--text-muted);
    flex-shrink: 0;
}

.faq-item[open] .faq-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    padding: 0 24px 20px;
    color: var(--text-light);
    line-height: 1.75;
    font-size: 15px;
}

.faq-answer ul {
    list-style: disc;
    padding-left: 24px;
    margin-top: 8px;
}

.faq-answer ul li {
    padding: 4px 0;
}

.faq-answer strong {
    color: var(--text);
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 80px 0;
    background: var(--bg);
}

.cta-card {
    background: var(--bg-dark-section);
    border-radius: var(--radius-xl);
    padding: 60px;
    display: block;
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.cta-content {
    text-align: center;
}

.cta-content .badge {
    margin-left: auto;
    margin-right: auto;
}

.cta-sub {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(at 20% 0%, rgba(59, 130, 246, 0.45) 0%, transparent 50%),
        radial-gradient(at 80% 100%, rgba(96, 165, 250, 0.30) 0%, transparent 50%);
    z-index: 0;
}

.cta-content, .cta-form {
    position: relative;
    z-index: 1;
}

.badge-light {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.badge-light .badge-dot {
    background: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.2);
}

.cta-title {
    color: white;
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    line-height: 1.2;
    margin: 24px 0 16px;
    letter-spacing: -0.02em;
}

/* Brand-colored words inside CTA */
.brand-line {
    color: #06c755;
}

.brand-fastwork {
    color: #60a5fa;
}

.cta-sub {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 32px;
}

/* LINE QR Card */
.line-qr-card {
    display: flex;
    align-items: stretch;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(6, 199, 85, 0.18) 0%, rgba(6, 199, 85, 0.08) 100%);
    border: 1.5px solid rgba(6, 199, 85, 0.4);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.line-qr-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(6, 199, 85, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.qr-image {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    background: white;
    border-radius: var(--radius);
    padding: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    position: relative;
    transition: transform 0.3s var(--transition);
    overflow: hidden;
}

.qr-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.qr-image:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 32px rgba(6, 199, 85, 0.3);
}

.qr-zoom-hint {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.qr-image:hover .qr-zoom-hint {
    opacity: 1;
}

.qr-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.qr-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(6, 199, 85, 0.25);
    color: #06c755;
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    width: fit-content;
}

.qr-tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #06c755;
    animation: pulse-line-dot 2s infinite;
}

@keyframes pulse-line-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(6, 199, 85, 0.6); }
    50% { box-shadow: 0 0 0 6px rgba(6, 199, 85, 0); }
}

.qr-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qr-title {
    color: white;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin: 0;
    font-variant-numeric: tabular-nums;
}

.qr-desc {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.qr-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #06c755;
    color: white;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    width: fit-content;
    margin-top: 4px;
    transition: all 0.2s var(--transition);
    box-shadow: 0 8px 20px rgba(6, 199, 85, 0.4);
}

.qr-btn:hover {
    background: #05b34d;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(6, 199, 85, 0.5);
    color: white;
}

.cta-channels {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.channel {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: white;
    transition: all 0.3s var(--transition);
}

.channel:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
    border-color: rgba(255, 255, 255, 0.2);
}

.channel-line svg { color: #06c755; }
.channel-fb svg { color: #0084ff; }
.channel-email svg { color: #93c5fd; }
/* channel-fastwork color set above with primary-light */

.channel-primary {
    background: rgba(6, 199, 85, 0.15);
    border-color: rgba(6, 199, 85, 0.35);
    padding: 18px 22px;
}

.channel-primary:hover {
    background: rgba(6, 199, 85, 0.22);
    border-color: rgba(6, 199, 85, 0.5);
}

.channel-content {
    flex: 1;
    min-width: 0;
}

.channel-tag {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.18);
    color: white;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: 2px;
}

.channel-name {
    font-weight: 600;
    font-size: 15px;
    color: white;
}

.channel-id {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 2px;
}

.cta-form {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-xl);
}

.cta-form h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
    color: var(--text);
}

.form-group {
    margin-bottom: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-note {
    text-align: center;
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-alt);
    padding: 60px 0 24px;
    border-top: 1px solid var(--border-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-light);
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.7;
    max-width: 320px;
}

.footer h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer ul li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-light);
}

.footer ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a:hover {
    color: var(--primary);
}

/* ===== Floating LINE ===== */
.float-line {
    position: fixed;
    bottom: calc(24px + env(safe-area-inset-bottom));
    right: calc(24px + env(safe-area-inset-right));
    width: 56px;
    height: 56px;
    background: #06c755;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(6, 199, 85, 0.4);
    z-index: 50;
    transition: all 0.3s var(--transition);
    animation: pulse-line 2s infinite;
}

.float-line:hover {
    transform: scale(1.1);
}

@keyframes pulse-line {
    0%, 100% { box-shadow: 0 8px 24px rgba(6, 199, 85, 0.4), 0 0 0 0 rgba(6, 199, 85, 0.5); }
    50% { box-shadow: 0 8px 24px rgba(6, 199, 85, 0.4), 0 0 0 16px rgba(6, 199, 85, 0); }
}

/* ===== Reveal Animation ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-visual {
        height: 400px;
        max-width: 380px;
        margin: 0 auto;
    }

    .calc-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .calc-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .price-featured {
        transform: none;
    }

    .price-featured:hover {
        transform: translateY(-4px);
    }

    .usecase-grid {
        grid-template-columns: 1fr;
    }

    .cta-card {
        grid-template-columns: 1fr;
        padding: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .nav-links,
    .nav-cta {
        display: none;
    }

    .nav-tools {
        margin-left: auto;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .section {
        padding: 64px 0;
    }

    .section-head {
        margin-bottom: 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 32px 24px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .calc-features {
        grid-template-columns: 1fr;
    }

    .calc-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .calc-app-body {
        padding: 24px 20px;
    }

    .calc-app-header {
        padding: 20px;
        flex-wrap: wrap;
    }

    .calc-actions .btn {
        flex: 1 1 auto;
        font-size: 13px;
        padding: 10px 16px;
    }

    .interp-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-card {
        padding: 32px 24px;
    }

    .line-qr-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        padding: 24px 20px;
    }

    .qr-image {
        width: 180px;
        height: 180px;
    }

    .qr-info {
        align-items: center;
    }

    .qr-tag,
    .qr-btn,
    .qr-title-row {
        margin-left: auto;
        margin-right: auto;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .hero-trust {
        flex-wrap: wrap;
        gap: 16px;
    }

    .trust-divider {
        display: none;
    }

    .float-card.card-mini {
        display: none;
    }
}

/* ===== Small mobile (≤ 600px) — make hero buttons stack early ===== */
@media (max-width: 600px) {
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
    }
}

/* ===== Standard mobile (≤ 480px) ===== */
@media (max-width: 480px) {
    /* Container — tighter padding */
    .container {
        padding: 0 16px;
    }

    /* Sections — reduce vertical rhythm */
    .section {
        padding: 56px 0;
    }

    .section-head {
        margin-bottom: 32px;
    }

    .section-title {
        font-size: clamp(24px, 6.5vw, 34px);
    }

    .section-sub {
        font-size: 15px;
    }

    /* Hero */
    .hero {
        padding: 110px 0 50px;
    }

    .hero-title {
        font-size: clamp(28px, 8vw, 42px);
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .hero-trust {
        gap: 14px;
    }

    .trust-item strong {
        font-size: 22px;
    }

    .trust-item span {
        font-size: 12px;
    }

    .hero-visual {
        height: 340px;
        max-width: 320px;
    }

    .card-result {
        width: 270px;
        padding: 20px;
    }

    .result-value {
        font-size: 44px;
    }

    .card-survey {
        width: 230px;
        top: 230px;
    }

    /* Trust strip */
    .trust-strip {
        padding: 20px 0;
    }

    .trust-grid {
        gap: 14px;
    }

    .trust-text strong {
        font-size: 13px;
    }

    .trust-text span {
        font-size: 11px;
    }

    /* Service cards */
    .service-card {
        padding: 28px 20px;
    }

    .service-title {
        font-size: 22px;
    }

    .service-icon {
        width: 56px;
        height: 56px;
    }

    /* Steps */
    .step-number {
        font-size: 40px;
    }

    /* Calculator */
    .calc-app-header {
        padding: 16px;
    }

    .calc-app-title {
        font-size: 17px;
    }

    .calc-app-body {
        padding: 20px 16px;
    }

    .calc-textarea {
        font-size: 12px;
        padding: 12px;
        min-height: 140px;
    }

    .calc-alpha-card {
        padding: 24px 16px;
    }

    .alpha-value {
        font-size: clamp(40px, 12vw, 60px);
    }

    .alpha-tag {
        font-size: 13px;
        padding: 5px 14px;
    }

    .calc-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .cstat {
        padding: 12px 8px;
    }

    .cstat-value {
        font-size: 18px;
    }

    .calc-items-block {
        padding: 18px 14px;
    }

    .items-table {
        font-size: 12px;
    }

    .items-table th,
    .items-table td {
        padding: 8px 10px;
    }

    .calc-actions {
        gap: 8px;
    }

    .calc-actions .btn {
        font-size: 12px;
        padding: 10px 12px;
    }

    /* Mockup */
    .mockup-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Interpretation cards */
    .interp-grid {
        grid-template-columns: 1fr;
    }

    /* Pricing */
    .price-card {
        padding: 28px 20px;
    }

    .price-name {
        font-size: 17px;
    }

    .price-tier {
        padding: 12px 14px;
    }

    .tier-rate {
        font-size: 20px;
    }

    .pricing-callout {
        padding: 14px 16px;
        gap: 10px;
    }

    .pricing-callout-text {
        font-size: 13px;
    }

    /* Use cases */
    .usecase-card {
        padding: 28px 22px;
    }

    .usecase-title {
        font-size: 18px;
    }

    /* Mini review */
    .mini-review-section {
        padding: 40px 16px;
    }

    .mini-review-quote {
        font-size: 17px;
    }

    /* FAQ */
    .faq-item summary {
        padding: 16px 18px;
        font-size: 14px;
    }

    .faq-answer {
        padding: 0 18px 16px;
        font-size: 14px;
    }

    /* CTA */
    .cta-card {
        padding: 28px 20px;
    }

    .cta-title {
        font-size: clamp(22px, 6.5vw, 32px);
    }

    .cta-sub {
        font-size: 14px;
    }

    .channel {
        padding: 12px 16px;
        gap: 12px;
    }

    .channel-name {
        font-size: 14px;
    }

    .channel-id {
        font-size: 12px;
    }

    .qr-image {
        width: 160px;
        height: 160px;
    }

    .qr-title {
        font-size: 20px;
    }

    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-grid {
        gap: 24px;
    }

    .footer h4 {
        font-size: 13px;
    }

    .footer ul li {
        font-size: 13px;
        padding: 4px 0;
    }

    /* Floating LINE button */
    .float-line {
        width: 50px;
        height: 50px;
        bottom: 16px;
        right: 16px;
    }

    /* Logo on tiny screens */
    .logo-text {
        font-size: 16px;
    }

    .logo-svg {
        width: 36px;
        height: 36px;
    }

    /* Nav tools */
    .nav-tools {
        gap: 6px;
    }

    .tool-btn {
        width: 36px;
        height: 36px;
    }

    .lang-btn {
        padding: 0 10px;
        font-size: 12px;
    }

    /* Smaller badge */
    .badge {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* ===== Extra-small mobile (≤ 360px — iPhone SE old) ===== */
@media (max-width: 360px) {
    .container {
        padding: 0 14px;
    }

    .section-title {
        font-size: clamp(22px, 7vw, 28px);
    }

    .hero-title {
        font-size: clamp(26px, 9vw, 36px);
    }

    .hero-trust {
        flex-direction: column;
        align-items: flex-start;
    }

    .trust-divider {
        display: none;
    }

    .price-num {
        font-size: 44px;
    }

    .alpha-value {
        font-size: 40px;
    }

    .channel {
        padding: 10px 14px;
        gap: 10px;
    }
}

/* ===== Touch targets — ensure 44x44px minimum on touch devices ===== */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .tool-btn,
    .channel,
    .nav-links a,
    .qr-btn,
    .review-verify,
    .usecase-cta {
        min-height: 44px;
    }

    .item-checkbox {
        width: 22px;
        height: 22px;
    }
}

/* ===== Landscape mobile (short height) ===== */
@media (max-height: 480px) and (orientation: landscape) {
    .hero {
        padding: 90px 0 40px;
    }

    .hero-visual {
        height: 280px;
    }

    .float-line {
        bottom: 12px;
        right: 12px;
    }
}

/* ===== Large desktop (≥ 1440px) — keep things readable ===== */
@media (min-width: 1440px) {
    .container {
        max-width: 1280px;
    }
}

/* ===== Print styles ===== */
@media print {
    .navbar,
    .float-line,
    .nav-tools,
    .mobile-toggle {
        display: none;
    }

    .hero,
    .section {
        padding: 24px 0;
        page-break-inside: avoid;
    }

    .blob,
    .grid-overlay {
        display: none;
    }
}
