/* DSIT — inner pages (careers, support, legal, status)
   Loaded after styles.css; mirrors the landing page look. */

.subpage {
    --pg-radius: 14px;
    --pg-radius-sm: 10px;
    background: var(--white);
}

.subpage .header-cta {
    color: #fff;
}

.subpage .site-header {
    transition: transform 0.3s var(--ease), border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

/* ─── Hero ─── */
.pg-hero {
    position: relative;
    padding: calc(var(--header-h) + clamp(3rem, 7vw, 5rem)) 0 clamp(3.25rem, 6vw, 4.5rem);
    color: #fff;
    background:
        radial-gradient(ellipse 55% 70% at 90% 10%, rgba(32, 160, 224, 0.3), transparent 65%),
        radial-gradient(ellipse 45% 60% at 0% 100%, rgba(24, 104, 152, 0.35), transparent 70%),
        linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-2) 100%);
    overflow: hidden;
}

.pg-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000 10%, transparent 75%);
}

.pg-hero .container {
    position: relative;
    z-index: 1;
    animation: pgUp 0.8s var(--ease) both;
}

.pg-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.4rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
}

.pg-crumbs a {
    color: rgba(255, 255, 255, 0.75);
}

.pg-crumbs a:hover {
    color: #fff;
}

.pg-crumbs span[aria-hidden] {
    opacity: 0.5;
}

.pg-hero h1 {
    font-family: var(--serif);
    font-size: clamp(2.4rem, 5.4vw, 3.6rem);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.03em;
    max-width: 18ch;
    margin-bottom: 1.1rem;
}

.pg-hero h1 em {
    font-style: italic;
    color: var(--sky);
}

.pg-hero-sub {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
    max-width: 38rem;
}

.pg-hero-meta {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

.pg-status {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.85rem;
    margin-bottom: 1.4rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

.pg-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fbbf24;
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.18);
}

/* ─── Body scaffolding ─── */
.pg-section {
    padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.pg-section--paper {
    background: var(--paper);
}

.pg-head {
    max-width: 40rem;
    margin-bottom: 2.25rem;
}

.pg-head h2 {
    font-family: var(--serif);
    font-size: clamp(1.7rem, 3.4vw, 2.3rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 0.6rem;
}

.pg-head p {
    color: var(--muted);
}

.pg-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 760px) {
    .pg-grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .pg-grid--2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.pg-card {
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--pg-radius);
    transition: border-color 0.25s ease, box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.pg-card:hover {
    border-color: rgba(32, 160, 224, 0.45);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.pg-card h3 {
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.45rem;
}

.pg-card p {
    font-size: 0.94rem;
    color: var(--muted);
}

.pg-card .btn {
    align-self: flex-start;
    margin-top: auto;
}

.pg-card p + .btn,
.pg-card p + .pg-big {
    margin-top: 1.25rem;
}

.pg-big {
    margin-top: auto;
    font-weight: 600;
    color: var(--ink);
}

.pg-big a:hover {
    color: var(--sky);
}

.pg-big small {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--muted);
}

.pg-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 1.2rem;
    color: var(--mid);
    background: var(--accent-soft);
    border-radius: 12px;
}

.pg-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ─── Careers: not hiring ─── */
.pg-notice {
    display: grid;
    gap: 1.5rem;
    align-items: center;
    padding: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 3.5rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--pg-radius);
    box-shadow: var(--shadow-sm);
}

@media (min-width: 760px) {
    .pg-notice {
        grid-template-columns: auto 1fr auto;
    }
}

.pg-notice .pg-icon {
    margin: 0;
    width: 56px;
    height: 56px;
    color: #b45309;
    background: rgba(251, 191, 36, 0.16);
}

.pg-notice h2 {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.3rem;
}

.pg-notice p {
    color: var(--muted);
    max-width: 40rem;
}

.pg-values {
    display: grid;
    gap: 1.75rem 2rem;
}

@media (min-width: 640px) {
    .pg-values {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1000px) {
    .pg-values {
        grid-template-columns: repeat(4, 1fr);
    }
}

.pg-values h3 {
    position: relative;
    padding-left: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.4rem;
}

.pg-values h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35em;
    width: 4px;
    height: 0.85em;
    border-radius: 2px;
    background: var(--sky);
}

.pg-values p {
    font-size: 0.92rem;
    color: var(--muted);
}

/* ─── Support: tips + FAQ ─── */
.pg-split {
    display: grid;
    gap: 2.5rem;
    align-items: start;
}

@media (min-width: 900px) {
    .pg-split {
        grid-template-columns: 1fr 1.5fr;
        gap: 4rem;
    }
}

.pg-checklist {
    display: grid;
    gap: 0.7rem;
    margin-top: 1.25rem;
}

.pg-checklist li {
    position: relative;
    padding-left: 1.85rem;
    color: var(--ink);
    font-weight: 500;
}

.pg-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23186898' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 62% no-repeat;
}

