/* TalePal v17 — "Studio Light"
   Inter-driven, white/grey editorial. Inspired by twenty.com:
   generous whitespace, tight-tracked large display type, subtle accents. */

:root {
    --v17-bg:          #ffffff;
    --v17-bg-soft:     #fafafa;
    --v17-bg-panel:    #f4f4f5;
    --v17-ink:         #0a0a0a;
    --v17-ink-2:       #1f1f23;
    --v17-mute:        #5f5f6a;
    --v17-mute-2:      #8a8a93;
    --v17-line:        #e6e6ea;
    --v17-line-2:      #efeff1;
    --v17-accent:      #0a0a0a;
    --v17-accent-soft: #1f1f23;
    --v17-highlight:   #8b5cf6;  /* keeps a whisper of TalePal's purple */
}

* { box-sizing: border-box; }

body.v17 {
    background: var(--v17-bg);
    color: var(--v17-ink-2);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    letter-spacing: -0.005em;
    font-weight: 400;
    font-feature-settings: "cv11", "ss01", "ss03";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.v17 h1, .v17 h2, .v17 h3, .v17 h4 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--v17-ink);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin: 0;
}

.v17 p { margin: 0; }

.v17 .container { max-width: 1160px; padding-left: 1.5rem; padding-right: 1.5rem; }

.v17 ::selection { background: #0a0a0a; color: #ffffff; }

.v17 .eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--v17-mute);
    font-weight: 500;
}

/* ===== Top rail ===== */
.v17-rail {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    padding: 0.9rem 0;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s, background 0.2s;
}
.v17-rail.scrolled {
    border-bottom-color: var(--v17-line);
    background: rgba(255, 255, 255, 0.92);
}
.v17-rail .inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2.5rem;
}
.v17-rail .v17-mark,
.v17-rail .v17-mark:link,
.v17-rail .v17-mark:visited,
.v17-rail .v17-mark:hover {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: var(--v17-ink);
    font-weight: 600;
    font-size: 1.02rem;
    letter-spacing: -0.02em;
}
.v17-rail .mark-logo {
    height: 32px;
    width: auto;
    display: block;
    object-fit: contain;
    background: transparent;
}
.v17-rail .center-nav {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    justify-self: center;
}
.v17-rail .center-nav a {
    color: var(--v17-mute);
    text-decoration: none;
    font-weight: 450;
    transition: color 0.15s;
}
.v17-rail .center-nav a:hover { color: var(--v17-ink); }
.v17-rail .cta-side { display: flex; gap: 0.55rem; align-items: center; }
@media (max-width: 820px) {
    .v17-rail .inner { grid-template-columns: auto auto; }
    .v17-rail .center-nav { display: none; }
    .v17-rail .cta-side .v17-btn-ghost { display: none; }
}

/* ===== Buttons ===== */
.v17 .v17-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: -0.005em;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
    cursor: pointer;
    line-height: 1.2;
}
.v17 .v17-btn-primary {
    background: var(--v17-ink);
    color: #fff;
    border-color: var(--v17-ink);
}
.v17 .v17-btn-primary:hover {
    background: #000;
    transform: translateY(-1px);
}
.v17 .v17-btn-ghost {
    background: transparent;
    color: var(--v17-ink-2);
    border-color: transparent;
}
.v17 .v17-btn-ghost:hover {
    color: var(--v17-ink);
    background: var(--v17-bg-panel);
}
.v17 .v17-btn-outline {
    background: #fff;
    color: var(--v17-ink);
    border-color: var(--v17-line);
}
.v17 .v17-btn-outline:hover {
    border-color: var(--v17-ink);
}
.v17 .v17-btn-lg {
    padding: 0.85rem 1.4rem;
    font-size: 0.98rem;
    border-radius: 10px;
}
.v17 .v17-btn:disabled, .v17 .v17-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ===== Hero ===== */
.v17-hero {
    padding: 7rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.v17-hero::before {
    /* very subtle radial so white isn't flat */
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(800px 400px at 50% -10%, rgba(139, 92, 246, 0.07), transparent 70%),
        radial-gradient(600px 300px at 50% 100%, rgba(10, 10, 10, 0.02), transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.v17-hero > .container { position: relative; z-index: 1; }
.v17-hero .pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.8rem 0.35rem 0.4rem;
    background: var(--v17-bg-panel);
    border: 1px solid var(--v17-line);
    border-radius: 999px;
    font-size: 0.82rem;
    color: var(--v17-ink-2);
    margin-bottom: 2rem;
    font-weight: 500;
}
.v17-hero .pill .tag {
    background: var(--v17-ink);
    color: #fff;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0;
}
.v17-hero h1 {
    font-size: clamp(2.75rem, 7.5vw, 6rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
    font-weight: 500;
    margin-bottom: 1.5rem;
    max-width: 18ch;
    margin-left: auto;
    margin-right: auto;
}
.v17-hero h1 .accent {
    font-style: italic;
    font-weight: 400;
    color: var(--v17-mute);
}
.v17-hero .lead {
    font-size: clamp(1.1rem, 1.6vw, 1.25rem);
    color: var(--v17-mute);
    max-width: 40rem;
    margin: 0 auto 1.25rem;
    line-height: 1.5;
    font-weight: 400;
}
.v17-hero .sub-lead {
    font-size: 1.02rem;
    color: var(--v17-mute);
    max-width: 42rem;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    font-weight: 400;
}
.v17-hero .sub-lead em {
    font-style: italic;
    color: var(--v17-ink-2);
}
.v17-hero .ctas {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}
.v17-hero .hero-shot {
    max-width: 1040px;
    margin: 0 auto;
    border: 1px solid var(--v17-line);
    border-radius: 14px;
    overflow: hidden;
    background: var(--v17-bg-panel);
    box-shadow:
        0 1px 2px rgba(10, 10, 10, 0.04),
        0 20px 40px -20px rgba(10, 10, 10, 0.18);
}
.v17-hero .hero-shot img { display: block; width: 100%; height: auto; }

/* ===== Signature line ===== */
.v17-signature {
    padding: 0 0 5rem;
    text-align: center;
}
.v17-signature p {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    color: var(--v17-mute);
    max-width: 44rem;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

/* ===== Section wrapper ===== */
.v17-section {
    padding: 6rem 0;
    border-top: 1px solid var(--v17-line);
}
.v17-section .section-head {
    max-width: 44rem;
    margin: 0 auto 3.5rem;
    text-align: center;
}
.v17-section .section-head .eyebrow { margin-bottom: 0.9rem; }
.v17-section .section-head h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.035em;
    margin-bottom: 0.75rem;
}
.v17-section .section-head p {
    color: var(--v17-mute);
    font-size: 1.05rem;
}

/* ===== Trust triad ===== */
.v17-triad .grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.v17-triad .col {
    padding: 1.8rem 1.6rem;
    background: var(--v17-bg-soft);
    border: 1px solid var(--v17-line);
    border-radius: 14px;
}
.v17-triad .col i {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--v17-line);
    border-radius: 9px;
    font-size: 1rem;
    color: var(--v17-ink);
    margin-bottom: 1rem;
}
.v17-triad h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--v17-ink);
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
}
.v17-triad p {
    color: var(--v17-mute);
    font-size: 0.95rem;
    line-height: 1.55;
}
@media (max-width: 980px) {
    .v17-triad .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .v17-triad .grid { grid-template-columns: 1fr; }
}

