:root {
    --bg: #f0f4f9;
    --surface: #ffffff;
    --text: #0f1729;
    --muted: #5a6578;
    --primary: #4f6df5;
    --primary-dark: #3b57d9;
    --primary-light: #e8edff;
    --border: #dde4ef;
    --success: #0e9f6e;
    --accent-gradient: linear-gradient(135deg, #4f6df5 0%, #a855f7 50%, #ec4899 100%);
    --glass: rgba(255, 255, 255, 0.72);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, .06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, .08);
    --shadow-lg: 0 16px 48px rgba(15, 23, 42, .12);
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    overflow-wrap: break-word;
    -webkit-text-size-adjust: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.site-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    padding: 16px 0;
}

.nav {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}

.brand {
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: .3px;
    white-space: nowrap;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav a {
    color: #c8d5e8;
    text-decoration: none;
    font-size: .9rem;
    max-width: 100%;
    white-space: nowrap;
    transition: color .15s ease;
}

.nav a:hover {
    color: #fff;
}

.lang-switcher {
    position: relative;
}

.lang-toggle {
    background: rgba(255,255,255,.08);
    color: #c8d5e8;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    padding: 5px 12px;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease;
    box-shadow: none;
}

.lang-toggle:hover {
    background: rgba(255,255,255,.16);
    color: #fff;
    transform: none;
}

.lang-list {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: #1e293b;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    list-style: none;
    margin: 0;
    padding: 4px 0;
    min-width: 120px;
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
    z-index: 200;
}

.lang-switcher.open .lang-list {
    display: block;
}

.lang-list li a {
    display: block;
    padding: 8px 16px;
    color: #c8d5e8;
    text-decoration: none;
    font-size: .85rem;
    transition: background .12s ease;
}

.lang-list li a:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.header-inner > *,
.listing-header > *,
.product-layout > *,
.sheet-preview-layout > *,
.product-footer > * {
    min-width: 0;
}

.page-content {
    padding: 32px 0 44px;
}

.site-footer {
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: .85rem;
    padding: 20px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(79, 109, 245, .02) 100%);
}
.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.footer-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.footer-links a {
    color: var(--muted);
    text-decoration: none;
}
.footer-links a:hover {
    color: var(--primary);
}
.support-fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 90;
    text-decoration: none;
    background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
    color: #fff;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: .84rem;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(13, 76, 161, .28);
    opacity: .96;
}
.support-fab:hover {
    filter: brightness(1.05);
}

h1, h2, h3 {
    margin: 0 0 12px;
    line-height: 1.2;
}

p {
    margin: 0 0 12px;
}

.hero {
    background:
        radial-gradient(120% 130% at 10% 0%, rgba(24, 93, 255, .12) 0%, rgba(24, 93, 255, 0) 52%),
        radial-gradient(120% 120% at 96% 96%, rgba(0, 180, 120, .13) 0%, rgba(0, 180, 120, 0) 56%),
        linear-gradient(145deg, #f7fbff 0%, #ecf4ff 44%, #e8fdf4 100%);
    border: 1px solid rgba(43, 97, 219, .16);
    border-radius: 18px;
    padding: clamp(20px, 4vw, 36px);
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 38px rgba(13, 36, 74, .08);
}

.hero::before {
    content: '';
    position: absolute;
    top: -55%;
    right: -14%;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(67, 106, 230, .16) 0%, transparent 72%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(39, 92, 199, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(39, 92, 199, .05) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(circle at center, black 42%, transparent 100%);
    pointer-events: none;
}

.hero h1 {
    font-size: clamp(1.5rem, 2.8vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -.02em;
    position: relative;
    z-index: 1;
}

.eyebrow {
    color: var(--primary);
    font-weight: 700;
    font-size: .85rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.hero-subtext {
    color: var(--muted);
    max-width: 780px;
    position: relative;
    z-index: 1;
}

.hero .eyebrow {
    position: relative;
    z-index: 1;
}

.hero-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.3fr .8fr;
    gap: 18px;
    align-items: stretch;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.hero-proof-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.hero-proof-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(40, 84, 177, .18);
    background: rgba(255, 255, 255, .72);
    font-size: .78rem;
    color: #25456e;
    font-weight: 700;
}

.hero-signal-panel {
    display: grid;
    gap: 10px;
}

.hero-signal-card {
    border: 1px solid rgba(53, 96, 191, .18);
    background: rgba(255, 255, 255, .86);
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 8px 26px rgba(17, 45, 88, .07);
}

.hero-signal-card span {
    display: block;
    color: #547296;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.hero-signal-card strong {
    display: block;
    margin-top: 2px;
    margin-bottom: 4px;
    font-size: 1rem;
}

.hero-signal-card p {
    margin: 0;
    color: #4f6077;
    font-size: .84rem;
    line-height: 1.5;
}

.diagnosis-section,
.proof-section,
.testimonials-section,
.leadmagnet-section {
    margin: 0 0 26px;
}

.diagnosis-shell,
.leadmagnet-shell {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    display: grid;
    gap: 14px;
    box-shadow: var(--shadow-sm);
}

.diagnosis-form,
.leadmagnet-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
    align-items: end;
}

.diagnosis-form label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: #31445f;
    margin-bottom: 4px;
}

.proof-grid,
.testimonials-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.proof-card,
.testimonial-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    box-shadow: var(--shadow-sm);
}

