/*

TemplateMo 618 The Catalyst
https://templatemo.com/tm-618-the-catalyst
Silver & Acid Light-Mode SaaS Landing Page

*/

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

:root {
    --bg:           #F4F7F9;
    --surface:      #E9ECEF;
    --text:         #0A192F;
    --text-muted:   #4A5568;
    --text-dim:     #94A3B8;
    --accent:       #516585;
    --accent-hover: #576e91;
    --border:       #CBD5E1;
    --border-light: #E2E8F0;
    --white:        #FFFFFF;

    /* Spacing */
    --section-pad: clamp(80px, 10vw, 140px);
    --container:   1200px;
    --gap:         24px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    letter-spacing: -0.02em;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

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

/* ===== Machined Silver Card System ===== */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: inset 0 1px 0 var(--white);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.card:hover {
    transform: translateY(-2px);
}

/* ===== Acid Button System ===== */
.btn-acid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--accent);
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.02em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.2s cubic-bezier(0.22, 1, 0.36, 1);
    user-select: none;
}

.btn-acid:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 0px var(--text);
}

.btn-acid:active {
    transform: translateY(0);
    box-shadow: 1px 1px 0px var(--text);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.02em;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.2s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.2s ease;
}

.btn-ghost:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 0px var(--text);
    border-color: var(--text);
}

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 250, 250, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gap);
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.04em;
    display: flex;
    align-items: center;
    gap: 8px;
}

/*
  LOGO MARK — The SVG inside .nav-logo-mark is your swappable logo.
  The wrapper handles sizing and background; the SVG just needs to fit 28×28px.
  To use your own SVG file instead of inline SVG:
    <span class="nav-logo-mark">
      <img src="your-logo.svg" alt="" width="16" height="16">
    </span>
*/
.nav-logo-mark {
    width: 28px;
    height: 28px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-logo-mark svg {
    width: 20px;
    height: 20px;
}

.nav-logo-mark img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

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

.nav-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-cta .btn-acid {
    padding: 10px 22px;
    font-size: 14px;
}

.nav-cta .btn-ghost {
    padding: 10px 22px;
    font-size: 14px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    position: relative;
    transition: background 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text);
    transition: transform 0.3s ease;
}

.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top: 7px; }

.nav-toggle.active span { background: transparent; }
.nav-toggle.active span::before { transform: rotate(45deg); top: 0; }
.nav-toggle.active span::after  { transform: rotate(-45deg); top: 0; }

/* ===== SECTION 1: HERO ===== */
.hero {
    padding-top: 160px;
    padding-bottom: 0;
    text-align: center;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 32px;
    box-shadow: inset 0 1px 0 var(--white);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: #22C55E;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ---- Hero progress bar (tracks progress to 100 sales) --------------------
   SALES_COUNT is set manually in templatemo-catalyst-script.js since this
   is a static site with no backend to pull real sales numbers from —
   update that one variable each time you make a sale.
---------------------------------------------------------------------------- */
.progress-section {
    padding: clamp(48px, 6vw, 80px) 0;
}

.hero-progress {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    padding: 36px 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: inset 0 1px 0 var(--white);
}

.hero-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 25px;
    font-weight: 700;
    color: var(--text);
}

