/* Homepage (CMS page `homepage`, served at /).
   Linked from every section so hiding or reordering one never strips the page's CSS.
   Builds on the .ses-mkt-* layer in resources/css/app.css; colours only via --color-ses-*.
   Every section has its own shape: no two sections share a layout. */

/* ── Hero ─────────────────────────────────────────────────────────── */
/* Hero — the one band allowed a display scale above .ses-mkt-title.
   Ground is the shared bg-ses-blue-gradient utility, not a local gradient. */
.hp-hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0;
    color: #ffffff;
}
@media (min-width: 768px) {
    .hp-hero { padding: 80px 0; }
}
.hp-hero-grid {
    display: flex;
    flex-direction: column;
    gap: 48px;
}
@media (min-width: 1024px) {
    .hp-hero-grid {
        flex-direction: row;
        align-items: center;
    }
    .hp-hero-left { flex: 1.25; }
    .hp-hero-right { flex: 0.75; }
}

/* Eyebrow badge — 2px radius like every other surface. */
.hp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 22px;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.hp-hero-badge i { font-size: 1rem; }

.hp-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2rem, 5.5vw, 2.75rem);
    font-weight: 300;
    line-height: 1.25;
}
.hp-hero h2 {
    margin: 8px 0 0;
    color: #ffffff;
    font-size: clamp(2.5rem, 7vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* Typer highlight. */
.hp-highlight {
    display: inline-block;
    padding: 2px 12px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff !important;
    font-weight: 800;
    vertical-align: bottom;
    white-space: nowrap;
}
/* Stops the line collapsing between typed words. */
.hp-highlight:empty::before { content: "\200b"; }
.cursor {
    display: inline-block;
    margin-left: 4px;
    color: #ffffff;
    font-weight: 800;
    vertical-align: bottom;
    animation: cursor-blink 0.8s infinite;
}
@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hp-hero-subtitle {
    margin-top: 26px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.hp-hero-desc {
    max-width: 540px;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.7;
}

.hp-hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 36px;
}
@media (min-width: 640px) {
    .hp-hero-actions { flex-direction: row; }
}
@media (min-width: 1024px) {
    .hp-hero-actions { justify-content: flex-start; }
}

.hp-hero-sub-link {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.75rem;
    text-align: center;
}
@media (min-width: 640px) {
    .hp-hero-sub-link { text-align: left; }
}
.hp-hero-sub-link a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: underline;
}

/* Right column: floating rocket behind the quick-service cards. */
.hp-hero-right {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
@media (min-width: 1024px) {
    .hp-hero-right { align-items: flex-end; }
}
.hp-hero-rocket-container {
    position: absolute;
    top: 50%;
    left: -80px;
    z-index: 1;
    display: none;
    width: 310px;
    transform: translateY(-50%);
    pointer-events: none;
}
@media (min-width: 1024px) {
    .hp-hero-rocket-container { display: block; }
}
.hp-hero-rocket-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
    animation: hp-float 5s ease-in-out infinite;
}
@keyframes hp-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Quick service cards — left-accent, same geometry as .ses-mkt-card. */
.hp-cards-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 280px;
}
/* Nudge the stack past the container gutter toward the band edge, widening the
   gap to the rocket behind it. Negative margin rather than a transform: a
   persistent transform on a hero descendant is what breaks position:fixed for
   any modal rendered inside it (see docs/design-system.md, Modals).
   Held back at 1024px, where the gutter is all the clearance there is. */
@media (min-width: 1024px) {
    .hp-cards-wrap { margin-right: -16px; }
}
@media (min-width: 1280px) {
    .hp-cards-wrap { margin-right: -32px; }
}
.hp-cards-label {
    margin-bottom: 2px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.hp-qcard {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-left: 3px solid var(--mkt-accent, var(--color-ses-primary));
    border-radius: var(--radius-sm);
    background: #ffffff;
    box-shadow: var(--shadow-ses-card);
    text-decoration: none;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}
.hp-qcard:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.2);
}
.hp-qcard-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--mkt-accent, var(--color-ses-primary)) 12%, transparent);
    color: var(--mkt-accent, var(--color-ses-primary));
    font-size: 1.5rem;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}
