/* ==========================================================================
   TRAICE website. Palette and typography follow the v3 app theme
   (resources/scss/app.scss): the blues of the TRAICE logo.
   ========================================================================== */

:root {
    --traice-navy: #022f8a;   /* main square */
    --traice-royal: #3457a2;  /* second step */
    --traice-steel: #6982b8;  /* third step */
    --traice-mist: #9aabd2;   /* last step */
    --traice-ink: #011a4d;    /* darker navy */
    --traice-ice: #eef2fa;    /* soft background */

    --body-bg: #f6f8fc;
    --body-color: #1d2640;
    --muted: #5b6785;
    --border: #dfe5f1;

    --font-body: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

    --radius: .5rem;
    --radius-lg: .75rem;
    --shadow-sm: 0 .125rem .5rem rgba(1, 26, 77, .06);
    --shadow: 0 .5rem 1.5rem rgba(1, 26, 77, .08);
    --shadow-lg: 0 1.5rem 3.5rem rgba(1, 26, 77, .18);

    --nav-height: 76px;

    /* Bootstrap hooks */
    --bs-primary: var(--traice-navy);
    --bs-primary-rgb: 2, 47, 138;
    --bs-body-font-family: var(--font-body);
    --bs-body-color: var(--body-color);
    --bs-body-bg: var(--body-bg);
    --bs-link-color: var(--traice-royal);
    --bs-link-color-rgb: 52, 87, 162;
    --bs-link-hover-color: var(--traice-navy);
    --bs-border-color: var(--border);
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--body-color);
    background: var(--body-bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--traice-ink);
    line-height: 1.15;
}

a { color: var(--traice-royal); }
a:hover { color: var(--traice-navy); }

::selection { background: var(--traice-mist); color: var(--traice-ink); }

:focus-visible { outline: 3px solid rgba(52, 87, 162, .45); outline-offset: 2px; }

.skip-link {
    position: absolute;
    top: .5rem;
    left: .5rem;
    z-index: 2000;
    background: #fff;
    padding: .5rem 1rem;
    border-radius: var(--radius);
}

.text-mist { color: var(--traice-mist) !important; }

/* Buttons ------------------------------------------------------------------ */

.btn {
    font-family: var(--font-body);
    letter-spacing: .02em;
    border-radius: var(--radius);
    font-weight: 500;
}

.btn-primary {
    --bs-btn-bg: var(--traice-navy);
    --bs-btn-border-color: var(--traice-navy);
    --bs-btn-hover-bg: var(--traice-ink);
    --bs-btn-hover-border-color: var(--traice-ink);
    --bs-btn-active-bg: var(--traice-ink);
    --bs-btn-active-border-color: var(--traice-ink);
    --bs-btn-disabled-bg: var(--traice-steel);
    --bs-btn-disabled-border-color: var(--traice-steel);
}

.btn-outline-primary {
    --bs-btn-color: var(--traice-navy);
    --bs-btn-border-color: var(--traice-navy);
    --bs-btn-hover-bg: var(--traice-navy);
    --bs-btn-hover-border-color: var(--traice-navy);
    --bs-btn-active-bg: var(--traice-navy);
    --bs-btn-active-border-color: var(--traice-navy);
}

.btn-hero { padding: .8rem 1.6rem; font-size: 1rem; }
.btn-light.btn-hero { color: var(--traice-navy); }
.btn-light.btn-hero:hover { background: var(--traice-ice); color: var(--traice-ink); }
.btn-outline-light.btn-hero:hover { color: var(--traice-navy); }

/* Brand --------------------------------------------------------------------- */

.brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    text-decoration: none;
}

.brand img {
    border-radius: .55rem;
    background: #fff;
    padding: .15rem;
}

.brand span {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: .16em;
    color: #fff;
    transition: color .25s ease;
}