.hero-progress-count {
    color: var(--text);
    font-size: 26px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.hero-progress-track {
    height: 22px;
    background: var(--border-light);
    border-radius: 100px;
    overflow: hidden;
}

.hero-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    border-radius: 100px;
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero h1 {
    font-size: clamp(42px, 6vw, 76px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.045em;
    max-width: 820px;
    margin: 0 auto 24px;
}

.accent-word {
    color: var(--text);
    background: var(--accent);
    padding: 0 10px;
    border-radius: 8px;
    display: inline-block;
}

.hero-sub {
    font-size: clamp(16px, 1.8vw, 19px);
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.6;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 72px;
}

/* Hero Video Section */
.hero-video-section {
    width: 100%;
    background: #e8e9eb;
    line-height: 0;
}

.hero-video-section video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ===== SECTION 2: SPEED METRICS ===== */
.metrics {
    padding: clamp(60px, 6vw, 90px) 0 clamp(60px, 6vw, 90px);
}

.metrics-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    text-align: center;
    margin-bottom: 56px;
}

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

.metric-item {
    text-align: center;
    padding: 48px 24px;
}

.metric-number {
    font-size: clamp(56px, 8vw, 88px);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    margin-bottom: 12px;
}

.metric-number .metric-unit {
    font-size: 0.45em;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: -0.02em;
}

.metric-number .metric-highlight {
    color: var(--text);
    background: var(--accent);
    padding: 0 6px;
    border-radius: 6px;
}

.metric-desc {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 500;
    max-width: 240px;
    margin: 0 auto;
}

.metric-divider {
    width: 1px;
    background: var(--border);
    margin: 24px 0;
    justify-self: center;
}

/* ===== SECTION 3: THE ENGINE — BENTO GRID ===== */
.engine {
    padding: 100px 0 clamp(48px, 6vw, 80px);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.section-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 2px;
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    max-width: 600px;
    margin: 0 auto;
}

.bento-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.bento-card {
    flex: 0 1 calc((100% - 40px) / 3);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
}

.bento-card-icon {
    width: 48px;
    height: 48px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: inset 0 1px 0 var(--white);
}

.bento-card-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--text);
}

.bento-card-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.bento-card h3 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
}

.bento-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
}

.bento-card-visual {
    margin-top: 28px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 16px;
    min-height: 120px;
}

/* Mini chart bars in bento card */
.mini-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 80px;
}

.mini-bar {
    flex: 1;
    background: var(--border);
    border-radius: 4px 4px 0 0;
    transition: height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.mini-bar.highlight { background: var(--accent); }

/* Mini pipeline in bento card */
.mini-pipeline {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mini-pipeline-node {
    flex: 1;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}

.mini-pipeline-node:nth-child(1) { background: var(--accent); color: var(--text); }
.mini-pipeline-node:nth-child(2) { background: #e8e8e8; }
.mini-pipeline-node:nth-child(3) { background: #e0e0e0; }

.mini-pipeline-arrow {
    font-size: 12px;
    color: var(--text-dim);
    flex-shrink: 0;
}

/* Mini code block in bento card */
.mini-code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 12px;
    line-height: 1.7;
    color: var(--text-muted);
}

.mini-code .keyword { color: var(--text); font-weight: 600; }
.mini-code .string { color: #16A34A; }
.mini-code .comment { color: var(--text-dim); }

/* ---- Bento card picture area -----------------------------------------
   Same pattern as .product-main-image: drop a file into /images and point
   the <img src="..."> at it. If the file is missing, onerror adds
   .img-placeholder so the layout still looks intentional. Clicking the
   picture area opens data-link (set that attribute in the HTML per card).
------------------------------------------------------------------------- */
.bento-card-media {
    position: relative;
    width: 100%;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface);
    margin-bottom: 24px;
    cursor: pointer;
}

.bento-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bento-card-media.img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bento-card-media.img-placeholder::after {
    content: 'Image coming soon';
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dim);
    letter-spacing: 0.02em;
}

.bento-card-media.img-placeholder img {
    display: none;
}

/* Placeholder cards added to fill out the 3x2 grid */
.bento-card-placeholder h3,
.bento-card-placeholder p {
    color: var(--text-dim);
}

/* ===== SECTION 4: SHOP ===== */
.shop {
    padding: 24px 0 clamp(120px, 12vw, 180px);
}

/*
  PRODUCT CARDS
  Each .product-card uses a two-column layout: gallery on the left, info on the right.
  On mobile it stacks gallery above info.
*/
.product-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 28px;
    overflow: hidden;
    /* Override the default card hover — product cards are large, subtle lift is enough */
    transition: box-shadow 0.25s ease;
}

.product-card:hover {
    transform: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

/* ---- Gallery column ---- */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-right: 1px solid var(--border-light);
}

/*
  MAIN IMAGE SLOT
  Replace the <img src=""> with your actual image path.
  If the image fails to load, .img-placeholder shows a styled grey box so
  layout doesn't collapse while you're still adding photos.
*/
.product-main-image {
    flex: 1;
    min-height: 320px;
    overflow: hidden;
    position: relative;
    background: var(--surface);
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-main-image:hover img {
    transform: scale(1.03);
}

/* Placeholder shown when image src is empty / broken */
.product-main-image.img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-main-image.img-placeholder::after {
    content: 'Photo coming soon';
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dim);
    letter-spacing: 0.02em;
}

.product-main-image.img-placeholder img {
    display: none;
}

/* ---- Thumbnail row ---- */
.product-thumbnails {
    display: flex;
    gap: 0;
    border-top: 1px solid var(--border-light);
    height: 96px;
}

/*
  THUMBNAIL SLOTS
  Same pattern: replace src="" with your image paths.
  Clicking a thumbnail swaps the main image — wired up in the JS file.
*/
.thumb {
    flex: 1;
    border: none;
    background: var(--surface);
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    position: relative;
    transition: opacity 0.2s ease;
    border-right: 1px solid var(--border-light);
}

.thumb:last-child {
    border-right: none;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.thumb:hover img {
    transform: scale(1.08);
}

.thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
    pointer-events: none;
}

.thumb.active::after {
    border-color: var(--accent);
}

/* Placeholder for thumbnails with broken/missing images */
.thumb.img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumb.img-placeholder img {
    display: none;
}

.thumb.img-placeholder::before {
    content: attr(aria-label);
    font-size: 10px;
    color: var(--text-dim);
    text-align: center;
    padding: 4px;
    z-index: 1;
}

/* ---- Info column ---- */
.product-info {
    padding: 40px 40px 36px;
    display: flex;
    flex-direction: column;
}

.product-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    background: rgba(57, 78, 110, 0.1);
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 12px;
    align-self: flex-start;
}

