/* ============================================================
   Stock Portfolio One — Landing page (anonymous / signed-out)
   "After Dark" palette: warm sepia surfaces, gold accent.
   Pure CSS animation; landing.js layers in counters + reveals.
   ============================================================ */

:root {
    --bg:           #1d1611;
    --bg-2:         #241b13;
    --surface:      #2a221b;
    --raised:       #342a20;
    --border:       #4a3c2c;
    --border-soft:  #3a2f23;
    --text:         #ece2d2;
    --text-dim:     rgba(236, 226, 210, 0.58);
    --text-faint:   rgba(236, 226, 210, 0.40);
    --gold:         #cd9b5a;
    --gold-bright:  #e3b878;
    --gold-link:    #d6a86a;
    --green:        #8bbf6a;
    --green-bg:     rgba(139, 191, 106, 0.14);
    --shadow:       0 24px 60px rgba(0, 0, 0, 0.55);
    --ease:         cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100dvh;
}

/* ── Ambient background: layered radial glows + soft grain ── */
.landing {
    position: relative;
    min-height: 100dvh;
    overflow: hidden;
    isolation: isolate;
}

.landing::before,
.landing::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -2;
    pointer-events: none;
}

/* warm gold glow, upper-right */
.landing::before {
    width: 60vw;
    height: 60vw;
    top: -22vw;
    right: -16vw;
    background: radial-gradient(circle, rgba(205, 155, 90, 0.20), transparent 65%);
    animation: drift 22s var(--ease) infinite alternate;
}

/* green income glow, lower-left */
.landing::after {
    width: 50vw;
    height: 50vw;
    bottom: -20vw;
    left: -14vw;
    background: radial-gradient(circle, rgba(139, 191, 106, 0.12), transparent 65%);
    animation: drift 26s var(--ease) infinite alternate-reverse;
}

@keyframes drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(2vw, 3vw, 0) scale(1.12); }
}

/* faint vertical vignette to seat content */
.landing-bg-grad {
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        linear-gradient(160deg, var(--bg-2) 0%, var(--bg) 55%, #160f0b 100%);
}

/* ── Top bar ── */
.landing-top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem clamp(1.25rem, 4vw, 3.5rem);
}

.landing-mark {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--text);
}

.landing-mark .dot {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: #1d1611;
    font-size: 1rem;
}

.landing-mark .dot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.landing-live {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-dim);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    padding: 0.38rem 0.8rem;
    border-radius: 999px;
}

.landing-live .pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(139, 191, 106, 0.6);
    animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(139, 191, 106, 0.55); }
    70%  { box-shadow: 0 0 0 8px rgba(139, 191, 106, 0); }
    100% { box-shadow: 0 0 0 0 rgba(139, 191, 106, 0); }
}

/* ── Main grid ── */
.landing-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(320px, 0.82fr) 1.18fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    max-width: 1320px;
    margin: 0 auto;
    padding: clamp(1rem, 3vh, 3rem) clamp(1.25rem, 4vw, 3.5rem) 3rem;
    /* nudge the whole composition slightly below dead-center */
    min-height: calc(100dvh - 84px);
}

/* ── Left column: pitch + sign-in ── */
.landing-pitch { max-width: 460px; }