/* ===== Feature chapters (numbered list, twenty-style clean) ===== */
.v17-features .chapter {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 2.5rem;
    padding: 2.2rem 0;
    border-top: 1px solid var(--v17-line);
    align-items: baseline;
}
.v17-features .chapter:last-child { border-bottom: 1px solid var(--v17-line); }
.v17-features .chapter .num {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--v17-mute-2);
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}
.v17-features .chapter h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--v17-ink);
    margin-bottom: 0.4rem;
    letter-spacing: -0.025em;
}
.v17-features .chapter p {
    color: var(--v17-mute);
    max-width: 42rem;
    font-size: 1rem;
}
.v17-features .chapter .meta {
    font-size: 0.82rem;
    color: var(--v17-mute-2);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    align-self: start;
    padding-top: 0.45rem;
    white-space: nowrap;
}
@media (max-width: 780px) {
    .v17-features .chapter { grid-template-columns: 1fr; gap: 0.6rem; }
    .v17-features .chapter .meta { display: none; }
}

/* ===== Pullquote ===== */
.v17-quote {
    padding: 6rem 0;
    background: var(--v17-bg-soft);
    border-top: 1px solid var(--v17-line);
    border-bottom: 1px solid var(--v17-line);
    text-align: center;
}
.v17-quote blockquote {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--v17-ink);
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.2;
}
.v17-quote blockquote em {
    font-style: italic;
    font-weight: 400;
    color: var(--v17-mute);
}
.v17-quote cite {
    display: block;
    margin-top: 2rem;
    font-style: normal;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--v17-mute-2);
    font-weight: 500;
}

/* ===== Gallery (kept minimal, light variant) ===== */
.v17-showcase .shot-frame {
    max-width: 1080px;
    margin: 0 auto;
    padding: 10px;
    border-radius: 16px;
    background: linear-gradient(180deg, var(--v17-bg-panel), var(--v17-bg-soft));
    border: 1px solid var(--v17-line);
    box-shadow: 0 30px 60px -30px rgba(10, 10, 10, 0.15);
}
.v17-showcase .shot-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--v17-line);
    background: #fff;
}
.v17-showcase .tabs {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    flex-wrap: wrap;
    margin: 0 auto 2rem;
    padding: 0.3rem;
    background: var(--v17-bg-panel);
    border: 1px solid var(--v17-line);
    border-radius: 10px;
    width: fit-content;
}
.v17-showcase .tab {
    padding: 0.45rem 0.95rem;
    border: none;
    background: transparent;
    border-radius: 7px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--v17-mute);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    font-family: inherit;
    letter-spacing: -0.005em;
}
.v17-showcase .tab:hover { color: var(--v17-ink); }
.v17-showcase .tab.active {
    background: #fff;
    color: var(--v17-ink);
    box-shadow: 0 1px 2px rgba(10, 10, 10, 0.06);
}
.v17-showcase .shot-caption {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--v17-mute);
    font-size: 0.95rem;
}
.v17-showcase .shot-caption strong {
    display: block;
    color: var(--v17-ink);
    font-weight: 500;
    margin-bottom: 0.2rem;
}

