/* =========================================
   mynext.garden — Premium Layout
   Philosophy: zero friction, premium, calm, mobile-first
 ========================================== */

.hidden {
    display: none !important;
}

:root {
    /* Color tokens */
    --bg: #fbfaf7;
    /* warm off-white */
    --surface: #ffffff;
    /* card background */
    --text: #0f172a;
    /* near-slate */
    --muted: #475569;
    /* slate-600 */
    --faint: #64748b;
    /* slate-500 */
    --border: rgba(15, 23, 42, 0.10);
    --border-strong: rgba(15, 23, 42, 0.14);

    --accent: #2E5C45;
    /* deep forest green (from previous premium palette) */
    --accent-ink: #ffffff;
    --accent-hover: #1E3F30;

    /* Radius & shadows */
    --r-lg: 18px;
    --r-md: 14px;
    --r-sm: 12px;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.08);

    /* Layout */
    --container: 1060px;
    --gutter: 18px;

    /* Spacing scale */
    --s-1: 8px;
    --s-2: 12px;
    --s-3: 16px;
    --s-4: 20px;
    --s-5: 28px;
    --s-6: 36px;
    --s-7: 48px;
    --s-8: 64px;
    --s-9: 84px;

    /* Typography scale (overflow-safe) */
    --h1: clamp(32px, 4.2vw, 52px);
    --h2: clamp(22px, 3.2vw, 34px);
    --h3: clamp(18px, 2.4vw, 22px);
    --body: clamp(15px, 2vw, 18px);
    --small: 13px;

    --lh-tight: 1.1;
    --lh: 1.55;

    /* Motion */
    --ease: cubic-bezier(.2, .8, .2, 1);
    --transition-fast: 0.2s ease;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
    font-size: var(--body);
    line-height: var(--lh);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

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

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

/* Container */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* Section rhythm */
.section {
    padding: var(--s-8) 0;
}

.section.compact {
    padding: var(--s-7) 0;
}

.section.flush-top {
    padding-top: var(--s-6);
}

/* Typography */
h1,
h2 {
    margin: 0;
    letter-spacing: -0.01em;
    font-family: 'Playfair Display', ui-serif, Georgia, serif;
}

