/* =====================================================================
   Associates Diary — public landing page
   ---------------------------------------------------------------------
   Color system is grounded in three things:
   - Deep navy + royal blue: trust, professionalism, B2B/legal default
     (Hallock; Color Affects Theory).
   - Warm gold: prestige + the legal heritage carried over from gavels
     and law-firm masthead branding.
   - Warm cream backgrounds: longer dwell time + reduced eye strain
     compared with stark white (NN/g, Bernard).
   Scoped to body.ad-landing so nothing leaks into the dashboard.
   ===================================================================== */

:root {
    /* Brand */
    --ad-navy:           #0B1F3F;
    --ad-navy-2:         #142B5C;
    --ad-navy-3:         #1E4BA0;
    --ad-gold:           #D4A24A;
    --ad-gold-bright:    #F5C76A;
    --ad-gold-deep:      #B07F1E;
    --ad-gold-deepest:   #8C5E10;

    /* Surfaces */
    --ad-bg:             #FAF7F2;   /* warm cream — primary surface */
    --ad-bg-alt:         #F2EDE4;   /* warmer alt — alternating sections */
    --ad-bg-card:        #FFFFFF;
    --ad-bg-dark:        var(--ad-navy);
    --ad-bg-dark-2:      var(--ad-navy-2);

    /* Text */
    --ad-fg:             #0F172A;
    --ad-fg-muted:       #475569;
    --ad-fg-faint:       #94A3B8;
    --ad-fg-inverse:     #FFFFFF;

    /* Lines + shadow */
    --ad-border:         #E5DFD3;
    --ad-border-strong:  #C9C2B2;
    --ad-shadow-sm:      0 1px 2px rgba(11,31,63,.05), 0 2px 6px rgba(11,31,63,.04);
    --ad-shadow-md:      0 4px 12px rgba(11,31,63,.08), 0 12px 28px rgba(11,31,63,.10);
    --ad-shadow-lg:      0 8px 24px rgba(11,31,63,.10), 0 28px 64px rgba(11,31,63,.18);

    /* Geometry */
    --ad-radius-sm:      8px;
    --ad-radius:         14px;
    --ad-radius-lg:      22px;
    --ad-radius-xl:      32px;
    --ad-section-pad:    104px;

    /* Type — Google Noto: international web standard, full multi-script coverage */
    --ad-font-display:   'Noto Serif', Georgia, 'Times New Roman', 'Noto Sans Arabic', serif;
    --ad-font-body:      'Noto Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans Arabic', sans-serif;

    /* Motion */
    --ad-ease:           cubic-bezier(.2,.7,.2,1);
}

html { scroll-behavior: smooth; }