.pg-faq {
    display: grid;
    gap: 0.75rem;
}

.pg-faq details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--pg-radius-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pg-faq details[open] {
    border-color: rgba(32, 160, 224, 0.45);
    box-shadow: var(--shadow-sm);
}

.pg-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.35rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
}

.pg-faq summary::-webkit-details-marker {
    display: none;
}

.pg-faq summary::after {
    content: "";
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23186898' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 60% no-repeat;
    transition: transform 0.25s var(--ease);
}

.pg-faq details[open] summary::after {
    transform: rotate(45deg);
}

.pg-faq details p {
    padding: 0 1.35rem 1.25rem;
    font-size: 0.95rem;
    color: var(--muted);
}

/* ─── Legal: TOC + prose ─── */
.pg-legal {
    display: grid;
    gap: 2.5rem;
    align-items: start;
}

@media (min-width: 920px) {
    .pg-legal {
        grid-template-columns: 15rem 1fr;
        gap: 4rem;
    }

    .pg-toc {
        position: sticky;
        top: calc(var(--header-h) + 1.5rem);
    }
}

.pg-toc {
    padding: 1.25rem;
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--pg-radius);
}

.pg-toc p {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.6rem;
}

.pg-toc ol {
    display: grid;
    gap: 0.1rem;
    counter-reset: toc;
}

.pg-toc a {
    display: block;
    padding: 0.35rem 0.5rem;
    font-size: 0.88rem;
    color: var(--text);
    border-radius: 6px;
}

.pg-toc a:hover {
    color: var(--mid);
    background: #fff;
}

.pg-prose {
    max-width: 44rem;
}

.pg-prose h2 {
    font-family: var(--serif);
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--ink);
    margin: 2.5rem 0 0.75rem;
    scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

.pg-prose h2:first-child {
    margin-top: 0;
}

.pg-prose p,
.pg-prose li {
    color: var(--text);
    line-height: 1.75;
}

.pg-prose p + p {
    margin-top: 0.75rem;
}

.pg-prose ul {
    display: grid;
    gap: 0.35rem;
    margin: 0.75rem 0;
    padding-left: 1.25rem;
    list-style: disc;
}

.pg-prose li::marker {
    color: var(--sky);
}

.pg-prose a {
    color: var(--mid);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pg-prose a:hover {
    color: var(--sky);
}

.pg-contact-box {
    margin-top: 1rem;
    padding: 1.25rem 1.4rem;
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: var(--pg-radius-sm);
}

/* ─── CTA band ─── */
.pg-band-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.75rem;
    padding: clamp(2rem, 5vw, 3rem);
    color: #fff;
    background:
        radial-gradient(ellipse 60% 120% at 100% 0%, rgba(32, 160, 224, 0.35), transparent 60%),
        linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%);
    border-radius: calc(var(--pg-radius) + 6px);
}

.pg-band-inner > div:first-child {
    max-width: 34rem;
}

.pg-band-inner h2 {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.pg-band-inner p {
    color: rgba(255, 255, 255, 0.72);
}

.pg-band-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ─── Status pages (thank-you, 403) ─── */
.pg-status-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(ellipse 55% 60% at 85% 15%, rgba(32, 160, 224, 0.3), transparent 65%),
        radial-gradient(ellipse 45% 55% at 0% 100%, rgba(24, 104, 152, 0.38), transparent 70%),
        linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-2) 100%);
}

.pg-status-main {
    flex: 1;
    display: grid;
    place-items: center;
    padding: calc(var(--header-h) + 2.5rem) 1.25rem 3rem;
}

.pg-status-card {
    width: min(100%, 36rem);
    padding: clamp(2rem, 5vw, 3rem);
    text-align: center;
    background: #fff;
    border-radius: calc(var(--pg-radius) + 4px);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.4);
    animation: pgUp 0.8s var(--ease) both;
}

.pg-status-badge {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 1.4rem;
    border-radius: 50%;
    color: #059669;
    background: rgba(16, 185, 129, 0.12);
}

.pg-status-badge svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pg-status-badge--warn {
    color: #b45309;
    background: rgba(251, 191, 36, 0.16);
}

.pg-status-code {
    font-family: var(--serif);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: 0.25rem;
}

.pg-status-card h1 {
    font-family: var(--serif);
    font-size: clamp(1.9rem, 4vw, 2.4rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 0.75rem;
}

.pg-status-card > p {
    color: var(--muted);
    margin-bottom: 1.75rem;
}

.pg-next {
    display: grid;
    gap: 0.6rem;
    margin: 0 0 1.75rem;
    text-align: left;
    counter-reset: next;
}

.pg-next li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    font-size: 0.92rem;
    color: var(--text);
    background: var(--paper);
    border-radius: var(--pg-radius-sm);
}

.pg-next li::before {
    counter-increment: next;
    content: counter(next);
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 1.6rem;
    height: 1.6rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(180deg, var(--sky), var(--mid));
    border-radius: 50%;
}