.product-name {
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.15;
    margin-bottom: 4px;
}

.product-sku {
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
}

.product-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

/* Spec table */
.product-specs {
    list-style: none;
    border-top: 1px solid var(--border-light);
    margin-bottom: 32px;
    flex: 1;
}

.product-specs li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 13px;
}

.product-specs li span:first-child {
    color: var(--text-muted);
    font-weight: 500;
}

.product-specs li span:last-child {
    color: var(--text);
    font-weight: 600;
    text-align: right;
}

/* Price + CTA row */
.product-buy {
    display: flex;
    align-items: center;
    gap: 20px;
}

.product-price {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--text);
}

.product-price span {
    font-size: 1em;
}

.product-price-cents {
    font-size: 0.5em !important;
    font-weight: 700;
    color: var(--text-muted);
    vertical-align: super;
}

.product-buy .btn-acid {
    flex-shrink: 0;
}

/* ===== SECTION 5: FAQ ===== */
.faq {
    padding: var(--section-pad) 0;
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-controls {
    max-width: 720px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.faq-ctrl-btn {
    padding: 7px 16px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    box-shadow: inset 0 1px 0 var(--white);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.faq-ctrl-btn:hover {
    color: var(--text);
    border-color: #CCC;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 var(--white);
    overflow: hidden;
    transition: border-color 0.25s ease;
}

.faq-item.open {
    border-color: #CCCCCC;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 22px 24px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    line-height: 1.4;
}

.faq-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                background 0.2s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
    background: var(--accent);
    border-color: var(--accent);
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-answer-inner {
    padding: 0 24px 22px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===== SECTION 6: CTA BANNER ===== */
.cta-banner {
    padding: var(--section-pad) 0;
}

.cta-banner-inner {
    background: #2A2A2A;
    border-radius: 24px;
    padding: clamp(56px, 8vw, 96px) clamp(32px, 5vw, 72px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner-inner::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 360px;
    height: 360px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.08;
    filter: blur(80px);
    pointer-events: none;
}

.cta-banner-inner::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 260px;
    height: 260px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.06;
    filter: blur(60px);
    pointer-events: none;
}

.cta-banner-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.cta-banner-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 2px;
}

.cta-banner h2 {
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--white);
    max-width: 580px;
    margin: 0 auto 16px;
    position: relative;
    z-index: 1;
}

.cta-banner p {
    font-size: 16px;
    color: rgba(255,255,255,0.5);
    max-width: 420px;
    margin: 0 auto 40px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.cta-banner-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.cta-banner .btn-acid {
    padding: 16px 40px;
    font-size: 16px;
}

.btn-dark-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 40px;
    background: transparent;
    color: rgba(255,255,255,0.7);
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
                color 0.2s ease,
                border-color 0.2s ease;
}

.btn-dark-ghost:hover {
    transform: translateY(-2px);
    color: var(--white);
    border-color: rgba(255,255,255,0.3);
}

/* ===== SECTION 7: FOOTER ===== */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
}

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

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

/* ---- Social icon buttons (Connect column) ------------------------------
   Each icon looks for images/icon-<platform>.svg via the <img>'s src.
   Missing file? onerror hides the <img> and reveals the fallback <span>
   containing a generic default icon, same pattern used for the site logo.
--------------------------------------------------------------------------- */
.footer-social-row {
    display: flex;
    gap: 10px;
}

.footer-social-icon {
    width: 44px;
    height: 44px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 var(--white);
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 3px 3px 0px var(--text);
}

.footer-social-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.footer-social-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
}