.testimonial-card p {
    margin: 0 0 8px;
    font-style: italic;
}

.testimonial-card cite {
    color: var(--muted);
    font-size: .85rem;
}

.section-title {
    margin-bottom: 14px;
}

.section-spaced-lg {
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.grid {
    display: grid;
    gap: 16px;
}

.industry-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
}

.industries-section {
    padding-top: 48px;
    padding-bottom: 48px;
}

.section-subtitle {
    text-align: center;
    color: var(--muted);
    margin-top: -8px;
    margin-bottom: 32px;
    font-size: 1.05rem;
}

.industry-group {
    margin-bottom: 40px;
}

.industry-group-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--fg);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
    letter-spacing: .01em;
}

.industry-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease;
}

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

.industry-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #dbe5f4;
    background: #f8fbff;
}

.industry-name {
    font-weight: 600;
    font-size: 1rem;
}

.industry-subtitle {
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.35;
    min-height: 1.1em;
}

.industry-link {
    color: var(--primary);
    font-size: .9rem;
    margin-top: auto;
}

.more-toggle-wrap {
    text-align: center;
    margin-top: 8px;
    margin-bottom: 16px;
}

.listing-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 16px;
    gap: 10px;
}

.listing-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.tier-filter-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tier-filter-label {
    font-size: .84rem;
    color: #4f6077;
    font-weight: 700;
}

.tier-filter-form select {
    min-width: 130px;
    padding: 7px 10px;
    font-size: .86rem;
    border-radius: 8px;
}

.text-link {
    color: var(--primary);
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.product-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    align-items: start;
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease;
}

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

.thumb {
    aspect-ratio: 5 / 3;
    background: linear-gradient(140deg, #dbe4ff, #f0e8ff, #fce8f3);
    display: block;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
    flex-shrink: 0;
}

.thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.large-thumb {
    height: 220px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.product-content {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.product-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.product-copy h3 {
    margin: 0;
    line-height: 1.3;
    overflow-wrap: break-word;
}

.product-content p {
    color: var(--muted);
    font-size: .95rem;
    margin: 0;
    overflow-wrap: break-word;
}

.card-desc {
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tier-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tier-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.tier-free {
    background: #e8faf1;
    color: #0b6e4f;
    border-color: #bde9d8;
}

.tier-starter {
    background: #eaf4ff;
    color: #1d4b8f;
    border-color: #cfe2ff;
}

.tier-pro {
    background: #f4ecff;
    color: #5b2da8;
    border-color: #e0cffd;
}

.tier-operator {
    background: #ffece5;
    color: #9a3412;
    border-color: #f8d0bf;
}

.tier-hint {
    margin: 0;
    font-size: .82rem;
    color: #5b6f8b;
}

.mini-sheet {
    border: 1px solid #e7ecf6;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.mini-sheet-preview {
    margin-top: 4px;
}

.mini-sheet-toolbar,
.sheet-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: linear-gradient(180deg, #f8fbff 0%, #edf3ff 100%);
    border-bottom: 1px solid #e2eaf7;
}

.mini-sheet-name,
.sheet-toolbar-title {
    margin-left: 6px;
    font-size: .78rem;
    color: #4f6488;
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sheet-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

.sheet-dot-red {
    background: #ff6b6b;
}

.sheet-dot-yellow {
    background: #f7b731;
}

.sheet-dot-green {
    background: #20bf6b;
}

.mini-sheet-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .76rem;
    table-layout: fixed;
}

.mini-sheet-table th,
.mini-sheet-table td {
    border-bottom: 1px solid #eff3fa;
    padding: 6px 7px;
    text-align: left;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    vertical-align: top;
}

.mini-sheet-table th {
    background: #f7faff;
    color: #294372;
}

.mini-sheet-tabs,
.sheet-tabbar {
    display: flex;
    gap: 6px;
    padding: 8px;
    background: #f8fbff;
    border-top: 1px solid #e8eef9;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.sheet-tabbar::-webkit-scrollbar {
    display: none;
}

.mini-sheet-tab,
.sheet-tab {
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 999px;
    background: #edf2fb;
    color: #496183;
    font-size: .73rem;
    border: 1px solid #dde6f5;
}

.mini-sheet-tab.active,
.sheet-tab.active {
    background: #ffffff;
    color: #234379;
    box-shadow: 0 2px 6px rgba(35, 67, 121, .08);
}

.product-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
}

.product-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn,
button {
    border: 0;
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    padding: 10px 16px;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 2px 8px rgba(79, 109, 245, .18);
}

.btn:hover,
button:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 16px rgba(79, 109, 245, .28);
    transform: translateY(-1px);
}

.btn:active,
button:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--primary-light);
    color: #2d45a0;
    box-shadow: none;
}