body.ad-landing {
    margin: 0;
    background: var(--ad-bg);
    color: var(--ad-fg);
    font-family: var(--ad-font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.ad-landing img { max-width: 100%; height: auto; display: block; }
body.ad-landing a   { color: var(--ad-gold-deep); text-decoration: none; }
body.ad-landing a:hover { color: var(--ad-gold-deepest); text-decoration: underline; }
body.ad-landing h1, body.ad-landing h2, body.ad-landing h3,
body.ad-landing h4, body.ad-landing h5, body.ad-landing h6 {
    font-family: var(--ad-font-display);
    color: var(--ad-fg);
}

.ad-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.ad-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .8rem 1.5rem;
    border-radius: 12px;
    font-family: var(--ad-font-body);
    font-weight: 600;
    font-size: .98rem;
    line-height: 1;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .18s var(--ad-ease), box-shadow .18s var(--ad-ease),
                background-color .18s var(--ad-ease), color .18s var(--ad-ease),
                border-color .18s var(--ad-ease);
    text-decoration: none;
    white-space: nowrap;
}
.ad-btn:hover { transform: translateY(-1px); text-decoration: none; }
.ad-btn:focus-visible { outline: 3px solid rgba(212,162,74,.45); outline-offset: 2px; }
.ad-btn--lg    { padding: 1rem 1.85rem; font-size: 1.05rem; border-radius: 14px; }
.ad-btn--block { display: flex; width: 100%; }

.ad-btn--primary {
    background: linear-gradient(135deg, var(--ad-navy-2) 0%, var(--ad-navy) 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(11,31,63,.28);
}
.ad-btn--primary:hover {
    color: #fff;
    box-shadow: 0 12px 28px rgba(11,31,63,.40);
}

.ad-btn--gold {
    background: linear-gradient(135deg, var(--ad-gold-bright) 0%, var(--ad-gold) 100%);
    color: var(--ad-navy);
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(212,162,74,.30);
}
.ad-btn--gold:hover {
    color: var(--ad-navy);
    box-shadow: 0 12px 28px rgba(212,162,74,.40);
}

.ad-btn--ghost {
    background: transparent;
    color: var(--ad-fg-inverse);
    border-color: rgba(255,255,255,.45);
}
.ad-btn--ghost:hover { background: rgba(255,255,255,.08); color: #fff; }

.ad-section .ad-btn--ghost,
.ad-section--cta .ad-btn--ghost {
    color: var(--ad-fg);
    border-color: rgba(11,31,63,.20);
}
.ad-section .ad-btn--ghost:hover,
.ad-section--cta .ad-btn--ghost:hover {
    background: rgba(11,31,63,.04);
    color: var(--ad-fg);
}

/* ---------------------------------------------------------------------
   Sticky nav
   --------------------------------------------------------------------- */
.ad-nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(250,247,242,.82);
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    border-bottom: 1px solid rgba(11,31,63,.06);
    transition: background-color .25s var(--ad-ease), box-shadow .25s var(--ad-ease), border-color .25s var(--ad-ease);
}
.ad-nav.is-scrolled {
    background: rgba(250,247,242,.97);
    border-bottom-color: rgba(11,31,63,.10);
    box-shadow: 0 6px 22px rgba(11,31,63,.07);
}
.ad-nav__inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.05rem 0; gap: 1rem;
}
.ad-nav__brand {
    display: inline-flex; align-items: center; gap: .75rem;
    color: var(--ad-navy); font-weight: 700; font-size: 1.05rem; letter-spacing: .2px;
    font-family: var(--ad-font-display);
}
.ad-nav__brand:hover { color: var(--ad-navy); text-decoration: none; }
.ad-nav__logo {
    width: 40px; height: 40px;
    object-fit: contain;
}
.ad-nav__links { display: flex; gap: 1.75rem; }
.ad-nav__links a {
    color: var(--ad-fg-muted);
    font-weight: 500; font-size: .95rem;
    position: relative;
}
.ad-nav__links a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
    height: 2px; background: var(--ad-gold);
    transform: scaleX(0); transform-origin: center;
    transition: transform .2s var(--ad-ease);
}
.ad-nav__links a:hover { color: var(--ad-navy); text-decoration: none; }
.ad-nav__links a:hover::after { transform: scaleX(1); }
.ad-nav__cta { padding: .65rem 1.2rem; font-size: .92rem; }

/* Right cluster: login pill + (mobile) burger button */
.ad-nav__actions { display: inline-flex; align-items: center; gap: .5rem; }

/* Burger button — hidden at desktop, revealed at <=991px */
.ad-nav__burger {
    display: none;
    width: 40px; height: 40px;
    background: transparent;
    border: 1px solid rgba(11,31,63,.12);
    border-radius: 10px;
    padding: 0;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    transition: background .15s var(--ad-ease), border-color .15s var(--ad-ease);
}
.ad-nav__burger:hover { background: rgba(11,31,63,.04); }
.ad-nav__burger span {
    display: block;
    width: 18px; height: 2px;
    background: var(--ad-navy);
    border-radius: 1px;
    transform-origin: center;
    transition: transform .25s var(--ad-ease), opacity .25s var(--ad-ease);
}
.ad-nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ad-nav__burger.is-open span:nth-child(2) { opacity: 0; }
.ad-nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------------
   Eyebrows + section titles
   --------------------------------------------------------------------- */
.ad-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: .75rem;
    font-weight: 700;
    color: var(--ad-gold-deep);
    margin-bottom: 1rem;
    padding: .35rem .75rem;
    background: rgba(212,162,74,.14);
    border-radius: 999px;
}
.ad-eyebrow--gold {
    color: var(--ad-gold-deep);
    background: rgba(212,162,74,.14);
}
.ad-eyebrow--inverse {
    color: var(--ad-gold-bright);
    background: rgba(245,199,106,.14);
}

.ad-section { padding: var(--ad-section-pad) 0; background: var(--ad-bg); }
.ad-section--alt { background: var(--ad-bg-alt); }
.ad-section--cream { background: var(--ad-bg); }
.ad-section--cta { background: linear-gradient(180deg, var(--ad-bg-alt) 0%, var(--ad-bg) 100%); }
.ad-section__head { text-align: center; max-width: 760px; margin: 0 auto 3.5rem; }
.ad-section__title {
    font-family: var(--ad-font-display);
    font-size: clamp(2rem, 3.6vw, 2.85rem);
    font-weight: 800;
    line-height: 1.12;
    margin: 0 0 1rem;
    color: var(--ad-fg);
    letter-spacing: -.5px;
}
.ad-section__title em {
    font-style: italic;
    color: var(--ad-gold-deep);
}
.ad-section__lede {
    font-size: 1.12rem;
    color: var(--ad-fg-muted);
    line-height: 1.7;
    margin: 0;
}

/* ---------------------------------------------------------------------
   Hero + slider
   --------------------------------------------------------------------- */