.eyebrow {
    display: inline-block;
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.landing-pitch h1 {
    font-size: clamp(2.1rem, 4.4vw, 3.25rem);
    line-height: 1.06;
    font-weight: 800;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.landing-pitch h1 .accent {
    background: linear-gradient(120deg, var(--gold-bright), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-pitch .lede {
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    line-height: 1.6;
    color: var(--text-dim);
    margin: 0 0 1.9rem;
}

/* sign-in card */
.login-card {
    background: linear-gradient(180deg, var(--raised), var(--surface));
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.75rem 1.6rem;
    max-width: 380px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(6px);
}

.login-card h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: var(--text);
}

.login-card p {
    font-size: 0.86rem;
    color: var(--text-dim);
    margin: 0 0 1.25rem;
}

.btn-gold {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    padding: 0.7rem 1rem;
    border-radius: 0.65rem;
    border: none;
    color: #1d1611;
    background: linear-gradient(145deg, var(--gold-bright), var(--gold));
    box-shadow: 0 6px 20px rgba(205, 155, 90, 0.35);
    transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), filter 0.18s var(--ease);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(205, 155, 90, 0.5);
    filter: brightness(1.04);
    color: #1d1611;
}

.btn-ghost {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    padding: 0.7rem 1rem;
    margin-top: 0.6rem;
    border-radius: 0.65rem;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--border);
    transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.btn-ghost:hover {
    border-color: var(--gold);
    background: rgba(205, 155, 90, 0.08);
    color: var(--text);
}

.trust-row {
    display: flex;
    gap: 1.6rem;
    margin-top: 1.75rem;
    flex-wrap: wrap;
}

.trust-row .stat .v {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.trust-row .stat .k {
    font-size: 0.74rem;
    color: var(--text-faint);
    letter-spacing: 0.03em;
}

/* ── Right column: product showcase ── */
.showcase {
    position: relative;
    perspective: 1600px;
}

.panel {
    position: relative;
    background: linear-gradient(180deg, var(--surface), #241c15);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 1.4rem 1.5rem 1.6rem;
    box-shadow: var(--shadow);
    transform: rotateY(-7deg) rotateX(3deg);
    transform-style: preserve-3d;
    animation: float-panel 9s ease-in-out infinite;
}

@keyframes float-panel {
    0%, 100% { transform: rotateY(-7deg) rotateX(3deg) translateY(0); }
    50%      { transform: rotateY(-5deg) rotateX(2deg) translateY(-12px); }
}

.panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.panel-head .label {
    font-size: 0.8rem;
    color: var(--text-dim);
    letter-spacing: 0.02em;
}

.panel-head .pill {
    font-size: 0.72rem;
    color: var(--gold-link);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.22rem 0.6rem;
}

.panel-head .pill-sample {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.03);
}

.big-figure {
    display: flex;
    align-items: baseline;
    gap: 0.7rem;
    margin-bottom: 0.2rem;
}

.big-figure .amt {
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}

.badge-up {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--green);
    background: var(--green-bg);
    border-radius: 999px;
    padding: 0.18rem 0.55rem;
}

.sub-note { font-size: 0.78rem; color: var(--text-faint); margin-bottom: 0.6rem; }

/* chart */
.chart-wrap { position: relative; margin: 0.3rem -0.3rem 0.9rem; }
.chart-wrap svg { display: block; width: 100%; height: auto; }

.chart-line {
    fill: none;
    stroke: url(#goldStroke);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 2s var(--ease);
}
.in-view .chart-line { stroke-dashoffset: 0; }

.chart-area {
    fill: url(#goldFill);
    opacity: 0;
    transition: opacity 1.4s ease 0.5s;
}
.in-view .chart-area { opacity: 1; }

.chart-grid line { stroke: var(--border-soft); stroke-width: 1; }
.chart-dot {
    fill: var(--gold-bright);
    opacity: 0;
    transform: scale(0.4);
    transform-origin: center;
    transition: opacity 0.4s ease, transform 0.4s var(--ease);
}
.in-view .chart-dot { opacity: 1; transform: scale(1); transition-delay: 1.9s; }

/* ticker tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.tile {
    background: var(--raised);
    border: 1px solid var(--border-soft);
    border-radius: 0.7rem;
    padding: 0.6rem 0.7rem;
}
.tile .sym { font-weight: 700; font-size: 0.9rem; color: var(--gold-link); }
.tile .yld { font-size: 0.74rem; color: var(--text-dim); }
.tile .chg { font-size: 0.78rem; font-weight: 600; margin-top: 0.15rem; }
.tile .chg.up { color: var(--green); }

/* floating mini cards */
.float-card {
    position: absolute;
    background: linear-gradient(180deg, var(--raised), var(--surface));
    border: 1px solid var(--border);
    border-radius: 0.85rem;
    padding: 0.75rem 0.9rem;
    box-shadow: var(--shadow);
    z-index: 3;
}

.float-card .fc-label { font-size: 0.68rem; color: var(--text-faint); letter-spacing: 0.04em; }
.float-card .fc-value { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.float-card .fc-score { font-size: 0.74rem; color: var(--text-dim); margin-top: 1px; }

.fc-next {
    top: 150px;
    left: -42px;
    animation: float-a 7s ease-in-out infinite;
}

.fc-safety {
    bottom: -30px;
    right: -28px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: float-b 8s ease-in-out infinite;
}

@keyframes float-a {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}
@keyframes float-b {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(11px); }
}

/* safety gauge */
.gauge { position: relative; width: 64px; height: 64px; flex-shrink: 0; }
.gauge svg { transform: rotate(-90deg); display: block; }
.gauge .track { fill: none; stroke: var(--border); stroke-width: 7; }
.gauge .prog {
    fill: none;
    stroke: var(--green);
    stroke-width: 7;
    stroke-linecap: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 1.8s var(--ease) 0.3s;
}
.gauge .num {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--green);
}

.gauge .num.grade { font-size: 1.45rem; line-height: 1; }

/* ── Entrance reveals (driven by .reveal + JS .shown) ── */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.shown { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.18s; }
.reveal.d3 { transition-delay: 0.28s; }
.reveal.d4 { transition-delay: 0.40s; }

/* ── Responsive ── */
@media (max-width: 991px) {
    .landing-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        text-align: left;
        padding-top: 1rem;
        min-height: 0;
    }
    .panel { transform: none; animation: none; }
    .fc-next  { top: -20px; left: 8px; }
    .fc-safety { bottom: -22px; right: 6px; }
    .showcase { margin-top: 1rem; }
}

@media (max-width: 575px) {
    .trust-row { gap: 1.1rem; }
    .float-card { display: none; }
    .panel { padding: 1.1rem 1.1rem 1.3rem; }
    .landing-live { display: none; }
}

/* ── Respect reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .landing::before, .landing::after,
    .panel, .fc-next, .fc-safety, .landing-live .pulse { animation: none !important; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .chart-line { stroke-dashoffset: 0; transition: none; }
    .chart-area, .chart-dot { opacity: 1; transform: none; transition: none; }
    .gauge .prog { transition: none; }
}

/* ── Features / How it works / Why choose (below-the-fold homepage sections) ── */
.landing-features,
.landing-how {
    position: relative;
    z-index: 1;
    max-width: 1320px;
    margin: 0 auto;
    padding: clamp(2rem, 5vh, 3.5rem) clamp(1.25rem, 4vw, 3.5rem);
}

.features-header,
.how-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.features-header h2,
.how-header h2,
.landing-why h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0.6rem 0 0.75rem;
}

.features-header p,
.landing-why > .why-copy > p {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.feature-card {
    background: linear-gradient(180deg, var(--raised), var(--surface));
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem 1.4rem;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0.6rem;
    background: rgba(205, 155, 90, 0.14);
    color: var(--gold-bright);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.5rem;
}

.feature-card p {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-dim);
    margin: 0;
}

.how-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.how-num {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--gold-bright), var(--gold));
    color: #1d1611;
    font-weight: 800;
    margin-bottom: 1rem;
}

