:root {
    --green-950: #1e1b4b;
    --green-900: #3730a3;
    --green-800: #4f46e5;
    --green-700: #6366f1;
    --green-400: #a594f9;
    --green-300: #c4b5fd;
    --green-200: #ddd6fe;
    --green-100: #ede9fe;
    --green-50: #f8f8ff;
    --brand-rgb: 79, 70, 229;
    --brand-accent-rgb: 165, 148, 249;
    --ink: #0c1222;
    --ink-soft: #1e293b;
    --muted: #64748b;
    --line: rgba(15, 23, 42, 0.08);
    --radius: 20px;
    --radius-sm: 12px;
    --shadow: 0 24px 80px -20px rgba(var(--brand-rgb), 0.22);
    --font: 'Inter Tight', system-ui, -apple-system, sans-serif;
    --display: 'Geist', 'Inter Tight', system-ui, sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
    font-family: var(--font);
    color: var(--ink);
    background: #f8f8ff;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
    max-width: 100%;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
.page-main { padding-top: 5.5rem; overflow-x: clip; }
.wrap { width: min(1240px, 100% - 2.5rem); margin-inline: auto; }

.ambient {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 10% -10%, rgba(var(--brand-accent-rgb), 0.22), transparent 50%),
        radial-gradient(ellipse 60% 40% at 90% 10%, rgba(var(--brand-rgb), 0.14), transparent 45%),
        #f8f8ff;
}

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.9rem 1.6rem; border-radius: 999px; font-weight: 600; font-size: 0.92rem;
    border: none; cursor: pointer; transition: transform 0.2s var(--ease), box-shadow 0.2s;
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(180deg, var(--green-400) 0%, var(--green-800) 52%, var(--green-950) 100%);
    color: #fff; box-shadow: 0 8px 32px rgba(var(--brand-rgb), 0.35);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost {
    background: rgba(255,255,255,0.8); color: var(--ink);
    border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--green-800); color: var(--green-900); }

.shopify-icon {
    width: 1.25em; height: 1.25em; flex-shrink: 0; display: block; object-fit: contain;
}
.shopify-icon--sm {
    width: 12px; height: 12px; display: inline-block; vertical-align: -2px;
}

.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    padding: 1rem 0; transition: padding 0.3s, background 0.3s, box-shadow 0.3s;
}
.header.scrolled {
    padding: 0.65rem 0;
    background: rgba(248, 248, 255, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-width: 0; }
.brand { display: flex; align-items: center; gap: 0.65rem; font-size: 1rem; min-width: 0; flex-shrink: 1; }
.brand-mark {
    width: 36px; height: 36px; border-radius: 10px; overflow: hidden;
    background: var(--green-50); border: 1px solid var(--line);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-name { font-weight: 700; }
.brand-name span { color: var(--green-800); font-weight: 600; }
.nav-links { display: flex; gap: 1.25rem; align-items: center; }
.nav-links a { font-size: 0.88rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--green-900); }
.nav-dropdown { position: relative; }
.nav-dropdown-btn {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-size: 0.88rem; font-weight: 600; color: var(--muted);
    background: none; border: none; cursor: pointer; padding: 0;
    font-family: inherit; white-space: nowrap;
}
.nav-dropdown-btn:hover, .nav-dropdown.open .nav-dropdown-btn { color: var(--green-900); }
.nav-chevron {
    width: 0.4rem; height: 0.4rem;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-1px); transition: transform 0.2s;
}
.nav-dropdown.open .nav-chevron { transform: rotate(-135deg) translateY(1px); }
.nav-dropdown-menu {
    position: absolute; top: calc(100% + 0.65rem); left: 50%;
    transform: translateX(-50%) translateY(4px);
    min-width: 10.5rem; background: #fff; border: 1px solid var(--line);
    border-radius: 12px; box-shadow: 0 12px 40px rgba(15,23,42,0.12);
    padding: 0.35rem; opacity: 0; visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s; z-index: 210;
}
.nav-dropdown-menu a {
    display: block; padding: 0.5rem 0.7rem; border-radius: 8px;
    font-size: 0.86rem; font-weight: 500; color: var(--ink-soft);
}
.nav-dropdown-menu a:hover { background: var(--green-50); color: var(--green-900); }
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-actions { display: flex; align-items: center; gap: 0.65rem; flex-shrink: 0; }
.menu-btn {
    display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px;
}
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
.mobile-drawer {
    display: none; position: fixed; inset: 0; top: 64px; z-index: 190;
    background: #f8f8ff; padding: 1.5rem; flex-direction: column; gap: 0.5rem;
}
.mobile-drawer.open { display: flex; }
.mobile-drawer a { font-size: 1.05rem; font-weight: 600; padding: 0.65rem 0; border-bottom: 1px solid var(--line); }
.mobile-drawer .btn {
    width: 100%; justify-content: center; margin-top: 0.5rem;
    white-space: normal; text-align: center;
}
.drawer-label {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--muted); margin-top: 0.35rem; padding-top: 0.75rem;
}
.drawer-sub { font-size: 0.98rem !important; font-weight: 500 !important; padding-left: 0.5rem !important; }