.ad-hero {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--ad-navy) 0%, var(--ad-navy-2) 55%, var(--ad-navy-3) 100%);
    color: var(--ad-fg-inverse);
    padding: 140px 0 120px;
    isolation: isolate;
}
.ad-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
      radial-gradient(circle at 78% 18%, rgba(245,199,106,.22), transparent 55%),
      radial-gradient(circle at 12% 88%, rgba(212,162,74,.18), transparent 55%);
    z-index: 0;
}
.ad-hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
    background-image:
      linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    z-index: 0;
}
.ad-hero__inner { position: relative; z-index: 1; }

.ad-hero__slides {
    position: relative;
    min-height: 420px;
}
.ad-hero__slide {
    position: absolute; inset: 0;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 3rem;
    align-items: center;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .55s var(--ad-ease), transform .55s var(--ad-ease);
}
.ad-hero__slide.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.ad-hero__copy { max-width: 640px; }
.ad-hero__copy .ad-eyebrow { background: rgba(245,199,106,.16); color: var(--ad-gold-bright); }
.ad-hero__headline {
    font-family: var(--ad-font-display);
    font-size: clamp(2.5rem, 5.2vw, 4.1rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1px;
    margin: 0 0 1.25rem;
    color: #fff;
}
.ad-hero__headline em {
    font-style: italic;
    background: linear-gradient(120deg, var(--ad-gold-bright) 0%, var(--ad-gold) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.ad-hero__subhead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255,255,255,.82);
    max-width: 560px;
    margin: 0 0 2rem;
}
.ad-hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 1.75rem; }
.ad-hero__bullets {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-wrap: wrap; gap: 1.25rem 1.5rem;
    color: rgba(255,255,255,.8); font-size: .95rem;
}
.ad-hero__bullets li { display: inline-flex; align-items: center; gap: .55rem; }
.ad-hero__bullets i {
    width: 18px; height: 18px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(245,199,106,.18);
    color: var(--ad-gold-bright);
    font-size: .65rem;
}

.ad-hero__art {
    position: relative;
    aspect-ratio: 5 / 4;
    display: flex; align-items: center; justify-content: center;
}
.ad-hero__panel {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--ad-radius-xl);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 24px 60px rgba(0,0,0,.35);
    overflow: hidden;
    padding: 1.5rem;
}
.ad-hero__panel-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: auto repeat(5, 1fr);
    gap: 6px;
    height: 100%;
    color: rgba(255,255,255,.85);
    font-family: var(--ad-font-body);
    font-size: .82rem;
}
.ad-hero__panel-head {
    grid-column: 1 / -1;
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: .75rem;
    border-bottom: 1px solid rgba(255,255,255,.10);
    margin-bottom: .5rem;
}
.ad-hero__panel-title { font-family: var(--ad-font-display); font-weight: 700; font-size: 1rem; }
.ad-hero__panel-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ad-gold-bright); }
.ad-hero__panel-cell {
    background: rgba(255,255,255,.04);
    border-radius: 6px;
    padding: 4px 6px;
    font-size: .68rem;
    color: rgba(255,255,255,.55);
}
.ad-hero__panel-cell.is-event {
    background: linear-gradient(135deg, rgba(245,199,106,.85), rgba(212,162,74,.85));
    color: var(--ad-navy);
    font-weight: 600;
}
.ad-hero__panel-cell.is-event--blue {
    background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.06));
    border: 1px solid rgba(245,199,106,.45);
    color: rgba(255,255,255,.92);
}

/* "tasks" panel for slide 2 */
.ad-hero__tasks {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: .65rem;
}
.ad-hero__tasks li {
    display: flex; align-items: center; gap: .75rem;
    padding: .65rem .85rem;
    border-radius: 10px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    color: rgba(255,255,255,.88);
    font-size: .9rem;
}
.ad-hero__tasks li i {
    width: 28px; height: 28px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(245,199,106,.20);
    color: var(--ad-gold-bright);
}
.ad-hero__tasks li.is-done i { background: rgba(34,197,94,.20); color: #4ADE80; }
.ad-hero__tasks li.is-done span { text-decoration: line-through; color: rgba(255,255,255,.5); }

/* "stats" panel for slide 3 */
.ad-hero__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .85rem;
    height: 100%;
}
.ad-hero__stat {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 12px;
    padding: 1rem;
    display: flex; flex-direction: column; justify-content: space-between;
}
.ad-hero__stat-value {
    font-family: var(--ad-font-display);
    font-size: 1.95rem;
    font-weight: 800;
    color: var(--ad-gold-bright);
    line-height: 1;
}
.ad-hero__stat-label {
    margin-top: .35rem;
    font-size: .82rem;
    color: rgba(255,255,255,.66);
}
.ad-hero__stat-bar {
    height: 4px; border-radius: 999px;
    background: rgba(255,255,255,.10);
    margin-top: .75rem;
    overflow: hidden;
}
.ad-hero__stat-bar > span {
    display: block; height: 100%;
    background: linear-gradient(90deg, var(--ad-gold), var(--ad-gold-bright));
}