/* ===== Pricing ===== */
.v17-pricing .rows {
    max-width: 1040px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    align-items: stretch;
}
.v17-plan {
    display: flex;
    flex-direction: column;
    padding: 2rem 1.8rem;
    border: 1px solid var(--v17-line);
    background: #fff;
    border-radius: 14px;
    position: relative;
}
.v17-plan.featured {
    border-color: var(--v17-ink);
    box-shadow: 0 20px 40px -20px rgba(10, 10, 10, 0.2);
}
.v17-plan.dimmed {
    opacity: 0.6;
    background: #fafafa;
}
.v17-plan.dimmed:hover {
    opacity: 0.85;
}
.v17-plan-tag {
    position: absolute;
    top: -11px;
    left: 1.5rem;
    background: var(--v17-ink);
    color: #fff;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    text-transform: uppercase;
    font-weight: 600;
}
.v17-plan-tag.soft {
    background: #fff;
    color: var(--v17-ink);
    border: 1px solid var(--v17-line);
}
.v17-plan .plan-name {
    font-size: 0.85rem;
    color: var(--v17-mute);
    font-weight: 500;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.v17-plan h3 {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 1.2rem;
    letter-spacing: -0.02em;
}
.v17-plan .price {
    font-size: 2.6rem;
    color: var(--v17-ink);
    letter-spacing: -0.04em;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 0.4rem;
}
.v17-plan .price small {
    display: block;
    font-size: 0.85rem;
    color: var(--v17-mute);
    font-weight: 400;
    margin-top: 0.5rem;
    letter-spacing: 0;
    text-transform: none;
}
.v17-plan .perks {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 1.8rem;
    font-size: 0.93rem;
    color: var(--v17-ink-2);
    flex: 1;
    border-top: 1px solid var(--v17-line);
    padding-top: 1.4rem;
}
.v17-plan .perks li {
    padding: 0.45rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
}
.v17-plan .perks li::before {
    content: "";
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 3px;
    border-radius: 50%;
    background: var(--v17-bg-panel);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 8l3 3 5-6' stroke='%230a0a0a' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-size: 14px 14px;
    background-repeat: no-repeat;
    background-position: center;
}
.v17-plan .cta { margin-top: auto; }
.v17-plan .cta .v17-btn { width: 100%; justify-content: center; }
@media (max-width: 900px) {
    .v17-pricing .rows { grid-template-columns: 1fr; max-width: 440px; }
}

/* ===== FAQ ===== */
.v17-faq { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }
.v17-faq details {
    border-top: 1px solid var(--v17-line);
    padding: 1.3rem 0;
}
.v17-faq details:last-of-type { border-bottom: 1px solid var(--v17-line); }
.v17-faq summary {
    list-style: none;
    cursor: pointer;
    font-size: 1.05rem;
    color: var(--v17-ink);
    font-weight: 500;
    letter-spacing: -0.015em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.v17-faq summary::-webkit-details-marker { display: none; }
.v17-faq summary::after {
    content: "";
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f5f6a' stroke-width='2' stroke-linecap='round'><path d='M12 5v14M5 12h14'/></svg>");
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.2s;
}
.v17-faq details[open] summary::after { transform: rotate(45deg); }
.v17-faq details p {
    margin-top: 0.9rem;
    color: var(--v17-mute);
    font-size: 0.97rem;
    line-height: 1.6;
}
.v17-faq details code {
    background: var(--v17-bg-panel);
    border: 1px solid var(--v17-line);
    border-radius: 4px;
    padding: 0.08em 0.35em;
    font-size: 0.88em;
    font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
    color: var(--v17-ink);
}
.v17-faq .v17-faq-note {
    margin-top: 0.8rem;
    font-size: 0.9rem;
}
.v17-faq .v17-faq-note a {
    color: var(--v17-ink);
    text-decoration: underline;
    text-decoration-color: var(--v17-mute-2);
    text-underline-offset: 3px;
}
.v17-faq .v17-faq-note a:hover { text-decoration-color: var(--v17-ink); }

.v17-provider-badges {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.v17-provider-badges li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
    background: var(--v17-bg-soft);
    border: 1px solid var(--v17-line);
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--v17-ink-2);
}
.v17-provider-badges li strong {
    color: var(--v17-ink);
    font-weight: 600;
    margin-right: 0.3rem;
}
.v17-provider-badges li code {
    font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
    font-size: 0.8rem;
    background: #fff;
    border: 1px solid var(--v17-line);
    border-radius: 4px;
    padding: 0.1em 0.4em;
    color: var(--v17-ink);
}

/* ===== Outro / CTA band ===== */
.v17-outro {
    padding: 7rem 0;
    text-align: center;
    background: var(--v17-ink);
    color: #fff;
}
.v17-outro .eyebrow {
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 1.5rem;
}
.v17-outro h2 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    letter-spacing: -0.045em;
    color: #fff;
    max-width: 22ch;
    margin: 0 auto 2.5rem;
    font-weight: 500;
    line-height: 1.02;
}
.v17-outro h2 em {
    font-style: italic;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
}
.v17-outro .ctas {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.v17-outro .v17-btn-primary {
    background: #fff;
    color: var(--v17-ink);
    border-color: #fff;
}
.v17-outro .v17-btn-primary:hover { background: #f4f4f5; }
.v17-outro .v17-btn-ghost { color: rgba(255, 255, 255, 0.75); }
.v17-outro .v17-btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }

/* ===== Legal pages (Impressum / Datenschutz) ===== */
.v17-legal { padding: 4rem 0 3rem; }
.v17-legal .container { max-width: 780px; }
.v17-legal-head {
    text-align: center;
    margin-bottom: 3rem;
}
.v17-legal-head .eyebrow { margin-bottom: 0.9rem; }
.v17-legal-head h1 {
    font-size: clamp(2.2rem, 4.5vw, 3rem);
    letter-spacing: -0.04em;
    font-weight: 500;
    line-height: 1.1;
}
.v17-legal-body { max-width: none; }
.v17-legal-body h2 {
    font-size: 1.2rem;
    margin-top: 2.25rem;
    margin-bottom: 0.7rem;
}
.v17-legal-body p { font-size: 0.98rem; }
.v17-legal-body ul li { font-size: 0.98rem; }
.v17-legal-meta {
    color: var(--v17-mute-2);
    font-size: 0.85rem;
    margin-top: 2.5rem !important;
}
.v17-legal-back {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--v17-line);
}

/* ===== Purchase page ===== */
.v17-purchase-hero {
    padding: 5rem 0 3rem;
    text-align: center;
}
.v17-purchase-hero .eyebrow { margin-bottom: 0.9rem; }
.v17-purchase-hero h1 {
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    letter-spacing: -0.04em;
    font-weight: 500;
    margin-bottom: 0.8rem;
}
.v17-purchase-hero .lead {
    font-size: 1.15rem;
    color: var(--v17-mute);
    max-width: 42rem;
    margin: 0 auto;
}
.v17 p.v17-purchase-privacy {
    text-align: center;
    color: var(--v17-mute);
    font-size: 1rem;
    max-width: 44rem;
    margin: 3rem auto 0;
}
.v17-purchase-back {
    text-align: center;
    margin-top: 1.5rem;
}

/* ===== Purchase result (success / cancelled) ===== */
.v17-purchase-result {
    padding: 4rem 0 2rem;
    background: var(--v17-bg);
    min-height: 60vh;
}
.v17-purchase-result .container { max-width: 720px; }
.v17-state {
    text-align: center;
    padding: 3rem 0;
}
.v17-state-loading { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.v17-state-loading p { color: var(--v17-mute); font-size: 1.05rem; margin: 0; }
.v17-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--v17-line);
    border-top-color: var(--v17-ink);
    border-radius: 50%;
    animation: v17-spin 0.8s linear infinite;
}
@keyframes v17-spin { to { transform: rotate(360deg); } }

