/**
 * DeepRoots public showcase — https://deepbasu.com/deeproots/
 */

/* Single page scroll + themed scrollbar (teal on dark track) */
html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--dr-teal) var(--dr-forest-deep);
}

html::-webkit-scrollbar {
    width: 10px;
}

html::-webkit-scrollbar-track {
    background: var(--dr-forest-deep, #052e24);
}

html::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #14b8a6 0%, #0f766e 100%);
    border-radius: 5px;
    border: 2px solid var(--dr-forest-deep, #052e24);
}

html::-webkit-scrollbar-thumb:hover {
    background: #2dd4bf;
}

body.deeproots-standalone,
body.deeproots-showcase-page {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: visible;
    min-height: 100%;
}

body.deeproots-standalone.admin-bar {
    margin-top: 0 !important;
    padding-top: 32px !important;
}

@media screen and (max-width: 782px) {
    body.deeproots-standalone.admin-bar {
        padding-top: 46px !important;
    }
}

.deeproots-standalone-wrapper,
.deeproots-main {
    overflow: visible;
    min-height: 0;
}

body.deeproots-showcase-page .entry-content,
body.deeproots-showcase-page .site-content,
body.deeproots-showcase-page #content,
body.deeproots-showcase-page .site-main,
body.deeproots-standalone .deeproots-main {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
}

.dr-showcase {
    --dr-showcase-dark: var(--dr-forest-deep, #052e24);
    --dr-showcase-mid: var(--dr-forest, #0a4d3f);
    font-family: var(--dr-font, system-ui, sans-serif);
    color: var(--dr-text);
    overflow-x: clip;
    overflow-y: visible;
}

/* Showcase site header — match dashboard (slim bar + hanging logo) */
body.deeproots-standalone {
    --dr-showcase-pad-x: clamp(12px, 2vw, 28px);
    --dr-header-bar-h: 44px;
    --dr-header-logo-h: clamp(104px, 16vw, 128px);
    --dr-header-logo-overhang: max(12px, calc((var(--dr-header-logo-h) - var(--dr-header-bar-h)) / 2));
    --dr-showcase-logo-slot: clamp(220px, 34vw, 320px);
}

/* Showcase header shell: see assets/css/app-header.css (.dr-app-header) */
body.deeproots-standalone .deeproots-header.dr-showcase-site-header {
    flex-shrink: 0;
}

/* Hero meets header directly — logo hangs into hero; no extra green band */
body.deeproots-standalone .deeproots-main > .dr-showcase > .dr-showcase-hero {
    margin-top: 0;
}

/* Showcase nav links: base styles in app-header.css */

body.deeproots-standalone .deeproots-header-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

body.deeproots-standalone .deeproots-header-nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 1px;
}

.dr-showcase-hero {
    position: relative;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 28px 24px 36px;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(20, 184, 166, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 80% 100%, rgba(132, 204, 22, 0.12) 0%, transparent 50%),
        linear-gradient(165deg, var(--dr-showcase-dark) 0%, var(--dr-showcase-mid) 42%, #134e4a 55%, #0f766e 100%);
    background-size: 100% 100%, 100% 100%, 200% 200%;
    animation: dr-hero-gradient 18s ease-in-out infinite alternate;
    color: #fff;
    overflow: visible;
}

@keyframes dr-hero-gradient {
    0% { background-position: 0 0, 0 0, 0% 50%; }
    100% { background-position: 0 0, 0 0, 100% 50%; }
}

.dr-showcase-hero__particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.dr-showcase.is-live .dr-showcase-hero__particles {
    opacity: 1;
}

.dr-showcase-hero__orbs {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    --dr-mx: 0;
    --dr-my: 0;
    transform: translate(calc(var(--dr-mx) * 1px), calc(var(--dr-my) * 1px));
    transition: transform 0.35s ease-out;
}

.dr-showcase-hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.45;
    animation: dr-orb-float 14s ease-in-out infinite;
}

.dr-showcase-hero__orb--1 {
    width: min(42vw, 320px);
    height: min(42vw, 320px);
    top: 8%;
    left: -8%;
    background: rgba(20, 184, 166, 0.35);
    animation-duration: 16s;
}

.dr-showcase-hero__orb--2 {
    width: min(36vw, 260px);
    height: min(36vw, 260px);
    bottom: 12%;
    right: -6%;
    background: rgba(163, 230, 53, 0.22);
    animation-duration: 19s;
    animation-delay: -4s;
}

.dr-showcase-hero__orb--3 {
    width: min(28vw, 200px);
    height: min(28vw, 200px);
    top: 42%;
    left: 58%;
    background: rgba(45, 212, 191, 0.28);
    animation-duration: 12s;
    animation-delay: -7s;
}

@keyframes dr-orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(24px, -18px) scale(1.06); }
    66% { transform: translate(-16px, 22px) scale(0.94); }
}