/* slider controls */
.ad-hero__nav {
    display: flex; align-items: center; gap: 1rem;
    margin-top: 2rem;
}
.ad-hero__dots { display: flex; gap: .5rem; }
.ad-hero__dot {
    width: 28px; height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,.18);
    border: none;
    cursor: pointer;
    transition: background .2s var(--ad-ease), width .2s var(--ad-ease);
}
.ad-hero__dot.is-active {
    background: var(--ad-gold-bright);
    width: 44px;
}
.ad-hero__arrows { margin-left: auto; display: flex; gap: .5rem; }
.ad-hero__arrow {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.20);
    background: rgba(255,255,255,.04);
    color: rgba(255,255,255,.78);
    cursor: pointer;
    transition: background .2s var(--ad-ease), color .2s var(--ad-ease), border-color .2s var(--ad-ease);
}
.ad-hero__arrow:hover {
    background: rgba(245,199,106,.18);
    border-color: var(--ad-gold);
    color: var(--ad-gold-bright);
}

/* ---------------------------------------------------------------------
   Trust bar
   --------------------------------------------------------------------- */
.ad-trustbar {
    background: var(--ad-bg);
    border-bottom: 1px solid var(--ad-border);
    padding: 2.25rem 0;
    text-align: center;
}
.ad-trustbar__label {
    text-transform: uppercase;
    letter-spacing: .2em;
    font-size: .76rem;
    font-weight: 600;
    color: var(--ad-fg-muted);
    margin-bottom: 1.2rem;
}
.ad-trustbar__row {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: 2.5rem;
    color: var(--ad-fg-muted);
    font-family: var(--ad-font-display);
    font-weight: 700;
    font-size: 1.05rem;
    opacity: .75;
}
.ad-trustbar__item { display: inline-flex; align-items: center; gap: .55rem; }
.ad-trustbar__item i { color: var(--ad-gold-deep); }

/* ---------------------------------------------------------------------
   Features grid
   --------------------------------------------------------------------- */
.ad-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 1.5rem;
}
.ad-feature-card {
    background: var(--ad-bg-card);
    border: 1px solid var(--ad-border);
    border-radius: var(--ad-radius);
    padding: 2rem 1.85rem 1.85rem;
    box-shadow: var(--ad-shadow-sm);
    transition: transform .25s var(--ad-ease), box-shadow .25s var(--ad-ease), border-color .25s var(--ad-ease);
    position: relative; overflow: hidden;
}
.ad-feature-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--ad-gold-deep), var(--ad-gold-bright));
    opacity: 0; transition: opacity .25s var(--ad-ease);
}
.ad-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ad-shadow-md);
    border-color: var(--ad-border-strong);
}
.ad-feature-card:hover::before { opacity: 1; }

.ad-feature-card__icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(11,31,63,.06), rgba(212,162,74,.16));
    color: var(--ad-navy);
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
}
.ad-feature-card__title {
    font-family: var(--ad-font-display);
    font-size: 1.25rem; font-weight: 700;
    margin: 0 0 .55rem;
    color: var(--ad-fg);
    letter-spacing: -.2px;
}
.ad-feature-card p {
    color: var(--ad-fg-muted);
    margin: 0 0 .85rem;
    font-size: .98rem;
    line-height: 1.65;
}
.ad-feature-card__list {
    list-style: none; padding: 0; margin: 0;
    color: var(--ad-fg-muted);
    font-size: .9rem;
}
.ad-feature-card__list li {
    display: flex; align-items: flex-start; gap: .55rem;
    padding: .25rem 0;
}
.ad-feature-card__list li i { color: var(--ad-gold-deep); font-size: .7rem; margin-top: .35rem; }

/* ---------------------------------------------------------------------
   Workflow showcase
   --------------------------------------------------------------------- */
.ad-flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}
.ad-flow__step {
    position: relative;
    background: var(--ad-bg-card);
    border: 1px solid var(--ad-border);
    border-radius: var(--ad-radius);
    padding: 1.5rem 1.25rem;
    box-shadow: var(--ad-shadow-sm);
}
.ad-flow__num {
    position: absolute; top: -16px; left: 1.25rem;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ad-gold-bright), var(--ad-gold));
    color: var(--ad-navy);
    font-family: var(--ad-font-display); font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--ad-shadow-sm);
}
.ad-flow__title {
    font-family: var(--ad-font-display);
    margin: 1.5rem 0 .5rem; font-size: 1.1rem; font-weight: 700;
}
.ad-flow__desc { color: var(--ad-fg-muted); font-size: .92rem; margin: 0; line-height: 1.55; }

