/* ==========================================================================
   Piku Website — Custom CSS
   Style guide: minimal, warm, device-as-hero, anti-slop
   ========================================================================== */

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

:root {
    /* Palette */
    --bg: #FDFBF7;
    --surface: #F5F0E8;
    --text: #2D2A26;
    --text-secondary: #6B6560;
    --accent: #F2786D;
    --accent-hover: #e8635a;
    --blue: #6BBFCE;
    --yellow: #F5C842;
    --green: #7AC4A0;
    --epaper-white: #F0EDE6;
    --epaper-black: #1A1A1A;

    /* Typography */
    --font: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 32px;
    --space-xl: 64px;
    --space-2xl: 80px;

    /* Layout */
    --max-width: 1120px;
    --radius-card: 16px;
    --radius-btn: 12px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3 {
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.25rem;
}

p {
    color: var(--text-secondary);
    max-width: 580px;
}

/* --- Navigation --- */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(253, 251, 247, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(45, 42, 38, 0.06);
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.03em;
}

.nav-cta {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--accent);
    border-radius: var(--radius-btn);
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-cta:hover {
    background: var(--accent);
    color: white;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: white;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 50px; /* pill shape for hero CTA */
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(242, 120, 109, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-large {
    font-size: 1.125rem;
    padding: 18px 40px;
}

/* --- Hero Section --- */
.hero {
    padding-top: 120px; /* account for fixed nav */
    padding-bottom: var(--space-2xl);
    overflow: hidden;
}

.hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-xl);
    align-items: center;
    min-height: 70vh;
}

.hero-text {
    /* Left-aligned, not centered — deliberately breaking the AI default */
}

.hero-text h1 {
    margin-bottom: var(--space-lg);
    color: var(--text);
}

.hero-sub {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: var(--space-lg);
    max-width: 420px;
}

.hero-cta-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: var(--space-md) 0 var(--space-sm);
}

.hero-widget {
    max-width: 440px;
    margin: 0;
}

.hero-device {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Product hero image (real Tinku device, transparent PNG) */
.device-image {
    display: block;
    width: 100%;
    max-width: 400px;
    height: auto;
    /* Slight rotation to break symmetry — deliberate asymmetry */
    transform: rotate(2deg);
    /* Soft grounded shadow beneath the device */
    filter: drop-shadow(0 24px 40px rgba(45, 42, 38, 0.18));
}

/* --- Value Props --- */
.values {
    background: var(--surface);
    padding: var(--space-xl) 0;
}

.values-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    /* NOT equal cards. First is larger — intentional asymmetry */
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: var(--space-lg);
    align-items: start;
}

@media (max-width: 900px) {
    .values-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 520px) {
    .values-inner {
        grid-template-columns: 1fr;
    }
}

.value-item {
    padding: var(--space-lg);
}

.value-large {
    padding-right: var(--space-xl);
}

.value-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: var(--space-sm);
}

.value-item p {
    font-size: 1.05rem;
    line-height: 1.6;
}

.value-large p {
    font-size: 1.15rem;
}