h3 {
    margin: 0;
    letter-spacing: -0.01em;
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

h1 {
    font-size: var(--h1);
    line-height: 1.1;
    max-width: 13ch;
}

p {
    margin: 0;
    color: var(--muted);
}

.lede {
    margin-top: var(--s-4);
    max-width: 56ch;
    color: var(--muted);
}

.muted {
    color: var(--muted);
}

.faint {
    color: var(--faint);
}

.small {
    font-size: var(--small);
}

/* Overflow guards */
.truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.measure {
    max-width: 70ch;
}

/* Blog */
.post {
    max-width: 820px;
    margin: 0 auto;
}

.post-hero {
    display: grid;
    gap: var(--s-3);
}

.post-meta {
    font-size: var(--small);
    color: var(--faint);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.post h1 {
    max-width: 18ch;
}

.post-body {
    margin-top: var(--s-6);
}

.post-body > * + * {
    margin-top: var(--s-4);
}

.post-body h2 {
    margin-top: var(--s-6);
}

.post-body h3 {
    margin-top: var(--s-5);
}

.post-body ul,
.post-body ol {
    padding-left: 1.2rem;
    margin: 0;
    color: var(--muted);
}

.post-body li + li {
    margin-top: 6px;
}

.post-body a {
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.post-body .btn {
    text-decoration: none;
}

.card-title-link {
    text-decoration: none !important;
    color: var(--text);
}

.card-title-link:hover {
    color: var(--text);
}

.post-cta {
    margin-top: var(--s-6);
    padding-top: var(--s-5);
    border-top: 1px solid var(--border);
    display: grid;
    gap: var(--s-3);
}

.post-cta .btn {
    width: fit-content;
}

.post-price {
    color: var(--faint);
    font-size: var(--small);
}

.post-related {
    margin-top: var(--s-5);
    padding-top: var(--s-4);
    border-top: 1px solid var(--border);
    display: grid;
    gap: var(--s-3);
}

.post .callout {
    border-left-color: var(--border-strong);
}

.post .callout-soft {
    background: color-mix(in oklab, var(--bg), #ffffff 55%);
    border: 1px solid var(--border);
    color: var(--text);
}

@media (max-width: 640px) {
    .post-cta .btn {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .header-inner {
        gap: 10px;
    }

    .brand {
        font-size: 1rem;
    }

    .actions .btn {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: color-mix(in oklab, var(--bg), transparent 22%);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: var(--s-3);
}

.brand {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
    font-size: 1.15rem;
}

.brand .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
    display: inline-block;
    transform: translateY(-1px);
    flex: none;
}

.nav {
    display: none;
    gap: 18px;
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
}

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

/* Buttons */
.actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
    min-width: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 24px;
    font-weight: 550;
    font-size: 14px;
    border: 1px solid transparent;
    transition: transform 140ms var(--ease), box-shadow 140ms var(--ease), background 140ms var(--ease);
    user-select: none;
    white-space: nowrap;
    cursor: pointer;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--accent);
    color: var(--accent-ink);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* Hero */
.hero {
    padding: var(--s-9) 0 var(--s-8);
    overflow-x: hidden;
}

.hero-grid {
    display: grid;
    gap: var(--s-6);
    align-items: center;
}

.hero-copy {
    display: grid;
    gap: var(--s-4);
    align-content: start;
}

.hero-cta {
    display: grid;
    gap: 10px;
    align-items: start;
    justify-items: start;
}

.hero-cta .btn {
    width: 100%;
}

.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin-top: var(--s-4);
    color: var(--muted);
    font-size: 13px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
}

.check {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(46, 92, 69, 0.12);
    /* accent alpha */
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex: none;
}

/* Custom Hero Image Style */
/* Report Preview Stack */
.report-preview {
    position: relative;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumb-stack {
    width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.thumb-stage {
    position: relative;
    width: 100%;
    height: 240px;
}

.thumb {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
    background-size: cover;
    background-position: center;
    transition: transform 0.3s var(--ease);
}

/* Base styles for the thumbs - to be swapped with background-image */
.thumb-1 {
    z-index: 1;
    transform: rotate(-3deg) translateX(-20px);
}

.thumb-2 {
    z-index: 2;
    transform: rotate(2deg) translateX(10px) translateY(10px);
}

.thumb-3 {
    z-index: 3;
    transform: rotate(0deg);
}

.thumb-stack:hover .thumb-1 {
    transform: rotate(-6deg) translateX(-60px);
}

.thumb-stack:hover .thumb-2 {
    transform: rotate(4deg) translateX(30px) translateY(15px);
}

.thumb-stack:hover .thumb-3 {
    transform: translateY(-10px);
}

.report-caption {
    position: static;
    margin-top: 12%;
    text-align: center;
    font-size: 13px;
    color: var(--faint);
    font-style: italic;
}

@media (max-width: 719px) {
    .report-preview {
        height: auto;
        padding: var(--s-6) 0;
    }

    .thumb-stack {
        width: 240px;
        margin: 0 auto;
    }

    .thumb-stage {
        height: 280px;
    }
}

/* Comparison, Features, Cards */
.comparison {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: color-mix(in oklab, var(--bg), #ffffff 30%);
}

.comparison .content {
    display: grid;
    gap: var(--s-4);
    max-width: 78ch;
}

.callout {
    border-left: 3px solid var(--accent);
    padding-left: var(--s-4);
    color: var(--text);
    font-weight: 600;
}

.grid {
    display: grid;
    gap: var(--s-4);
}

.cards {
    display: grid;
    gap: var(--s-4);
    margin-top: var(--s-5);
}

.card {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--s-5);
    display: grid;
    gap: 10px;
    min-width: 0;
}

.card h3 {
    color: var(--text);
    font-weight: 650;
    margin-bottom: 2px;
}

/* Steps */
.steps {
    display: grid;
    gap: var(--s-4);
    margin-top: var(--s-5);
}

.step {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.65);
    border-radius: var(--r-lg);
    padding: var(--s-5);
    display: grid;
    gap: 6px;
}

.step .kicker {
    font-size: 12px;
    color: var(--faint);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.step .title {
    font-weight: 650;
    color: var(--text);
}

/* Pricing */
.pricing {
    border-top: 1px solid var(--border);
    background: color-mix(in oklab, var(--bg), #ffffff 35%);
}

.price-box {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--s-6);
    display: grid;
    gap: var(--s-3);
    max-width: 64ch;
}

.price .amount {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

/* Footer */
footer {
    padding: var(--s-7) 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
}

.footer-grid {
    display: grid;
    gap: var(--s-3);
    align-items: start;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--muted);
    font-size: 14px;
}

/* Responsive */
@media (min-width: 720px) {
    :root {
        --gutter: 22px;
    }

    .nav {
        display: flex;
    }

    .hero-grid {
        grid-template-columns: 1.15fr 0.85fr;
    }

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

    .hero-cta .btn {
        width: auto;
    }

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

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

    .footer-grid {
        grid-template-columns: 1.2fr 0.8fr;
        align-items: center;
    }

    .footer-links {
        justify-content: flex-end;
    }
}

/* Form Styles for Intake (keep existing if needed, but updated to match theme) */
.form-input,
.form-select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--text);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 92, 69, 0.1);
}

.intake-container {
    max-width: 600px;
    margin: var(--s-8) auto;
    background: var(--surface);
    padding: var(--s-6);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
}

.progress-bar-bg {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    transition: 0.3s;
}

.form-group {
    display: grid;
    gap: 8px;
    margin-bottom: var(--s-4);
}

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

.maintenance-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.maintenance-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.maintenance-option {
    min-width: 160px;
    text-align: left;
    white-space: normal;
    align-items: flex-start;
    padding: 10px 14px;
    line-height: 1.2;
}

.choice-title {
    font-weight: 600;
}

.choice-sub {
    font-size: 0.82rem;
    color: var(--muted);
}

.maintenance-input:focus-visible + .maintenance-option {
    outline: 2px solid color-mix(in oklab, var(--accent), #ffffff 35%);
    outline-offset: 2px;
}

.maintenance-input:checked + .maintenance-option {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: transparent;
    box-shadow: var(--shadow-sm);
}

.maintenance-input:checked + .maintenance-option .choice-sub {
    color: color-mix(in oklab, var(--accent-ink), #ffffff 20%);
}

.maintenance-input:checked + .maintenance-option:hover {
    background: var(--accent-hover);
    box-shadow: var(--shadow-md);
}

.budget-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.budget-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.budget-option {
    min-width: 48px;
}

.budget-input:focus-visible + .budget-option {
    outline: 2px solid color-mix(in oklab, var(--accent), #ffffff 35%);
    outline-offset: 2px;
}

.budget-input:checked + .budget-option {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: transparent;
    box-shadow: var(--shadow-sm);
}

.budget-input:checked + .budget-option:hover {
    background: var(--accent-hover);
    box-shadow: var(--shadow-md);
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn:disabled:hover {
    background: var(--accent);
    color: var(--accent-ink);
}

.btn-secondary:disabled:hover {
    background: transparent;
    color: var(--text);
}

.intake-step {
    display: grid;
    gap: var(--s-4);
}

.intake-subhead {
    color: var(--muted);
    margin-top: var(--s-2);
}

.intake-helper {
    color: var(--faint);
    font-size: var(--small);
}

.satellite-block {
    display: grid;
    gap: var(--s-3);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s-4);
    background: color-mix(in oklab, var(--bg), #ffffff 70%);
}

.satellite-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-3);
}

.satellite-title {
    font-weight: 600;
    color: var(--text);
}

.satellite-actions,
.satellite-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-2);
}

.btn.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.satellite-status {
    color: var(--faint);
    font-size: var(--small);
}

.satellite-canvas-wrap {
    position: relative;
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg);
}

.satellite-canvas-wrap img {
    display: block;
    width: 100%;
    height: auto;
}

.satellite-canvas-wrap canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: crosshair;
    touch-action: none;
}

