/* ============================================================
   PREMIUM REDESIGN LAYER — feat/premium-redesign
   Loaded AFTER styles.css. Tokens + primitives for the
   "$100k look and feel". Spec: docs/design-tokens/README.md
   Prefix: .pr-*  (port note: same classes ship to IronMind-SaaS
   with green brand values — keep anatomy identical.)
   ============================================================ */

:root {
    --pr-bg-0: #08080b;
    --pr-bg-1: #0d0d11;
    --pr-surface: #131318;
    --pr-line: rgba(255,255,255,0.08);
    --pr-text: #f4f4f6;
    --pr-text-dim: #a6a6b0;
    --pr-brand: #ff6b35;
    --pr-brand-hi: #ff8c5a;
    --pr-brand-deep: #f2521b;
    --pr-glow: rgba(255,107,53,0.35);
    --pr-trust: #22c55e;
    --pr-ink: #17171c;
    --pr-paper: #ffffff;
    --pr-paper-2: #f7f7f9;
    --pr-r-btn: 12px;
    --pr-r-tile: 12px;
    --pr-r-card: 16px;
    --pr-r-mock: 20px;
    --pr-r-pill: 999px;
    --pr-shadow-btn: 0 10px 30px -8px rgba(255,107,53,0.55), 0 2px 8px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.25);
    --pr-shadow-card: 0 24px 70px rgba(0,0,0,0.55);
    --pr-shadow-float: 0 10px 30px rgba(0,0,0,0.35);
    --pr-ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Texture: dot grid ---------- */
.pr-dotgrid { position: relative; }
.pr-dotgrid::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,0.055) 1px, transparent 1.4px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(120% 90% at 50% 40%, #000 40%, transparent 78%);
    mask-image: radial-gradient(120% 90% at 50% 40%, #000 40%, transparent 78%);
}

/* ---------- Typography utilities ---------- */
.pr-kicker {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--pr-brand);
}
.pr-h1 {
    font-size: clamp(2.5rem, 5.2vw, 4.1rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: var(--pr-text);
    margin: 0;
}
.pr-h1 .pr-accent { color: var(--pr-brand); }
.pr-h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--pr-text);
}
.pr-lead {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--pr-text-dim);
    max-width: 56ch;
}
.pr-lead strong { color: var(--pr-text); font-weight: 600; }

/* ---------- Badge (pill chip) ---------- */
.pr-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 15px;
    border-radius: var(--pr-r-pill);
    background: rgba(255,107,53,0.08);
    border: 1px solid rgba(255,107,53,0.35);
    color: var(--pr-text);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.pr-badge svg { width: 14px; height: 14px; color: var(--pr-brand); flex: none; }

/* ---------- Buttons ---------- */
.pr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 0.8rem 1.6rem;
    border-radius: var(--pr-r-btn);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.25s var(--pr-ease), box-shadow 0.25s var(--pr-ease),
                background 0.25s var(--pr-ease), border-color 0.25s var(--pr-ease);
}
.pr-btn__arrow {
    display: inline-block;
    transition: transform 0.25s var(--pr-ease);
    font-weight: 600;
}
.pr-btn:hover .pr-btn__arrow { transform: translateX(3px); }

.pr-btn--primary {
    background: linear-gradient(180deg, var(--pr-brand-hi), var(--pr-brand-deep));
    color: #fff;
    box-shadow: var(--pr-shadow-btn);
}
.pr-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 36px -8px rgba(255,107,53,0.65), 0 3px 10px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.28);
}
.pr-btn--primary:active { transform: translateY(0); }

.pr-btn--secondary {
    background: rgba(255,255,255,0.05);
    color: var(--pr-text);
    border-color: var(--pr-line);
}
.pr-btn--secondary:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

.pr-btn--ghost {
    background: transparent;
    color: var(--pr-text-dim);
    border-color: transparent;
}
.pr-btn--ghost:hover { color: var(--pr-brand); }

/* ---------- Trust row ---------- */
.pr-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.pr-trust li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.9rem;
    color: var(--pr-text-dim);
}
.pr-trust li::before {
    content: "";
    width: 15px;
    height: 15px;
    flex: none;
    background-color: var(--pr-trust);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Hero ---------- */
.pr-hero {
    background: var(--pr-bg-0);
    padding: clamp(64px, 9vh, 110px) 0 clamp(48px, 7vh, 84px);
    overflow: hidden;
}
.pr-hero::after {
    /* single warm glow, upper right — one per screen, max */
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(900px 520px at 82% -8%, rgba(255,107,53,0.13), transparent 62%);
}
.pr-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}
.pr-hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.pr-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.pr-hero__aside { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.pr-wellness-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #2dd4bf;
    text-decoration: none;
}
.pr-wellness-link:hover { text-decoration: underline; }

/* Centered-hero helpers (photo-gallery hero uses the old .hero shell with
   centered .hero-inner; these center the premium flex rows inside it). */
.pr-center { justify-content: center; }
ul.pr-trust.pr-center { padding: 0; }
.pr-wellness-link .pr-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #2dd4bf;
    box-shadow: 0 0 8px rgba(45,212,191,0.8);
}