.btn-secondary:hover {
    background: #dce4ff;
    box-shadow: none;
    transform: translateY(-1px);
}

.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
    gap: 24px;
    align-items: start;
}

.preview-panel {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.preview-note {
    color: var(--muted);
    font-size: .9rem;
    margin-top: 10px;
}

.preview-headline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}

.preview-headline > :first-child {
    min-width: 0;
    flex: 1 1 280px;
}

.preview-title-block {
    min-width: 0;
}

.preview-title-block h3,
.preview-subtitle {
    overflow-wrap: break-word;
}

.preview-headline h3 {
    margin-bottom: 4px;
}

.preview-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
}

.preview-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.preview-badge {
    padding: 7px 10px;
    border-radius: 999px;
    background: #eff5ff;
    color: #1f4a88;
    font-size: .78rem;
    font-weight: 700;
    border: 1px solid #dbe6f8;
}

.sheet-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.product-thumb-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #dce6fa;
}

.sheet-card h3 {
    margin: 0;
    line-height: 1.25;
}

.sheet-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}

.meta-chip {
    display: inline-block;
    background: #f3f6fd;
    border: 1px solid #dfe7f5;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: .87rem;
    color: #2a3f63;
}

.sheet-window {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    overflow-x: auto;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.sheet-window-large {
    box-shadow: 0 14px 32px rgba(35, 67, 121, .08);
}

.sheet-preview-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, .95fr);
    gap: 14px;
    align-items: start;
    min-width: 0;
}

.sheet-title {
    background: #eef3ff;
    border-bottom: 1px solid #d9e3fb;
    padding: 8px 10px;
    font-size: .85rem;
    font-weight: 600;
    color: #234379;
    overflow-wrap: anywhere;
}

.sheet-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .84rem;
    table-layout: auto;
    min-width: 560px;
}

.sheet-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.sheet-table th,
.sheet-table td {
    border-bottom: 1px solid #eef1f7;
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}

.sheet-table th {
    white-space: nowrap;
}

.sheet-table td {
    white-space: nowrap;
}

.sheet-table td:first-child,
.sheet-table th:first-child {
    white-space: normal;
}

.sheet-table th {
    font-weight: 600;
    background: #fafcff;
}

.preview-sidebar {
    display: grid;
    gap: 12px;
    min-width: 0;
    align-content: start;
}

.preview-sidebar-card {
    border: 1px solid #e1e9f7;
    border-radius: 12px;
    background: linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%);
    padding: 14px;
    box-shadow: 0 10px 24px rgba(35, 67, 121, .05);
}

.preview-sidebar-card h4 {
    margin: 0 0 10px;
    color: #234379;
}

.compact-metric-grid {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}

.flow-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.flow-chip {
    border: 1px solid #dbe5f6;
    background: white;
    border-radius: 10px;
    padding: 11px 12px;
    color: #385170;
    font-size: .92rem;
    line-height: 1.35;
}

.detail-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.detail-panel h2 {
    margin-bottom: 6px;
}

.detail-description {
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.6;
    margin-bottom: 18px;
}

.detail-section {
    padding: 14px 0;
    border-top: 1px solid var(--border);
}

.detail-section h3 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.detail-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-check {
    font-size: .93rem;
    line-height: 1.5;
    color: var(--text);
}

.check-icon {
    color: #2ca25f;
    font-weight: 700;
    margin-right: 4px;
}

.feature-sub {
    color: var(--muted);
    font-size: .88rem;
}

.detail-buy-area {
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-buy-area .price {
    margin: 0;
}

.price {
    font-size: 1.2rem;
    margin: 10px 0 16px;
}

.checkout-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

input[type="email"] {
    width: 100%;
    border: 1px solid #cfd8e4;
    border-radius: 8px;
    padding: 10px;
    font-size: .95rem;
}

textarea {
    width: 100%;
    border: 1px solid #cfd8e4;
    border-radius: 8px;
    padding: 10px;
    font-size: .95rem;
    resize: vertical;
}

select {
    width: 100%;
    border: 1px solid #cfd8e4;
    border-radius: 8px;
    padding: 10px;
    font-size: .95rem;
    background: #fff;
}

.small-text {
    color: var(--muted);
    font-size: .85rem;
}

.admin-header {
    margin-bottom: 18px;
}

.admin-stats-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-bottom: 20px;
}

