/* ==========================================================================
   Shared Product Detail Page Template
   Visual-first, brand-able via CSS variables on body class.
   --------------------------------------------------------------------------
   Required variables (set on body class):
   --pd-primary, --pd-primary-dark, --pd-primary-deep
   --pd-ink, --pd-paper, --pd-paper-2, --pd-line
   --pd-text, --pd-text-soft, --pd-text-faint
   --pd-grad-deep, --pd-grad-brand
   --pd-pulse-rgb (RGB triplet for the live-dot pulse, e.g. "16,185,129")
   --pd-tag-a-bg, --pd-tag-a-fg, --pd-tag-b-bg, --pd-tag-b-fg, --pd-tag-c-bg, --pd-tag-c-fg
   ========================================================================== */

[class$="-page"] {
    background: #fff;
    color: var(--pd-text, #0a1f17);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

[class$="-page"] main { overflow-x: hidden; }
[class$="-page"] .container a { margin-top: 0; }

/* --------------------------------------------------------------------------
   Buttons (App-Store-style)
   -------------------------------------------------------------------------- */
.pd-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 1.5rem;
    border-radius: 14px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition:
        transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.25s ease;
    line-height: 1;
    white-space: nowrap;
}

.pd-btn--primary {
    background: var(--pd-ink, #0a0a14);
    color: #fff;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.12) inset,
        0 12px 28px -12px rgba(5, 26, 20, 0.6);
}

.pd-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.16) inset,
        0 18px 36px -14px rgba(5, 26, 20, 0.7);
}