.brand--light span { color: #fff; }

/* Navigation -------------------------------------------------------------- */

.site-nav {
    min-height: var(--nav-height);
    transition: background-color .25s ease, box-shadow .25s ease;
}

.site-nav .nav-link {
    color: rgba(255, 255, 255, .82);
    padding: .5rem .9rem !important;
    border-radius: var(--radius);
    transition: color .15s ease, background-color .15s ease;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active { color: #fff; background: rgba(154, 171, 210, .16); }

.site-nav .navbar-toggler {
    border: 0;
    color: #fff;
    font-size: 1.8rem;
    padding: .25rem .5rem;
}

.site-nav .navbar-toggler:focus { box-shadow: none; }

.btn-nav-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .4); }
.btn-nav-ghost:hover { color: var(--traice-navy); background: #fff; border-color: #fff; }
.btn-nav-solid { color: var(--traice-navy); background: #fff; border: 1px solid #fff; }
.btn-nav-solid:hover { color: #fff; background: transparent; border-color: rgba(255, 255, 255, .6); }

/* Scrolled (or mobile menu open): solid white bar */
.site-nav.is-solid {
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
}

.site-nav.is-solid .brand span { color: var(--traice-ink); }
.site-nav.is-solid .nav-link { color: var(--traice-royal); }
.site-nav.is-solid .nav-link:hover,
.site-nav.is-solid .nav-link.active { color: var(--traice-navy); background: var(--traice-ice); }
.site-nav.is-solid .navbar-toggler { color: var(--traice-navy); }
.site-nav.is-solid .btn-nav-ghost { color: var(--traice-navy); border-color: var(--border); }
.site-nav.is-solid .btn-nav-ghost:hover { background: var(--traice-ice); border-color: var(--traice-mist); }
.site-nav.is-solid .btn-nav-solid { color: #fff; background: var(--traice-navy); border-color: var(--traice-navy); }
.site-nav.is-solid .btn-nav-solid:hover { background: var(--traice-ink); border-color: var(--traice-ink); }

@media (max-width: 991.98px) {
    .site-nav .navbar-collapse { padding: .5rem 0 1rem; }
    .site-nav .nav-actions { padding-top: .75rem; }
    .site-nav .nav-actions .btn { flex: 1; }
}

/* Hero ---------------------------------------------------------------------- */

.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: calc(var(--nav-height) + 4.5rem) 0 6rem;
    background: linear-gradient(145deg, var(--traice-ink) 0%, var(--traice-navy) 55%, var(--traice-royal) 100%);
}

/* Rotated squares echoing the steps of the logo */
.hero-steps span {
    position: absolute;
    border: 2px solid rgba(154, 171, 210, .16);
    transform: rotate(45deg);
    pointer-events: none;
}

.hero-steps span:nth-child(1) { width: 720px; height: 720px; right: -300px; top: -260px; }
.hero-steps span:nth-child(2) { width: 520px; height: 520px; right: -200px; top: -150px; border-color: rgba(154, 171, 210, .22); }
.hero-steps span:nth-child(3) { width: 340px; height: 340px; left: -170px; bottom: -170px; }
.hero-steps span:nth-child(4) { width: 200px; height: 200px; left: -90px; bottom: -90px; border-color: rgba(154, 171, 210, .26); }

.hero-steps--small span:nth-child(1) { width: 420px; height: 420px; right: -210px; top: auto; bottom: -220px; }
.hero-steps--small span:nth-child(2) { width: 280px; height: 280px; right: -130px; top: auto; bottom: -140px; }
.hero-steps--small span:nth-child(3),
.hero-steps--small span:nth-child(4) { display: none; }

.eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--traice-royal);
    margin-bottom: .9rem;
}

.eyebrow--light { color: var(--traice-mist); }

.hero-title {
    color: #fff;
    font-size: clamp(2.6rem, 5.5vw, 4.25rem);
    line-height: 1.02;
    margin-bottom: 1.4rem;
}

.hero-lead {
    font-size: 1.12rem;
    font-style: italic;
    color: rgba(255, 255, 255, .8);
    max-width: 34rem;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 2.5rem;
    margin: 2.75rem 0 0;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(154, 171, 210, .25);
}

.hero-stats dt {
    font-family: var(--font-display);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--traice-mist);
}

.hero-stats dd {
    margin: 0;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}

.hero-stats small {
    font-family: var(--font-body);
    font-size: .88rem;
    font-weight: 400;
    color: rgba(255, 255, 255, .7);
}

.hero-visual { position: relative; padding-bottom: 2rem; }

/* Browser and phone frames */
.browser-frame {
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(154, 171, 210, .35);
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: .4rem;
    height: 34px;
    padding: 0 .9rem;
    background: var(--traice-ice);
    border-bottom: 1px solid var(--border);
}

.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--traice-mist); }
.browser-bar span:nth-child(2) { background: var(--traice-steel); }
.browser-bar span:nth-child(3) { background: var(--traice-royal); }