.how-step h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.5rem;
}

.how-step p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-dim);
    margin: 0 auto;
    max-width: 320px;
}

.landing-why {
    position: relative;
    z-index: 1;
    max-width: 1320px;
    margin: 0 auto clamp(2rem, 5vh, 3.5rem);
    padding: clamp(2rem, 4vw, 2.75rem) clamp(1.25rem, 4vw, 3.5rem);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
    background: linear-gradient(180deg, var(--raised), var(--surface));
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    box-shadow: var(--shadow);
}

.landing-why h2 { margin-top: 0; }

.why-list {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.why-list li {
    position: relative;
    padding-left: 1.6rem;
    color: var(--text);
    font-size: 0.94rem;
}

.why-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--gold-bright);
    font-weight: 700;
}

.why-stats {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
}

.why-stat-main { text-align: center; margin-bottom: 1.25rem; }

.why-stat-label {
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-bottom: 0.4rem;
}

.why-stat-value {
    font-size: clamp(2.2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--gold-bright);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.why-stat-sub {
    font-size: 0.78rem;
    color: var(--text-faint);
}

.why-stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.why-stat-box {
    background: var(--raised);
    border: 1px solid var(--border-soft);
    border-radius: 0.7rem;
    padding: 0.9rem;
    text-align: center;
}

.why-stat-box-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.why-stat-box-label {
    font-size: 0.72rem;
    color: var(--text-faint);
    margin-top: 0.1rem;
}

@media (max-width: 991px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .how-steps { grid-template-columns: 1fr; gap: 2.5rem; }
    .landing-why { grid-template-columns: 1fr; }
}

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

/* ── Footer links (mirror pricing page) ── */
.foot-links {
    text-align: center;
    padding-top: 2.5rem;
    font-size: 0.8rem;
    color: var(--text-faint);
}

.foot-links a {
    color: var(--text-dim);
    text-decoration: none;
    margin: 0 0.3rem;
}

.foot-links a:hover { color: var(--gold-link); }

/* ── Shared marketing-page footer (_MarketingLayout.cshtml) ── */
.landing-foot {
    text-align: center;
    padding: 2.5rem 1rem 1rem;
    font-size: 0.8rem;
    color: var(--text-faint);
}

.landing-foot a {
    color: var(--text-dim);
    text-decoration: none;
    margin: 0 0.3rem;
}

/* ── CMS-authored dynamic page body (Page.cshtml) ──
   TinyMCE's editor iframe has no margin reset of its own, so paragraphs and
   headings there just get the plain browser-default spacing — which happens
   to be close to Bootstrap's own default (p: margin-bottom 1rem; headings:
   margin-bottom 0.5rem). So outside of tables, this block intentionally does
   NOT zero those margins — leave Bootstrap's defaults alone and the published
   page matches what was typed in the editor.
   Table cells are the exception: Word-pasted table content wraps each cell's
   text in <p class="MsoNormal">, and a normal 1rem paragraph margin inside a
   cell reads as a much taller row than the editor showed (the editor's table
   plugin CSS doesn't add that spacing). So margins ARE zeroed, but only
   scoped to inside td/th, below. */
.cms-page-body h1,
.cms-page-body h2,
.cms-page-body h3,
.cms-page-body h4 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
}