.hp-qcard:hover .hp-qcard-icon {
    background: var(--mkt-accent, var(--color-ses-primary));
    color: #ffffff;
}
.hp-qcard-meta {
    display: block;
    color: var(--color-ses-muted);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.hp-qcard-title {
    display: block;
    color: var(--color-ses-secondary);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.25;
}
.hp-qcard-arrow {
    margin-left: auto;
    color: var(--color-ses-gray-30);
    font-size: 1.15rem;
    transition:
        transform 0.2s ease,
        color 0.2s ease;
}
.hp-qcard:hover .hp-qcard-arrow {
    color: var(--mkt-accent, var(--color-ses-primary));
    transform: translateX(2px);
}

@media (max-width: 1023px) {
    .hp-hero-left { text-align: center; }
    .hp-hero-desc { margin-inline: auto; }
    .hp-hero-actions { justify-content: center; }
    .hp-cards-wrap { margin: 16px auto 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hp-hero-rocket-img,
    .cursor { animation: none; }
    .hp-qcard,
    .hp-qcard-icon,
    .hp-qcard-arrow { transition: none; }
    .hp-qcard:hover { transform: none; }
    .hp-qcard:hover .hp-qcard-arrow { transform: none; }
}

/* ── Features: a thin strip of four points right under the hero ───── */
.hp-strip {
    padding: 28px 0;
    border-bottom: 1px solid var(--color-ses-border);
    background: #ffffff;
}

.hp-strip-list {
    display: grid;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 640px) {
    .hp-strip-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .hp-strip-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0;
    }

    .hp-strip-list li { padding: 0 24px; }
    .hp-strip-list li:first-child { padding-left: 0; }
    .hp-strip-list li + li { border-left: 1px solid var(--color-ses-border); }
}

.hp-strip-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.hp-strip-list i {
    flex-shrink: 0;
    color: var(--mkt-accent, var(--color-ses-primary));
    font-size: 1.6rem;
    line-height: 1.2;
}

.hp-strip-list h3 {
    margin: 0 0 2px;
    color: var(--color-ses-secondary);
    font-size: 0.95rem;
    font-weight: 700;
}

.hp-strip-list p {
    margin: 0;
    color: var(--color-ses-muted);
    font-size: 0.82rem;
    line-height: 1.55;
}

/* ── Audience: a picker, one tab per audience and one panel ───────── */
.hp-who {
    display: grid;
    gap: 24px;
}

@media (min-width: 1024px) {
    .hp-who {
        grid-template-columns: 300px minmax(0, 1fr);
        gap: 40px;
        align-items: stretch;
    }
}

.hp-who-tabs {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0 0 4px;
    overflow-x: auto;
    list-style: none;
}

@media (min-width: 1024px) {
    .hp-who-tabs {
        flex-direction: column;
        gap: 0;
        padding: 0;
        overflow: visible;
        border-left: 1px solid var(--color-ses-border);
    }
}

.hp-who-tab {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-ses-border);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--color-ses-muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

@media (min-width: 1024px) {
    .hp-who-tab {
        margin-left: -1px;
        padding: 14px 18px;
        border: 0;
        border-left: 3px solid transparent;
        background: transparent;
        font-size: 0.95rem;
    }
}

.hp-who-tab i {
    color: var(--mkt-accent, var(--color-ses-primary));
    font-size: 1.3rem;
}

.hp-who-tab:hover { color: var(--color-ses-secondary); }

.hp-who-tab[aria-selected="true"] {
    border-color: var(--mkt-accent, var(--color-ses-primary));
    color: var(--color-ses-secondary);
}

@media (min-width: 1024px) {
    .hp-who-tab[aria-selected="true"] { background: #ffffff; }
}

.hp-who-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 32px 28px;
    border: 1px solid var(--color-ses-border);
    border-top: 3px solid var(--mkt-accent, var(--color-ses-primary));
    border-radius: var(--radius-sm);
    background: #ffffff;
    box-shadow: var(--shadow-ses);
}

@media (min-width: 768px) {
    .hp-who-panel { padding: 40px 44px; }
}

.hp-who-icon {
    color: var(--mkt-accent, var(--color-ses-primary));
    font-size: 2.6rem;
    line-height: 1;
}

.hp-who-panel h3 {
    margin: 0;
    color: var(--color-ses-secondary);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.hp-who-panel p {
    max-width: 560px;
    margin: 0;
    color: var(--color-ses-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.hp-who-start {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--color-ses-border);
    color: var(--color-ses-muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hp-who-start a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--mkt-accent, var(--color-ses-primary));
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: none;
}

.hp-who-start a i { transition: transform 0.2s ease; }
.hp-who-start a:hover i { transform: translateX(3px); }

/* ── Middle CTA: one slim bar, text left and button right ─────────── */
.hp-bar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px 28px;
    border: 1px solid var(--color-ses-border);
    border-left: 3px solid var(--color-ses-primary);
    border-radius: var(--radius-sm);
    background: var(--color-ses-primary-light);
}

@media (min-width: 768px) {
    .hp-bar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 32px;
    }
}

.hp-bar h3 {
    margin: 0;
    color: var(--color-ses-secondary);
    font-size: 1.2rem;
    font-weight: 800;
}

.hp-bar p {
    margin: 4px 0 0;
    color: var(--color-ses-muted);
    font-size: 0.9rem;
}

.hp-bar-action {
    flex-shrink: 0;
    text-align: center;
}

.hp-bar-sub {
    margin-top: 8px;
    color: var(--color-ses-muted);
    font-size: 0.75rem;
}

.hp-bar-sub a {
    margin-left: 4px;
    color: var(--color-ses-secondary);
    font-weight: 600;
    text-decoration: underline;
}

.hp-bar-sub a:hover { color: var(--color-ses-primary); }

/* ── Stats: big figures on the band, split by thin lines ──────────── */
.hp-figures {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 1024px) {
    .hp-figures { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.hp-figures li {
    padding: 4px 16px;
    text-align: center;
}

.hp-figures li:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, 0.25); }

@media (min-width: 1024px) {
    .hp-figures li + li { border-left: 1px solid rgba(255, 255, 255, 0.25); }
}

.hp-figures-number {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hp-figures-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hp-figures-label i { font-size: 1rem; }

/* ── Growth: a still heading on the left, a numbered goal list ────── */
.hp-goals {
    display: grid;
    gap: 32px;
}

@media (min-width: 1024px) {
    .hp-goals {
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
        gap: 64px;
        align-items: start;
    }

    .hp-goals-intro {
        position: sticky;
        top: 100px;
    }
}

.hp-goals-intro .ses-mkt-sub { margin-bottom: 24px; }

.hp-goals-list {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--color-ses-border);
    list-style: none;
}

.hp-goals-list li { border-bottom: 1px solid var(--color-ses-border); }

.hp-goals-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
    padding: 22px 12px 22px 0;
    color: inherit;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        padding 0.2s ease;
}