.admin-stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    box-shadow: var(--shadow-sm);
}

.admin-stat-card p {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: .84rem;
}

.admin-stat-card strong {
    font-size: 1.35rem;
}
.stat-trend {
    display: block;
    font-size: .74rem;
    font-weight: 600;
    color: #6b7d95;
    margin-top: 4px;
}
.stat-trend.up { color: #0d9f68; }
.stat-trend.down { color: #e24a4a; }

.admin-tier-summary {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.sortable-table .sortable {
    cursor: pointer;
    user-select: none;
}
.sortable-table .sortable:hover {
    background: #eaf0fa;
}

.admin-table-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
}

.admin-table-header h2 {
    margin-bottom: 4px;
}

.admin-table-header p {
    color: var(--muted);
    font-size: .88rem;
    margin-bottom: 12px;
}

.funnel-list {
    display: grid;
    gap: 10px;
}

.funnel-item {
    background: #f8fbff;
    border: 1px solid #dce8ff;
    border-radius: 10px;
    padding: 10px 12px;
}

.funnel-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: .9rem;
}

.funnel-row span {
    color: var(--muted);
    font-weight: 600;
}

.funnel-bar-track {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #e4ecff;
    overflow: hidden;
}

.funnel-bar-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #0ea5e9);
}

.funnel-fill-10 { width: 10%; }
.funnel-fill-25 { width: 25%; }
.funnel-fill-50 { width: 50%; }
.funnel-fill-75 { width: 75%; }
.funnel-fill-100 { width: 100%; }

.admin-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 18px;
}

.admin-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #d6e2f0;
    background: #f6f9fd;
    color: #28405f;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
}

.admin-nav-link.is-active,
.admin-nav-link:hover {
    background: #103d7a;
    border-color: #103d7a;
    color: #fff;
}

.admin-inline-link {
    color: #0f417d;
    font-weight: 700;
    text-decoration: none;
}

.admin-inline-link:hover {
    text-decoration: underline;
}

.admin-template-list {
    display: grid;
    gap: 16px;
}

.admin-template-editor {
    border: 1px solid #e5ebf5;
    border-radius: 12px;
    padding: 14px;
    background: #fbfdff;
    display: grid;
    gap: 12px;
}

.admin-template-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    color: #4f6077;
    font-size: .86rem;
}

.admin-template-meta strong {
    color: var(--text);
}

.admin-template-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.admin-template-form label {
    display: grid;
    gap: 6px;
    font-size: .86rem;
    font-weight: 600;
    color: #30425d;
}

.admin-template-form input[type="text"],
.admin-template-form input[type="number"],
.admin-template-form select,
.admin-template-form textarea {
    width: 100%;
    border: 1px solid #cfd8e4;
    border-radius: 8px;
    padding: 10px;
    font-size: .94rem;
    font-weight: 400;
    color: var(--text);
    background: #fff;
}

.admin-template-form-wide {
    grid-column: 1 / -1;
}

.admin-template-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.admin-template-delete {
    display: flex;
    justify-content: flex-end;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 860px;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 9px 10px;
    border-bottom: 1px solid #edf2f8;
    font-size: .86rem;
    vertical-align: top;
}

.admin-table th {
    font-size: .78rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #4f6077;
}

.admin-table-compact {
    min-width: 0;
}

.admin-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.admin-detail-card {
    border: 1px solid #e5ebf5;
    border-radius: 16px;
    padding: 18px;
    background: #fbfdff;
    box-shadow: 0 8px 24px rgba(15, 52, 96, 0.06);
}

.admin-detail-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.admin-detail-list div {
    display: grid;
    gap: 4px;
}

.admin-detail-list dt {
    font-size: .78rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #5c6f87;
}

.admin-detail-list dd {
    margin: 0;
    color: #21344f;
    font-size: .94rem;
}

.admin-empty {
    margin: 0;
    color: #5c6f87;
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
    font-size: .78rem;
    color: #2c3e59;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-pill.paid {
    color: #0b6e4f;
    background: #e6f7f0;
    border: 1px solid #bde9d8;
}

.status-pill.pending {
    color: #8c6200;
    background: #fff7df;
    border: 1px solid #f4df9c;
}

.success-card {
    background: linear-gradient(135deg, #f0fff8 0%, #e8fff4 100%);
    border: 1px solid #c7f0dc;
    border-radius: var(--radius);
    padding: 28px;
    max-width: 720px;
    box-shadow: var(--shadow-sm);
}

.bundle-header {
    margin-bottom: 14px;
}

.bundle-header p {
    color: var(--muted);
    max-width: 760px;
}

.builder-hint-box {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(30, 64, 175, 0.22);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(219, 234, 254, 0.45), rgba(224, 242, 254, 0.35));
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.08);
    animation: hintFadeLift 380ms cubic-bezier(.2, .75, .3, 1) both;
}