.browser-bar em {
    margin-left: auto;
    margin-right: auto;
    padding: .1rem 1rem;
    font-size: .72rem;
    font-style: normal;
    color: var(--muted);
    background: #fff;
    border-radius: 1rem;
    transform: translateX(-1.2rem);
}

.browser-frame img { display: block; width: 100%; height: auto; }

.hero .browser-frame { transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; }

.phone-frame {
    position: absolute;
    right: -1rem;
    bottom: -1rem;
    width: 26%;
    margin: 0;
    padding: .45rem;
    border-radius: 1.6rem;
    background: var(--traice-ink);
    box-shadow: var(--shadow-lg);
}

.phone-frame img { display: block; width: 100%; height: auto; border-radius: 1.2rem; }

/* Value strip ---------------------------------------------------------------- */

.value-strip { background: #fff; border-bottom: 1px solid var(--border); }

.value-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 1rem 2rem;
    margin: 0;
    padding: 1.4rem 0;
    color: var(--traice-ink);
}

.value-list li { display: flex; align-items: center; gap: .6rem; }
.value-list i { font-size: 1.3rem; color: var(--traice-royal); }

/* Sections ----------------------------------------------------------------- */

.section { padding: 6rem 0; }
.section--ice { background: var(--traice-ice); }

.section h2 { font-size: clamp(2.1rem, 3.8vw, 2.9rem); margin-bottom: 1rem; }

.section-head { max-width: 40rem; margin: 0 auto 3.5rem; text-align: center; }
.section-head p { font-size: 1.05rem; font-style: italic; color: var(--muted); margin: 0; }

.section-text { font-size: 1.05rem; color: var(--muted); }

.link-arrow { font-weight: 500; text-decoration: none; }
.link-arrow i { display: inline-block; transition: transform .2s ease; }
.link-arrow:hover i { transform: translateX(4px); }

/* Feature cards */
.feature-card {
    height: 100%;
    padding: 2rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(105, 130, 184, .45); }

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 1.2rem;
    border-radius: var(--radius);
    font-size: 1.4rem;
    color: #fff;
    background: linear-gradient(135deg, var(--traice-royal), var(--traice-navy));
}

.feature-card h3 { font-size: 1.6rem; margin-bottom: .5rem; }
.feature-card p { color: var(--muted); margin: 0; }

/* Profile cards */
.profile-card {
    height: 100%;
    padding: 1.6rem;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--traice-steel);
}

.profile-card i { font-size: 1.6rem; color: var(--traice-navy); }
.profile-card h3 { font-size: 1.45rem; margin: .5rem 0 .35rem; }
.profile-card p { font-size: .92rem; color: var(--muted); margin: 0; }

/* Product tour */
.tour { display: grid; gap: 2rem; align-items: start; }

@media (min-width: 992px) {
    .tour { grid-template-columns: 340px 1fr; }
}

.tour-tabs { display: flex; flex-direction: column; gap: .5rem; }

.tour-tab {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    width: 100%;
    padding: 1rem 1.1rem;
    text-align: left;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    color: var(--body-color);
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.tour-tab > i { font-size: 1.3rem; color: var(--traice-steel); line-height: 1.4; }
.tour-tab strong { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--traice-ink); line-height: 1.3; }
.tour-tab small { display: block; color: var(--muted); font-size: .88rem; line-height: 1.5; }