.cms-page-body ol,
.cms-page-body ul {
    padding-left: 1.5em;
}

.cms-page-body li:not(:last-child) {
    margin-bottom: 0.15em;
}

.cms-page-body blockquote {
    border-left: 3px solid var(--border);
    padding-left: 12px;
    color: var(--text-dim);
}

.cms-page-body img {
    max-width: 100%;
    height: auto;
}

/* Tables authored via the CMS body editor (TinyMCE's table plugin). That plugin's own
   CSS (which draws its grid lines/handles) only loads in the admin editor, so published
   pages need their own baseline styling or a table renders as borderless text.
   display:block + overflow-x:auto lets an author-set width (e.g. style="width:800px")
   scroll on narrow viewports instead of blowing out the layout. */
.cms-page-body table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

.cms-page-body th,
.cms-page-body td {
    border: 1px solid var(--border) !important;
    padding: 8px 12px !important;
    text-align: left !important;
}

.cms-page-body th {
    font-weight: 600;
    background: var(--raised);
}

.cms-page-body td p,
.cms-page-body td ol,
.cms-page-body td ul,
.cms-page-body td blockquote,
.cms-page-body th p,
.cms-page-body th ol,
.cms-page-body th ul,
.cms-page-body th blockquote {
    margin: 0 !important;
}

/* ── Landing Page content type (Pages/Shared/Templates/LandingPage.cshtml) ── */
.landing-hero {
    background: linear-gradient(160deg, var(--raised) 0%, var(--bg) 80%);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
    text-align: center;
    margin: 2rem 0 2.5rem;
    box-shadow: var(--shadow);
}

.landing-hero-title {
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    background: linear-gradient(120deg, var(--gold-bright), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-hero-subtitle {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.6;
    color: var(--text-dim);
    max-width: 640px;
    margin: 0 auto;
}

.landing-groups-wrap {
    margin-bottom: 2.5rem;
}

.landing-groups {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
}

.landing-group {
    grid-column: span 2;
    background: linear-gradient(180deg, var(--raised), var(--surface));
    border: 1px solid var(--border);
    border-top: 3px solid var(--gold);
    border-radius: 1rem;
    padding: 1.5rem 1.6rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}

.landing-group-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.landing-group-subtitle {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.landing-group-links {
    margin: 0 0 1.25rem;
    flex: 1 1 auto;
}

.landing-group-links li {
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border-soft);
}

.landing-group-links li:last-child {
    border-bottom: none;
}

.landing-group-links a {
    color: var(--gold-link);
    text-decoration: none;
    font-size: 0.92rem;
}

.landing-group-links a:hover {
    color: var(--gold-link);
}

/* Reuses .btn-gold's exact look (see the sign-in card CTA above) so every
   call-to-action on the site — hero login, Landing Page group CTA — matches. */
.landing-group-cta {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    padding: 0.65rem 1rem;
    border-radius: 0.65rem;
    border: none;
    color: #1d1611;
    background: linear-gradient(145deg, var(--gold-bright), var(--gold));
    box-shadow: 0 6px 20px rgba(205, 155, 90, 0.35);
    margin-top: auto;
    transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), filter 0.18s var(--ease);
}

.landing-group-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(205, 155, 90, 0.5);
    filter: brightness(1.04);
    color: #1d1611;
}

/* Below 992px the precise 6-column span math gets cramped — step down to a simpler
   2-per-row (tablet) / 1-per-row (mobile) layout instead of shrinking cards further. */
@media (max-width: 991.98px) {
    .landing-groups {
        grid-template-columns: repeat(2, 1fr);
    }
    .landing-group {
        grid-column: span 1 !important;
    }
}

@media (max-width: 575.98px) {
    .landing-groups {
        grid-template-columns: 1fr;
    }
}

.landing-foot a:hover { color: var(--gold-link); }