.footer-social-fallback svg {
    width: 20px;
    height: 20px;
}

/* ---- Prominent Terms link (replaces the old small Privacy/Terms/Cookies row) ---- */
.footer-terms-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    padding: 8px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    box-shadow: inset 0 1px 0 var(--white);
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-terms-link:hover {
    transform: translateY(-2px);
    box-shadow: 3px 3px 0px var(--text);
}

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

.footer-col-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-dim);
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.footer-copy {
    font-size: 13px;
    color: var(--text-dim);
}

.footer-copy a {
    color: var(--text-muted);
}

.footer-copy a:hover {
    color: var(--text);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-bottom-links a {
    font-size: 13px;
    color: var(--text-dim);
    font-weight: 500;
    transition: color 0.2s ease;
}

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

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .bento-card {
        flex-basis: 100%;
    }

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

    .product-gallery {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }

    .product-main-image {
        min-height: 260px;
    }

    .product-info {
        padding: 28px 28px 24px;
    }

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

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-cta   { display: none; }
    .nav-toggle { display: flex; }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        height: calc(100dvh - 64px);
        background: var(--bg);
        padding: 80px 24px;
        gap: 24px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 999;
        border-top: 1px solid var(--border);
    }

    .nav-links.open a {
        font-size: 20px;
        font-weight: 600;
        color: var(--text);
    }

    .hero {
        padding-top: 120px;
    }

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

    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .metric-divider {
        width: 60px;
        height: 1px;
        margin: 0 auto;
    }

    .metric-item {
        padding: 32px 24px;
    }

    .product-info {
        padding: 24px 20px 20px;
    }

    .product-buy {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .product-buy .btn-acid {
        width: 100%;
        justify-content: center;
    }

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

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

    .cta-banner-actions {
        flex-direction: column;
    }

    .cta-banner .btn-acid,
    .btn-dark-ghost {
        width: 100%;
        max-width: 300px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* =====================================================
   SHOP — button group (View Details + Add to Cart side by side)
   ===================================================== */
.product-btn-group {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* 5-thumbnail row — scrolls horizontally rather than squishing */
.product-thumbnails--five {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}
.product-thumbnails--five::-webkit-scrollbar { display: none; }
.product-thumbnails--five .thumb {
    min-width: 80px;
    flex-shrink: 0;
}

/* =====================================================
   PRODUCT DETAIL PAGE (PDP)
   ===================================================== */
.pdp-breadcrumb {
    padding: 80px 0 0;   /* clears fixed nav */
    background: var(--bg);
}

.pdp-breadcrumb .container {
    padding-top: 20px;
    padding-bottom: 12px;
    font-size: 13px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pdp-breadcrumb a {
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s ease;
}
.pdp-breadcrumb a:hover { color: var(--text); }
.pdp-breadcrumb span:not(:last-child) { color: var(--border); }

.pdp {
    padding: 32px 0 clamp(60px, 8vw, 120px);
}

.pdp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

/* ---- PDP gallery ---- */
.pdp-gallery {
    position: sticky;
    top: 88px;   /* below fixed nav */
}

.pdp-main-image {
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    min-height: 380px;
    margin-bottom: 12px;
    position: relative;
}

.pdp-main-image img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
    display: block;
    transition: opacity 0.18s ease, transform 0.4s cubic-bezier(0.22,1,0.36,1);
}

.pdp-main-image.img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
}
.pdp-main-image.img-placeholder::after {
    content: 'Photo coming soon';
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dim);
}
.pdp-main-image.img-placeholder img { display: none; }

.pdp-thumbs {
    display: flex;
    gap: 10px;
}

/* 5-thumb variant on PDP */
.pdp-thumbs--five {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.pdp-thumbs--five::-webkit-scrollbar { display: none; }
.pdp-thumbs--five .thumb { min-width: 72px; flex-shrink: 0; }

.pdp-thumbs .thumb {
    flex: 1;
    height: 76px;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface);
    cursor: pointer;
    padding: 0;
    position: relative;
    transition: border-color 0.2s ease;
}

.pdp-thumbs .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.pdp-thumbs .thumb:hover img { transform: scale(1.08); }

.pdp-thumbs .thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    transition: border-color 0.2s ease;
    pointer-events: none;
}
.pdp-thumbs .thumb.active { border-color: var(--accent); }
.pdp-thumbs .thumb.active::after { border-color: var(--accent); }