@keyframes hintFadeLift {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.builder-hint-head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.55rem;
}

.builder-hint-icon {
    display: inline-flex;
    width: 1.3rem;
    height: 1.3rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
}

.builder-hint-box h3 {
    margin: 0;
    font-size: 1rem;
    color: #1f2937;
    letter-spacing: 0.01em;
}

.builder-hint-list {
    margin: 0;
    padding-left: 1rem;
}

.builder-hint-item {
    margin-bottom: 0.35rem;
    color: #1f2937;
    font-size: 0.92rem;
    line-height: 1.4;
}

.builder-hint-item:last-child {
    margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
    .builder-hint-box {
        animation: none;
    }
}

.bundle-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 16px;
}

.bundle-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
}

.difficulty-list {
    margin: 0 0 16px;
    padding-left: 20px;
    color: var(--muted);
}

.bundle-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bundle-form label {
    font-weight: 600;
    font-size: .9rem;
}

.module-list {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.module-card {
    border: 1px solid #e5ebf6;
    border-radius: 10px;
    padding: 12px;
    background: #fbfcff;
}

.module-card h4 {
    margin: 0 0 6px;
}

.module-card p {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
}

.bundle-checkout-box {
    margin-top: 2rem;
}

.bundle-price {
    margin-bottom: 1rem;
}

/* --- Auth pages --- */
.auth-wrapper {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-md);
}

.auth-card h2 {
    margin-bottom: 20px;
    text-align: center;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-form label {
    font-weight: 600;
    font-size: .9rem;
    color: var(--text);
}

.auth-form input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    font-size: .95rem;
    transition: border-color .15s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 109, 245, .12);
}

.auth-switch {
    text-align: center;
    margin-top: 16px;
    font-size: .9rem;
}

.auth-switch a {
    color: var(--primary);
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.flash-msg {
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 14px;
    font-size: .9rem;
}

.flash-stack {
    margin-bottom: 12px;
}

.flash-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.flash-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* --- Profile page --- */
.profile-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    width: 100%;
    max-width: 600px;
    box-shadow: var(--shadow-md);
}

.profile-card h2 {
    margin-bottom: 20px;
    text-align: center;
}

.profile-card h3 {
    margin-bottom: 14px;
    font-size: 1.1rem;
}

.profile-info {
    margin-bottom: 20px;
}

.profile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.profile-label {
    font-weight: 600;
    color: var(--muted);
    font-size: .9rem;
}

.profile-value {
    font-size: .95rem;
}

.profile-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.activation-card {
    background: #f8fbff;
    border: 1px solid #dce8ff;
    border-radius: 10px;
    padding: 12px;
    margin-top: 10px;
}

.success-tip {
    margin-top: 1rem;
}

.success-home-link {
    display: block;
    margin-top: 1.5rem;
}

.success-onboarding-btn {
    margin-top: 10px;
}

.onboarding-panel {
    max-width: 760px;
}

.onboarding-list {
    margin: 0 0 16px;
    padding-left: 20px;
}

.onboarding-item {
    margin-bottom: 8px;
    color: #334155;
}

.onboarding-item.done {
    color: #0f766e;
    font-weight: 600;
}

.onboarding-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.support-card,
.legal-panel {
    max-width: 760px;
}

.legal-sections {
    display: grid;
    gap: 14px;
}

.legal-section {
    background: #f8fbff;
    border: 1px solid #dce8ff;
    border-radius: 10px;
    padding: 12px;
}

.legal-section h3 {
    margin-bottom: 6px;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    padding: 8px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.profile-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 24px 0;
}

.purchase-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.purchase-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: rgba(79, 109, 245, .04);
    border: 1px solid var(--border);
    border-radius: 10px;
    gap: 12px;
    flex-wrap: wrap;
}

.purchase-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.purchase-industry {
    font-size: .82rem;
    color: var(--muted);
}

.purchase-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.purchase-date {
    font-size: .82rem;
    color: var(--muted);
}

.purchase-price {
    font-weight: 700;
    color: var(--primary);
}

.purchase-downloads {
    font-size: .78rem;
    color: var(--muted);
}

.btn-sm {
    padding: 5px 12px;
    font-size: .8rem;
    border-radius: 8px;
}

.danger-zone {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 16px;
}

.danger-zone summary {
    font-weight: 700;
    color: #991b1b;
    cursor: pointer;
    font-size: .95rem;
}

.danger-text {
    margin: 10px 0;
    font-size: .88rem;
    color: #991b1b;
}