.pg-status-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.pg-status-page .site-header {
    background: rgba(255, 255, 255, 0.95);
}

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

@media (prefers-reduced-motion: reduce) {
    .pg-hero .container,
    .pg-status-card {
        animation: none !important;
    }
}

/* ─── Hero illustrations ─── */
@media (min-width: 960px) {
    .pg-hero--art .container {
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
        gap: 3rem;
        align-items: center;
    }
}

.pg-hero-art {
    position: relative;
    display: none;
    height: 260px;
}

@media (min-width: 960px) {
    .pg-hero-art {
        display: block;
    }
}

.ha-card {
    position: absolute;
    color: var(--text);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.ha-card b {
    color: var(--ink);
}

.ha-float {
    right: 0;
    bottom: 8px;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.9rem;
    line-height: 1.25;
    animation: haFloat 6s ease-in-out infinite;
}

.ha-float b {
    display: block;
    font-size: 0.85rem;
}

.ha-float div > span {
    font-size: 0.72rem;
    color: var(--muted);
}

/* Careers */
.ha-jobs {
    left: 6%;
    top: 0;
    width: 74%;
    padding: 1.1rem;
    transform: rotate(-2deg);
}

.ha-jobs-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.9rem;
    font-size: 0.9rem;
}

.ha-pill {
    padding: 0.2rem 0.6rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: #92400e;
    background: rgba(251, 191, 36, 0.2);
    border-radius: 999px;
}

.ha-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem;
    margin-top: 0.45rem;
    background: var(--paper);
    border-radius: 9px;
    opacity: 0.55;
}

.ha-row i {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: var(--line);
}

.ha-row span {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--line);
}

.ha-row em {
    width: 44px;
    height: 16px;
    border-radius: 5px;
    background: var(--line-soft);
    border: 1px dashed var(--line);
}

.ha-avatars {
    display: flex;
    padding-left: 8px;
}

.ha-avatars i {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-left: -8px;
    font-size: 0.62rem;
    font-style: normal;
    font-weight: 700;
    color: #fff;
    background: var(--sky);
    border: 2px solid #fff;
    border-radius: 50%;
}

.ha-avatars i:nth-child(2) { background: #10b981; }
.ha-avatars i:nth-child(3) { background: #f59e0b; }

/* Support */
.ha-ticket {
    left: 4%;
    top: 0;
    width: 78%;
    padding: 1.1rem;
    transform: rotate(-1.5deg);
}

.ha-ticket-head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
    font-size: 0.88rem;
}

.ha-id {
    padding: 0.15rem 0.45rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--mid);
    background: var(--accent-soft);
    border-radius: 5px;
}

.ha-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.ha-steps li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.68rem;
    color: var(--muted);
}

.ha-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 11px;
    left: calc(50% + 14px);
    right: calc(-50% + 14px);
    height: 2px;
    background: #10b981;
}

.ha-steps i {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    font-size: 0.66rem;
    font-style: normal;
    color: #fff;
    background: #10b981;
    border-radius: 50%;
}

.ha-reply {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
}

.ha-av {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    font-size: 0.62rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--sky), var(--mid));
    border-radius: 50%;
}

.ha-reply p {
    padding: 0.5rem 0.7rem;
    font-size: 0.76rem;
    color: var(--text);
    background: var(--paper);
    border-radius: 2px 10px 10px 10px;
}

.ha-ok {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    font-weight: 700;
    color: #fff;
    background: #10b981;
    border-radius: 50%;
}

/* Legal */
.ha-doc {
    left: 14%;
    top: 0;
    width: 60%;
    height: 250px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.3rem;
    transform: rotate(-3deg);
}

.ha-doc::before {
    content: "";
    position: absolute;
    inset: 10px -14px -10px 14px;
    z-index: -1;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 14px;
    transform: rotate(5deg);
}

.ha-doc .ha-doc-title {
    width: 55%;
    height: 12px;
    margin-bottom: 0.35rem;
    border-radius: 4px;
    background: var(--ink);
}

.ha-doc .ha-doc-sub {
    width: 40%;
    height: 8px;
    margin-top: 0.5rem;
    border-radius: 3px;
    background: var(--sky);
}

.ha-doc span {
    height: 6px;
    border-radius: 3px;
    background: var(--line);
}

.ha-doc span.s {
    width: 70%;
}

.ha-sign {
    margin-top: auto;
    padding-top: 0.4rem;
    border-top: 1px solid var(--line);
}

.ha-sign svg {
    width: 110px;
    height: 28px;
    fill: none;
    stroke: var(--mid);
    stroke-width: 2;
    stroke-linecap: round;
}

.ha-shield {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: var(--mid);
    background: var(--accent-soft);
    border-radius: 10px;
}

.ha-shield svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@keyframes haFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
    .ha-float {
        animation: none;
    }
}