.pdp-thumbs .thumb.img-placeholder img { display: none; }

/* ---- PDP info column ---- */
.pdp-info {
    padding-top: 4px;
}

.pdp-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 6px;
}

.pdp-price {
    font-size: 44px;
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1;
    margin: 20px 0 24px;
}
.pdp-price-cents {
    font-size: 0.5em;
    font-weight: 700;
    color: var(--text-muted);
    vertical-align: super;
}

.pdp-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 16px;
}

.pdp-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.pdp-cta {
    padding: 16px 36px;
    font-size: 16px;
}

.pdp-specs-block {
    border-top: 1px solid var(--border-light);
    padding-top: 28px;
}

.pdp-specs-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

/* =====================================================
   CHECKOUT PAGE
   ===================================================== */
.checkout-section {
    padding-top: 100px;
    padding-bottom: clamp(60px, 8vw, 120px);
    min-height: 100vh;
}

.checkout-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 32px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 48px;
    align-items: start;
}

/* ---- Form blocks ---- */
.checkout-block {
    margin-bottom: 32px;
}

.checkout-block-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.form-row { margin-bottom: 12px; }
.form-row--two  { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row--three { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: -0.01em;
}

.form-field input,
.form-field select {
    width: 100%;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}

.form-field input::placeholder { color: var(--text-dim); }

.form-field input:focus,
.form-field select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(57, 78, 110, 0.12);
}

.checkout-submit {
    width: 100%;
    padding: 18px;
    font-size: 16px;
    justify-content: center;
    margin-bottom: 14px;
}

.checkout-secure {
    font-size: 12px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ---- Order summary sidebar ---- */
.checkout-summary-col {
    position: sticky;
    top: 88px;
}

.checkout-summary {
    padding: 28px;
    margin-bottom: 20px;
}

.summary-product {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
}

.summary-product-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.summary-product-sku {
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 500;
}

.summary-product-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

.summary-divider {
    height: 1px;
    background: var(--border-light);
    margin: 8px 0;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-muted);
    padding: 8px 0;
    font-weight: 500;
}

.summary-shipping {
    font-size: 12px;
    color: var(--text-dim);
    text-align: right;
}

.summary-line--total {
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
    border-top: 1px solid var(--border);
    margin-top: 4px;
    padding-top: 16px;
}

.summary-edit {
    display: block;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 16px;
    transition: color 0.2s ease;
}
.summary-edit:hover { color: var(--text); }

