/* Public homepage. Navy provides structure, with gold reserved for demo links. */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(ellipse at 82% 10%, #233c60, transparent 55%), #0f1f3a;
}
.hero::after {
    content: "";
    position: absolute;
    right: -14%;
    bottom: -58%;
    width: 720px;
    height: 720px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
    box-shadow: 0 0 0 90px rgba(255,255,255,.025), 0 0 0 180px rgba(255,255,255,.018);
    pointer-events: none;
}
.hero > .panel-wave {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.hero > .panel-wave::before,
.hero > .panel-wave::after {
    content: "";
    position: absolute;
    inset: -50%;
}
.hero > .panel-wave::before {
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.08), transparent 38%);
}
.hero > .panel-wave::after {
    background: radial-gradient(circle at 70% 70%, rgba(255,255,255,.05), transparent 38%);
}
@media (prefers-reduced-motion: no-preference) {
    .hero > .panel-wave::before { animation: hero-wave 20s linear infinite; }
    .hero > .panel-wave::after { animation: hero-wave 28s linear infinite reverse; }
}
@keyframes hero-wave {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.hero-content {
    position: relative;
    z-index: 1;
    padding-block: clamp(2.4rem, 5.5vw, 5.25rem) clamp(3.8rem, 7vw, 6.4rem);
}
.hero-kicker {
    margin: 0 0 1.15rem;
    color: #c7d7eb;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.hero h1 {
    max-width: 670px;
    color: #fff;
    font-size: clamp(2.55rem, 4.45vw, 4rem);
    font-weight: 780;
    letter-spacing: -.04em;
    line-height: 1.02;
    text-wrap: balance;
}
.hero-copy { max-width: 525px; color: #d9e2ef; font-size: clamp(1rem, 1.4vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.3rem; margin-top: 1.55rem; }
.hero-secondary { display: inline-flex; gap: .45rem; align-items: center; min-height: 44px; color: #fff; font-weight: 650; text-underline-offset: .22em; }
.hero-secondary:hover { color: #e1e9f5; }
.hero-trial-note { margin: .55rem 0 0; color: #c7d7eb; font-size: .84rem; }
.hero-founder {
    display: inline-flex;
    gap: .6rem;
    align-items: center;
    margin-top: 1rem;
    color: #d9e2ef;
    font-size: .86rem;
    text-underline-offset: .2em;
}
.hero-founder img { border-radius: 50%; object-fit: cover; }
.hero-founder:hover { color: #fff; }
.hero-note { margin: .75rem 0 0; color: #c7d7eb; font-size: .85rem; }

.hero-preview {
    margin: 0 0 1.25rem;
    padding: .55rem;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 18px;
    background: rgba(255,255,255,.08);
    box-shadow: 0 20px 48px rgba(3,14,33,.24);
}
.hero-preview img { display: block; width: 100%; height: auto; border-radius: 11px; }
.hero-preview figcaption {
    position: relative;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .25rem .7rem;
    margin: -.3rem .6rem -1.45rem;
    padding: .75rem .9rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--navy);
    font-size: .83rem;
}
.hero-preview figcaption span { color: #52617a; font-size: .75rem; }

.home-page main .btn-gold {
    background: #e4bb46;
    border: 1px solid #e4bb46;
    color: #15233c;
}
.home-page main .btn-gold:hover {
    background: #f2ce68;
    border-color: #f2ce68;
    color: #15233c;
}
.home-page .navbar-landing .btn-gold { background: #fff; border: 1px solid var(--line); color: var(--navy); }
.home-page .navbar-landing .btn-gold:hover { border-color: var(--navy); background: var(--soft-bg); }
.home-page .navbar-landing.past-hero .btn-gold { border-color: #e4bb46; background: #e4bb46; color: #15233c; }
.home-page .navbar-landing.past-hero .btn-gold:hover { border-color: #f2ce68; background: #f2ce68; }
.home-page .brand-ripple-ring,
.home-page .brand-ripple-ring::before,
.home-page .brand-ripple-ring::after { animation: none; opacity: 0; }

.hero :focus-visible, .home-page :focus-visible, .public-workflows :focus-visible {
    outline: 3px solid #5486cb;
    outline-offset: 4px;
}
.hero-secondary:focus-visible, .hero-founder:focus-visible, .hero .btn-gold:focus-visible { outline-color: #d9e8ff; }

.rota-sample {
    scroll-margin-top: 96px;
    padding: clamp(1rem, 3vw, 1.65rem);
    color: var(--navy);
    background: #f8fafd;
    border: 1px solid #dae3ee;
    border-radius: 20px;
    box-shadow: 0 16px 34px rgba(15,31,58,.11);
}
.sample-top, .sample-shift-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem .75rem; }
.sample-top h2 { margin: 0; font-size: clamp(1.1rem, 2vw, 1.43rem); font-weight: 750; }
.sample-top h2 i { margin-right: .25rem; }
.sample-label, .sample-disclaimer { color: #52617a; font-size: .76rem; }
.sample-label { flex-shrink: 0; border: 1px solid #d8e1ed; border-radius: 6px; padding: .2rem .45rem; }
.sample-help { margin: .5rem 0 1rem; color: #475775; font-size: .9rem; }
.sample-steps:not([hidden]) { display: flex; gap: .3rem; margin-bottom: .8rem; }
.sample-steps button {
    flex: 1;
    min-height: 44px;
    padding: .4rem .35rem;
    border: 1px solid #c8d4e3;
    border-radius: 8px;
    background: #fff;
    color: var(--navy);
    font-size: clamp(.73rem, 1vw, .83rem);
    font-weight: 650;
    line-height: 1.2;
}
.sample-steps button:hover { background: #e6eef8; }
.sample-steps button[aria-pressed="true"] { background: #203958; border-color: #203958; color: #fff; }
.sample-shift {
    padding: .85rem .9rem;
    background: #fff;
    border: 1px solid #d8e2ed;
    border-inline-start: 4px solid #267050;
    border-radius: 10px;
}
.sample-shift[data-rota-state="away"] { border-inline-start-color: #9c570b; }
.sample-shift h3 { margin: 0 0 .15rem; font-size: 1rem; font-weight: 750; }
.sample-shift-top span { display: block; color: #52617a; font-size: .77rem; }
.sample-count { flex-shrink: 0; text-align: right; }
.sample-count strong { display: block; font-size: 1.1rem; line-height: 1.1; }
.sample-detail { margin-top: .65rem; }
.sample-detail strong { color: #1d6144; font-size: .82rem; }
.sample-shift[data-rota-state="away"] .sample-detail strong { color: #8a4d09; }
/* In the interactive sample, each stage contributes to the same grid
   row's height. Override Bootstrap's hidden display only in this sample. */
.sample-stage-details { display: grid; }
.sample-stage-details p { grid-area: 1 / 1; }
.rota-sample[data-interactive] [data-rota-detail][hidden] { display: block !important; visibility: hidden; }
.sample-detail p { margin: .1rem 0 0; color: #475775; font-size: .83rem; line-height: 1.45; }
.sample-roster {
    display: grid;
    gap: .22rem;
    padding: .5rem 0 0;
    margin: .5rem 0 0;
    border-top: 1px solid #d8e2ed;
    list-style: none;
    font-size: .76rem;
    line-height: 1.25;
}
.sample-roster li:not([hidden]), .rota-sample[data-interactive] [data-rota-cover][hidden] { display: grid; grid-template-columns: 1fr auto; gap: .25rem .55rem; align-items: baseline; }
.rota-sample[data-interactive] [data-rota-cover][hidden] { display: grid !important; visibility: hidden; }
.sample-roster li span:first-child { font-weight: 650; }
.sample-roster li span:last-child { text-align: right; color: #475775; }
.sample-shift:not([data-rota-state="planned"]) [data-rota-absence] { color: #8a4d09; }
.sample-roster li[data-rota-cover] span:last-child { color: #1d6144; }
.sample-disclaimer { margin: .65rem 0 0; }

.public-workflows { padding-block: clamp(3.3rem, 7vw, 6.25rem); }
.public-workflows .section-title { max-width: 630px; }
.public-workflows .spotlight-list {
    display: grid;
    gap: .65rem;
    padding: 0;
    margin-block: 1.25rem;
    list-style: none;
}
.public-workflows .spotlight-list li { display: grid; grid-template-columns: 1.4rem 1fr; gap: .4rem; }
.public-workflows .spotlight-list i { color: #3e5f85; }
.public-workflows .spotlight-list strong { color: var(--navy); }
.workflow-link { display: inline-flex; gap: .5rem; align-items: center; color: var(--navy); font-weight: 700; text-underline-offset: .2em; }
.workflow-link:hover { color: #315b91; }
.rota-product-shot {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #dce5ef;
    border-radius: 14px;
    box-shadow: 0 16px 34px rgba(15,31,58,.11);
}
.rota-product-caption { margin-top: .7rem; color: #52617a; font-size: .82rem; }
.workflow-links {
    display: grid;
    gap: 1rem;
}
.workflow-links article { padding-top: 1rem; border-top: 1px solid var(--line); }
.workflow-links h3 { font-size: 1.17rem; font-weight: 750; }
.workflow-links p { margin: .4rem 0 .7rem; color: #475775; font-size: .95rem; }

.menu-benefit {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    padding: clamp(1rem, 3vw, 1.5rem);
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
}
.menu-benefit h3 { margin: 0; font-size: 1.15rem; font-weight: 750; }
.menu-benefit p { margin: .35rem 0 .6rem; color: var(--text-muted); font-size: .9rem; }

.quote-stack { display: grid; }
.quote-stack figure { grid-area: 1 / 1; }
.quote-stack figure[hidden] { display: none; }
[data-quote-ready] .quote-stack figure[hidden] {
    display: flex !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
    [data-quote-ready] .quote-stack figure { transition: opacity 420ms ease; }
    [data-quote-ready] .quote-stack figure[hidden] {
        transition: opacity 420ms ease, visibility 0s linear 420ms;
    }
}
.tour-tab:focus-visible, .tour-picker select:focus-visible {
    outline: 2px solid #315b91;
    outline-offset: 2px;
}
#product-tour { scroll-margin-top: 92px; }
.tour-picker { display: none; }
.tour-picker label { font-weight: 650; color: var(--navy); }
.tour-picker select { min-height: 44px; color: var(--navy); }

@media (max-width: 767.98px) {
    .tour-tabs:not([hidden]) { display: none; }
    .tour-picker:not([hidden]) { display: block; }
    .tour-visual picture { display: block; width: 100%; max-width: 390px; margin-inline: auto; }
}

@media (max-width: 575.98px) {
    .hero h1 { font-size: clamp(2.1rem, 9.5vw, 2.55rem); text-wrap: initial; }
    .hero-copy { line-height: 1.45; }
    .hero-actions { gap: .35rem .75rem; margin-top: 1.15rem; font-size: .9rem; }
    .hero-actions .btn-gold { padding-inline: .9rem; }
    .hero-content { padding: 1.7rem 1rem 3rem; }
    .sample-help { margin-bottom: .7rem; }
    .sample-steps:not([hidden]) { margin-bottom: .55rem; }
    .sample-shift { padding: .7rem; }
    .rota-product-shot { max-width: 330px; margin-inline: auto; }
}

@media (max-width: 359.98px) {
    .hero-actions { gap: .35rem .65rem; font-size: .82rem; }
    .hero-actions .btn-gold { padding-inline: .75rem; min-height: 44px; }
    .hero-actions i { display: none; }
}