.v17-result-logo {
    height: 52px;
    width: auto;
    margin-bottom: 1.2rem;
}
.v17-state h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    letter-spacing: -0.04em;
    font-weight: 500;
    margin-bottom: 0.8rem;
    line-height: 1.1;
}
.v17-state .lead {
    color: var(--v17-mute);
    font-size: 1.1rem;
    max-width: 36rem;
    margin: 0 auto 2.5rem;
}
.v17-check-badge, .v17-warn-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}
.v17-check-badge { background: #0a0a0a; color: #fff; }
.v17-warn-badge { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }

.v17-state-head { margin-bottom: 2.5rem; }

.v17-license-card {
    border: 2px solid var(--v17-ink);
    border-radius: 14px;
    background: var(--v17-bg-soft);
    padding: 1.8rem;
    margin-bottom: 1.8rem;
    text-align: center;
}
.v17-license-card .plan-head {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}
.v17-license-card .plan-head h3 {
    font-size: 1.3rem;
    font-weight: 500;
    margin: 0;
    letter-spacing: -0.02em;
}
.v17-license-card .price {
    font-size: 2.4rem;
    color: var(--v17-ink);
    letter-spacing: -0.04em;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 0.6rem;
}
.v17-license-card .price small {
    display: block;
    font-size: 0.85rem;
    color: var(--v17-mute);
    font-weight: 400;
    margin-top: 0.45rem;
}

.v17-info-panel {
    background: #fff;
    border: 1px solid var(--v17-line);
    border-radius: 12px;
    padding: 1.4rem 1.6rem;
    margin-bottom: 1.2rem;
    text-align: left;
}
.v17-info-panel h6 {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--v17-mute);
    margin: 0 0 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.v17-info-panel dl {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 0.5rem 1rem;
    margin: 0;
}
.v17-info-panel dt { color: var(--v17-mute); font-size: 0.88rem; font-weight: 500; }
.v17-info-panel dd { margin: 0; color: var(--v17-ink); font-weight: 500; font-size: 0.95rem; }
.v17-info-panel ol {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--v17-ink-2);
    font-size: 0.95rem;
    line-height: 1.6;
}
.v17-info-panel kbd {
    background: var(--v17-bg-panel);
    border: 1px solid var(--v17-line);
    border-radius: 4px;
    padding: 0.1em 0.35em;
    font-size: 0.85em;
    font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
    color: var(--v17-ink);
}

.v17-key-panel .v17-key-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.v17-key-row input {
    flex: 1;
    background: var(--v17-bg-panel);
    border: 1px solid var(--v17-line);
    border-radius: 8px;
    padding: 0.7rem 0.9rem;
    font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
    font-size: 0.82rem;
    color: var(--v17-ink);
}
.v17-warn {
    color: #b45309;
    font-size: 0.85rem;
    margin: 0.8rem 0 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.v17-state-email-notice,
.v17-state-tagline,
.v17-state-support {
    color: var(--v17-mute);
    font-size: 0.95rem;
    margin: 1.2rem 0;
}
.v17-state-tagline {
    font-style: italic;
    color: var(--v17-ink);
    font-size: 1.05rem;
    margin: 1.5rem 0;
}
.v17-state-support a { color: var(--v17-ink); text-decoration: underline; text-underline-offset: 3px; }

.v17-state-actions {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin: 1.5rem 0 2rem;
}

/* ===== Modal (Bootstrap override) ===== */
.v17-modal .modal-content {
    background: #fff;
    border: 1px solid var(--v17-line);
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(10, 10, 10, 0.25);
    color: var(--v17-ink-2);
}
.v17-modal .modal-header {
    border-bottom: 1px solid var(--v17-line);
    padding: 1.3rem 1.6rem;
}
.v17-modal .modal-title {
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--v17-ink);
}
.v17-modal .modal-body {
    padding: 1.6rem;
}
.v17-modal .modal-footer {
    border-top: 1px solid var(--v17-line);
    padding: 1rem 1.6rem;
    gap: 0.5rem;
}
.v17-modal .btn-close {
    background-size: 14px;
    opacity: 0.5;
}
.v17-modal .btn-close:hover { opacity: 0.9; }

.v17-modal-intro {
    color: var(--v17-mute);
    margin: 0 0 1.2rem;
    font-size: 0.95rem;
}

.v17-field { margin-bottom: 1rem; }
.v17-field label {
    display: block;
    font-size: 0.82rem;
    color: var(--v17-mute);
    font-weight: 500;
    margin-bottom: 0.35rem;
}
.v17-field label small { color: var(--v17-mute-2); font-size: 0.95em; margin-left: 0.2em; }
.v17-field .form-control {
    background: #fff;
    border: 1px solid var(--v17-line);
    border-radius: 8px;
    color: var(--v17-ink);
    padding: 0.6rem 0.85rem;
    font-size: 0.95rem;
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
}
.v17-field .form-control-lg { padding: 0.75rem 0.95rem; font-size: 1rem; }
.v17-field .form-control:focus {
    border-color: var(--v17-ink);
    box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.08);
    outline: none;
}
.v17-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.v17-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.5rem 0;
    font-size: 0.88rem;
    color: var(--v17-mute);
}
.v17-consent .form-check-input { margin-top: 0.15rem; flex-shrink: 0; }
.v17-consent a { color: var(--v17-ink); text-decoration: underline; }