/* Trust badges */
.checkout-trust {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 0 0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.trust-item svg { color: var(--text-dim); flex-shrink: 0; }

/* ---- Order success overlay ---- */
.order-success {
    position: fixed;
    inset: 0;
    background: rgba(244,247,249,0.92);
    backdrop-filter: blur(12px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.order-success[hidden] { display: none; }

.order-success-inner {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: clamp(40px, 6vw, 72px) clamp(32px, 5vw, 64px);
    text-align: center;
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 24px 64px rgba(0,0,0,0.08);
}

.order-success-download {
    margin-top: 12px;
}

.order-success-back {
    margin-top: 28px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.order-success-back:hover {
    color: var(--text);
}

.order-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
}

.order-success-icon svg { width: 64px; height: 64px; }

.order-success-inner h1,
.order-success-inner h2 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 12px;
}

.order-success-inner p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
}

.order-success-inner .btn-acid {
    padding: 16px 40px;
    font-size: 15px;
}

/* =====================================================
   RESPONSIVE — PDP + Checkout
   ===================================================== */
@media (max-width: 1024px) {
    .pdp-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .pdp-gallery { position: static; }

    .checkout-grid {
        grid-template-columns: 1fr;
    }
    .checkout-summary-col { position: static; order: -1; }
}

@media (max-width: 768px) {
    .pdp-actions { flex-direction: column; align-items: stretch; }
    .pdp-cta { justify-content: center; }

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

    .product-btn-group { flex-direction: column; align-items: stretch; }
    .product-btn-group .btn-ghost,
    .product-btn-group .btn-acid { justify-content: center; }
}

/* =====================================================
   ABOUT PAGE
   ===================================================== */
.about-hero {
    padding: 160px 0 32px;
    text-align: center;
}

.about-hero .about-lede {
    font-size: clamp(16px, 1.8vw, 19px);
    color: var(--text-muted);
    max-width: 640px;
    margin: 24px auto 0;
    line-height: 1.7;
}

.about-section {
    padding: clamp(48px, 6vw, 80px) 0;
}

.about-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

/* Visually swaps the two columns without reordering the DOM, so the
   photo can sit on either side per section while keeping markup order
   (photo, then text) consistent and easy to edit. */
.about-row--reverse {
    direction: rtl;
}
.about-row--reverse > * {
    direction: ltr;
}

.about-photo {
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    min-height: 380px;
    position: relative;
}

.about-photo--headshot {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    min-height: 0;
}

.about-photo.about-photo--headshot img {
    width: 240px;
    height: 240px;
    min-height: 0;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.about-photo img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
    display: block;
}

.about-photo.img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
}

.about-photo.img-placeholder::after {
    content: 'Photo coming soon';
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dim);
}

.about-photo.img-placeholder img {
    display: none;
}

.about-text h3 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.about-text p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 16px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-stats {
    display: flex;
    gap: 32px;
    margin-top: 28px;
}

.about-stat-number {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
}

.about-stat-label {
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 500;
    margin-top: 2px;
}

@media (max-width: 1024px) {
    .about-row,
    .about-row--reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }
    .about-photo,
    .about-photo img {
        min-height: 280px;
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding-top: 120px;
    }
    .about-stats {
        flex-wrap: wrap;
        gap: 24px;
    }
}

/* =====================================================
   LEGAL PAGES (terms.html, privacy.html, cookies.html)
   ===================================================== */
.legal-content {
    max-width: 720px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 40px 0 12px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.75;
}

/* =====================================================
   FEATURED PRODUCT — wide card, image on the right
   ===================================================== */
.feature-product {
    padding: clamp(32px, 4vw, 56px) 0;
}

.container--wide {
    max-width: 1400px;
}

.product-card--wide {
    grid-template-columns: 1fr 1.4fr;
}

.product-card--wide .product-main-image {
    min-height: 460px;
}

.product-card--wide .product-info {
    padding: 48px 52px 44px;
}

/* =====================================================
   FEATURED PRODUCT — wide card, image on the right
   ===================================================== */
.feature-product {
    padding: clamp(32px, 4vw, 56px) 0;
}

.container--wide {
    max-width: 1400px;
}

.product-card--wide {
    grid-template-columns: 1fr 1.4fr;
}

.product-card--wide .product-main-image {
    min-height: 460px;
}

.product-card--wide .product-info {
    padding: 48px 52px 44px;
}

/* Image on the right: the gallery comes first in the HTML, so swap it visually */
.product-card--reverse .product-gallery {
    order: 2;
    border-right: none;
    border-left: 1px solid var(--border-light);
}

@media (max-width: 1024px) {
    .product-card--wide { grid-template-columns: 1fr; }
    .product-card--wide .product-main-image { min-height: 260px; }
    .product-card--wide .product-info { padding: 28px 28px 24px; }
    .product-card--reverse .product-gallery {
        order: 0;
        border-left: none;
        border-bottom: 1px solid var(--border-light);
    }
}

@media (max-width: 768px) {
    .product-card--wide .product-info { padding: 24px 20px 20px; }
}