/* ---------- Dashboard mockup card ---------- */
.pr-mock-wrap { position: relative; }
.pr-mock {
    background: var(--pr-paper);
    color: var(--pr-ink);
    border-radius: var(--pr-r-mock);
    box-shadow: var(--pr-shadow-card);
    padding: 16px 16px 18px;
    transform: rotate(0.4deg);
}
.pr-mock__bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 2px 4px 12px;
}
.pr-mock__dots { display: flex; gap: 5px; }
.pr-mock__dots span { width: 9px; height: 9px; border-radius: 50%; background: #d9d9de; }
.pr-mock__url {
    font-size: 0.72rem;
    font-weight: 600;
    color: #6f6f78;
    letter-spacing: 0.02em;
}
.pr-mock__tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.pr-mtile {
    border: 1px solid #ececf0;
    border-radius: var(--pr-r-tile);
    background: linear-gradient(180deg, #ffffff, #fafafb);
    padding: 12px 14px;
}
.pr-mtile__label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a8a93;
}
.pr-mtile__label svg { width: 12px; height: 12px; color: var(--pr-brand); }
.pr-mtile__num { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; margin-top: 4px; }
.pr-mtile__delta { font-size: 0.68rem; font-weight: 700; color: #16a34a; }
.pr-mtile__delta--muted { color: #8a8a93; font-weight: 600; }
.pr-mock__panel {
    margin-top: 10px;
    border: 1px solid #ececf0;
    border-radius: var(--pr-r-tile);
    background: var(--pr-paper-2);
    padding: 14px 14px 12px;
}
.pr-mock__panel-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--pr-ink);
    margin-bottom: 10px;
}
.pr-mock__chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 92px;
}
.pr-mock__chart span {
    flex: 1;
    height: calc(var(--h) * 1%);
    border-radius: 4px 4px 2px 2px;
    background: linear-gradient(180deg, var(--pr-brand-hi), var(--pr-brand));
    opacity: 0.92;
}

/* Floating notification pills */
.pr-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 9px;
    background: rgba(255,255,255,0.92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: var(--pr-ink);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--pr-r-pill);
    box-shadow: var(--pr-shadow-float);
    padding: 8px 14px 8px 9px;
    z-index: 2;
    animation: pr-float 6s ease-in-out infinite;
}
.pr-float--tr { top: -18px; right: -10px; }
.pr-float--bl { bottom: 34px; left: -16px; animation-delay: -3s; }
.pr-float__icon {
    width: 26px; height: 26px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,107,53,0.12);
    color: var(--pr-brand);
    flex: none;
}
.pr-float__icon--green { background: rgba(34,197,94,0.14); color: #16a34a; }
.pr-float__icon svg { width: 14px; height: 14px; }
.pr-float__title { font-size: 0.72rem; font-weight: 700; line-height: 1.2; }
.pr-float__sub { font-size: 0.64rem; font-weight: 500; color: #7c7c85; line-height: 1.2; }
@keyframes pr-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

/* ---------- Stat tiles (site stats band) ---------- */
.pr-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.pr-stat-tile {
    position: relative;
    border: 1px solid var(--pr-line);
    border-radius: var(--pr-r-tile);
    background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012));
    padding: 20px 22px 18px;
    overflow: hidden;
}
.pr-stat-tile::before {
    /* hairline brand tint along the top edge */
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,107,53,0.5), transparent);
}
.pr-stat-tile .lbl {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pr-text-dim);
}
.pr-stat-tile .num {
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--pr-text);
    margin-bottom: 2px;
}
.pr-stat-tile .num .count { color: inherit; }

/* ---------- Section + card refinements ---------- */
.pr-section { padding: clamp(56px, 8vh, 96px) 0; }
.pr-band { background: var(--pr-bg-1); }

/* Sharpen existing glass cards toward the reference card language */
.glass { border-radius: var(--pr-r-card); }
.feature-icon { border-radius: 10px; }

/* Navbar CTA inherits the primary button language (markup untouched) */
.nav-cta {
    background: linear-gradient(180deg, var(--pr-brand-hi), var(--pr-brand-deep)) !important;
    border-radius: 10px !important;
    box-shadow: 0 6px 20px -6px rgba(255,107,53,0.5), inset 0 1px 0 rgba(255,255,255,0.22) !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
    .pr-hero__grid { grid-template-columns: 1fr; }
    .pr-hero__copy { align-items: center; text-align: center; }
    .pr-hero__cta, .pr-hero__aside { justify-content: center; align-items: center; }
    .pr-trust { justify-content: center; }
    .pr-mock-wrap { max-width: 560px; margin: 8px auto 0; width: 100%; }
}
@media (max-width: 767px) {
    .pr-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pr-float--tr { top: -14px; right: 0; }
    .pr-float--bl { bottom: 20px; left: 0; }
}
@media (max-width: 420px) {
    .pr-hero__cta { width: 100%; flex-direction: column; }
    .pr-hero__cta .pr-btn { width: 100%; }
    .pr-mock { transform: none; padding: 12px 12px 14px; }
    .pr-mock__tiles { gap: 7px; }
    .pr-mtile { padding: 10px 10px; }
    .pr-mtile__num { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
    .pr-float { animation: none; }
}