.v17-alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.92rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.v17-alert-danger { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.v17-alert-warning { background: #fef3c7; border: 1px solid #fde68a; color: #92400e; }

/* Modal plan summary */
.v17-modal-plan {
    border: 2px solid var(--v17-ink);
    border-radius: 12px;
    background: var(--v17-bg-soft);
    padding: 1.4rem 1.5rem;
    margin-bottom: 1.6rem;
    text-align: center;
}
.v17-modal-plan .plan-head {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}
.v17-modal-plan .plan-head h4 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}
.v17-modal-plan .price {
    font-size: 2rem;
    color: var(--v17-ink);
    letter-spacing: -0.04em;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 0.8rem;
}
.v17-modal-plan .price small {
    display: block;
    font-size: 0.82rem;
    color: var(--v17-mute);
    font-weight: 400;
    margin-top: 0.4rem;
}
.v17-modal-plan-badges {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.v17-modal-plan-badges span {
    background: #fff;
    border: 1px solid var(--v17-line);
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    font-size: 0.78rem;
    color: var(--v17-ink-2);
}
.v17-modal-form h6 {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--v17-mute);
    font-weight: 600;
    margin: 0 0 0.9rem;
}
.v17-modal-checkout {
    margin-top: 1.4rem;
    display: grid;
    gap: 0.7rem;
}
.v17-modal-checkout .v17-btn { width: 100%; justify-content: center; }
.v17-modal-checkout-note {
    text-align: center;
    color: var(--v17-mute);
    font-size: 0.85rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

/* Trial success view inside modal */
.v17-success { text-align: center; padding: 0.5rem 0; }
.v17-success-logo { height: 40px; margin-bottom: 0.8rem; }
.v17-success h5 {
    color: var(--v17-ink);
    font-weight: 500;
    margin: 0 0 1rem;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}
.v17-success-details {
    background: var(--v17-bg-soft);
    border: 1px solid var(--v17-line);
    border-radius: 10px;
    padding: 0.9rem 1.1rem;
    text-align: left;
    margin: 0 0 1.2rem;
    font-size: 0.9rem;
    color: var(--v17-ink-2);
}
.v17-success-details div { padding: 0.15rem 0; }
.v17-success-details strong { color: var(--v17-ink); margin-right: 0.3em; }
.v17-success-keylabel {
    color: var(--v17-mute);
    font-size: 0.88rem;
    margin: 0 0 0.4rem;
}
.v17-success-key {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}
.v17-success-key input {
    flex: 1;
    background: var(--v17-bg-panel);
    border: 1px solid var(--v17-line);
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
    font-size: 0.8rem;
    color: var(--v17-ink);
}
.v17-success-small {
    color: var(--v17-mute);
    font-size: 0.85rem;
    margin: 0.6rem 0;
}
.v17-success-small a { color: var(--v17-ink); }
.v17-success-italic {
    color: var(--v17-ink);
    font-style: italic;
    font-size: 1rem;
    margin: 1rem 0;
}
.v17-success hr {
    border: 0;
    border-top: 1px solid var(--v17-line);
    margin: 1rem 0;
}
.v17-success-actions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

@media (max-width: 560px) {
    .v17-field-row { grid-template-columns: 1fr; }
}

/* ===== Lightbox ===== */
.v17-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 500;
    padding: 2rem;
    cursor: zoom-out;
}
.v17-lightbox.open {
    display: flex;
    animation: v17-lightbox-fade 0.2s ease-out;
}
@keyframes v17-lightbox-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}
.v17-lightbox img {
    max-width: 95vw;
    max-height: 92vh;
    width: auto;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    background: #fff;
}
.v17-lightbox-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.v17-lightbox-close:hover { background: rgba(255, 255, 255, 0.2); }

/* ===== Footer ===== */
.v17-footer {
    padding: 3.5rem 0 2rem;
    background: var(--v17-bg-soft);
    border-top: 1px solid var(--v17-line);
    font-size: 0.9rem;
}
.v17-footer .grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}
.v17-footer .brand {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--v17-ink);
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.v17-footer .brand .brand-logo {
    height: 24px;
    width: auto;
    display: inline-block;
}
.v17-footer .tagline {
    color: var(--v17-mute);
    font-size: 0.9rem;
    margin-top: 0.6rem;
    max-width: 18rem;
}
.v17-footer h6 {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--v17-mute);
    margin-bottom: 1rem;
    font-weight: 600;
}
.v17-footer a {
    display: block;
    color: var(--v17-ink-2);
    text-decoration: none;
    padding: 0.22rem 0;
    font-size: 0.92rem;
}
.v17-footer a:hover { color: var(--v17-highlight); }
.v17-footer .bottom {
    padding-top: 1.5rem;
    border-top: 1px solid var(--v17-line);
    display: flex;
    justify-content: space-between;
    color: var(--v17-mute);
    font-size: 0.85rem;
}
@media (max-width: 780px) {
    .v17-footer .grid { grid-template-columns: 1fr 1fr; }
}

