/* ═══════════════════════════════════════════════════════════════════
   ShipKnot Landing Page - v4  (matching reference design)
   Font: Outfit
   Layout: Hero-style 50/50 grid. Panel replaces the right visual.
   ═══════════════════════════════════════════════════════════════════ */

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #dbeafe;
    --primary-mid: #93c5fd;
    --accent: #e74c3c;
    --success: #16a34a;
    --bg: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 50%, #bae6fd 100%);
    --card: #ffffff;
    --text: #1e293b;
    --muted: #475569;
    --light-muted: #64748b;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,.1);
    --shadow-lg: 0 25px 50px -12px rgba(0,0,0,.25);
    --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
}

/* ─── Container ──────────────────────────────────────────────────── */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ─── Navigation ──────────────────────────────────────────────────── */
.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    max-width: 1280px;
    margin: 0 auto;
}
.nav-logo {
    display: flex; align-items: center; gap: 10px;
    font-size: 1.25rem; font-weight: 700; color: var(--text);
    cursor: pointer;
}
.logo-icon {
    width: 34px; height: 34px;
    background: var(--primary); color: white;
    border-radius: 8px;
    display: grid; place-items: center;
    font-size: .85rem;
}
.nav-links { display: flex; gap: 32px; }
.nav-link {
    color: var(--muted); text-decoration: none;
    font-weight: 500; font-size: .95rem;
    transition: color .2s;
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-cta {
    background: #0f172a; color: white;
    text-decoration: none;
    padding: 10px 20px; border-radius: 9999px;
    font-weight: 600; font-size: .875rem;
    display: flex; align-items: center; gap: 8px;
    box-shadow: var(--shadow-md);
    transition: background .2s;
}
.nav-cta:hover { background: var(--text); }

/* ═══════════════════════════════════════════════════════════════════
   HERO LAYOUT
   Default: 1fr 1fr (text + decorative visual)
   Panel active: 1fr 380px (text + live extension pushed far-right)
   ═══════════════════════════════════════════════════════════════════ */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    height: calc(100vh - 80px);
    overflow: hidden;
    padding: 24px 32px 32px;
    max-width: 1400px;
    margin: 0 auto;
}

/* When panel is active: give text MORE space, panel pushed to far right */
.hero.panel-active {
    grid-template-columns: 1fr 380px;
    gap: 24px;
    padding-right: 12px;
}

/* Decorative visual (shown when panel is closed) */
.hero-visual-placeholder {
    position: relative;
    height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero.panel-active .hero-visual-placeholder {
    display: none;
}

/* Live extension panel column (shown when panel is open) */
.hero-panel-col {
    display: none;
    position: relative;
    height: 100%;
    align-items: flex-start;
    justify-content: flex-end;
}
.hero.panel-active .hero-panel-col {
    display: flex;
}

/* ─── SPA Views ──────────────────────────────────────────────────── */
.spa-view { display: none; }
.spa-view.active { display: block; }

#view-home .hero-copy { display: flex; flex-direction: column; }

/* Pricing & Privacy are full-width scrollable pages */
.page-view {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 32px 80px;
    min-height: calc(100vh - 80px);
}
.page-view.active { display: block; }

/* ─── Step Pills ─────────────────────────────────────────────────── */
.step-pills {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 16px;
}
.pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: .78rem; font-weight: 700;
    color: var(--muted);
    background: white;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all .35s;
    white-space: nowrap;
}
.pill.active {
    color: var(--primary);
    background: var(--primary-light);
    border-color: var(--primary-mid);
}
.pill i { font-size: .75rem; }
.pill-line {
    width: 24px; height: 2px;
    background: var(--border);
    border-radius: 1px;
    position: relative; overflow: hidden; flex-shrink: 0;
}
.pill-line-fill {
    position: absolute; top: 0; left: 0;
    height: 100%; width: 0%;
    background: var(--primary);
    transition: width .5s ease;
}