/* ---------------------------------------------------------------------
   Stat strip — concrete product facts on a dark navy band
   --------------------------------------------------------------------- */
.ad-statstrip {
    background: linear-gradient(135deg, var(--ad-navy) 0%, var(--ad-navy-2) 60%, #1a3a82 100%);
    color: #fff;
    padding: 5.5rem 0 6rem;
    position: relative; overflow: hidden;
}
.ad-statstrip::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
      radial-gradient(circle at 88% 12%, rgba(245,199,106,.22), transparent 50%),
      radial-gradient(circle at 14% 88%, rgba(212,162,74,.14), transparent 55%);
}
.ad-statstrip::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .05;
    background-image:
      linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.ad-statstrip > .ad-container { position: relative; z-index: 1; }
.ad-statstrip__head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
}
.ad-statstrip__title {
    font-family: var(--ad-font-display);
    color: #fff;
    font-size: clamp(1.85rem, 3.2vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
    letter-spacing: -.4px;
}
.ad-statstrip__title em {
    font-style: italic;
    color: var(--ad-gold-bright);
}
.ad-statstrip__row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    align-items: stretch;
}
.ad-statstrip__card {
    position: relative;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(245,199,106,.16);
    border-radius: var(--ad-radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform .25s var(--ad-ease), border-color .25s var(--ad-ease), background .25s var(--ad-ease);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.ad-statstrip__card:hover {
    transform: translateY(-4px);
    border-color: rgba(245,199,106,.45);
    background: rgba(255,255,255,.06);
}
.ad-statstrip__icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    margin: 0 auto 1.1rem;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(245,199,106,.22), rgba(212,162,74,.10));
    color: var(--ad-gold-bright);
    font-size: 1.35rem;
    border: 1px solid rgba(245,199,106,.30);
}
.ad-statstrip__num {
    font-family: var(--ad-font-display);
    font-size: clamp(2rem, 3.4vw, 2.8rem);
    font-weight: 800;
    color: var(--ad-gold-bright);
    line-height: 1;
    letter-spacing: -.5px;
    font-style: italic;
}
.ad-statstrip__label {
    margin-top: .85rem;
    color: rgba(255,255,255,.82);
    font-size: .95rem;
    line-height: 1.5;
    letter-spacing: .02em;
}

/* ---------------------------------------------------------------------
   Pricing
   --------------------------------------------------------------------- */
/* Monthly/Yearly toggle — mirrors the in-app /Account/PackageList tab UX */
.ad-pricing-toggle {
    display: inline-flex;
    margin: 0 auto 2rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 0.25rem;
    gap: 0.25rem;
}
.ad-pricing-section-head {
    text-align: center;
}
section#pricing .ad-pricing-toggle {
    display: flex;
    width: max-content;
}
section#pricing .ad-section__head + .ad-pricing-toggle,
section#pricing .ad-pricing-toggle {
    margin-left: auto;
    margin-right: auto;
}
.ad-pricing-toggle__btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    padding: 0.55rem 1.4rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.ad-pricing-toggle__btn:hover:not(:disabled):not(.is-active) {
    background: rgba(255, 255, 255, 0.06);
}
.ad-pricing-toggle__btn.is-active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}
.ad-pricing-toggle__btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.ad-pricing-cycle[hidden] {
    display: none;
}