.page-hero {
    padding: 3rem 0 2.5rem;
    text-align: center;
}
.page-hero .pill {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.35rem 0.85rem; border-radius: 999px;
    background: var(--green-50); border: 1px solid rgba(var(--brand-rgb), 0.14);
    font-size: 0.75rem; font-weight: 700; color: var(--green-800);
    text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 1rem;
    max-width: 100%; flex-wrap: wrap; white-space: normal; line-height: 1.4;
}
.page-hero h1 {
    font-family: var(--display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800; letter-spacing: -0.03em; line-height: 1.08;
    max-width: 820px; margin: 0 auto 1rem;
    overflow-wrap: anywhere;
}
.page-hero .lead {
    font-size: 1.05rem; color: var(--muted); max-width: 680px; margin: 0 auto 1.5rem;
}
.page-hero .btns { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

.section { padding: 3.5rem 0; }
.section-white { background: #fff; }
.section-green { background: var(--green-50); }
.section-head { margin-bottom: 2rem; }
.section-head.center { text-align: center; }
.section-label {
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--green-800); margin-bottom: 0.5rem;
}
.section-title {
    font-family: var(--display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800; letter-spacing: -0.02em; line-height: 1.15;
}
.section-desc { color: var(--muted); margin-top: 0.65rem; max-width: 640px; }
.section-head.center .section-desc { margin-inline: auto; }

.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
    gap: 1rem;
}
.hub-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 1.25rem 1.35rem; transition: transform 0.2s var(--ease), box-shadow 0.2s;
    min-width: 0;
}
.hub-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: rgba(var(--brand-rgb), 0.18); }
.hub-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.35rem; }
.hub-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.55; }
.hub-card .arrow { margin-top: 0.75rem; font-size: 0.82rem; font-weight: 600; color: var(--green-800); }

.compare-table-wrap {
    overflow-x: auto;
    margin: 2rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.compare-scroll-hint {
    display: none;
    font-size: 0.72rem;
    color: var(--muted);
    text-align: center;
    padding-top: 0.65rem;
    margin: 0;
}
.compare-table {
    width: 100%; border-collapse: collapse; min-width: 560px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
    overflow: hidden;
}
.compare-table th, .compare-table td {
    padding: 0.95rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line);
    font-size: 0.9rem; vertical-align: top; word-break: break-word;
}
.compare-table th { background: var(--green-50); font-weight: 700; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .yes { color: var(--green-800); font-weight: 600; }
.compare-table .no { color: var(--muted); }
.compare-table .partial { color: var(--ink-soft); }

.two-col {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
.prose { max-width: 720px; }
.prose p { color: var(--ink-soft); margin-bottom: 1rem; line-height: 1.65; }
.prose h2 { font-size: 1.35rem; font-weight: 800; margin: 2rem 0 0.75rem; letter-spacing: -0.02em; }
.prose h3 { font-size: 1.05rem; font-weight: 700; margin: 1.5rem 0 0.5rem; color: var(--ink); }
.prose ul { margin: 0 0 1rem 1.25rem; color: var(--ink-soft); }
.prose ol { margin: 0 0 1rem 1.25rem; color: var(--ink-soft); padding-left: 1.25rem; }
.prose li { margin-bottom: 0.45rem; }
.prose a { color: var(--green-800); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--ink); }
.prose blockquote {
  margin: 1.25rem 0; padding: 1rem 1.15rem;
  border-left: 3px solid var(--green-700);
  background: var(--green-50); border-radius: 0 10px 10px 0;
  font-size: 0.92rem; color: var(--ink-soft);
}
.prose blockquote strong { color: var(--green-900); }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2rem 0; }