.hp-goals-row:hover {
    padding-left: 12px;
    background: var(--color-ses-gray-05);
}

.hp-goals-no {
    color: var(--mkt-accent, var(--color-ses-primary));
    font-size: 1.1rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.5;
}

.hp-goals-row h3 {
    margin: 0 0 4px;
    color: var(--color-ses-secondary);
    font-size: 1.1rem;
    font-weight: 800;
}

.hp-goals-row p {
    margin: 0;
    color: var(--color-ses-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.hp-goals-go {
    align-self: center;
    color: var(--color-ses-gray-30);
    font-size: 1.4rem;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.hp-goals-row:hover .hp-goals-go {
    color: var(--mkt-accent, var(--color-ses-primary));
    transform: translateX(3px);
}

/* ── Services: open rows that switch sides, numbered 01 to 03 ─────── */
.hp-svc-rows {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

@media (min-width: 768px) {
    .hp-svc-rows { gap: 72px; }
}

.hp-svc-row {
    display: grid;
    gap: 28px;
    align-items: center;
}

@media (min-width: 768px) {
    .hp-svc-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 56px;
    }

    .hp-svc-row--flip .hp-svc-media { order: 2; }
}

.hp-svc-media {
    display: flex;
    justify-content: center;
}

.hp-svc-media img {
    width: 100%;
    max-width: 440px;
    height: auto;
    transition: transform 0.2s ease;
}

.hp-svc-media a:hover img { transform: scale(1.02); }

/* A coloured circle behind box art that has none of its own, placed like the
   green circle in the Press Release artwork: left of centre, behind the box. */
.hp-svc-media--disc {
    position: relative;
    isolation: isolate;
}

.hp-svc-media--disc::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: -1;
    width: min(64%, 300px);
    aspect-ratio: 1;
    background: var(--svc-disc, var(--color-ses-primary));
    clip-path: circle(50%);
    transform: translate(-72%, -50%);
}

/* The Press Release doodle and ground shadow (cut out of pr2024.png), at the foot of
   the box. Sized and placed against the GrowthPages box art (hub.png, box at 27.6%-74.8%
   of its width): the strokes run into the box's bottom-left corner, the shadow trails left.
   It reaches past the picture's left edge; on phones that edge is the screen, so trim it. */
@media (max-width: 767px) {
    .hp-svc-media--disc { overflow-x: clip; }
}

.hp-svc-media--disc a {
    position: relative;
    display: block;
}

.hp-svc-media--disc a::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: -20%;
    z-index: -1;
    width: 50%;
    aspect-ratio: 262 / 150;
    background: url("../img/home/doodle-shadow.png") no-repeat center / contain;
    pointer-events: none;
}

.hp-svc-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
}