/* ===== Badged inline link (AI philosophy / back link) ===== */
.v17-badge-row {
    display: flex;
    justify-content: center;
}
.v17-badge-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.9rem 0.45rem 0.45rem;
    background: var(--v17-bg-panel);
    border: 1px solid var(--v17-line);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--v17-ink-2);
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: border-color 0.15s, background 0.15s, transform 0.15s;
    max-width: 100%;
}
.v17-badge-link:hover {
    border-color: var(--v17-ink);
    background: #fff;
    color: var(--v17-ink);
    transform: translateY(-1px);
}
.v17-badge-link .tag {
    background: var(--v17-ink);
    color: #fff;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}
.v17-badge-link i {
    color: var(--v17-mute);
    font-size: 0.8rem;
    transition: transform 0.15s, color 0.15s;
}
.v17-badge-link:hover i { color: var(--v17-ink); transform: translateX(2px); }
.v17-badge-link-top { padding: 0.45rem 0.95rem; }
.v17-badge-link-top:hover i { transform: translateX(-2px); }

.v17-badge-link-lg {
    padding: 0.75rem 1.5rem 0.75rem 0.65rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 999px;
    gap: 0.7rem;
}
.v17-badge-link-lg .tag {
    padding: 0.3rem 0.9rem;
    font-size: 0.82rem;
}
.v17-badge-link-lg i { font-size: 1.05rem; }

.v17-philosophy-band {
    background: var(--v17-bg-soft);
    border-top: 1px solid var(--v17-line);
    border-bottom: 1px solid var(--v17-line);
    padding: 3rem 0;
    text-align: center;
}
.v17-philosophy-band .v17-badge-row { margin-bottom: 0; }

.v17-philosophy-note {
    max-width: 44rem;
    margin: 1.5rem auto 0 !important;
    font-size: 1.15rem;
    color: var(--v17-mute);
    line-height: 1.55;
    text-align: center;
}
.v17-philosophy-note strong {
    color: var(--v17-ink);
    font-weight: 600;
}

/* ===== Pull-line + stat chip for two-up sections ===== */
.v17-pull {
    font-size: 1.1rem;
    color: var(--v17-ink);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-top: 1.3rem !important;
    padding-top: 1.1rem;
    border-top: 1px solid var(--v17-line);
}
.v17-pull em {
    font-style: italic;
    font-weight: 400;
    color: var(--v17-mute);
}
.v17-stat-chip {
    display: inline-flex;
    align-items: center;
    margin-left: 0.6rem;
    padding: 0.15rem 0.55rem;
    background: var(--v17-ink);
    color: #fff;
    border-radius: 999px;
    font-size: 0.7rem;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

/* ===== AI & performance page ===== */
.v17-ai-hero {
    padding: 5rem 0 3.5rem;
    text-align: center;
}
.v17-ai-hero .eyebrow { margin-bottom: 1rem; }
.v17-ai-hero h1 {
    font-size: clamp(2.5rem, 5.5vw, 4.2rem);
    letter-spacing: -0.045em;
    font-weight: 500;
    margin-bottom: 1.2rem;
    line-height: 1.02;
}
.v17-ai-hero h1 .accent {
    font-style: italic;
    font-weight: 400;
    color: var(--v17-mute);
}
.v17-ai-hero .lead {
    font-size: 1.3rem;
    color: var(--v17-ink);
    max-width: 42rem;
    margin: 0 auto 0.9rem;
    line-height: 1.4;
    letter-spacing: -0.015em;
}
.v17-ai-hero .lead strong {
    font-weight: 600;
    color: var(--v17-ink);
}
.v17-ai-hero .sub-lead {
    font-size: 1.05rem;
    color: var(--v17-mute);
    max-width: 44rem;
    margin: 0 auto 2rem;
    line-height: 1.6;
}
.v17-ai-hero .sub-lead code {
    font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
    font-size: 0.92em;
    background: var(--v17-bg-panel);
    border: 1px solid var(--v17-line);
    border-radius: 4px;
    padding: 0.08em 0.4em;
    color: var(--v17-ink);
}
.v17-ai-pills {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.v17-ai-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.95rem;
    background: var(--v17-bg-panel);
    border: 1px solid var(--v17-line);
    border-radius: 999px;
    font-size: 0.88rem;
    color: var(--v17-ink-2);
    font-weight: 500;
}
.v17-ai-pill i { color: var(--v17-ink); font-size: 0.95rem; }

/* Providers grid */
.v17-providers .provider-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 1120px;
    margin: 0 auto;
}
.v17-providers .provider-card {
    display: flex;
    flex-direction: column;
    padding: 1.8rem 1.6rem;
    background: #fff;
    border: 1px solid var(--v17-line);
    border-radius: 14px;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.v17-providers .provider-card:hover {
    border-color: var(--v17-ink);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -16px rgba(10, 10, 10, 0.14);
}
.v17-providers .provider-card.featured {
    border-color: var(--v17-ink);
    background: var(--v17-bg-soft);
    box-shadow: 0 20px 40px -24px rgba(10, 10, 10, 0.2);
}
.v17-providers .provider-logo,
.v17-providers .provider-logos {
    margin-bottom: 1.2rem;
}
.v17-providers .provider-logos {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}
.v17-providers .provider-card h3 {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--v17-ink);
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
}
.v17-providers .provider-card > p {
    color: var(--v17-mute);
    font-size: 0.93rem;
    line-height: 1.5;
    margin-bottom: 1.3rem;
}
.v17-providers .provider-models {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.3rem 0.75rem;
    margin: 0 0 1.2rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--v17-line);
    font-size: 0.82rem;
}
.v17-providers .provider-models dt {
    color: var(--v17-mute);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.68rem;
    align-self: center;
    padding-top: 1px;
}
.v17-providers .provider-models dd {
    margin: 0;
    color: var(--v17-ink-2);
    min-width: 0;
    word-break: break-all;
}
.v17-providers .provider-models code {
    font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
    font-size: 0.78rem;
    background: var(--v17-bg-panel);
    border: 1px solid var(--v17-line);
    border-radius: 4px;
    padding: 0.08em 0.4em;
    color: var(--v17-ink);
    display: inline-block;
    line-height: 1.4;
}
.v17-providers .provider-card .perks {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.88rem;
    color: var(--v17-ink-2);
    border-top: 1px solid var(--v17-line);
    padding-top: 1.1rem;
}
.v17-providers .provider-card .perks li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.35rem 0;
    line-height: 1.45;
}
.v17-providers .provider-card .perks i {
    color: var(--v17-mute);
    margin-top: 2px;
    flex-shrink: 0;
}
@media (max-width: 1040px) {
    .v17-providers .provider-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .v17-providers .provider-grid { grid-template-columns: 1fr; }
}

/* Two-up feature rows */
.v17-two-up .two-up {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem 0;
}
.v17-two-up .two-up:not(:last-child) {
    border-bottom: 1px solid var(--v17-line);
}
.v17-two-up .two-up.reverse {
    grid-template-columns: 1.2fr 1fr;
}
.v17-two-up .copy .eyebrow { margin-bottom: 0.8rem; }
.v17-two-up .copy h2 {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    letter-spacing: -0.035em;
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.15;
}
.v17-two-up .copy p {
    color: var(--v17-mute);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}