.breadcrumb {
    font-size: 0.82rem; color: var(--muted); margin-bottom: 1rem;
    overflow-wrap: anywhere;
}
.breadcrumb a { color: var(--green-800); font-weight: 600; }

.problem-bullets {
    list-style: none; margin: 0; padding: 0;
    display: grid; gap: 0.75rem;
}
.problem-bullets li {
    display: flex; align-items: flex-start; gap: 0.65rem;
    font-size: 0.95rem; color: var(--ink-soft); line-height: 1.55;
}
.problem-bullets li::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%;
    background: var(--green-700); margin-top: 0.45rem; flex-shrink: 0;
}

.diff-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.diff-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.5rem 1.35rem;
}
.diff-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.45rem; }
.diff-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

.blog-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 1.25rem;
}
.blog-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; transition: transform 0.2s var(--ease); min-width: 0;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.blog-card-body { padding: 1.35rem; }
.blog-card .tag { font-size: 0.72rem; font-weight: 700; color: var(--green-800); text-transform: uppercase; letter-spacing: 0.05em; }
.blog-card h2 { font-size: 1.05rem; font-weight: 700; margin: 0.5rem 0; line-height: 1.35; overflow-wrap: anywhere; }
.blog-card h3 { font-size: 1.05rem; font-weight: 700; margin: 0.5rem 0; line-height: 1.35; }
.blog-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.55; }
.blog-card .meta { font-size: 0.78rem; color: var(--muted); margin-top: 0.85rem; }

.disclaimer {
    font-size: 0.78rem; color: var(--muted); line-height: 1.55;
    padding: 1rem 1.15rem; background: #fff; border: 1px dashed var(--line);
    border-radius: var(--radius-sm);
}

.article-tldr {
    max-width: 720px; margin: 0 auto 1.75rem;
    padding: 1.15rem 1.25rem; border-radius: 14px;
    background: linear-gradient(135deg, var(--green-50), #fff);
    border: 1px solid rgba(var(--brand-rgb), 0.14);
}
.article-tldr-label {
    font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--green-800); margin-bottom: 0.45rem;
}
.blog-article .meta time { font-size: 0.85rem; color: var(--muted); }

.cta-final {
    background: linear-gradient(160deg, var(--green-950), var(--green-900));
    color: #fff; border-radius: var(--radius); padding: 3rem 2rem; text-align: center;
}
.cta-final h2 { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 0.75rem; }
.cta-final p { color: rgba(248, 248, 255, 0.88); max-width: 520px; margin: 0 auto 1.5rem; }
.cta-final .btns { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.cta-final .btn-ghost {
    background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.28);
}
.cta-final .btn-ghost:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.45); color: #fff; }

footer {
    padding: 3rem 0 2rem; border-top: 1px solid var(--line); background: #fff;
}
.footer-top {
    display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 2rem; margin-bottom: 2rem;
}
.footer-brand p { color: var(--muted); font-size: 0.88rem; margin-top: 0.5rem; max-width: 18rem; line-height: 1.55; }
.footer-col h4 {
    font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--ink-soft); margin-bottom: 0.85rem;
}
.footer-col a { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.5rem; font-weight: 500; }
.footer-col a:hover { color: var(--green-900); }
.footer-copy { text-align: center; font-size: 0.8rem; color: var(--muted); padding-top: 2rem; border-top: 1px solid var(--line); }