.value-link {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.value-link:hover {
    color: var(--accent-hover);
}

/* --- Color variations / themes --- */
.themes {
    padding: var(--space-2xl) 0;
    background: var(--bg);
    text-align: center;
}

.themes h2 { margin-bottom: var(--space-sm); }

.themes .section-subtitle {
    max-width: 52ch;
    margin-left: auto;
    margin-right: auto;
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.theme-card {
    background: #FFFFFF;
    border-radius: var(--radius-card);
    padding: var(--space-lg);
    box-shadow: 0 8px 28px rgba(45, 42, 38, 0.10);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.theme-visual {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    overflow: hidden;
}

.theme-visual img {
    width: auto;
    max-width: 90%;
    max-height: 88%;
    height: auto;
    display: block;
    object-fit: contain;
}

.theme-visual--forest { background: #EAEEE4; }
.theme-visual--ocean  { background: #DFF1F1; }
.theme-visual--space  { background: #E7E3F0; }

.theme-soon-icon { font-size: 3.5rem; opacity: 0.5; }

.theme-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}

.theme-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.theme-card--soon { opacity: 0.85; }

.theme-badge {
    margin-top: var(--space-sm);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    background: var(--accent);
    padding: 4px 12px;
    border-radius: 999px;
}

@media (max-width: 768px) {
    .theme-grid { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; }
}

/* --- Library Section --- */
.library {
    padding: var(--space-2xl) 0;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: var(--space-xs);
}

.library h2 {
    margin-bottom: var(--space-sm);
}.library-categories {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
    margin-top: var(--space-xl);
}

.library-category:last-child {
    /* Let the 5th category sit naturally in the grid */
}

.library-category h3 {
    margin-bottom: var(--space-md);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
}

.library-category-sub {
    margin: -8px 0 var(--space-md);
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 60ch;
}

.library-examples {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.library-book {
    display: flex;
    flex-direction: column;
    background: white;
    padding: 14px;
    border-radius: var(--radius-card);
    box-shadow: 0 8px 28px rgba(45, 42, 38, 0.10);
    color: var(--text);
    transition: transform 0.15s ease;
}

.library-book:hover {
    transform: translateY(-3px);
}

.library-cover {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid rgba(45, 42, 38, 0.08);
}

.library-cover img {
    width: 100%;
    height: auto;
    display: block;
}

.library-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 12px 4px 4px;
}

.library-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
}

.library-teaser {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.35;
    margin-top: 2px;
}

.library-meta {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--accent);
    margin-top: 6px;
}

.library-create-link:hover {
    color: var(--accent-hover);
}

@media (max-width: 1024px) {
    .library-examples {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .library-examples {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
}

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

/* --- How It Works (legacy — kept for step styling if reused) --- */
.how-it-works {
    padding: var(--space-2xl) 0;
}

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

.how-it-works h2 {
    margin-bottom: var(--space-xl);
    max-width: 600px;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.step {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
    padding: var(--space-lg) 0;
    border-bottom: 1px solid rgba(45, 42, 38, 0.06);
}

.step:last-child {
    border-bottom: none;
}

.step-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--surface);
    /* Large faded number */
    -webkit-text-stroke: 1.5px var(--text-secondary);
    min-width: 50px;
    line-height: 1;
}

.step-content h3 {
    margin-bottom: var(--space-sm);
    color: var(--text);
}

.step-content p {
    font-size: 1.05rem;
}

/* --- Features (alternating blocks) --- */
.features {
    padding: var(--space-lg) 0 var(--space-2xl);
}

/* --- E-paper showcase --- */
/* --- Build Your Own: banner --- */
.build-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    flex-wrap: wrap;
    margin: var(--space-lg) 0 var(--space-xl);
    padding: var(--space-lg) var(--space-xl);
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-card);
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(242, 120, 109, 0.30);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.build-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 38px rgba(242, 120, 109, 0.38);
}

.build-banner-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.build-banner-eyebrow {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.85;
}

.build-banner-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.15;
}

.build-banner-sub {
    font-size: 0.95rem;
    line-height: 1.4;
    opacity: 0.95;
    max-width: 60ch;
}

.build-banner-cta {
    flex-shrink: 0;
    font-weight: 800;
    font-size: 1.05rem;
    background: #fff;
    color: var(--accent);
    padding: 12px 22px;
    border-radius: 999px;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .build-banner { padding: var(--space-md) var(--space-lg); }
    .build-banner-title { font-size: 1.25rem; }
}

/* --- Build Your Own: in-grid tile --- */
.library-book--build {
    text-decoration: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: var(--space-sm);
    background: #fff;
    border: 2px dashed var(--accent);
    box-shadow: none;
}

.library-book--build:hover {
    background: #FFF6F5;
    transform: translateY(-3px);
}

.build-tile-icon {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    background: #FFF1EF;
    border-radius: 10px;
}

.library-book--build .library-title { color: var(--accent); }

/* --- Create Section --- */
.create-section {
    padding: var(--space-2xl) 0;
    background: var(--surface);
}

/* Build → Play sequence: two steps side by side, top-aligned, equal width */
.build-play-sequence {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
}

.bp-step {
    flex: 1 1 0;
    max-width: 380px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

/* Caption sits at the very bottom of each column so both captions align,
   regardless of the extra audio player in Step 2. */
.bp-step .bp-caption {
    margin-top: auto;
}

.bp-step-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: var(--space-md);
}

.bp-gif {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 0 auto;
    /* GIFs are generated on the section background (#F5F0E8) so they blend
       seamlessly — no card or shadow needed. */
}

.bp-caption {
    margin: var(--space-md) auto 0;
    max-width: 320px;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.bp-connector {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    align-self: center;
    flex-shrink: 0;
    padding: 0 var(--space-xs);
}

/* Concentric arcs radiating toward the device — an AirDrop-style "sending
   wirelessly" cue. No text, no literal object; reads as a private transfer. */
.bp-wave {
    position: absolute;
    left: 6px;
    width: 18px;
    height: 40px;
    border: 2px solid var(--accent);
    border-left: none;
    border-radius: 0 40px 40px 0;
    opacity: 0;
    animation: bp-broadcast 2.1s ease-out infinite;
}

.bp-wave:nth-child(1) { animation-delay: 0s;   }
.bp-wave:nth-child(2) { animation-delay: 0.35s; }
.bp-wave:nth-child(3) { animation-delay: 0.7s;  }

@keyframes bp-broadcast {
    0%   { opacity: 0;   transform: translateX(0) scale(0.6); }
    30%  { opacity: 0.9; }
    100% { opacity: 0;   transform: translateX(26px) scale(1.15); }
}

.bp-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 auto var(--space-lg);
    max-width: 520px;
}

.create-trial-note {
    display: block;
    width: fit-content;
    max-width: 90%;
    margin: 6px auto 0;
    padding: 8px 18px;
    background: #FFF1EF;
    border: 1px solid rgba(242, 120, 109, 0.35);
    border-radius: 999px;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 600;
    text-align: center;
}

.create-showcase-heading {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    margin-top: var(--space-lg);
    text-align: center;
}

.create-showcase-sub {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 6px auto var(--space-lg);
    max-width: 60ch;
}

.create-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.create-example {
    background: white;
    border-radius: var(--radius-card);
    padding: 14px;
    box-shadow: 0 8px 28px rgba(45, 42, 38, 0.10);
    display: flex;
    flex-direction: column;
}

.create-example .library-cover {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(45, 42, 38, 0.08);
    margin-bottom: 12px;
}

.create-example .library-cover img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 1024px) {
    .create-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.create-prompt {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    font-style: italic;
    margin-bottom: 8px;
    padding-left: 10px;
    border-left: 3px solid var(--blue);
    line-height: 1.3;
}

.create-result {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-top: auto;
}

.create-result-icon {
    color: var(--green);
    font-weight: 700;
    font-size: 1.2rem;
}

.create-extras {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.create-extra {
    padding: var(--space-lg);
}

.create-extra h3 {
    margin-bottom: var(--space-sm);
    color: var(--text);
}

.create-extra p {
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .create-extras {
        grid-template-columns: 1fr;
    }
    .build-play-sequence {
        flex-direction: column;
    }
    .bp-connector {
        transform: rotate(90deg);
    }
}

.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    padding: var(--space-xl) 0;
}

.feature-block + .feature-block {
    border-top: 1px solid rgba(45, 42, 38, 0.06);
}

.feature-block--reverse {
    direction: rtl;
}

.feature-block--reverse > * {
    direction: ltr;
}

.feature-text h2 {
    margin-bottom: var(--space-md);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.feature-text p {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Feature visuals */
.feature-screen-mockup {
    display: flex;
    justify-content: center;
}

.feature-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.feature-device-img {
    width: 100%;
    max-width: 440px;
    height: auto;
    display: block;
    border-radius: 6px;
}

.spec-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    background: var(--surface);
    border: 1px solid rgba(45, 42, 38, 0.1);
    padding: 5px 12px;
    border-radius: 999px;
}

.mockup-epaper {
    width: 260px;
    padding: var(--space-lg) var(--space-lg);
    background: var(--epaper-white);
    border-radius: 12px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    text-align: center;
    box-shadow: 0 8px 32px rgba(45, 42, 38, 0.08);
}

.mockup-title {
    display: block;
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.mockup-body {
    display: block;
    font-family: 'Georgia', serif;
    font-size: 0.95rem;
    color: var(--epaper-black);
    line-height: 1.5;
}

/* Audio visualization */
.feature-audio-vis {
    text-align: center;
    padding: var(--space-lg);
}

.audio-wave {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    height: 60px;
    margin-bottom: var(--space-md);
}

.audio-wave span {
    display: block;
    width: 4px;
    background: var(--accent);
    border-radius: 2px;
    animation: wave 1.2s ease-in-out infinite;
}

.audio-wave span:nth-child(1) { height: 20px; animation-delay: 0s; }
.audio-wave span:nth-child(2) { height: 35px; animation-delay: 0.1s; }
.audio-wave span:nth-child(3) { height: 50px; animation-delay: 0.2s; }
.audio-wave span:nth-child(4) { height: 40px; animation-delay: 0.3s; }
.audio-wave span:nth-child(5) { height: 25px; animation-delay: 0.4s; }
.audio-wave span:nth-child(6) { height: 45px; animation-delay: 0.5s; }
.audio-wave span:nth-child(7) { height: 55px; animation-delay: 0.6s; }
.audio-wave span:nth-child(8) { height: 30px; animation-delay: 0.7s; }
.audio-wave span:nth-child(9) { height: 42px; animation-delay: 0.8s; }
.audio-wave span:nth-child(10) { height: 18px; animation-delay: 0.9s; }
.audio-wave span:nth-child(11) { height: 38px; animation-delay: 0.35s; }
.audio-wave span:nth-child(12) { height: 52px; animation-delay: 0.55s; }
.audio-wave span:nth-child(13) { height: 28px; animation-delay: 0.15s; }
.audio-wave span:nth-child(14) { height: 46px; animation-delay: 0.75s; }
.audio-wave span:nth-child(15) { height: 22px; animation-delay: 0.45s; }
.audio-wave span:nth-child(16) { height: 50px; animation-delay: 0.65s; }
.audio-wave span:nth-child(17) { height: 33px; animation-delay: 0.25s; }
.audio-wave span:nth-child(18) { height: 44px; animation-delay: 0.85s; }
.audio-wave span:nth-child(19) { height: 26px; animation-delay: 0.05s; }
.audio-wave span:nth-child(20) { height: 40px; animation-delay: 0.95s; }

@keyframes wave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.5); }
}