.v17-two-up .copy code {
    background: var(--v17-bg-panel);
    border: 1px solid var(--v17-line);
    border-radius: 5px;
    padding: 0.08em 0.35em;
    font-size: 0.9em;
    font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
    color: var(--v17-ink);
}
.v17-two-up .bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
    color: var(--v17-ink-2);
}
.v17-two-up .bullets li {
    padding: 0.35rem 0 0.35rem 1.2rem;
    position: relative;
    line-height: 1.5;
}
.v17-two-up .bullets li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--v17-mute-2);
}
.v17-two-up .shot {
    margin: 0;
    padding: 10px;
    border-radius: 14px;
    background: linear-gradient(180deg, var(--v17-bg-panel), var(--v17-bg-soft));
    border: 1px solid var(--v17-line);
    box-shadow: 0 20px 40px -24px rgba(10, 10, 10, 0.14);
}
.v17-two-up .shot img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--v17-line);
    background: #fff;
}
@media (max-width: 860px) {
    .v17-two-up .two-up,
    .v17-two-up .two-up.reverse {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .v17-two-up .two-up.reverse .shot { order: 2; }
    .v17-two-up .two-up.reverse .copy { order: 1; }
}

/* Benchmark table */
.v17-benchmark .table-wrap {
    max-width: 1100px;
    margin: 0 auto;
    overflow-x: auto;
    border: 1px solid var(--v17-line);
    border-radius: 14px;
    background: #fff;
}
.v17-perf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.v17-perf-table th,
.v17-perf-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--v17-line-2);
    vertical-align: top;
}
.v17-perf-table thead th {
    background: var(--v17-bg-soft);
    color: var(--v17-ink);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: -0.005em;
    border-bottom: 1px solid var(--v17-line);
}
.v17-perf-table tbody tr:last-child td { border-bottom: none; }
.v17-perf-table tbody tr:hover td { background: var(--v17-bg-soft); }
.v17-perf-table .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: var(--v17-ink-2);
}
.v17-perf-table tbody td:first-child {
    color: var(--v17-ink);
    font-weight: 500;
}
.v17-perf-footnote {
    text-align: center;
    color: var(--v17-mute);
    font-size: 0.88rem;
    margin-top: 1.5rem;
    max-width: 52rem;
    margin-left: auto;
    margin-right: auto;
}

.v17-outro .v17-outro-note {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    max-width: 32rem;
    margin: -1rem auto 2rem;
    line-height: 1.55;
}

/* ===== Docs hub ===== */
.v17-docs { padding: 4rem 0 6rem; }
.v17-docs .head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 4rem;
}
.v17-docs .head .eyebrow { margin-bottom: 1rem; }
.v17-docs .head h1 {
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    letter-spacing: -0.04em;
    margin-bottom: 0.8rem;
}
.v17-docs .head p {
    color: var(--v17-mute);
    font-size: 1.1rem;
}

.v17-docs-section { margin-bottom: 4rem; }
.v17-docs-section-label {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--v17-mute);
    font-weight: 500;
    margin-bottom: 1.3rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--v17-line);
}

.v17-docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}
.v17-docs-grid.cols-2 {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}
.v17-docs-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    padding: 1.75rem 1.6rem;
    border: 1px solid var(--v17-line);
    border-radius: 12px;
    position: relative;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.v17-docs-card:hover {
    border-color: var(--v17-ink);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -12px rgba(10, 10, 10, 0.12);
}
.v17-docs-card .num {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--v17-mute-2);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
    display: block;
    margin-bottom: 1rem;
}
.v17-docs-card h3 {
    font-size: 1.02rem;
    font-weight: 500;
    color: var(--v17-ink);
    margin: 0 0 0.35rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}
.v17-docs-card p {
    font-size: 0.88rem;
    color: var(--v17-mute);
    margin: 0;
    line-height: 1.5;
}
.v17-docs-card .arrow {
    position: absolute;
    top: 1.1rem;
    right: 1.2rem;
    color: var(--v17-mute-2);
    font-size: 0.9rem;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.15s, transform 0.15s, color 0.15s;
}
.v17-docs-card:hover .arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--v17-ink);
}

/* Guide row (All guides) */
.v17-docs-card.row {
    display: flex;
    align-items: flex-start;
    gap: 1.3rem;
    padding: 1.4rem 1.5rem;
}
.v17-docs-card.row .num {
    margin-bottom: 0;
    font-size: 0.82rem;
    flex-shrink: 0;
    min-width: 2.5rem;
    padding-top: 0.15rem;
}
.v17-docs-card.row > div { flex: 1; }
.v17-docs-card.row h3 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.v17-docs-back {
    text-align: center;
    margin-top: 3rem;
}