/* ─── Guide Content ──────────────────────────────────────────────── */
.guide-content { }
.guide-state { display: none; }
.guide-state.active {
    display: flex; flex-direction: column;
    animation: fadeUp .4s cubic-bezier(.22,1,.36,1);
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Typography ─────────────────────────────────────────────────── */
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 5px 14px;
    border-radius: 9999px;
    font-size: .75rem; font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 12px;
    width: fit-content;
}
.eyebrow.step   { background: var(--primary-light); color: var(--primary); }
.eyebrow.step2  { background: #dcfce7; color: var(--success); }
.eyebrow.syncing { background: #fef3c7; color: #92400e; }
.eyebrow.done   { background: #dcfce7; color: var(--success); }

.hero-heading {
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -.02em;
}
.grad {
    background: linear-gradient(to right, #2563eb, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 20px;
    max-width: 520px;
}

/* ─── Pill Features ──────────────────────────────────────────────── */
.pill-features {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin-bottom: 24px;
    max-width: 600px;
}
.pill-features span {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px;
    background: white; border: 1px solid var(--border-light);
    border-radius: 9999px;
    font-size: .875rem; font-weight: 600; color: var(--text);
    box-shadow: var(--shadow-sm);
}
.pill-features span i { color: var(--primary); }

.pro-tag {
    font-style: normal; font-size: .58rem; font-weight: 800;
    background: linear-gradient(90deg, #f59e0b, #ef4444);
    color: white; padding: 1px 6px; border-radius: 3px;
    vertical-align: middle; margin-left: 2px;
}

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 32px;
    background: var(--primary); color: white;
    border: none; border-radius: 9999px;
    font-size: 1rem; font-weight: 700;
    cursor: pointer; font-family: inherit;
    box-shadow: 0 10px 15px -3px rgba(37,99,235,.3);
    transition: all .2s; text-decoration: none;
    width: fit-content;
}
.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}
.btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 24px;
    background: white; color: var(--text);
    border: 1px solid var(--border);
    border-radius: 9999px;
    font-size: .9rem; font-weight: 600;
    cursor: pointer; font-family: inherit;
    transition: all .2s;
    box-shadow: var(--shadow-sm);
}
.btn-outline:hover { border-color: var(--primary-mid); color: var(--primary); }
.done-actions { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }

/* ─── Trust Row ──────────────────────────────────────────────────── */
.trust-row {
    display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
    font-size: .875rem; font-weight: 500; color: var(--light-muted);
}
.trust-row span { display: flex; align-items: center; gap: 5px; }

/* ─── Hint Tag ───────────────────────────────────────────────────── */
.hint-tag {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 16px;
    background: var(--primary-light);
    border: 1.5px solid var(--primary-mid);
    border-radius: 10px;
    font-weight: 700; font-size: .85rem;
    color: var(--primary);
    margin-bottom: 16px;
    width: fit-content;
}
.hint-tag.accent {
    background: #fef2f2;
    border-color: #fca5a5;
    color: var(--accent);
}

/* ─── Detail Grid ────────────────────────────────────────────────── */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.detail-item {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 12px 14px;
    background: rgba(255,255,255,.6);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s;
}
.detail-item:hover { box-shadow: var(--shadow-md); }
.detail-item > i:first-child {
    font-size: .95rem; color: var(--primary);
    margin-top: 2px; flex-shrink: 0;
    width: 20px; text-align: center;
}
.detail-item strong {
    display: block;
    font-size: .85rem; font-weight: 700;
    margin-bottom: 3px;
}
.detail-item span {
    font-size: .78rem; color: var(--muted);
    line-height: 1.4;
}

/* Done-state items */
.detail-item.done-item {
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.detail-item.done-item > i:first-child { color: var(--success); }
.done-check { color: var(--success); font-size: .85rem; margin-left: auto; margin-top: 4px; flex-shrink: 0; }

/* ─── Progress ───────────────────────────────────────────────────── */
.progress-track { max-width: 460px; margin-bottom: 24px; }
.progress-bar {
    height: 7px; background: var(--border);
    border-radius: 4px; overflow: hidden; margin-bottom: 8px;
}
.progress-fill {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--primary), #06b6d4);
    border-radius: 4px; transition: width .3s ease;
}
.progress-meta {
    display: flex; justify-content: space-between;
    font-size: .82rem; font-weight: 600; color: var(--muted);
}
.turbo-badge { color: var(--success); display: flex; align-items: center; gap: 4px; }

/* ═══════════════════════════════════════════════════════════════════
   DECORATIVE VISUAL (right column when panel is closed)
   ═══════════════════════════════════════════════════════════════════ */
.blob {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 300px; height: 300px;
    background: var(--primary-mid);
    border-radius: 50%;
    filter: blur(60px); opacity: .5;
}

.glass-panel {
    position: relative;
    width: 90%; max-width: 420px;
    background: rgba(255,255,255,.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 24px;
    z-index: 10;
    display: flex; flex-direction: column; gap: 14px;
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}
.mock-header {
    display: flex; justify-content: space-between;
    border-bottom: 1px solid var(--border);
    padding-bottom: 14px;
}
.mock-line { height: 22px; background: var(--border); border-radius: 4px; }
.mock-item {
    display: flex; align-items: center; gap: 14px;
    background: rgba(255,255,255,.5);
    padding: 12px; border-radius: 8px;
}
.mock-box {
    width: 38px; height: 38px;
    background: var(--border); border-radius: 6px; flex-shrink: 0;
}
.mock-text-block { flex: 1; display: flex; flex-direction: column; gap: 7px; }
.mock-text-line { height: 11px; background: #cbd5e1; border-radius: 3px; }
.mock-qty {
    background: #eff6ff; color: var(--primary);
    padding: 4px 12px; border-radius: 6px;
    font-weight: 700; font-size: .75rem; white-space: nowrap;
}

.floating-badge {
    position: absolute; bottom: -16px; left: -24px;
    background: white; padding: 14px 18px;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,.1);
    z-index: 20;
    display: flex; align-items: center; gap: 12px;
    border: 1px solid var(--border-light);
}
.floating-badge .badge-icon {
    width: 40px; height: 40px;
    background: #dcfce7; color: var(--success);
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 1.1rem;
}
.floating-badge .badge-label { font-size: .75rem; color: var(--light-muted); font-weight: 500; }
.floating-badge .badge-value { font-size: .875rem; font-weight: 700; color: var(--text); }

/* ═══════════════════════════════════════════════════════════════════
   EXTENSION PANEL (right column when panel is open)
   ═══════════════════════════════════════════════════════════════════ */
.panel-chrome {
    width: 100%; max-width: 400px;
    height: min(680px, calc(100vh - 140px));
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: flex; flex-direction: column;
    overflow: hidden;
    animation: slideIn .6s cubic-bezier(.19,1,.22,1);
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(60px); }
    to   { opacity: 1; transform: translateX(0); }
}

.panel-titlebar {
    background: #f1f3f4;
    padding: 9px 14px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
}
.panel-dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green  { background: #28c940; }

.panel-tab-title {
    font-size: .72rem; font-weight: 600; color: #5f6368;
    display: flex; align-items: center; gap: 5px;
}
.panel-close-btn {
    background: none; border: none;
    color: #5f6368; cursor: pointer; font-size: .95rem;
    transition: color .2s;
}
.panel-close-btn:hover { color: #333; }

.panel-body {
    flex: 1; display: flex;
    background: #f5f7fa; overflow: hidden;
}
.panel-body iframe {
    width: 100%; height: 100%; border: none; flex: 1;
}

/* ═══════════════════════════════════════════════════════════════════
   PRICING
   ═══════════════════════════════════════════════════════════════════ */
.pricing-header { text-align: center; margin-bottom: 16px; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}
.price-card {
    background: white; border: 1px solid var(--border);
    border-radius: 16px; padding: 28px 24px;
    display: flex; flex-direction: column;
    position: relative;
    transition: transform .3s, box-shadow .3s;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.price-card.featured {
    border: 2px solid var(--primary);
    box-shadow: 0 8px 28px rgba(37,99,235,.12);
}
.price-card.dark {
    background: linear-gradient(175deg, #111827, #1e293b);
    color: white; border: none;
}
.featured-tag {
    position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: white;
    font-size: .68rem; font-weight: 800;
    padding: 3px 14px; border-radius: 9999px;
    text-transform: uppercase; letter-spacing: .08em;
}
.pc-head { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.price-card.dark .pc-head { border-bottom-color: rgba(255,255,255,.08); }
.pc-head h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; }
.pc-price { font-size: 2.4rem; font-weight: 900; line-height: 1; margin-bottom: 8px; }
.pc-price span { font-size: .9rem; font-weight: 500; color: var(--muted); }
.price-card.dark .pc-price span { color: #94a3b8; }
.pc-head p { font-size: .85rem; color: var(--muted); line-height: 1.45; }
.price-card.dark .pc-head p { color: #94a3b8; }
.price-card ul { list-style: none; flex: 1; }
.price-card li {
    display: flex; align-items: center; gap: 10px;
    font-size: .88rem; font-weight: 500;
    margin-bottom: 13px;
}
.price-card li i { font-size: .8rem; color: var(--success); flex-shrink: 0; }
.price-card li.off { color: var(--muted); opacity: .65; }
.price-card li.off i { color: #cbd5e1; }
.price-card.dark li { color: #e2e8f0; }
.price-card.dark li i { color: #4ade80; }

/* ═══════════════════════════════════════════════════════════════════
   PRIVACY
   ═══════════════════════════════════════════════════════════════════ */
.privacy-wrap {
    width: 90%;
    max-width: 100%;
    background: white;
    padding: 48px 52px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.privacy-date {
    font-size: .85rem; color: var(--light-muted);
    font-style: italic; margin-bottom: 24px;
}
.privacy-wrap h2 {
    font-size: 1.2rem; font-weight: 700;
    margin-top: 28px; margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.privacy-wrap p, .privacy-wrap li {
    font-size: .95rem; color: var(--muted);
    line-height: 1.7; margin-bottom: 14px;
}
.privacy-wrap ul { padding-left: 18px; margin-bottom: 18px; }
.privacy-wrap code {
    background: #eef2ff; color: #4338ca;
    padding: 2px 7px; border-radius: 4px;
    font-size: .82rem; font-weight: 600;
}
.callout-box {
    background: #f0fdf4;
    border-left: 4px solid var(--success);
    padding: 20px 24px;
    border-radius: 0 10px 10px 0;
    margin: 22px 0;
}
.callout-box strong {
    display: flex; align-items: center; gap: 8px;
    color: #166534; font-size: 1.05rem; margin-bottom: 8px;
}
.callout-box strong i { font-size: .9rem; }
.callout-box p { color: #14532d; margin: 0; font-size: .95rem; line-height: 1.6; }