.pd-btn--ghost {
    background: transparent;
    color: var(--pd-ink, #0a0a14);
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.pd-btn--ghost:hover {
    border-color: var(--pd-primary, #10b981);
    color: var(--pd-primary-dark, #047857);
    transform: translateY(-2px);
}

.pd-btn--apple i { font-size: 1.6rem; line-height: 1; }

.pd-btn--apple span {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    line-height: 1;
    text-align: left;
}

.pd-btn--apple span small {
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    opacity: 0.8;
    text-transform: uppercase;
}

.pd-btn--apple span strong {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.pd-btn--lg { padding: 1rem 1.75rem; border-radius: 16px; }
.pd-btn--lg.pd-btn--apple i { font-size: 1.85rem; }
.pd-btn--lg.pd-btn--apple span small { font-size: 0.66rem; }
.pd-btn--lg.pd-btn--apple span strong { font-size: 1.2rem; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.pd-hero {
    position: relative;
    padding: 8rem 0 0;
    background: linear-gradient(180deg, var(--pd-paper, #f6fbf8) 0%, var(--pd-paper-2, #eef6f1) 100%);
    overflow: hidden;
    isolation: isolate;
    text-align: center;
}

.pd-hero--minimal { padding-bottom: 5rem; }

.pd-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.pd-hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 45% at 50% 30%, rgba(var(--pd-pulse-rgb, 16, 185, 129), 0.18) 0%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 20% 70%, rgba(var(--pd-pulse-rgb, 16, 185, 129), 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 80% 70%, rgba(var(--pd-pulse-rgb, 16, 185, 129), 0.1) 0%, transparent 60%);
}

.pd-hero-rays {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 1400px;
    height: 1000px;
    background:
        conic-gradient(
            from 200deg at 50% 0%,
            transparent 0deg,
            rgba(var(--pd-pulse-rgb, 16, 185, 129), 0.08) 30deg,
            transparent 60deg,
            rgba(var(--pd-pulse-rgb, 16, 185, 129), 0.06) 90deg,
            transparent 120deg,
            rgba(var(--pd-pulse-rgb, 16, 185, 129), 0.05) 150deg,
            transparent 200deg
        );
    mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 0%, transparent 80%);
    opacity: 0.7;
}

.pd-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(5, 26, 20, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(5, 26, 20, 0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 0%, transparent 75%);
}

.pd-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
}

.pd-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(5, 26, 20, 0.08);
    box-shadow: 0 2px 8px -2px rgba(5, 26, 20, 0.08);
    color: var(--pd-text, #0a1f17);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    margin-bottom: 1.5rem;
    animation: pdFadeIn 0.7s 0.05s ease both;
}

.pd-pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--pd-primary, #10b981);
    box-shadow: 0 0 0 0 rgba(var(--pd-pulse-rgb, 16, 185, 129), 0.5);
    animation: pdPulse 2.4s ease-out infinite;
}

.pd-pill i {
    color: var(--pd-text-soft, #4a5d54);
    font-size: 0.88em;
}

@keyframes pdPulse {
    0% { box-shadow: 0 0 0 0 rgba(var(--pd-pulse-rgb, 16, 185, 129), 0.55); }
    70% { box-shadow: 0 0 0 10px rgba(var(--pd-pulse-rgb, 16, 185, 129), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--pd-pulse-rgb, 16, 185, 129), 0); }
}

.pd-hero-title {
    font-size: clamp(2.5rem, 6.5vw, 4.75rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.035em;
    color: var(--pd-ink, #051a14);
    margin: 0 0 1.25rem;
    animation: pdFadeIn 0.8s 0.15s ease both;
}

.pd-hero-title em {
    font-style: italic;
    font-weight: 500;
    background: linear-gradient(135deg, var(--pd-primary, #10b981) 0%, var(--pd-primary-deep, #064e3b) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.pd-hero-sub {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    color: var(--pd-text-soft, #4a5d54);
    max-width: 540px;
    margin: 0 auto 2.25rem;
    line-height: 1.55;
    animation: pdFadeIn 0.8s 0.25s ease both;
}

.pd-hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    animation: pdFadeIn 0.8s 0.35s ease both;
}

.pd-hero--minimal .pd-hero-actions { margin-bottom: 0; }

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

/* Hero capability chips (used by minimal heroes / PM / Tasks / Budget) */
.pd-hero-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    max-width: 720px;
    margin: 0 auto 2.5rem;
    animation: pdFadeIn 0.8s 0.3s ease both;
}

.pd-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(5, 26, 20, 0.07);
    color: var(--pd-text, #0a1f17);
    font-size: 0.88rem;
    font-weight: 500;
}

.pd-hero-chip i {
    color: var(--pd-primary, #10b981);
    font-size: 0.95em;
}

/* --------------------------------------------------------------------------
   Hero Stage — phones
   -------------------------------------------------------------------------- */
.pd-hero-stage {
    position: relative;
    height: 580px;
    margin-top: 1rem;
    animation: pdStageRise 1.1s 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.pd-stage-glow {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 200px;
    background: radial-gradient(ellipse at center, rgba(var(--pd-pulse-rgb, 16, 185, 129), 0.35) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 0;
}

.pd-stage-deck {
    position: relative;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   Phone mockup
   -------------------------------------------------------------------------- */
.pd-phone {
    --phone-w: 280px;
    --phone-r: 44px;
    position: relative;
    width: var(--phone-w);
    aspect-ratio: 9 / 19;
}

.pd-phone-frame {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(150deg, #1a1a26 0%, #050508 100%);
    border-radius: var(--phone-r);
    padding: 11px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 0 0 2px rgba(0, 0, 0, 0.3),
        0 50px 100px -30px rgba(5, 26, 20, 0.5),
        0 30px 60px -20px rgba(5, 26, 20, 0.35);
}

.pd-phone-notch {
    position: absolute;
    top: 11px;
    left: 50%;
    transform: translateX(-50%);
    width: 38%;
    height: 26px;
    background: #050508;
    border-radius: 0 0 18px 18px;
    z-index: 2;
}

.pd-phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: calc(var(--phone-r) - 11px);
    overflow: hidden;
    background: #000;
}

.pd-phone-screen picture,
.pd-phone-screen img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.pd-phone--center {
    --phone-w: 300px;
    z-index: 3;
    animation: pdFloat 6s ease-in-out infinite;
}

.pd-phone--side {
    --phone-w: 240px;
    position: absolute;
    bottom: 30px;
    z-index: 1;
    opacity: 0.95;
}

.pd-phone--left {
    left: calc(50% - 360px);
    transform: rotate(-8deg) translateY(20px);
    animation: pdFloatLeft 7s ease-in-out infinite;
}

.pd-phone--right {
    right: calc(50% - 360px);
    transform: rotate(8deg) translateY(20px);
    animation: pdFloatRight 7s ease-in-out infinite;
}

@keyframes pdFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes pdFloatLeft {
    0%, 100% { transform: rotate(-8deg) translateY(20px); }
    50% { transform: rotate(-8deg) translateY(8px); }
}

@keyframes pdFloatRight {
    0%, 100% { transform: rotate(8deg) translateY(20px); }
    50% { transform: rotate(8deg) translateY(8px); }
}

/* --------------------------------------------------------------------------
   Browser mockup (web app products)
   -------------------------------------------------------------------------- */
.pd-browser {
    --browser-r: 14px;
    position: relative;
    width: 100%;
    max-width: 980px;
    border-radius: var(--browser-r);
    background: #1a1a26;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 50px 100px -30px rgba(5, 26, 20, 0.45),
        0 30px 60px -20px rgba(5, 26, 20, 0.3);
    overflow: hidden;
    margin: 0 auto;
}

.pd-browser-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.95rem;
    background: linear-gradient(180deg, #232333 0%, #1a1a26 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pd-browser-dots {
    display: inline-flex;
    gap: 0.35rem;
}

.pd-browser-dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.pd-browser-dots span:nth-child(1) { background: #ff5f57; }
.pd-browser-dots span:nth-child(2) { background: #febc2e; }
.pd-browser-dots span:nth-child(3) { background: #28c840; }

.pd-browser-url {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    max-width: 360px;
}

.pd-browser-url i { font-size: 0.78em; opacity: 0.7; }

.pd-browser-screen {
    aspect-ratio: 16 / 10;
    background: #0a0a14;
}

.pd-browser-screen img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top center;
}

/* Browser variants in row visual context */
.pd-row-visual .pd-browser { max-width: 540px; }

.pd-hero--browser .pd-browser {
    margin-top: 1rem;
    animation: pdStageRise 1.1s 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* --------------------------------------------------------------------------
   Showcase rows
   -------------------------------------------------------------------------- */
.pd-showcase {
    padding: 6rem 0;
    background: #fff;
    position: relative;
}

.pd-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 30% 25% at 10% 20%, rgba(var(--pd-pulse-rgb, 16, 185, 129), 0.05) 0%, transparent 60%),
        radial-gradient(ellipse 30% 25% at 90% 80%, rgba(var(--pd-pulse-rgb, 16, 185, 129), 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.pd-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem 0;
    position: relative;
}

.pd-row + .pd-row { border-top: 1px solid var(--pd-line, #e0ebe4); }

.pd-row--right .pd-row-text { order: 1; }
.pd-row--right .pd-row-visual { order: 2; }
.pd-row--left .pd-row-visual { order: 1; }
.pd-row--left .pd-row-text { order: 2; }

.pd-row-text { max-width: 460px; }

.pd-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    background: var(--pd-tag-a-bg, rgba(16, 185, 129, 0.1));
    color: var(--pd-tag-a-fg, #047857);
}

.pd-tag--b {
    background: var(--pd-tag-b-bg, rgba(251, 191, 36, 0.14));
    color: var(--pd-tag-b-fg, #92400e);
}

.pd-tag--c {
    background: var(--pd-tag-c-bg, rgba(99, 102, 241, 0.1));
    color: var(--pd-tag-c-fg, #4338ca);
}

.pd-row-text h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--pd-ink, #051a14);
    margin: 0 0 1rem;
}

.pd-row-text p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--pd-text-soft, #4a5d54);
    margin: 0;
}

.pd-row-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.pd-phone--solo {
    --phone-w: 280px;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.pd-row--right .pd-phone--solo { transform: rotate(3deg); }
.pd-row--right .pd-phone--solo:hover { transform: rotate(0deg) translateY(-6px); }
.pd-row--left .pd-phone--solo { transform: rotate(-3deg); }
.pd-row--left .pd-phone--solo:hover { transform: rotate(0deg) translateY(-6px); }

.pd-phone-shadow {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 30px;
    background: radial-gradient(ellipse at center, rgba(5, 26, 20, 0.25) 0%, transparent 70%);
    filter: blur(12px);
    z-index: -1;
}

/* --------------------------------------------------------------------------
   Capability strip (PM / Tasks / Budget — products without screens)
   -------------------------------------------------------------------------- */
.pd-capabilities {
    padding: 4.5rem 0;
    background: var(--pd-paper, #f6fbf8);
    border-top: 1px solid var(--pd-line, #e0ebe4);
    border-bottom: 1px solid var(--pd-line, #e0ebe4);
}

.pd-capabilities-head {
    text-align: center;
    margin-bottom: 3rem;
}

.pd-capabilities-head h2 {
    font-size: clamp(1.65rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--pd-ink, #051a14);
    margin: 0 0 0.6rem;
}

.pd-capabilities-head p {
    font-size: 1.05rem;
    color: var(--pd-text-soft, #4a5d54);
    margin: 0;
    max-width: 540px;
    margin: 0 auto;
}

.pd-capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 980px;
    margin: 0 auto;
}

.pd-capability {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--pd-line, #e0ebe4);
    border-radius: 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.pd-capability:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--pd-pulse-rgb, 16, 185, 129), 0.3);
    box-shadow: 0 18px 36px -16px rgba(5, 26, 20, 0.12);
}

.pd-capability-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--pd-grad-brand, linear-gradient(135deg, #10b981 0%, #047857 100%));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    box-shadow: 0 6px 14px -6px rgba(var(--pd-pulse-rgb, 16, 185, 129), 0.5);
}

.pd-capability h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--pd-ink, #051a14);
    margin: 0;
    letter-spacing: -0.01em;
}

.pd-capability p {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--pd-text-soft, #4a5d54);
    margin: 0;
}

/* --------------------------------------------------------------------------
   Promise strip
   -------------------------------------------------------------------------- */
.pd-promise {
    padding: 2.5rem 0;
    background: var(--pd-paper, #f6fbf8);
    border-top: 1px solid var(--pd-line, #e0ebe4);
    border-bottom: 1px solid var(--pd-line, #e0ebe4);
}

.pd-promise-list {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem 3rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pd-promise-list li {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--pd-text, #0a1f17);
}

.pd-promise-list i {
    color: var(--pd-primary, #10b981);
    font-size: 1rem;
}

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */
.pd-cta {
    padding: 6rem 0 7rem;
    background: #fff;
}

.pd-cta-card {
    position: relative;
    border-radius: 32px;
    padding: 3.5rem 3rem;
    background: var(--pd-grad-deep, linear-gradient(135deg, #051a14 0%, #093928 50%, #064e3b 100%));
    color: #fff;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
}

.pd-cta-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 50% at 20% 30%, rgba(var(--pd-pulse-rgb, 16, 185, 129), 0.4) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 80% 80%, rgba(251, 191, 36, 0.15) 0%, transparent 60%);
    z-index: 0;
}

.pd-cta-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 0%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

.pd-cta-text {
    position: relative;
    z-index: 1;
    flex: 1 1 320px;
}

.pd-cta-text h2 {
    font-size: clamp(1.85rem, 3vw, 2.6rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin: 0 0 0.5rem;
}

.pd-cta-text p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.pd-cta-card .pd-btn {
    position: relative;
    z-index: 1;
    background: #fff;
    color: var(--pd-ink, #051a14);
}

.pd-cta-card .pd-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.4);
}

/* --------------------------------------------------------------------------
   Footer (shared)
   -------------------------------------------------------------------------- */
.pd-footer {
    background: var(--pd-ink, #051a14);
    padding: 4rem 0 2rem;
    color: rgba(255, 255, 255, 0.7);
}

.pd-footer-content {
    display: grid;
    grid-template-columns: 1.5fr 3fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.pd-footer-logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.pd-footer-logo h3 {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
}

.pd-footer-brand p {
    line-height: 1.6;
    margin-bottom: 0.85rem;
}

.pd-footer-powered a {
    color: var(--pd-primary, #10b981);
    text-decoration: none;
}

.pd-footer-powered a:hover { text-decoration: underline; }

.pd-footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.pd-footer-col h4 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.pd-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pd-footer-col li { margin-bottom: 0.6rem; }

.pd-footer-col a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.pd-footer-col a:hover { color: var(--pd-primary, #10b981); }

.pd-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.75rem;
    text-align: center;
}

.pd-footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Navigation (shared, brand-able)
   -------------------------------------------------------------------------- */
.pd-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(5, 26, 20, 0.06);
}

.pd-nav .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.pd-nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pd-nav-logo h2 {
    color: var(--pd-primary-deep, #064e3b);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
}

.pd-nav-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(5, 78, 59, 0.15);
}

.pd-nav-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pd-nav .nav-link {
    color: var(--pd-text, #0a1f17);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pd-nav .nav-link:hover { color: var(--pd-primary-dark, #047857); }

.pd-nav .nav-cta {
    background: var(--pd-grad-brand, linear-gradient(135deg, #10b981 0%, #047857 100%));
    color: #fff !important;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pd-nav .nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -6px rgba(var(--pd-pulse-rgb, 16, 185, 129), 0.5);
}

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
    .pd-hero { padding-top: 7rem; }
    .pd-hero-stage { height: 480px; }
    .pd-phone--center { --phone-w: 240px; }
    .pd-phone--side { --phone-w: 190px; }
    .pd-phone--left { left: calc(50% - 270px); }
    .pd-phone--right { right: calc(50% - 270px); }

    .pd-row {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 3rem 0;
        text-align: center;
    }

    .pd-row-text { max-width: none; margin: 0 auto; }
    .pd-row--right .pd-row-text,
    .pd-row--left .pd-row-text { order: 1; }
    .pd-row--right .pd-row-visual,
    .pd-row--left .pd-row-visual { order: 2; }

    .pd-row--right .pd-phone--solo,
    .pd-row--left .pd-phone--solo { transform: rotate(0); }

    .pd-row-visual .pd-browser { max-width: 100%; }

    .pd-capabilities-grid { grid-template-columns: 1fr 1fr; }

    .pd-footer-content { grid-template-columns: 1fr; gap: 2.5rem; }
    .pd-footer-links { grid-template-columns: repeat(2, 1fr); }

    .pd-cta-card {
        padding: 2.5rem 2rem;
        text-align: center;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .pd-hero { padding-top: 6rem; }
    .pd-hero-stage { height: 420px; }
    .pd-phone--center { --phone-w: 220px; }
    .pd-phone--side { --phone-w: 0; opacity: 0; }

    .pd-hero-actions { flex-direction: column; align-items: stretch; }
    .pd-hero-actions .pd-btn { justify-content: center; }

    .pd-showcase { padding: 3.5rem 0; }
    .pd-phone--solo { --phone-w: 240px; }

    .pd-promise-list { gap: 1rem 2rem; }
    .pd-promise-list li { font-size: 0.88rem; }

    .pd-capabilities { padding: 3rem 0; }
    .pd-capabilities-grid { grid-template-columns: 1fr; }

    .pd-cta { padding: 3.5rem 0 4.5rem; }
    .pd-cta-card { padding: 2rem 1.5rem; border-radius: 24px; }

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

    .pd-browser-url { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .pd-pill-dot,
    .pd-phone--center,
    .pd-phone--left,
    .pd-phone--right { animation: none; }

    .pd-hero-title,
    .pd-hero-sub,
    .pd-hero-actions,
    .pd-hero-chips,
    .pd-pill,
    .pd-hero-stage,
    [data-reveal] {
        opacity: 1;
        transform: none;
        animation: none;
        transition: none;
    }
}