.nav-links a.lang-switch {
    padding: 0.25rem 0.6rem; border-radius: 999px;
    border: 1px solid var(--line); font-size: 0.78rem;
}
.roi-form { max-width: 720px; margin: 0 auto; }
.roi-grid {
    display: grid; gap: 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    margin-bottom: 1.5rem;
}
.roi-grid label {
    display: flex; flex-direction: column; gap: 0.45rem;
    font-size: 0.88rem; font-weight: 600; color: var(--ink-soft);
}
.roi-grid input[type="number"] {
    padding: 0.65rem 0.85rem; border-radius: 10px;
    border: 1px solid var(--line); font: inherit;
}
.roi-grid input[type="range"] { width: 100%; accent-color: var(--green-800); }
.roi-results {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem; margin-bottom: 1rem;
}
.roi-result {
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 1rem; text-align: center;
}
.roi-result span { display: block; font-size: 0.75rem; color: var(--muted); margin-bottom: 0.35rem; }
.roi-result strong { font-size: 1.05rem; color: var(--green-900); }

@media (max-width: 960px) {
    .nav-links { display: none; }
    .menu-btn { display: flex; }
    .brand-name span { display: none; }
    .nav-actions .btn-primary { display: none; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .two-col, .diff-grid { grid-template-columns: 1fr; }
    .page-hero .btns .btn { white-space: normal; }
    .compare-scroll-hint { display: block; }
    .mobile-drawer {
        overflow-y: auto;
        max-height: calc(100dvh - 64px);
        padding-bottom: max(2rem, env(safe-area-inset-bottom));
        -webkit-overflow-scrolling: touch;
    }
    .btn { white-space: normal; }
}
@media (max-width: 640px) {
    .wrap { width: min(1240px, 100% - 1.5rem); }
    .footer-top { grid-template-columns: 1fr; }
    .brand-name { max-width: 11rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .page-main { padding-top: 4.75rem; }
    .page-hero { padding: 2.25rem 0 2rem; }
    .page-hero h1 { font-size: clamp(1.65rem, 7vw, 2.25rem); }
    .page-hero .lead { font-size: 0.98rem; }
    .page-hero .btns {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 360px;
        margin-inline: auto;
    }
    .page-hero .btns .btn { width: 100%; justify-content: center; }
    .section { padding: 2.5rem 0; }
    .section-title { font-size: clamp(1.35rem, 5.5vw, 1.75rem); }
    .hub-grid, .blog-grid { grid-template-columns: 1fr; }
    .compare-scroll-hint { display: block; }
    .compare-table { min-width: 480px; }
    .compare-table th, .compare-table td { padding: 0.65rem 0.75rem; font-size: 0.84rem; word-break: break-word; }
    .compare-table th { font-size: 0.8rem; }
    .two-col, .diff-grid { gap: 1rem; }
    .diff-card, .hub-card { min-width: 0; }
    .article-tldr, .article-tldr p { overflow-wrap: anywhere; }
    .cta-final { padding: 2.25rem 1.25rem; }
    .cta-final .btns { flex-direction: column; align-items: stretch; }
    .cta-final .btns .btn { width: 100%; white-space: normal; justify-content: center; }
    .breadcrumb { font-size: 0.78rem; line-height: 1.45; }
    .prose, .prose p, .prose li { overflow-wrap: anywhere; }
    .footer-top { grid-template-columns: 1fr; }
    .roi-grid { grid-template-columns: 1fr; }
    .roi-results { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .footer-top { grid-template-columns: 1fr; }
    .roi-results { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
    .wrap { width: min(1240px, 100% - 1.25rem); }
    .page-hero .btns { max-width: none; }
}

body.drawer-open { overflow: hidden; }