.ad-pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    align-items: stretch;
}
@media (max-width: 1199px) {
    .ad-pricing-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (max-width: 599px) {
    .ad-pricing-grid { grid-template-columns: 1fr; }
}
.ad-pricing-card {
    position: relative;
    background: var(--ad-bg-card);
    border: 1px solid var(--ad-border);
    border-radius: var(--ad-radius-lg);
    padding: 2.25rem 1.5rem 1.75rem;
    box-shadow: var(--ad-shadow-sm);
    display: flex; flex-direction: column;
    min-width: 0;            /* allow grid track to shrink the card */
    transition: transform .25s var(--ad-ease), box-shadow .25s var(--ad-ease), border-color .25s var(--ad-ease);
}
.ad-pricing-card:hover { transform: translateY(-5px); box-shadow: var(--ad-shadow-md); }
.ad-pricing-card.is-featured {
    border: 2px solid transparent;
    background:
      linear-gradient(var(--ad-bg-card), var(--ad-bg-card)) padding-box,
      linear-gradient(135deg, var(--ad-gold-bright), var(--ad-gold-deep)) border-box;
    box-shadow: var(--ad-shadow-lg);
    transform: translateY(-10px);
}
.ad-pricing-card.is-featured:hover { transform: translateY(-14px); }
.ad-pricing-card__ribbon {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--ad-gold-bright), var(--ad-gold));
    color: var(--ad-navy);
    padding: .4rem 1.1rem; border-radius: 999px;
    font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    box-shadow: var(--ad-shadow-sm);
}
.ad-pricing-card__head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: .5rem; margin-bottom: 1.1rem;
    min-width: 0;
}
.ad-pricing-card__name {
    font-family: var(--ad-font-display);
    font-size: 1.2rem; font-weight: 800; margin: 0;
    color: var(--ad-fg);
    line-height: 1.25;
    letter-spacing: -.2px;
    overflow-wrap: anywhere;
    word-break: break-word;
    flex: 1 1 auto;
    min-width: 0;
}
.ad-pricing-card__tier {
    font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
    background: rgba(11,31,63,.06); color: var(--ad-fg-muted);
    padding: .25rem .55rem; border-radius: 999px;
    white-space: nowrap;
    flex: 0 0 auto;
    align-self: flex-start;
}
.ad-pricing-card__price {
    display: flex; align-items: baseline; gap: .25rem;
    margin-bottom: 0;
    overflow: hidden;
    white-space: nowrap;
}
.ad-pricing-card__amount {
    font-family: var(--ad-font-display);
    font-size: clamp(1.85rem, 2.6vw, 2.5rem);
    font-weight: 800; color: var(--ad-fg);
    line-height: 1;
    letter-spacing: -1px;
}
.ad-pricing-card__unit {
    color: var(--ad-fg-muted);
    font-weight: 500;
    font-size: .92rem;
}
.ad-pricing-card__rule {
    border: none; border-top: 1px dashed var(--ad-border);
    margin: 1rem 0 1.1rem;
}
.ad-pricing-card__desc {
    color: var(--ad-fg-muted); font-size: .9rem; line-height: 1.55;
    margin: 0 0 1.1rem;
    min-height: 3em;
    /* clamp prose to 3 lines so seed-data prose can't blow out card height */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ad-pricing-card__list {
    list-style: none; padding: 0; margin: 0 0 1.25rem; flex: 1;
}
.ad-pricing-card__list li {
    display: flex; align-items: center; gap: .65rem;
    padding: .45rem 0;
    border-bottom: 1px dotted var(--ad-border);
    color: var(--ad-fg);
    font-size: .88rem;
    line-height: 1.4;
}
.ad-pricing-card__list li:last-child { border-bottom: none; }
.ad-pricing-card__list i {
    width: 18px;
    color: var(--ad-gold-deep);
    text-align: center;
    flex-shrink: 0;
    font-size: .85rem;
}

/* Block CTA inside a narrow pricing card needs to wrap, not run off the edge.
   The base .ad-btn rule sets white-space: nowrap; we override here so the
   button text shrinks/wraps cleanly inside the card track. */
.ad-pricing-card__cta {
    white-space: normal;
    line-height: 1.2;
    padding: .85rem 1rem;
    font-size: .92rem;
    text-align: center;
}

.ad-pricing-card--placeholder { text-align: center; padding: 3rem 2rem; opacity: 1; transform: none; }
.ad-pricing-card--placeholder .ad-pricing-card__name { margin-bottom: 1rem; }

/* ---------------------------------------------------------------------
   Why-us / trust
   --------------------------------------------------------------------- */
.ad-why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.ad-stat-card {
    text-align: left;
    padding: 2rem 1.85rem;
    border-radius: var(--ad-radius);
    background: var(--ad-bg-card);
    border: 1px solid var(--ad-border);
    box-shadow: var(--ad-shadow-sm);
    transition: transform .25s var(--ad-ease), box-shadow .25s var(--ad-ease);
}
.ad-stat-card:hover { transform: translateY(-4px); box-shadow: var(--ad-shadow-md); }
.ad-stat-card__icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--ad-navy), var(--ad-navy-3));
    color: var(--ad-gold-bright);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.45rem;
    margin-bottom: 1.25rem;
}
.ad-stat-card h3 {
    font-family: var(--ad-font-display);
    font-size: 1.2rem; font-weight: 700;
    margin: 0 0 .5rem;
    color: var(--ad-fg);
}
.ad-stat-card p { color: var(--ad-fg-muted); margin: 0; font-size: .96rem; line-height: 1.6; }

/* ---------------------------------------------------------------------
   Testimonials
   --------------------------------------------------------------------- */
.ad-testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}
.ad-quote {
    background: var(--ad-bg-card);
    border: 1px solid var(--ad-border);
    border-radius: var(--ad-radius-lg);
    padding: 2rem 1.85rem 1.5rem;
    box-shadow: var(--ad-shadow-sm);
    margin: 0;
    position: relative;
}
.ad-quote::before {
    content: "\201C";
    position: absolute; top: -12px; left: 1.5rem;
    font-family: var(--ad-font-display);
    font-size: 4rem;
    line-height: 1;
    color: var(--ad-gold);
    opacity: .35;
}
.ad-quote p {
    font-family: var(--ad-font-display);
    font-style: italic;
    font-size: 1.08rem;
    line-height: 1.6;
    color: var(--ad-fg);
    margin: 0 0 1rem;
}
.ad-quote footer {
    display: flex; align-items: center; gap: .85rem;
    border-top: 1px solid var(--ad-border);
    padding-top: 1rem;
    margin-top: 1rem;
}
.ad-quote__avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ad-navy-2), var(--ad-navy));
    color: var(--ad-gold-bright);
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--ad-font-display); font-weight: 700;
}
.ad-quote cite {
    color: var(--ad-fg); font-style: normal;
    font-weight: 600; font-size: .92rem;
    display: block;
}
.ad-quote__role {
    color: var(--ad-fg-muted);
    font-size: .85rem;
}