.hp-svc-no {
    color: var(--color-ses-gray-30);
    font-size: 2.5rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
    line-height: 1;
}

.hp-svc-copy h3 {
    margin: 4px 0 0;
    color: var(--color-ses-secondary);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.hp-svc-copy > p {
    margin: 16px 0 0;
    color: var(--color-ses-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.hp-svc-checks {
    display: grid;
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.hp-svc-checks li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--color-ses-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.hp-svc-checks i {
    flex-shrink: 0;
    color: var(--color-ses-green);
    font-size: 1.15rem;
}

.hp-svc-copy .hp-svc-action { margin-top: 24px; }

/* ── Guarantee: a seal, framed like a certificate ─────────────────── */
.hp-seal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    padding: 36px 24px;
    border: 1px solid var(--color-ses-border);
    border-radius: var(--radius-sm);
    outline: 1px solid var(--color-ses-gray-10);
    outline-offset: 6px;
    background: #ffffff;
    text-align: center;
}

@media (min-width: 768px) {
    .hp-seal {
        flex-direction: row;
        gap: 48px;
        padding: 44px 48px;
        text-align: left;
    }
}

.hp-seal-img { flex-shrink: 0; }

.hp-seal-img img {
    width: 100%;
    max-width: 220px;
}

.hp-seal-text { flex: 1; }

.hp-seal-text .ses-mkt-sub { margin-inline: auto; }

@media (min-width: 768px) {
    .hp-seal-text .ses-mkt-sub { margin-inline: 0; }
}

.hp-seal-points {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 24px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 768px) {
    .hp-seal-points { justify-content: flex-start; }
}

.hp-seal-points li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-ses-secondary);
    font-size: 0.88rem;
    font-weight: 600;
}

.hp-seal-points i {
    color: var(--color-ses-green);
    font-size: 1.2rem;
}

/* ── Final CTA: the closing dark band ─────────────────────────────── */
.hp-final {
    max-width: 640px;
    margin-inline: auto;
    text-align: center;
}

.hp-final .line-shape { margin-inline: auto; }

.hp-final-sub {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
}

.hp-final-sub a {
    margin-left: 4px;
    color: #ffffff;
    font-weight: 600;
    text-decoration: underline;
}

.hp-final-sub a:hover { color: rgba(255, 255, 255, 0.8); }

/* Every movement on this page is decorative; reduced motion drops it. */
@media (prefers-reduced-motion: reduce) {
    .hp-who-tab,
    .hp-who-start a i,
    .hp-goals-row,
    .hp-goals-go,
    .hp-svc-media img {
        transition: none;
    }

    .hp-goals-row:hover .hp-goals-go,
    .hp-who-start a:hover i,
    .hp-svc-media a:hover img {
        transform: none;
    }
}