.satellite-canvas-wrap canvas.disabled {
    pointer-events: none;
    cursor: not-allowed;
}

.satellite-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 20, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 1000;
}

.satellite-modal.open {
    display: flex;
}

.satellite-modal-dialog {
    width: min(980px, 100%);
    max-height: 100%;
    background: var(--surface);
    border-radius: var(--r-lg);
    padding: var(--s-3);
    box-shadow: var(--shadow-md);
    display: grid;
    gap: var(--s-3);
}

.satellite-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--s-2);
}

.satellite-modal-close {
    border: 1px solid var(--border);
    background: transparent;
    border-radius: 999px;
    width: 36px;
    height: 36px;
    font-size: 18px;
    cursor: pointer;
    color: var(--text);
}

.satellite-modal-close:hover {
    background: color-mix(in oklab, var(--bg), #ffffff 65%);
}

.upload-zone {
    border: 1px dashed var(--border-strong);
    border-radius: var(--r-md);
    padding: var(--s-4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
    background: color-mix(in oklab, var(--bg), #ffffff 55%);
}

.upload-meta {
    display: grid;
    gap: 4px;
}

.upload-title {
    font-weight: 600;
    color: var(--text);
}

.upload-sub {
    color: var(--faint);
    font-size: var(--small);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.photo-preview {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    margin-top: var(--s-3);
}

.photo-tile {
    position: relative;
    border-radius: var(--r-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
}

.photo-tile img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.photo-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
}

.guidance-card {
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: color-mix(in oklab, var(--bg), #ffffff 65%);
    padding: var(--s-4);
    display: grid;
    gap: var(--s-3);
}

.guidance-grid {
    display: grid;
    gap: var(--s-3);
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.guidance-item {
    display: grid;
    gap: 6px;
}

.guidance-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(46, 92, 69, 0.12);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.callout-soft {
    padding: 10px 12px;
    border-radius: var(--r-sm);
    background: rgba(46, 92, 69, 0.08);
    color: var(--text);
    font-size: var(--small);
}

.vibe-list {
    display: grid;
    gap: var(--s-3);
}

.vibe-card {
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: var(--surface);
    padding: var(--s-4);
    display: grid;
    gap: 6px;
    cursor: pointer;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.vibe-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.vibe-card.selected {
    border-color: var(--accent);
    background: color-mix(in oklab, var(--accent), #ffffff 90%);
    box-shadow: var(--shadow-sm);
}

.vibe-title {
    font-weight: 650;
    color: var(--text);
}

.vibe-copy {
    color: var(--muted);
    font-size: 0.95rem;
}

.intake-actions {
    display: flex;
    justify-content: space-between;
    gap: var(--s-3);
    margin-top: var(--s-4);
}

.order-summary {
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: color-mix(in oklab, var(--bg), #ffffff 70%);
    padding: var(--s-4);
    display: grid;
    gap: var(--s-2);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: var(--s-2);
    color: var(--text);
    font-weight: 600;
}

.confirmation-card {
    text-align: center;
    display: grid;
    gap: var(--s-3);
}

.confirmation-card .small {
    color: var(--faint);
}

.link-subtle {
    font-size: var(--small);
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 640px) {
    .upload-zone {
        flex-direction: column;
        align-items: flex-start;
    }

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

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