/* ──────────────────────────────────────────────────────────────
   Shared section system — one rhythm for the whole page.
   .sx        section shell (consistent padding, hairline divider)
   .sx-head   centred header: .sx-pill + .sx-title (em = gradient) + .sx-sub
   Loaded after the per-section sheets so it sets the common look.
   ────────────────────────────────────────────────────────────── */
.sx {
    position: relative;
    min-height: 0 !important;                       /* sections size to their content, no forced full-screen gaps */
    padding-block: clamp(64px, 9vw, 128px) !important;
    overflow: clip;
}
.sx + .sx::before, .sx + div .sx::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: min(1100px, 88%);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--border2) 20%, var(--border2) 80%, transparent);
    pointer-events: none;
}

.sx-head { text-align: center; margin: 0 auto clamp(28px, 4.5vw, 52px); max-width: 880px; }
.sx-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 16px;
    border: 1px solid var(--border2);
    border-radius: 999px;
    background: color-mix(in srgb, var(--bg2) 82%, transparent);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text2);
}
.sx-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(135deg, #e91e8c, #2d7dd2); }
.sx-title {
    margin: 0 auto 14px;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.1rem, 4.8vw, 3.9rem);
    line-height: 1.03;
    letter-spacing: -0.027em;
    text-wrap: balance;
    color: var(--text);
}
.sx-title em {
    font-style: italic;
    padding-right: 0.06em;
    background: linear-gradient(95deg, #e91e8c 0%, #9b2fad 52%, #2d7dd2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.sx-sub { margin: 0 auto; max-width: 56ch; font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.65; text-wrap: balance; color: var(--text2); }

/* shared button + links */
.sx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 14px 26px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: 600 0.97rem/1 var(--font-body);
    color: #fff;
    background: linear-gradient(95deg, #e91e8c, #9b2fad 52%, #2d7dd2);
    box-shadow: 0 16px 34px -14px rgba(155, 47, 173, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s;
}
.sx-btn:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -14px rgba(155, 47, 173, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.sx-btn--ghost { color: var(--text); background: color-mix(in srgb, var(--bg2) 80%, transparent); border-color: var(--border2); box-shadow: none; }
.sx-btn--ghost:hover { border-color: var(--text3); box-shadow: none; }

/* ── polish for the older sections (testimonials, team, CTA, footer) ── */
.grad-border { border-radius: 22px; }
.card-hover:hover { transform: translateY(-4px); }           /* the old -8px + scale felt bouncy */
.stat-card, .card-surface { border-radius: 20px; }
footer { border-top-color: var(--border2); }

/* ── mobile ── */
@media (max-width: 640px) {
    .sx { padding-block: 56px 64px !important; }
    .sx-head { margin-bottom: 26px; }
    .sx-pill { font-size: 0.68rem; padding: 6px 13px; margin-bottom: 14px; }
    .sx-title { font-size: clamp(2rem, 9.4vw, 2.6rem); }
    .sx-sub { font-size: 1rem; }
    .sx-btn { width: 100%; }
}
/* tap targets: anything interactive that is small gets a 44px hit area on touch screens */
@media (pointer: coarse) {
    .au-skip, .pr-player__skips button, .hx-card__skip button, .hx-sample { min-height: 44px; }
    #site-header nav > a:not(.hidden), #site-header nav > button:not(.hidden), #site-header > div a:first-child { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
    #site-header .theme-btn, #site-header .mm-btn { min-width: 44px; }
    footer button, footer a { min-height: 44px; }
    footer a[href], footer button { display: inline-flex; align-items: center; }
    .sp-seek, .hx-seg__seek { min-height: 40px; }
    .sl-speed, .au-read, .rd-go { min-height: 44px; }
    a[href*="linkedin.com/in/"] { min-height: 44px; display: inline-flex; align-items: center; }
    button, [role="button"], summary { touch-action: manipulation; }
}

/* ── phone menu ── */
@media (max-width: 639px) { .mm-btn { display: inline-grid !important; } }
.mm-btn { display: none; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border2); border-radius: 50%; background: var(--bg2); color: var(--text); cursor: pointer; }
.mm { width: min(420px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; padding: 0; border: 0; border-left: 1px solid var(--border2); background: var(--bg); color: var(--text); }
.mm::backdrop { background: rgba(4, 3, 10, 0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.mm[open] { animation: mm-in 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes mm-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.mm-in { display: flex; flex-direction: column; min-height: 100%; padding: 16px 20px max(24px, env(safe-area-inset-bottom)); }
.mm-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mm-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.4rem; }
.mm-x { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border2); border-radius: 50%; background: transparent; color: var(--text); cursor: pointer; }
.mm ul { margin: 0; padding: 0; list-style: none; }
.mm li + li { border-top: 1px solid var(--border); }
.mm li > a, .mm li > button { text-align: left; justify-content: space-between; display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 58px; padding: 0 4px; border: 0; background: none; color: var(--text); font: 500 1.35rem/1 var(--font-display); text-align: left; cursor: pointer; }
.mm li > a small { font: 500 0.72rem/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: #e91e8c; }
.mm-hot { background: linear-gradient(95deg, #e91e8c, #2d7dd2); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.mm-hot small { -webkit-text-fill-color: #e91e8c; }
.mm-cta, .mm-demo { display: flex; align-items: center; justify-content: center; min-height: 54px; margin-top: 12px; border-radius: 999px; font: 600 1rem/1 var(--font-body); cursor: pointer; text-decoration: none; }
.mm-cta { margin-top: auto; color: #fff; border: 0; background: linear-gradient(95deg, #e91e8c, #9b2fad 52%, #2d7dd2); box-shadow: 0 16px 32px -14px rgba(155, 47, 173, 0.7); }
.mm-demo { color: var(--text); background: transparent; border: 1px solid var(--border2); }
@media (prefers-reduced-motion: reduce) { .mm[open] { animation: none; } }

/* ── FAQ ── */
.fq { background: var(--bg); }
.fq-in { max-width: 860px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.fq-list { display: flex; flex-direction: column; gap: 10px; }
.fq-item { border: 1px solid var(--border2); border-radius: 20px; background: var(--bg2); transition: border-color 0.3s, background 0.3s; }
.fq-item[open] { border-color: color-mix(in srgb, #9b2fad 50%, var(--border2)); background: color-mix(in srgb, #9b2fad 5%, var(--bg2)); }
.fq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 22px; cursor: pointer; list-style: none; font-size: 1.06rem; font-weight: 600; color: var(--text); }
.fq-item summary::-webkit-details-marker { display: none; }
.fq-item summary:focus-visible { outline: 2px solid #e91e8c; outline-offset: -2px; border-radius: 20px; }
.fq-plus { flex: none; position: relative; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border2); transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s; }
.fq-plus::before, .fq-plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.8px; background: var(--text2); border-radius: 2px; transform: translate(-50%, -50%); }
.fq-plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.35s; }
.fq-item[open] .fq-plus { transform: rotate(180deg); background: linear-gradient(135deg, #e91e8c, #2d7dd2); border-color: transparent; }
.fq-item[open] .fq-plus::before, .fq-item[open] .fq-plus::after { background: #fff; }
.fq-item[open] .fq-plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.fq-a { padding: 0 22px 22px; font-size: 1rem; line-height: 1.7; color: var(--text2); max-width: 70ch; }
@media (max-width: 640px) { .fq-item summary { padding: 12px 16px; font-size: 1rem; } .fq-a { padding: 0 16px 18px; } }

.ft-links { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 22px; font-size: 0.9rem; }
.ft-links a { color: var(--text2); text-decoration: none; padding: 4px 0; transition: color 0.2s; }
.ft-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

/* ── Reads ── */
.rd { background: var(--bg); }
.rd-in { max-width: 1080px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.rd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 28px); }
.rd-card { display: flex; gap: clamp(16px, 2.4vw, 26px); align-items: flex-start; padding: clamp(18px, 2.6vw, 30px); border: 1px solid var(--border2); border-radius: 26px; background: var(--bg2); color: var(--text); text-decoration: none; transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.45s; }
.rd-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--c) 60%, var(--border2)); box-shadow: 0 30px 60px -34px var(--c); }
.rd-card:focus-visible { outline: 2px solid var(--c); outline-offset: 3px; }
.rd-cover { flex: none; width: clamp(88px, 11vw, 120px); aspect-ratio: 2 / 3; height: auto; object-fit: cover; border-radius: 5px 10px 10px 5px; box-shadow: 0 22px 36px -16px rgba(0, 0, 0, 0.65), inset 3px 0 0 rgba(255, 255, 255, 0.15); background: var(--bg3); }
.rd-tx { min-width: 0; }
.rd-tag { display: inline-block; padding: 4px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); }
.rd-tx h3 { margin: 12px 0 2px; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.05; letter-spacing: -0.02em; }
.rd-by { margin: 0 0 10px; font-size: 0.9rem; color: var(--text3); }
.rd-blurb { margin: 0 0 14px; font-size: 0.96rem; line-height: 1.6; color: var(--text2); }
.rd-go { display: inline-flex; align-items: center; gap: 8px; font-size: 0.92rem; font-weight: 600; color: var(--text); }
.rd-go svg { transition: transform 0.3s; }
.rd-card:hover .rd-go svg { transform: translate(3px, -3px); }
@media (max-width: 820px) { .rd-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 460px) { .rd-card { flex-direction: column; } .rd-cover { width: 104px; } }