/* ===== Single doc page ===== */
.v17-doc-page { padding: 3rem 0 6rem; }
.v17-doc-page .layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 4rem;
}
@media (max-width: 900px) {
    .v17-doc-page .layout { grid-template-columns: 1fr; gap: 2rem; }
}
.v17-doc-nav {
    position: sticky;
    top: 5rem;
    align-self: start;
}
.v17-doc-nav h6 {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--v17-mute);
    margin-bottom: 1rem;
    font-weight: 600;
}
.v17-doc-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 1px solid var(--v17-line);
}
.v17-doc-nav li a {
    display: block;
    padding: 0.55rem 0 0.55rem 1rem;
    color: var(--v17-mute);
    text-decoration: none;
    font-size: 0.9rem;
    border-left: 2px solid transparent;
    margin-left: -1px;
    transition: color 0.15s, border-color 0.15s;
    letter-spacing: -0.005em;
}
.v17-doc-nav li a .n {
    color: var(--v17-mute-2);
    font-variant-numeric: tabular-nums;
    margin-right: 0.5rem;
    font-weight: 500;
}
.v17-doc-nav li a:hover {
    color: var(--v17-ink);
}
.v17-doc-nav li a.active {
    color: var(--v17-ink);
    border-left-color: var(--v17-ink);
    font-weight: 500;
}
.v17-doc-nav .nav-footer {
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--v17-line);
}
.v17-doc-nav .nav-footer a {
    color: var(--v17-mute);
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
.v17-doc-nav .nav-footer a:hover { color: var(--v17-ink); }

/* Markdown content */
.v17-doc-content {
    color: var(--v17-ink-2);
    line-height: 1.7;
    max-width: 44rem;
    font-size: 1rem;
}
.v17-doc-content h1 {
    font-size: clamp(2rem, 3.6vw, 2.6rem);
    color: var(--v17-ink);
    margin-bottom: 1.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--v17-line);
    line-height: 1.1;
    letter-spacing: -0.04em;
    font-weight: 500;
}
.v17-doc-content h2 {
    font-size: 1.6rem;
    color: var(--v17-ink);
    margin-top: 2.75rem;
    margin-bottom: 0.9rem;
    letter-spacing: -0.03em;
    font-weight: 500;
}
.v17-doc-content h3 {
    font-size: 1.2rem;
    color: var(--v17-ink);
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    font-weight: 500;
}
.v17-doc-content p {
    margin: 0 0 1.1rem;
}
.v17-doc-content strong {
    color: var(--v17-ink);
    font-weight: 600;
}
.v17-doc-content em {
    color: var(--v17-ink);
    font-style: italic;
}
.v17-doc-content a {
    color: var(--v17-ink);
    text-decoration: underline;
    text-decoration-color: var(--v17-mute-2);
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
.v17-doc-content a:hover {
    text-decoration-color: var(--v17-ink);
}
.v17-doc-content code {
    background: var(--v17-bg-panel);
    color: var(--v17-ink);
    padding: 0.12em 0.4em;
    border-radius: 4px;
    font-size: 0.88em;
    font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
    border: 1px solid var(--v17-line);
}
.v17-doc-content pre {
    background: var(--v17-bg-soft);
    border: 1px solid var(--v17-line);
    border-radius: 10px;
    padding: 1.1rem 1.3rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}
.v17-doc-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: var(--v17-ink-2);
    border-radius: 0;
}
.v17-doc-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    border: 1px solid var(--v17-line);
    border-radius: 10px;
    background: var(--v17-bg-soft);
}
.v17-doc-content blockquote {
    border-left: 3px solid var(--v17-ink);
    padding: 0.4rem 1.2rem;
    margin: 1.5rem 0;
    background: var(--v17-bg-soft);
    color: var(--v17-ink-2);
    border-radius: 0 8px 8px 0;
}
.v17-doc-content blockquote p { margin: 0.4rem 0; }
.v17-doc-content ul, .v17-doc-content ol {
    padding-left: 1.4rem;
    margin: 0 0 1.2rem;
}
.v17-doc-content li { margin-bottom: 0.4rem; }
.v17-doc-content li::marker { color: var(--v17-mute-2); }
.v17-doc-content hr {
    border: none;
    border-top: 1px solid var(--v17-line);
    margin: 2.5rem 0;
}
.v17-doc-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}
.v17-doc-content th, .v17-doc-content td {
    border: 1px solid var(--v17-line);
    padding: 0.6rem 0.9rem;
    text-align: left;
}
.v17-doc-content th {
    color: var(--v17-ink);
    background: var(--v17-bg-soft);
    font-weight: 600;
}

.v17-doc-pager {
    margin-top: 4rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--v17-line);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.92rem;
}
.v17-doc-pager a {
    color: var(--v17-ink-2);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    border: 1px solid var(--v17-line);
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.15s, transform 0.15s;
    max-width: 48%;
}
.v17-doc-pager a:hover {
    border-color: var(--v17-ink);
    transform: translateY(-1px);
}
.v17-doc-pager a span {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    line-height: 1.25;
}
.v17-doc-pager a small {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--v17-mute);
    font-weight: 500;
}
.v17-doc-pager .next { margin-left: auto; text-align: right; }
.v17-doc-pager .next span { align-items: flex-end; }


/* ==========================================================================
   /versions — Design history timeline
   ========================================================================== */

.v17-versions-hero { padding-top: 6rem; padding-bottom: 2rem; }
.v17-versions-hero h1 { font-size: 3.4rem; line-height: 1.05; letter-spacing: -0.02em; margin: 0.5rem 0 1rem; }
.v17-versions-hero .section-head p { max-width: 42rem; margin: 0 auto; }

.v17-versions-list { padding-top: 1rem; padding-bottom: 6rem; }

.v17-version-row {
    display: block;
    padding: 2.25rem 0;
    border-top: 1px solid var(--v17-line);
}
.v17-version-row:last-child { border-bottom: 1px solid var(--v17-line); }

.v17-version-head {
    display: grid;
    grid-template-columns: 5rem 1fr auto;
    gap: 1.5rem;
    align-items: start;
}
.v17-version-num {
    font-family: 'Inter', monospace;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--v17-mute-2);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding-top: 0.4rem;
}
.v17-version-name {
    margin: 0 0 0.4rem;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--v17-ink);
}
.v17-version-summary {
    margin: 0 0 0.75rem;
    color: var(--v17-mute);
    line-height: 1.55;
    max-width: 50rem;
}
.v17-version-foot {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}
.v17-version-date {
    font-size: 0.78rem;
    color: var(--v17-mute-2);
    letter-spacing: 0.04em;
}
.v17-version-tag {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.18rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}
.v17-version-tag-current {
    background: var(--v17-ink);
    color: #fff;
}
.v17-version-tag-retired {
    background: var(--v17-line-2);
    color: var(--v17-mute);
}
.v17-version-cta { padding-top: 0.4rem; }
.v17-version-link-muted {
    display: inline-block;
    color: var(--v17-mute-2);
    font-size: 0.85rem;
    padding: 0.55rem 0.9rem;
    border: 1px dashed var(--v17-line);
    border-radius: 8px;
    cursor: not-allowed;
}

.v17-version-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-top: 1.25rem;
    margin-left: 6.5rem;
}
.v17-version-thumb {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid var(--v17-line);
    background: var(--v17-bg-soft);
    transition: border-color 0.15s, transform 0.15s;
}
.v17-version-thumb:hover {
    border-color: var(--v17-ink);
    transform: translateY(-1px);
}
.v17-version-thumb img {
    display: block;
    width: 100%;
    height: 110px;
    object-fit: cover;
    object-position: top;
}

@media (max-width: 720px) {
    .v17-version-head { grid-template-columns: 1fr; gap: 0.5rem; }
    .v17-version-num { padding-top: 0; }
    .v17-version-thumbs { margin-left: 0; grid-template-columns: repeat(2, 1fr); }
    .v17-versions-hero h1 { font-size: 2.2rem; }
}