.tour-tab:hover { background: #fff; border-color: var(--border); }

.tour-tab.active { background: #fff; border-color: rgba(105, 130, 184, .45); box-shadow: var(--shadow); }
.tour-tab.active > i { color: var(--traice-navy); }

@media (max-width: 991.98px) {
    .tour-tabs { flex-direction: row; overflow-x: auto; padding-bottom: .5rem; scrollbar-width: thin; }
    .tour-tab { flex: 0 0 auto; width: auto; align-items: center; padding: .6rem 1rem; }
    .tour-tab small { display: none; }
    .tour-tab strong { font-size: 1.1rem; }
}

.tour-screen img { transition: opacity .25s ease; }
.tour-screen img.is-fading { opacity: 0; }

/* Steps */
.steps {
    list-style: none;
    display: grid;
    gap: 2rem;
    margin: 0;
    padding: 0;
    counter-reset: step;
}

@media (min-width: 768px) {
    .steps { grid-template-columns: repeat(3, 1fr); }
    .steps li { position: relative; }
    .steps li:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 28px;
        left: calc(56px + 1rem);
        right: 1rem;
        border-top: 2px dashed var(--traice-mist);
    }
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 1.2rem;
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--traice-royal), var(--traice-navy));
    box-shadow: 0 0 0 6px var(--traice-ice), 0 0 0 7px var(--traice-mist);
}

.steps h3 { font-size: 1.6rem; margin-bottom: .4rem; }
.steps p { color: var(--muted); margin: 0; max-width: 20rem; }

/* Pricing ------------------------------------------------------------------ */

.period-switch {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .35rem;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 3rem;
    padding: .35rem;
    background: var(--traice-ice);
    border: 1px solid var(--border);
    border-radius: 2rem;
}

.period-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem 1.3rem;
    border: 0;
    border-radius: 2rem;
    background: transparent;
    color: var(--traice-royal);
    font-weight: 500;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

@media (max-width: 575.98px) {
    .period-switch { flex-wrap: nowrap; gap: .15rem; }
    .period-btn { padding: .5rem .8rem; gap: .3rem; font-size: .92rem; }
}

.period-btn:hover { color: var(--traice-navy); }
.period-btn.active { background: var(--traice-navy); color: #fff; box-shadow: var(--shadow-sm); }

.save-pill {
    font-size: .7rem;
    letter-spacing: .03em;
    padding: .1rem .5rem;
    border-radius: 1rem;
    background: #e3f4ea;
    color: #1d6b40;
}

.period-btn.active .save-pill { background: rgba(255, 255, 255, .18); color: #fff; }

.plan-group.active { animation: fadeUp .35s ease both; }

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2.25rem 2rem 2rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform .25s ease, box-shadow .25s ease;
}

.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.plan-card--featured {
    border: 2px solid var(--traice-navy);
    box-shadow: var(--shadow);
}

@media (min-width: 992px) {
    .plan-card--featured { transform: scale(1.03); }
    .plan-card--featured:hover { transform: scale(1.03) translateY(-4px); }
}

.plan-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: .25rem .9rem;
    font-size: .74rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff;
    background: var(--traice-navy);
    border-radius: 1rem;
    white-space: nowrap;
}

.plan-card h3 { font-size: 1.9rem; margin-bottom: .15rem; color: var(--traice-navy); }
.plan-tagline { font-style: italic; color: var(--muted); margin-bottom: 1.4rem; }

.plan-price { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
.plan-price .amount { font-family: var(--font-display); font-size: 3.2rem; font-weight: 700; color: var(--traice-ink); line-height: 1; }
.plan-price .period { color: var(--muted); }

.plan-note { font-size: .85rem; color: var(--muted); margin: .6rem 0 1.4rem; min-height: 2.6em; }

.save-tag {
    display: inline-block;
    margin-left: .35rem;
    padding: 0 .45rem;
    font-size: .72rem;
    border-radius: 1rem;
    background: #e3f4ea;
    color: #1d6b40;
}

.plan-users {
    padding: .8rem 1rem;
    margin-bottom: 1.2rem;
    background: var(--traice-ice);
    border-radius: var(--radius);
    color: var(--traice-ink);
}

.plan-users i { color: var(--traice-royal); margin-right: .25rem; }

.plan-features { list-style: none; padding: 0; margin: 0 0 1.8rem; }
.plan-features li { display: flex; gap: .6rem; padding: .3rem 0; font-size: .94rem; }
.plan-features i { color: var(--traice-royal); font-size: 1.1rem; line-height: 1.5; }

.pricing-footnote { text-align: center; color: var(--muted); font-size: .9rem; margin: 2.5rem 0 0; }

.pricing-unavailable {
    max-width: 34rem;
    margin: 0 auto;
    padding: 2.5rem;
    text-align: center;
    color: var(--muted);
    background: #fff;
    border: 1px dashed rgba(105, 130, 184, .5);
    border-radius: var(--radius-lg);
}

.pricing-unavailable i { font-size: 2.4rem; color: var(--traice-mist); }
.pricing-unavailable p { margin: .75rem 0 0; }

/* FAQ ---------------------------------------------------------------------- */

.faq {
    --bs-accordion-bg: #fff;
    --bs-accordion-border-color: var(--border);
    --bs-accordion-border-radius: var(--radius-lg);
    --bs-accordion-inner-border-radius: var(--radius-lg);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(52, 87, 162, .2);
    --bs-accordion-active-bg: #fff;
    --bs-accordion-active-color: var(--traice-navy);
    --bs-accordion-btn-padding-y: 1.2rem;
}

.faq .accordion-item { margin-bottom: .75rem; border-radius: var(--radius-lg) !important; border: 1px solid var(--border); overflow: hidden; }
.faq .accordion-button { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--traice-ink); }
.faq .accordion-button:not(.collapsed) { box-shadow: none; color: var(--traice-navy); }
.faq .accordion-body { padding-top: 0; color: var(--muted); }