/* --- Audio sample player (opt-in) --- */
.audio-sample {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    width: 100%;
    margin: 0 auto 10px;
    padding: 16px 22px;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(45, 42, 38, 0.08);
    text-align: left;
    box-sizing: border-box;
}

.audio-play-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--accent);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, background 0.15s ease;
}

.audio-play-btn:hover { transform: scale(1.05); }
.audio-play-icon { font-size: 1rem; line-height: 1; }

.audio-body {
    flex: 1;
    min-width: 0;
    text-align: left;
}

/* Sample waveform: fills the full width, STILL by default, animates while playing */
.audio-wave--sample {
    height: 28px;
    gap: 3px;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 14px;
}

.audio-wave--sample span {
    flex: 1;
    width: auto;
    animation-play-state: paused;
    transform: scaleY(0.4);
    opacity: 0.5;
}

.audio-sample.is-playing .audio-wave--sample span {
    animation-play-state: running;
    opacity: 1;
    transform: none;
}

.audio-sample .audio-caption {
    margin: 0;
    max-width: none;
    font-style: italic;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

.audio-caption {
    font-style: italic;
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 320px;
    margin: 0 auto;
}

/* Battery visual */
.feature-battery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.battery-icon {
    width: 120px;
    height: 56px;
    border: 3px solid var(--text);
    border-radius: 8px;
    padding: 4px;
    position: relative;
}

.battery-icon::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 20px;
    background: var(--text);
    border-radius: 0 3px 3px 0;
}