.dr-showcase-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 75%);
    pointer-events: none;
    animation: dr-grid-drift 24s linear infinite;
}

@keyframes dr-grid-drift {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 48px 48px, 48px 48px; }
}

.dr-showcase-logo-zone {
    position: relative;
    z-index: 2;
    width: min(100%, 640px);
    height: clamp(200px, 34vw, 320px);
    margin: 0 auto;
    cursor: crosshair;
    touch-action: manipulation;
    background: transparent;
    overflow: hidden;
}

#dr-logo-canvas {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: auto;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    background: transparent;
}

/* Particle mode: only canvas — no static image underlay (prevents ghost/double logo) */
.dr-showcase-hero.dr-showcase-hero--particle-logo .dr-showcase-logo-static,
.dr-showcase-hero.dr-showcase-hero--particle-logo #dr-showcase-logo-static {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.dr-showcase-logo-static {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: clamp(260px, 40vw, 420px);
    width: auto;
    max-width: min(94vw, 620px);
    object-fit: contain;
    object-position: center center;
    background: transparent;
    filter: drop-shadow(0 8px 28px rgba(10, 77, 63, 0.35));
}

.dr-showcase-hero.is-static-logo .dr-showcase-logo-static {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin: 0 auto;
    display: block;
}

.dr-showcase-hero.is-static-logo #dr-logo-canvas {
    display: none;
}

.dr-showcase-logo-hint {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 640px;
    margin: 12px auto 0;
    padding: 0 12px;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.dr-showcase-hero.is-formed .dr-showcase-logo-hint,
.dr-showcase-hero.is-ready .dr-showcase-logo-hint {
    opacity: 1;
}

.dr-showcase-hero.is-logo-hover .dr-showcase-logo-hint {
    opacity: 0.75;
}

.dr-showcase-hero__content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-top: 18px;
    margin-bottom: 0.5rem;
    padding: 0 12px;
    box-sizing: border-box;
}

.dr-showcase-hero__headline {
    margin: 0 auto 10px;
    max-width: 640px;
    font-size: clamp(1.35rem, 3.2vw, 1.85rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #fff;
    text-wrap: balance;
}

.dr-showcase-tagline {
    font-size: clamp(1.05rem, 2.4vw, 1.35rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 auto;
    max-width: 560px;
    opacity: 1;
    transform: none;
}

.dr-showcase-hero__actions {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    max-width: 420px;
    opacity: 1;
    transform: none;
}

.dr-showcase-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    padding: 14px 28px;
    border-radius: var(--dr-radius-pill, 999px);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.25;
    cursor: pointer;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.dr-showcase-btn--primary {
    position: relative;
    overflow: hidden;
    background: #fff;
    color: var(--dr-primary-dark, #134e4a);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.dr-showcase-btn--primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 35%,
        rgba(255, 255, 255, 0.65) 50%,
        transparent 65%
    );
    transform: translateX(-120%);
    animation: dr-btn-shine 4.5s ease-in-out infinite;
}

@keyframes dr-btn-shine {
    0%, 72% { transform: translateX(-120%); }
    100% { transform: translateX(120%); }
}

.dr-showcase-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(45, 212, 191, 0.35);
}

.dr-showcase-btn--ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
}