/* ---------------------------------------------------------------------
   CTA + Contact
   --------------------------------------------------------------------- */
.ad-cta-panel {
    background: linear-gradient(135deg, var(--ad-navy) 0%, var(--ad-navy-3) 100%);
    border-radius: var(--ad-radius-xl);
    padding: 3.5rem 2.5rem;
    text-align: center;
    color: #fff;
    box-shadow: var(--ad-shadow-lg);
    position: relative; overflow: hidden;
}
.ad-cta-panel::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(circle at 80% 0%, rgba(245,199,106,.25), transparent 50%);
}
.ad-cta__headline {
    font-family: var(--ad-font-display);
    font-size: clamp(1.85rem, 3.5vw, 2.55rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 .85rem;
    color: #fff;
    letter-spacing: -.5px;
    position: relative;
}
.ad-cta__subhead {
    font-size: 1.1rem;
    color: rgba(255,255,255,.78);
    margin: 0 0 2rem;
    position: relative;
}
.ad-cta__buttons {
    display: flex; justify-content: center; flex-wrap: wrap; gap: .85rem;
    position: relative;
}

.ad-contact-form-wrap { margin-top: 3rem; display: flex; justify-content: center; }
.ad-contact-form {
    background: var(--ad-bg-card);
    border: 1px solid var(--ad-border);
    border-radius: var(--ad-radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--ad-shadow-md);
    max-width: 600px;
    width: 100%;
}
.ad-contact-form__title {
    font-family: var(--ad-font-display);
    font-size: 1.4rem; font-weight: 700;
    margin: 0 0 1.5rem; text-align: center;
    color: var(--ad-fg);
}
.ad-contact-form .form-group { margin-bottom: 1rem; }
.ad-contact-form label {
    display: block; font-weight: 500;
    font-size: .88rem; margin-bottom: .4rem;
    color: var(--ad-fg);
}
.ad-contact-form .form-control {
    width: 100%;
    padding: .8rem 1rem;
    border: 1px solid var(--ad-border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--ad-bg-card);
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}
.ad-contact-form .form-control:focus {
    outline: none;
    border-color: var(--ad-gold);
    box-shadow: 0 0 0 3px rgba(212,162,74,.18);
}
.ad-contact-form textarea.form-control { resize: vertical; min-height: 120px; }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.ad-footer {
    background: var(--ad-navy);
    color: rgba(255,255,255,.72);
    padding: 4rem 0 2rem;
    margin-top: 0;
}
.ad-footer__top {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 2rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,.10);
}
.ad-footer__brand-block { padding-right: 1rem; }
.ad-footer__brand-mark {
    display: inline-flex; align-items: center; gap: .65rem;
    margin-bottom: 1rem;
    text-decoration: none;
    color: #fff;
}
.ad-footer__brand-mark:hover { text-decoration: none; color: #fff; }
.ad-footer__brand-mark img { width: 40px; height: 40px; object-fit: contain; }
.ad-footer__brand-mark strong {
    font-family: var(--ad-font-display);
    font-weight: 700; font-size: 1.1rem; color: #fff;
}
.ad-footer__about { font-size: .93rem; line-height: 1.6; max-width: 28ch; color: rgba(255,255,255,.62); }
.ad-footer__col h4 {
    font-family: var(--ad-font-display);
    color: #fff; font-size: 1rem;
    margin: 0 0 1rem;
    font-weight: 700;
}
.ad-footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.ad-footer__col a {
    color: rgba(255,255,255,.66); font-size: .93rem;
    transition: color .15s var(--ad-ease);
}
.ad-footer__col a:hover { color: var(--ad-gold-bright); text-decoration: none; }

.ad-footer__bottom {
    padding-top: 1.5rem;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
    color: rgba(255,255,255,.55);
    font-size: .88rem;
}

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 1199px) {
    .ad-pricing-card.is-featured { transform: translateY(0); }
    .ad-pricing-card.is-featured:hover { transform: translateY(-4px); }
}
@media (max-width: 991px) {
    :root { --ad-section-pad: 72px; }
    .ad-hero { padding: 96px 0 80px; }

    /* Burger reveals + mobile drawer for the nav links. The drawer slides out
       below the sticky bar; closed state has 0 max-height and 0 opacity so it
       stays out of the click target until opened. */
    .ad-nav__burger { display: inline-flex; }
    .ad-nav__links {
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        gap: 0;
        padding: 0 1.25rem;
        background: rgba(250,247,242,.98);
        backdrop-filter: saturate(160%) blur(16px);
        -webkit-backdrop-filter: saturate(160%) blur(16px);
        border-bottom: 1px solid rgba(11,31,63,.10);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height .28s var(--ad-ease), opacity .2s var(--ad-ease), padding .28s var(--ad-ease);
    }
    .ad-nav__links.is-open {
        max-height: 360px;
        opacity: 1;
        pointer-events: auto;
        padding: .5rem 1.25rem 1rem;
        box-shadow: 0 14px 28px rgba(11,31,63,.10);
    }
    .ad-nav__links a {
        padding: .9rem 0;
        font-size: 1rem;
        color: var(--ad-fg);
        border-bottom: 1px solid rgba(11,31,63,.06);
    }
    .ad-nav__links a:last-child { border-bottom: 0; }
    .ad-nav__links a::after { display: none; }     /* drop the underline accent in drawer */

    /* Hero slider: drop the absolute-positioned stack on tablet/phone widths
       so non-active slides don't lay underneath the active one (which made
       the slider arrows overlap the bullet list at narrow viewports). The
       slides now flow normally; only the active one is visible. */
    .ad-hero__slides { min-height: 0; }
    .ad-hero__slide {
        position: relative;
        inset: auto;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        grid-template-columns: 1fr;
    }
    .ad-hero__slide:not(.is-active) { display: none; }
    .ad-hero__art { aspect-ratio: 4 / 3; max-width: 480px; margin: 0 auto; width: 100%; }
    .ad-hero__cta .ad-btn { flex: 1 1 auto; }

    .ad-flow { grid-template-columns: repeat(2, 1fr); }
    .ad-statstrip__row { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .ad-footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 575px) {
    :root { --ad-section-pad: 56px; }
    .ad-container { padding: 0 1.1rem; }

    /* Make CTAs full-width on mobile so they're easy to tap, but ONLY the
       large/block ones — the nav login pill, slider arrows and dot buttons
       must keep their compact intrinsic size. */
    .ad-btn--lg,
    .ad-btn--block { width: 100%; }
    .ad-btn--lg { padding: .9rem 1rem; }

    /* Sticky nav: keep the login CTA pill-sized; hide the verbose brand
       wordmark since the logo carries the identity at this width. */
    .ad-nav__inner { gap: .5rem; }
    .ad-nav__cta {
        width: auto;
        flex: 0 0 auto;
        padding: .55rem 1rem;
        font-size: .85rem;
    }
    .ad-nav__brand-text { display: none; }

    /* Hero stacks: copy first, art panel below. The grid-template-columns
       single-column rule already lives in the 991px breakpoint, but on
       sub-575 the calendar/tasks/stats panel becomes visual noise — shrink
       it noticeably so the copy + CTAs own the viewport above the fold. */
    .ad-hero { padding: 84px 0 64px; }
    .ad-hero__headline { font-size: 2.1rem; line-height: 1.1; }
    .ad-hero__subhead { font-size: 1.02rem; }
    .ad-hero__art { display: none; }              /* drop preview panel on phones */
    .ad-hero__cta { flex-direction: column; }
    .ad-hero__cta .ad-btn { width: 100%; }
    .ad-hero__nav { flex-wrap: wrap; gap: .75rem; }
    .ad-hero__arrows { margin-left: 0; }

    /* Trust bar: keep visible but tighter, vertical stack so text doesn't wrap awkwardly */
    .ad-trustbar__row { gap: 1rem 1.5rem; font-size: .92rem; }

    /* Stats strip: 1-col on phones */
    .ad-statstrip__row { grid-template-columns: 1fr; gap: 1rem; }

    /* Workflow: single column */
    .ad-flow { grid-template-columns: 1fr; }

    /* CTA panel + footer */
    .ad-cta-panel { padding: 2.25rem 1.25rem; }
    .ad-cta__buttons { flex-direction: column; }
    .ad-cta__buttons .ad-btn { width: 100%; }
    .ad-footer__top { grid-template-columns: 1fr; }
    .ad-footer__bottom { justify-content: center; text-align: center; }

    /* Section title sizes drop a notch */
    .ad-section__title { font-size: clamp(1.6rem, 5vw, 2rem); }
}

/* ---------------------------------------------------------------------
   Reduced motion
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .ad-hero__slide,
    .ad-feature-card,
    .ad-pricing-card,
    .ad-stat-card,
    .ad-quote,
    .ad-btn { transition: none !important; opacity: 1 !important; transform: none !important; }
}