.btn-danger {
    background: #dc2626;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-danger:disabled {
    background: #f3b3b3;
    cursor: not-allowed;
    box-shadow: none;
}

.muted {
    color: var(--muted);
    font-size: .9rem;
}

/* --- Media queries are consolidated at the end of the file --- */

.feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: clamp(12px, 2vw, 20px);
}

.promo-block {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 18px;
    margin: 0 0 28px;
}

.promo-copy,
.promo-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: clamp(14px, 3vw, 22px);
}

.promo-copy {
    background: linear-gradient(135deg, #ffffff 0%, #e8edff 50%, #f5e8ff 100%);
    position: relative;
    overflow: hidden;
}

.promo-copy::before {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(236, 72, 153, .06) 0%, transparent 70%);
    pointer-events: none;
}

.promo-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.promo-badge {
    display: inline-block;
    background: #e8fff4;
    color: var(--success);
    border: 1px solid #bdebd2;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.promo-sheet-list {
    margin: 12px 0 0;
    padding-left: 18px;
    color: var(--muted);
}

.promo-sheet-list li {
    margin-bottom: 6px;
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.metric-card {
    padding: 10px;
    border: 1px solid #e1e9f7;
    border-radius: 10px;
    background: #fbfcff;
    min-width: 0;
}

.metric-label {
    display: block;
    color: var(--muted);
    font-size: .78rem;
    margin-bottom: 4px;
    line-height: 1.35;
    overflow-wrap: break-word;
}

.metric-value {
    color: #173b72;
    font-size: 1.15rem;
    line-height: 1.2;
    overflow-wrap: break-word;
}

.spark-bars {
    height: 62px;
    display: flex;
    align-items: end;
    gap: 8px;
    padding: 8px 6px 2px;
    border-radius: 10px;
    background: linear-gradient(180deg, #f7faff 0%, #eef4ff 100%);
    border: 1px solid #dde8fb;
}

.spark-bar {
    flex: 1;
    border-radius: 8px 8px 3px 3px;
    background: linear-gradient(180deg, #818cf8 0%, #4f6df5 100%);
    min-height: 16px;
    animation: barGrow .6s cubic-bezier(.34,1.56,.64,1) both;
}

@keyframes barGrow {
    from { transform: scaleY(0); transform-origin: bottom; }
    to { transform: scaleY(1); transform-origin: bottom; }
}

.metric-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    font-size: .82rem;
    color: var(--muted);
}

.metric-inline strong {
    color: var(--text);
    margin-right: 3px;
}

.mini-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #d9e6ff;
    background: #f5f9ff;
    color: #21447f;
    font-size: .78rem;
    font-weight: 600;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.product-content h3,
.detail-panel h2,
.industry-name,
.brand {
    overflow-wrap: anywhere;
}

.detail-section {
    margin-bottom: 18px;
}

.detail-section h3 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.standards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.standard-card {
    padding: 12px;
    border: 1px solid #e1e9f7;
    border-radius: 10px;
    background: #fbfcff;
    color: #2b4163;
    font-size: .88rem;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity .2s ease;
}

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

.feature-card:hover::after {
    opacity: 1;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    border: 1px solid rgba(79, 109, 245, .16);
    background: linear-gradient(145deg, rgba(232, 237, 255, .95), rgba(245, 250, 255, .92));
    color: #234379;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .06em;
    margin-bottom: 12px;
}

.upload-shell {
    max-width: 600px;
    margin: 0 auto;
}

.upload-form {
    display: grid;
    gap: 12px;
}

.upload-form label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: #31445f;
}

.upload-form input[type="text"],
.upload-form input[type="number"],
.upload-form input[type="file"],
.upload-form textarea,
.upload-form select {
    width: 100%;
}

.upload-submit {
    width: 100%;
}

.feature-title {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.feature-desc {
    color: var(--muted);
    font-size: 0.9rem;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* --- Large desktop --- */
@media (min-width: 1440px) {
    .container { width: min(1280px, 90vw); }

    .product-layout {
        grid-template-columns: minmax(0, 1.28fr) minmax(360px, .82fr);
    }

    .sheet-preview-layout {
        grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
        gap: 18px;
    }
}

@media (max-width: 1180px) {
    .compact-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* --- Tablet landscape --- */
@media (max-width: 980px) {
    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* --- Tablet portrait / small laptop --- */
@media (max-width: 860px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .hero-shell {
        grid-template-columns: 1fr;
    }

    .product-layout {
        grid-template-columns: 1fr;
    }

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

    .sheet-preview-layout {
        grid-template-columns: 1fr;
    }

    .preview-headline {
        flex-direction: column;
    }

    .preview-headline > :first-child {
        flex: 0 1 auto;
    }

    .preview-badges {
        justify-content: flex-start;
    }

    .listing-actions {
        justify-content: flex-start;
    }

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

    .promo-block {
        grid-template-columns: 1fr;
    }

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

    .detail-panel {
        padding: 16px;
    }

    .detail-section {
        padding: 12px 0;
    }

    .sheet-card {
        padding: 12px;
    }

    .page-content {
        padding: 24px 0 32px;
    }
}

/* --- Phone landscape / large phone --- */
@media (max-width: 640px) {
    .container {
        width: 94vw;
    }

    .header-inner {
        padding: 12px 0;
        gap: 10px;
    }

    .nav {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 7px;
    }

    .nav a {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 6px 10px;
        border: 1px solid rgba(255, 255, 255, .16);
        border-radius: 999px;
        background: rgba(255, 255, 255, .05);
        font-size: .82rem;
    }

    .lang-switcher {
        flex: 0 0 auto;
        margin-left: auto;
    }

    .lang-toggle {
        white-space: nowrap;
        padding: 4px 10px;
        font-size: .78rem;
    }

    .page-content {
        padding: 18px 0 28px;
    }

    .hero h1 {
        font-size: 1.25rem;
    }

    .hero-subtext {
        font-size: .92rem;
    }

    .hero-proof-chip {
        font-size: .72rem;
        padding: 5px 8px;
    }

    .hero-signal-card {
        padding: 10px;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .feature-card {
        padding: 16px;
    }

    .feature-icon {
        font-size: 2rem;
    }

    .feature-title {
        font-size: 1rem;
    }

    .promo-actions {
        flex-direction: column;
    }

    .promo-actions .btn {
        width: 100%;
        text-align: center;
    }

    .industry-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr));
        gap: 10px;
    }

    .industry-card {
        padding: 12px;
    }

    .product-content {
        padding: 12px;
    }

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

    .compact-metric-grid {
        grid-template-columns: 1fr;
    }

    .chip-list {
        gap: 6px;
    }

    .mini-chip {
        padding: 5px 9px;
        font-size: .74rem;
    }

    .sheet-table {
        font-size: .76rem;
    }

    .sheet-table th,
    .sheet-table td {
        padding: 6px 7px;
    }

    .sheet-tab {
        padding: 5px 8px;
        font-size: .7rem;
    }

    .preview-badge {
        padding: 5px 8px;
        font-size: .72rem;
    }

    .meta-chip {
        font-size: .82rem;
        padding: 7px 9px;
    }

    .btn,
    button {
        text-align: center;
        padding: 12px 14px;
    }

    .product-actions .btn,
    .promo-actions .btn,
    .detail-buy-area .btn,
    .detail-buy-area button,
    .checkout-box .btn,
    .checkout-box button {
        width: 100%;
    }

    .product-actions {
        width: 100%;
    }

    .product-actions .btn {
        flex: 1 1 100%;
    }

    .mini-sheet-name,
    .sheet-toolbar-title {
        white-space: normal;
        text-overflow: clip;
    }

    .checkout-box {
        gap: 8px;
    }

    .bundle-form select,
    .bundle-form label {
        font-size: .88rem;
    }

    .module-card {
        padding: 10px;
    }

    .flow-chip {
        padding: 7px 9px;
        font-size: .8rem;
    }

    .profile-card,
    .auth-card,
    .admin-table-wrap {
        padding: 16px;
    }

    .profile-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }

    .purchase-item {
        align-items: flex-start;
        padding: 12px;
    }

    .purchase-meta {
        width: 100%;
        justify-content: flex-start;
        gap: 8px;
    }

    .profile-actions .btn,
    .onboarding-actions .btn,
    .support-card .btn {
        width: 100%;
    }

    .admin-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .admin-stat-card strong {
        font-size: 1.1rem;
    }

    .admin-table {
        min-width: 680px;
    }

    .admin-table th,
    .admin-table td {
        padding: 7px 8px;
        font-size: .8rem;
    }

    .funnel-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* --- Small phone (≤420px) --- */
@media (max-width: 420px) {
    .container {
        width: 96vw;
    }

    .header-inner {
        padding: 10px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .nav {
        width: 100%;
        justify-content: flex-start;
        gap: 6px;
    }

    .nav a {
        font-size: .78rem;
        padding: 5px 9px;
    }

    .lang-toggle {
        font-size: .74rem;
        padding: 4px 9px;
    }

    .hero h1 {
        font-size: 1.1rem;
    }

    .eyebrow {
        font-size: .82rem;
    }

    .industry-card-image {
        aspect-ratio: 4 / 3;
    }

    .product-footer {
        flex-direction: column;
    }

    .product-footer strong {
        font-size: 1.05rem;
    }

    .product-actions {
        flex-direction: column;
        width: 100%;
    }

    .product-actions .btn {
        width: 100%;
    }

    .listing-header {
        flex-direction: column;
        gap: 8px;
    }

    .listing-actions {
        width: 100%;
        flex-direction: column;
    }

    .price {
        font-size: 1.05rem;
    }

    .detail-panel {
        padding: 14px;
    }

    .detail-section {
        padding: 10px 0;
    }

    .feature-check {
        font-size: .88rem;
    }

    .feature-sub {
        font-size: .82rem;
    }

    .sheet-card {
        padding: 10px;
    }

    .standard-card {
        padding: 10px;
        font-size: .84rem;
    }

    .metric-row {
        font-size: .78rem;
    }

    .preview-sidebar-card {
        padding: 10px;
    }

    .preview-sidebar-card h4 {
        font-size: .92rem;
    }

    .profile-card,
    .auth-card,
    .admin-table-wrap,
    .bundle-panel {
        padding: 12px;
    }

    .admin-stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-table {
        min-width: 560px;
    }

    .purchase-meta .btn,
    .purchase-meta .btn-sm {
        width: 100%;
    }

    .support-fab {
        right: 12px;
        bottom: 12px;
        padding: 9px 12px;
        font-size: .78rem;
    }
}

/* ========== Free Landing Page ========== */
.lp-hero {
    padding: 48px 0 32px;
}

.lp-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.lp-hero-copy .eyebrow {
    margin-bottom: 8px;
}

.lp-hero-copy h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 12px;
}

.lp-subtitle {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 24px;
}

.lp-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

.lp-form input[type="email"],
.lp-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: .95rem;
    background: var(--surface);
}

.lp-cta {
    width: 100%;
    padding: 14px;
    font-size: 1.05rem;
    font-weight: 600;
}

.lp-disclaimer {
    font-size: .78rem;
    color: var(--muted);
    margin: 0;
}

.lp-hero-visual {
    display: flex;
    justify-content: center;
}

.lp-preview-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-md);
    max-width: 380px;
}