.dr-showcase-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.dr-showcase-scroll {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 1.5rem;
    padding-top: 0.25rem;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    opacity: 0;
    transition: opacity 0.6s ease 1s;
    pointer-events: none;
}

.dr-showcase-hero.is-ready .dr-showcase-scroll {
    opacity: 1;
}

.dr-showcase-scroll__line {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
    animation: dr-scroll-pulse 2s ease-in-out infinite;
}

@keyframes dr-scroll-pulse {
    0%, 100% { opacity: 0.4; transform: scaleY(0.85); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* Stats strip */
.dr-showcase-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: var(--dr-surface, #fff);
    border-bottom: 1px solid var(--dr-border, #e2e8f0);
    box-shadow: var(--dr-shadow, 0 4px 24px rgba(15, 23, 42, 0.06));
    position: relative;
    overflow: hidden;
}

.dr-showcase-stats::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(20, 184, 166, 0.08),
        transparent
    );
    transform: translateX(-100%);
    pointer-events: none;
}

.dr-showcase-stats.is-visible::after {
    animation: dr-stat-sweep 1.4s ease-out 0.2s forwards;
}

@keyframes dr-stat-sweep {
    to { transform: translateX(100%); }
}

.dr-showcase-stat {
    padding: 32px 20px;
    text-align: center;
    border-right: 1px solid var(--dr-border, #e2e8f0);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), background 0.35s ease;
}

.dr-showcase-stat:hover {
    background: rgba(20, 184, 166, 0.04);
    transform: translateY(-4px);
}

.dr-showcase-stat:last-child {
    border-right: none;
}

.dr-showcase-stat__value {
    display: block;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--dr-gradient, linear-gradient(135deg, #0f766e, #134e4a));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.dr-showcase-stat__label {
    display: block;
    margin-top: 6px;
    font-size: var(--dr-text-sm, 0.875rem);
    color: var(--dr-text-muted, #64748b);
    font-weight: 500;
}

/* Creator / ownership */
.dr-showcase-creator {
    padding: 56px 24px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.dr-showcase-creator__inner {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: center;
}

.dr-showcase-creator__badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dr-primary, #0f766e);
    background: var(--dr-primary-muted, #ccfbf1);
    padding: 6px 12px;
    border-radius: var(--dr-radius-pill, 999px);
    margin-bottom: 16px;
    animation: dr-badge-glow 3s ease-in-out infinite;
}

.dr-showcase-creator h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    margin: 0 0 16px;
    letter-spacing: -0.02em;
    color: var(--dr-text, #0f172a);
}

.dr-showcase-creator p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--dr-text-muted, #64748b);
    margin: 0 0 20px;
}

.dr-showcase-creator__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.dr-showcase-creator__links a {
    color: var(--dr-primary, #0f766e);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s;
}

.dr-showcase-creator__links a:hover {
    border-bottom-color: var(--dr-primary, #0f766e);
}

.dr-showcase-creator__card {
    background: var(--dr-surface, #fff);
    border: 1px solid var(--dr-border, #e2e8f0);
    border-radius: var(--dr-radius-lg, 16px);
    padding: 36px;
    box-shadow: var(--dr-shadow-lg, 0 12px 40px rgba(15, 23, 42, 0.08));
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.dr-showcase-creator__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(15, 118, 110, 0.12);
}

.dr-showcase-creator__card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dr-showcase-creator__card li {
    padding: 14px 0;
    border-bottom: 1px solid var(--dr-border, #e2e8f0);
    font-size: 0.95rem;
    color: var(--dr-text-muted, #64748b);
}

.dr-showcase-creator__card li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.dr-showcase-creator__card li strong {
    display: block;
    color: var(--dr-text, #0f172a);
    font-size: 1rem;
    margin-bottom: 2px;
}

/* Sections */
.dr-showcase-section {
    padding: 56px 24px;
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
}

.dr-showcase-section--alt {
    background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 40%, #f0fdfa 100%);
    max-width: none;
}

.dr-showcase-section--alt .dr-showcase-section__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.dr-showcase-section h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.dr-showcase-section h2::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    background: var(--dr-gradient);
    border-radius: 2px;
    margin-top: 14px;
}

.dr-showcase-lead {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--dr-text-muted, #64748b);
    margin: 0 0 40px;
    max-width: 720px;
}

/* Feature highlight cards */
.dr-showcase-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 8px;
}

.dr-showcase-highlight {
    position: relative;
    background: var(--dr-surface, #fff);
    border: 1px solid var(--dr-border, #e2e8f0);
    border-radius: var(--dr-radius, 12px);
    padding: 28px 24px;
    overflow: hidden;
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.dr-showcase-highlight::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.45), rgba(163, 230, 53, 0.2), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.dr-showcase-highlight:hover {
    border-color: var(--dr-cyan);
    box-shadow: 0 16px 48px rgba(15, 118, 110, 0.14);
    transform: translateY(-8px) scale(1.01);
}

.dr-showcase-highlight:hover::before {
    opacity: 1;
}

.dr-showcase-highlight__icon {
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    border-radius: var(--dr-radius-sm, 8px);
    background: var(--dr-primary-muted, #ccfbf1);
    color: var(--dr-primary, #0f766e);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s ease;
}

.dr-showcase-highlight:hover .dr-showcase-highlight__icon {
    transform: scale(1.08) rotate(-3deg);
    animation: dr-icon-pulse 1.2s ease-in-out infinite;
}

@keyframes dr-icon-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.25); }
    50% { box-shadow: 0 0 0 10px rgba(20, 184, 166, 0); }
}

.dr-showcase-highlight__icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.dr-showcase-highlight h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    color: var(--dr-text, #0f172a);
}

.dr-showcase-highlight p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--dr-text-muted, #64748b);
}

/* Feature categories (from partial) */
.dr-showcase-features .deeproots-about-section,
.dr-showcase-features .dr-about-accurate {
    padding: 0;
    border: none;
    background: transparent;
}

.dr-showcase-features .dr-about-accurate > h2 {
    display: none;
}

.dr-showcase-features .section-intro {
    margin-bottom: 32px;
}

.dr-showcase-features .feature-category {
    margin: 0 0 20px;
    padding: 28px 28px 24px;
    background: var(--dr-surface, #fff);
    border: 1px solid var(--dr-border, #e2e8f0);
    border-radius: var(--dr-radius, 12px);
    border-left: 4px solid var(--dr-primary, #0f766e);
    box-shadow: var(--dr-shadow-xs, 0 1px 3px rgba(0, 0, 0, 0.05));
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.3s ease,
        border-color 0.3s ease;
    transition-delay: calc(var(--dr-stagger-i, 0) * 0.07s);
}

.dr-showcase-features .feature-category.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.dr-showcase-features .feature-category:hover {
    border-color: rgba(20, 184, 166, 0.35);
    box-shadow: 0 12px 32px rgba(15, 118, 110, 0.1);
    transform: translateY(-4px);
}

.dr-showcase-features .feature-category h3 {
    font-size: 1.2rem;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 14px;
    color: var(--dr-primary-dark, #134e4a);
}

.dr-showcase-features .feature-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dr-showcase-features .feature-list > li {
    position: relative;
    margin: 0 0 10px;
    padding-left: 18px;
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--dr-text-muted, #475569);
}

.dr-showcase-features .feature-list > li:last-child {
    margin-bottom: 0;
}

.dr-showcase-features .feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--dr-primary, #0f766e);
}

.dr-showcase-features .section-intro {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--dr-text-muted, #64748b);
    max-width: 720px;
}

.dr-showcase-features .dr-about-note {
    margin-top: 28px;
    padding: 16px 20px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--dr-radius-sm, 8px);
    font-size: 0.92rem;
    color: #92400e;
}

/* Creator story */
.dr-showcase-story {
    padding: 56px 24px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 48%, #f0fdfa 100%);
    border-top: 1px solid rgba(15, 118, 110, 0.1);
    border-bottom: 1px solid rgba(15, 118, 110, 0.08);
}

.dr-showcase-story__inner {
    max-width: 720px;
    margin: 0 auto;
}

.dr-showcase-story__eyebrow {
    margin: 0 0 10px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dr-primary, #0f766e);
}

.dr-showcase-story h2 {
    margin: 0 0 16px;
    font-size: clamp(1.65rem, 3.2vw, 2.15rem);
    letter-spacing: -0.02em;
    color: var(--dr-text, #0f172a);
}

.dr-showcase-story__lead {
    margin: 0 0 20px;
    font-size: clamp(1.05rem, 2.2vw, 1.2rem);
    line-height: 1.7;
    color: var(--dr-text, #0f172a);
    font-weight: 600;
}

.dr-showcase-story__body p {
    margin: 0 0 16px;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--dr-text-muted, #475569);
}

.dr-showcase-story__body p:last-child {
    margin-bottom: 0;
}

.dr-showcase-story__quote {
    margin: 28px 0 0;
    padding: 20px 24px;
    border-left: 4px solid var(--dr-primary, #0f766e);
    background: rgba(15, 118, 110, 0.06);
    border-radius: 0 var(--dr-radius, 12px) var(--dr-radius, 12px) 0;
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--dr-primary-dark, #134e4a);
}

/* Credits */
.dr-showcase-credits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.dr-showcase-credit {
    padding: 24px;
    background: var(--dr-surface, #fff);
    border: 1px solid var(--dr-border, #e2e8f0);
    border-radius: var(--dr-radius, 12px);
}

.dr-showcase-credit strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--dr-text-muted, #64748b);
    margin-bottom: 6px;
}

.dr-showcase-credit span,
.dr-showcase-credit a {
    font-size: 1.05rem;
    color: var(--dr-text, #0f172a);
    font-weight: 600;
}

.dr-showcase-credit a {
    color: var(--dr-primary, #0f766e);
    text-decoration: none;
}

.dr-showcase-credit a:hover {
    text-decoration: underline;
}

/* CTA band — bottom color matches footer for a seamless page end */
.dr-showcase-cta {
    position: relative;
    text-align: center;
    padding: 72px 24px 64px;
    margin-bottom: 0;
    background: linear-gradient(
        165deg,
        var(--dr-showcase-mid, #0a4d3f) 0%,
        #0f766e 28%,
        #134e4a 58%,
        #0d5c4a 100%
    );
    background-size: 200% 200%;
    animation: dr-cta-gradient 14s ease infinite alternate;
    color: #fff;
    overflow: hidden;
}

.dr-showcase-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(163, 230, 53, 0.2) 0%, transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(45, 212, 191, 0.25) 0%, transparent 50%);
    animation: dr-cta-glow 8s ease-in-out infinite alternate;
    pointer-events: none;
}

.dr-showcase-cta > * {
    position: relative;
    z-index: 1;
}

@keyframes dr-cta-gradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

@keyframes dr-cta-glow {
    0% { opacity: 0.6; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}

.dr-showcase-cta h2 {
    color: #fff;
    margin-bottom: 12px;
}

.dr-showcase-cta h2::after {
    background: rgba(255, 255, 255, 0.4);
    margin-left: auto;
    margin-right: auto;
}

.dr-showcase-cta p {
    opacity: 0.9;
    max-width: 520px;
    margin: 0 auto 28px;
    line-height: 1.65;
}

/* Standalone footer — continues CTA gradient (no lighter block / seam) */
body.deeproots-standalone .deeproots-footer,
body.deeproots-showcase-page .deeproots-footer {
    margin-top: 0;
    padding: 40px 24px 48px;
    background: linear-gradient(
        180deg,
        #0d5c4a 0%,
        var(--dr-showcase-mid, #0a4d3f) 38%,
        var(--dr-showcase-dark, #052e24) 100%
    );
    border-top: 1px solid rgba(163, 230, 53, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: #fff;
}

body.deeproots-standalone .deeproots-footer-content,
body.deeproots-showcase-page .deeproots-footer-content {
    max-width: 720px;
}

body.deeproots-standalone .deeproots-footer p,
body.deeproots-showcase-page .deeproots-footer p {
    margin: 8px 0;
    opacity: 0.92;
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
}

body.deeproots-standalone .deeproots-footer a,
body.deeproots-showcase-page .deeproots-footer a {
    color: rgba(163, 230, 53, 0.95);
    text-decoration: underline;
    text-underline-offset: 2px;
}

body.deeproots-standalone .deeproots-footer a:hover,
body.deeproots-showcase-page .deeproots-footer a:hover {
    color: #d9f99d;
}

body.deeproots-standalone .deeproots-footer strong,
body.deeproots-showcase-page .deeproots-footer strong {
    color: #fff;
    font-weight: 600;
}

body.deeproots-standalone .deeproots-standalone-wrapper,
body.deeproots-showcase-page .deeproots-standalone-wrapper {
    background: var(--dr-showcase-dark, #052e24);
}

/* Modal — no scrollport while closed (prevents phantom scrollbar) */
body.deeproots-standalone .deeproots-modal,
body.deeproots-showcase-page .deeproots-modal,
.dr-showcase + .deeproots-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(3, 7, 18, 0.65);
    backdrop-filter: blur(6px);
    padding: 24px;
    overflow: hidden;
    align-items: center;
    justify-content: center;
}

body.deeproots-standalone .deeproots-modal.is-open,
body.deeproots-showcase-page .deeproots-modal.is-open {
    display: flex;
    overflow-y: auto;
}

body.dr-modal-open {
    overflow: hidden;
}

.deeproots-modal-content {
    background: var(--dr-surface, #fff);
    border-radius: var(--dr-radius-lg, 16px);
    padding: 40px 36px;
    max-width: 420px;
    width: 100%;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--dr-border, #c5e8dc);
    border-top: 3px solid var(--dr-lime, #84cc16);
    overflow: hidden;
}

.deeproots-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 2;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: var(--dr-forest, #0a4d3f);
    border: none;
    background: rgba(255, 255, 255, 0.85);
    padding: 4px 8px;
    border-radius: var(--dr-radius-sm, 8px);
}

.deeproots-modal-close:hover {
    color: var(--dr-primary, #0f766e);
    background: #fff;
}

.deeproots-modal-content h2 {
    margin: 0 0 24px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dr-forest, #0a4d3f);
    letter-spacing: -0.02em;
}

#deeproots-login-modal .deeproots-modal-content h2 {
    margin-top: 0;
}

.deeproots-form-group {
    margin-bottom: 20px;
}

.deeproots-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.deeproots-form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--dr-border, #e2e8f0);
    border-radius: var(--dr-radius-sm, 8px);
    font-size: 1rem;
    box-sizing: border-box;
}

.deeproots-form-group input:focus {
    outline: none;
    border-color: var(--dr-primary, #0f766e);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.deeproots-form-group.dr-password-field {
    position: relative;
}

.deeproots-form-group.dr-password-field input {
    padding-right: 3rem;
}

.deeproots-family-slug-group .description {
    margin: 6px 0 0;
    font-size: 0.8rem;
    color: var(--dr-text-muted, #64748b);
    line-height: 1.4;
}

.deeproots-submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--dr-gradient);
    color: #fff;
    border: none;
    border-radius: var(--dr-radius-sm, 8px);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.deeproots-submit-btn:hover:not(:disabled) {
    filter: brightness(1.05);
}

.deeproots-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.deeproots-message {
    display: none;
    margin: 12px 0;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.deeproots-message.error {
    display: block;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.deeproots-message.success {
    display: block;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

/* Scroll reveal + stagger */
.dr-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.dr-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.dr-reveal-stagger > .dr-showcase-stat,
.dr-reveal-stagger > .dr-reveal-child {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.dr-reveal-stagger.is-visible > .dr-showcase-stat:nth-child(1),
.dr-reveal-stagger.is-visible > .dr-reveal-child:nth-child(1) { transition-delay: 0.05s; }
.dr-reveal-stagger.is-visible > .dr-showcase-stat:nth-child(2),
.dr-reveal-stagger.is-visible > .dr-reveal-child:nth-child(2) { transition-delay: 0.12s; }
.dr-reveal-stagger.is-visible > .dr-showcase-stat:nth-child(3),
.dr-reveal-stagger.is-visible > .dr-reveal-child:nth-child(3) { transition-delay: 0.19s; }
.dr-reveal-stagger.is-visible > .dr-showcase-stat:nth-child(4),
.dr-reveal-stagger.is-visible > .dr-reveal-child:nth-child(4) { transition-delay: 0.26s; }

.dr-reveal-stagger.is-visible > .dr-showcase-stat,
.dr-reveal-stagger.is-visible > .dr-reveal-child,
.dr-reveal.is-visible .dr-reveal-stagger.is-visible > .dr-reveal-child,
.dr-reveal.is-visible .dr-reveal-stagger > .dr-reveal-child {
    opacity: 1;
    transform: translateY(0);
}

/* Feature cards + highlight tiles show when parent section is revealed */
.dr-showcase-features.dr-reveal.is-visible .feature-category {
    opacity: 1;
    transform: translateY(0);
}

/* Safety: show feature blocks even if scroll-reveal JS is delayed or blocked */
.dr-showcase.is-live .dr-showcase-features .feature-category {
    animation: dr-feature-fallback-in 0.01s linear 1.2s forwards;
}

@keyframes dr-feature-fallback-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dr-showcase-features.dr-reveal.is-visible .feature-category {
    animation: none;
}

.dr-showcase.is-live .dr-reveal .dr-reveal-child {
    animation: dr-feature-fallback-in 0.01s linear 1.2s forwards;
}

.dr-reveal.is-visible .dr-reveal-child {
    animation: none;
}

@keyframes dr-badge-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0); }
    50% { box-shadow: 0 0 0 6px rgba(20, 184, 166, 0.12); }
}

.dr-showcase-section h2::after {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.dr-showcase-section.dr-reveal.is-visible h2::after {
    transform: scaleX(1);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .dr-showcase-hero,
    .dr-showcase-cta,
    .dr-showcase-hero__orb,
    .dr-showcase-btn--primary::after,
    .dr-showcase-creator__badge {
        animation: none !important;
    }

    .dr-showcase-hero__orbs {
        transform: none !important;
    }

    .dr-reveal,
    .dr-reveal-stagger > *,
    .dr-showcase-features .feature-category {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .dr-showcase-highlight:hover .dr-showcase-highlight__icon {
        animation: none;
    }
}

@media (max-width: 900px) {
    .dr-showcase-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .dr-showcase-stat:nth-child(2) {
        border-right: none;
    }

    .dr-showcase-stat:nth-child(1),
    .dr-showcase-stat:nth-child(2) {
        border-bottom: 1px solid var(--dr-border, #e2e8f0);
    }

    .dr-showcase-creator__inner {
        grid-template-columns: 1fr;
    }

    .dr-showcase-highlights {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    body.deeproots-standalone {
        --dr-header-bar-h: 40px;
        --dr-header-logo-h: clamp(88px, 20vw, 108px);
        --dr-showcase-logo-slot: clamp(176px, 40vw, 248px);
    }

    body.deeproots-standalone .deeproots-header-nav-toggle {
        display: flex;
    }

    body.deeproots-standalone .deeproots-header-content.dr-showcase-header__inner {
        padding-left: calc(var(--dr-showcase-logo-slot) + 6px);
    }
}

@media (max-width: 600px) {
    .dr-showcase-hero {
        min-height: 0;
        padding: 20px 16px 28px;
    }

    .dr-showcase-logo-zone {
        height: clamp(170px, 46vw, 240px);
    }

    .dr-showcase-logo-hint {
        margin-top: 10px;
        margin-bottom: 0;
    }

    .dr-showcase-hero__content {
        margin-top: 14px;
    }

    body.deeproots-standalone .deeproots-header .dr-logo-wrap--standalone {
        padding: 0 !important;
        background: transparent !important;
    }

    .dr-showcase-hero__headline {
        font-size: 1.2rem;
        padding: 0 4px;
    }

    .dr-showcase-tagline {
        font-size: 1rem;
        padding: 0 4px;
    }

    .dr-showcase-hero__actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .dr-showcase-btn {
        width: 100%;
        min-height: 48px;
        margin: 0;
    }

    .dr-showcase-scroll {
        margin-top: 1rem;
    }

    .dr-showcase-story {
        padding: 40px 16px;
    }

    .dr-showcase-stat {
        padding: 24px 16px;
    }

    .dr-showcase-section {
        padding: 48px 16px;
    }

    .dr-showcase-creator {
        padding: 48px 16px;
    }

    .dr-showcase-cta {
        padding: 56px 16px 48px;
    }

    body.deeproots-standalone .deeproots-footer,
    body.deeproots-showcase-page .deeproots-footer {
        padding: 32px 16px 40px;
    }

}

@media (max-width: 400px) {
    .dr-showcase-stats {
        grid-template-columns: 1fr;
    }

    .dr-showcase-stat {
        border-right: none !important;
        border-bottom: 1px solid var(--dr-border, #e2e8f0);
    }

    .dr-showcase-stat:last-child {
        border-bottom: none;
    }
}

/* Login modal brand — official logo + mint header band (matches member login / app headers) */
.deeproots-modal-brand.dr-login-brand--logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: -40px -36px 1.25rem;
    padding: 1.5rem 36px 1.125rem;
    line-height: 0;
    text-align: center;
    background: linear-gradient(180deg, #ecfdf5 0%, #f0fdfa 42%, #fff 100%);
    border-bottom: 1px solid var(--dr-border, #c5e8dc);
}

.deeproots-modal-brand.dr-login-brand--logo .dr-logo--header-bar {
    height: clamp(56px, 14vw, 80px);
    width: auto;
    max-width: min(300px, 88vw);
    max-height: 80px;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 2px 10px rgba(15, 118, 110, 0.22));
}

.deeproots-modal-brand .dr-logo-wrap--standalone,
.deeproots-modal-brand .dr-logo-wrap--login,
.deeproots-modal-brand .dr-logo-wrap {
    padding: 0;
    background: transparent;
    box-shadow: none;
    filter: none;
}

@media (max-width: 768px) {
    .deeproots-modal-brand.dr-login-brand--logo {
        margin: -28px -22px 1rem;
        padding: 1.25rem 22px 1rem;
    }
}

@media (max-width: 480px) {
    .deeproots-modal-brand.dr-login-brand--logo {
        margin: -24px -18px 1rem;
        padding: 1.125rem 18px 0.875rem;
    }

    .deeproots-modal-brand.dr-login-brand--logo .dr-logo--header-bar {
        max-width: min(260px, 92vw);
    }
}

.deeproots-login-2fa {
    margin: 0.75rem 0;
    padding-top: 0.5rem;
    border-top: 1px solid var(--dr-border, #e2e8f0);
}

.deeproots-login-2fa[hidden] {
    display: none !important;
}
.deeproots-login-2fa__hint {
    font-size: 0.9rem;
    color: var(--dr-text-muted, #64748b);
    margin: 0 0 0.75rem;
}
.deeproots-link-btn {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    background: none;
    border: none;
    color: var(--dr-primary, #0f766e);
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
}