/* ── Public mega-menu (authored via the CMS Menu Builder) ───────────────── */
.menu-trigger {
    position: fixed;
    top: clamp(4.6rem, 4vw + 3.6rem, 5.4rem);
    right: clamp(1.25rem, 4vw, 3.5rem);
    z-index: 80;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    color: var(--text-dim);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.menu-trigger:hover {
    border-color: var(--gold);
    color: var(--text);
}

.menu-trigger-icon { display: inline-flex; }
.menu-trigger-icon .icon-close { display: none; }
.menu-trigger.is-active .icon-open { display: none; }
.menu-trigger.is-active .icon-close { display: inline-flex; }

.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 70;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
}

.menu-overlay.is-open {
    visibility: visible;
    opacity: 1;
}

.menu-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(36, 27, 19, 0.90) 0%, rgba(36, 27, 19, 0.80) 100%);
    backdrop-filter: blur(8px);
}

.menu-overlay-panel {
    position: absolute;
    inset: 0;
    margin: 0 auto;
    max-width: 1180px;
    padding: clamp(5.5rem, 8vw, 7rem) clamp(1.25rem, 4vw, 3.5rem) 2rem;
    overflow-y: auto;
    background: transparent;
    transform: translateY(-12px);
    opacity: 0;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
    font-family: 'General Sans', Arial, sans-serif, serif;
    font-size: 16px;
}

.menu-overlay.is-open .menu-overlay-panel {
    transform: translateY(0);
    opacity: 1;
}

.menu-overlay-body {
    display: grid;
    grid-template-columns: 0.9fr 1.0fr 1.3fr;
    gap: clamp(1.5rem, 3vw, 3rem);
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-soft);
}

.menu-overlay-body--no-secondary { grid-template-columns: 1fr 1fr; }

.menu-col-primary { display: flex; flex-direction: column; }

.menu-primary-link {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.25rem 0;
    text-decoration: none;
    color: var(--text);
}

.menu-primary-link:first-child { padding-top: 0; }
.menu-primary-link:not(:first-child) { border-top: 1px solid var(--border-soft); }

.menu-primary-title {
    font-family: 'DM Serif Text', 'Times New Roman', serif;
    font-size: 24px;
    font-weight: 400;
    transition: color 0.18s var(--ease);
}

.menu-primary-link:hover .menu-primary-title { color: var(--gold-bright); }
.menu-primary-subtitle { font-size: 16px; color: var(--text-dim); }

.menu-col-secondary {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1.5rem;
    border-left: 1px solid var(--border-soft);
    border-right: 1px solid var(--border-soft);
}

.menu-secondary-link {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    transition: color 0.18s var(--ease);
}

.menu-secondary-link:hover { color: var(--gold-bright); }

.menu-col-featured { display: flex; flex-direction: column; gap: 1.25rem; }

.menu-featured-slider { position: relative; }

.menu-featured-card { display: none; }
.menu-featured-card.is-active { display: block; }

.menu-featured-card h3 {
    font-family: 'DM Serif Text', 'Times New Roman', serif;
    font-size: 32px;
    font-weight: 400;
    margin: 0 0 75px;
    color: var(--text);
}

.menu-featured-divider {
    border: none;
    border-top: 2px solid var(--gold);
    width: 100%;
    margin: 0 0 25px;
}

.menu-featured-body {
    color: var(--text-dim);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0;
}

.menu-featured-body p:last-child { margin-bottom: 0; }

.menu-featured-actions {
    display: flex;
    align-items: center;
    margin-top: 25px;
}

.menu-featured-btn {
    display: inline-block;
    width: auto;
    text-align: left;
    font-size: 0.85rem;
    padding: 0.5rem 1.1rem;
}

.menu-featured-dots {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.menu-featured-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--border-soft);
    cursor: pointer;
    transition: background 0.18s var(--ease), transform 0.18s var(--ease);
}

.menu-featured-dot:hover { background: var(--gold-link); }
.menu-featured-dot.is-active { background: var(--gold); transform: scale(1.2); }

.menu-overlay-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    padding-top: 1.5rem;
    font-size: 16px;
}

/* Underlined in the reference screenshot; deliberately not underlined here. */
.menu-overlay-footer a {
    color: var(--text-dim);
    text-decoration: none;
}

.menu-overlay-footer a:hover { color: var(--gold-link); }

body.menu-open { overflow: hidden; }

@media (max-width: 900px) {
    .menu-trigger { top: 1.1rem; right: 1.1rem; }
    .menu-overlay-body { grid-template-columns: 1fr; gap: 2rem; }
    .menu-col-secondary { border-left: none; border-right: none; padding: 0; }
    .menu-overlay-panel { padding-top: 5rem; }
}