.lp-preview-img {
    width: 100%;
    border-radius: 10px;
}

/* Features row */
.lp-features {
    padding: 40px 0;
}

.lp-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.lp-feature {
    text-align: center;
    padding: 24px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.lp-feature-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
}

.lp-feature h3 {
    font-size: 1rem;
    margin: 0 0 6px;
}

.lp-feature p {
    font-size: .88rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.4;
}

/* Free vs Paid comparison */
.lp-included {
    padding: 40px 0;
}

.lp-included h2 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 1.4rem;
}

.lp-included-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 720px;
    margin: 0 auto;
}

.lp-included-col {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.lp-included-col h3 {
    font-size: 1.05rem;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.lp-included-free h3 {
    color: var(--success);
    border-color: var(--success);
}

.lp-included-paid h3 {
    color: var(--muted);
}

.lp-included-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lp-included-col li {
    font-size: .92rem;
    line-height: 1.4;
}

.lp-included-paid li {
    color: var(--muted);
}

.lp-upgrade-link {
    margin-top: 16px;
    display: inline-block;
    font-size: .88rem;
}

/* Bottom CTA */
.lp-bottom-cta {
    text-align: center;
    padding: 48px 0;
    background: var(--primary-light);
    border-radius: var(--radius);
    margin-bottom: 32px;
}

.lp-bottom-cta h2 {
    margin: 0 0 8px;
    font-size: 1.4rem;
}

.lp-bottom-cta p {
    color: var(--muted);
    margin-bottom: 20px;
}

/* Success page */
.lp-success-card {
    text-align: center;
    max-width: 560px;
    margin: 48px auto;
    padding: 40px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.lp-success-icon {
    width: 56px;
    height: 56px;
    line-height: 56px;
    border-radius: 50%;
    background: #d1fae5;
    color: var(--success);
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 auto 16px;
}

.lp-success-card h2 {
    margin: 0 0 8px;
}

.lp-success-hint {
    font-size: .85rem;
    color: var(--muted);
    margin-top: 12px;
}

/* Recommendations grid */
.lp-reco {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: left;
}

.lp-reco h3 {
    font-size: 1rem;
    margin: 0 0 12px;
}

.lp-reco-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.lp-reco-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s ease;
}

.lp-reco-card:hover {
    box-shadow: var(--shadow-sm);
}

.lp-reco-price {
    font-weight: 600;
    color: var(--primary);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .lp-hero-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .lp-hero-visual {
        order: -1;
    }
    .lp-preview-card {
        max-width: 280px;
    }
    .lp-hero-copy h1 {
        font-size: 1.5rem;
    }
    .lp-form {
        max-width: 100%;
    }
    .lp-features-grid {
        grid-template-columns: 1fr;
    }
    .lp-included-grid {
        grid-template-columns: 1fr;
    }
    .lp-reco-grid {
        grid-template-columns: 1fr;
    }
}