.battery-fill {
    height: 100%;
    width: 92%;
    background: var(--green);
    border-radius: 4px;
}

.battery-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

/* --- Decks Section --- */
.decks {
    padding: var(--space-2xl) 0;
}

.section-subtitle {
    font-size: 1.1rem;
    margin-bottom: var(--space-xl);
}

.deck-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-lg);
}

.deck-card {
    text-align: center;
}

.deck-cover {
    aspect-ratio: 1;
    border-radius: var(--radius-card);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    transition: transform 0.2s ease;
}

.deck-card:hover .deck-cover {
    transform: scale(1.03);
}

.deck-emoji {
    font-size: 2.5rem;
}

.deck-plus {
    font-size: 2.5rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.deck-title {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: var(--space-xs);
}

.deck-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* --- What's In The Box --- */
.in-the-box {
    padding: var(--space-2xl) 0;
    background: var(--surface);
}

.box-contents {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
    align-items: start;
}

.box-item {
    padding: var(--space-lg);
    background: white;
    border-radius: var(--radius-card);
    box-shadow: 0 2px 12px rgba(45, 42, 38, 0.04);
}

.box-item--main {
    padding: var(--space-xl) var(--space-lg);
}

.box-item-visual {
    margin-bottom: var(--space-md);
}

.box-item-icon {
    font-size: 1.5rem;
}

.mini-device {
    width: 80px;
    height: 100px;
    background: #E8E4DC;
    border-radius: 12px;
    border: 2px solid rgba(0, 0, 0, 0.08);
}

.box-device-img {
    width: 100%;
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.box-item h3 {
    margin-bottom: var(--space-sm);
    font-size: 1rem;
}

.box-item p {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* --- Testimonials --- */
.testimonials {
    padding: var(--space-2xl) 0;
}

.testimonials h2 {
    margin-bottom: var(--space-xl);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.testimonial {
    padding: var(--space-lg);
    border-left: 3px solid var(--accent);
}

.testimonial p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text);
    font-style: italic;
    margin-bottom: var(--space-md);
}

.testimonial cite {
    font-size: 0.9rem;
    font-style: normal;
    font-weight: 600;
    color: var(--text-secondary);
}

/* --- Order / CTA --- */
.order {
    padding: var(--space-2xl) 0;
    background: var(--surface);
}

.order h2 {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.order-card {
    max-width: 560px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-card);
    padding: var(--space-xl);
    box-shadow: 0 4px 24px rgba(45, 42, 38, 0.06);
}

.order-details {
    text-align: center;
}

.order-price {
    margin-bottom: var(--space-lg);
}

.price-amount {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
}

.price-note {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.order-includes {
    list-style: none;
    text-align: left;
    margin-bottom: var(--space-lg);
    padding: var(--space-lg);
    background: var(--bg);
    border-radius: 12px;
}

.order-includes li {
    padding: var(--space-sm) 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    position: relative;
    padding-left: 24px;
}

.order-includes li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
}

.order-note {
    margin-top: var(--space-md);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* --- Footer --- */
.site-footer {
    padding: var(--space-xl) 0 var(--space-lg);
    border-top: 1px solid rgba(45, 42, 38, 0.08);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
}

.footer-brand p {
    font-size: 0.9rem;
    margin-top: var(--space-xs);
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s ease;
}

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

.footer-copy {
    width: 100%;
    text-align: left;
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(45, 42, 38, 0.08);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* --- Scroll Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* Respect user preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .audio-wave span {
        animation: none;
    }

    .bp-wave {
        animation: none;
        opacity: 0.5;
    }

    .deck-card:hover .deck-cover {
        transform: none;
    }

    .btn-primary:hover {
        transform: none;
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }

    .values-inner {
        grid-template-columns: 1fr 1fr;
    }

    .value-large {
        grid-column: 1 / -1;
    }

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

    .deck-card:nth-child(4),
    .deck-card:nth-child(5) {
        /* Shift to next row — asymmetric grid on tablet */
    }

    .box-contents {
        grid-template-columns: 1fr 1fr;
    }

    .box-item--main {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    :root {
        --space-2xl: 56px;
        --space-xl: 48px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: left;
        min-height: auto;
        padding-top: var(--space-lg);
    }

    .hero-device {
        order: -1; /* Device FIRST on mobile — it's the hero */
    }

    .device-image {
        max-width: 300px;
        transform: rotate(1deg);
    }

    .feature-block,
    .feature-block--reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: var(--space-lg);
    }

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

    .values-inner {
        grid-template-columns: 1fr;
    }

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

    .deck-card--cta {
        grid-column: 1 / -1;
    }

    .box-contents {
        grid-template-columns: 1fr;
    }

    .steps {
        gap: var(--space-md);
    }

    .step {
        gap: var(--space-md);
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    .hero {
        padding-top: 100px;
    }

    .device-image {
        max-width: 240px;
    }

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

/* --- Focus States (accessibility) --- */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* --- Selection --- */
::selection {
    background: rgba(242, 120, 109, 0.2);
    color: var(--text);
}