/* Contact ------------------------------------------------------------------- */

.contact-panel {
    overflow: hidden;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.contact-aside {
    position: relative;
    overflow: hidden;
    padding: 3rem;
    color: rgba(255, 255, 255, .82);
    background: linear-gradient(160deg, var(--traice-ink) 0%, var(--traice-navy) 70%, var(--traice-royal) 100%);
}

.contact-aside h2 { color: #fff; font-size: 2.4rem; }
.contact-aside p { font-style: italic; }

.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; }
.contact-list li { display: flex; align-items: center; gap: .75rem; padding: .45rem 0; }
.contact-list i { color: var(--traice-mist); font-size: 1.15rem; }
.contact-list a { color: #fff; }

.contact-form-wrap { padding: 3rem; }

.form-label { font-weight: 500; color: var(--traice-ink); font-size: .92rem; }

.form-control {
    background-color: #fff;
    border-color: var(--border);
    border-radius: var(--radius);
    padding: .7rem .9rem;
}

.form-control:focus { border-color: var(--traice-steel); box-shadow: 0 0 0 .2rem rgba(52, 87, 162, .2); }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { font-size: .92rem; }
.form-status.is-success { color: #1d6b40; }
.form-status.is-error { color: #b42318; }

@media (max-width: 575.98px) {
    .contact-aside, .contact-form-wrap { padding: 2rem 1.5rem; }
}

/* Call to action ------------------------------------------------------------ */

.cta {
    padding: 5rem 0;
    color: rgba(255, 255, 255, .82);
    background: linear-gradient(120deg, var(--traice-navy) 0%, var(--traice-royal) 70%, var(--traice-steel) 100%);
}

.cta h2 { color: #fff; font-size: clamp(2rem, 4vw, 2.9rem); }
.cta p { font-style: italic; font-size: 1.1rem; margin-bottom: 2rem; }

/* Footer --------------------------------------------------------------------- */

.site-footer {
    padding: 4.5rem 0 2rem;
    background: var(--traice-ink);
    color: rgba(255, 255, 255, .72);
}

.footer-lead { max-width: 24rem; font-size: .94rem; margin-top: 1rem; }

.site-footer h6 {
    font-family: var(--font-display);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--traice-mist);
    margin-bottom: 1rem;
}

.site-footer li { padding: .2rem 0; font-size: .94rem; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: #fff; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(154, 171, 210, .18);
    font-size: .85rem;
    color: var(--traice-mist);
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(154, 171, 210, .35);
}

/* Reveal on scroll ---------------------------------------------------------- */

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

/* Hero: plays on load, no JavaScript needed */
.hero-anim { animation: fadeUp .7s ease both; }
.hero-anim:nth-child(2) { animation-delay: .08s; }
.hero-anim:nth-child(3) { animation-delay: .16s; }
.hero-anim:nth-child(4) { animation-delay: .24s; }
.hero-anim:nth-child(5) { animation-delay: .32s; }
.hero-visual.hero-anim { animation-delay: .2s; }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--delay, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}
