/*
Theme Name: Traslatability
Theme URI: https://www.traslatability.com
Description: Storefront theme for Traslatability — professional WordPress and WooCommerce plugin development.
Author: Traslatability
Version: 3.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: traslatability
*/

/* ==========================================================================
   1. Tokens

   Near-black ink on warm off-white with one saturated accent. Every
   interactive surface names its own background and text colour, so nothing
   depends on a tint that vanishes against the ground behind it.
   ========================================================================== */

:root {
    --c-bg:        #FBFAF8;
    --c-surface:   #FFFFFF;
    --c-sunken:    #F3F1ED;
    --c-inverse:   #121114;

    --c-ink:       #121114;
    --c-body:      #45434C;
    --c-muted:     #6B6875;
    --c-faint:     #93909C;
    --c-on-dark:   #F7F6F4;
    --c-on-dark-2: #A9A6B2;

    --c-line:      #E4E1DB;
    --c-line-2:    #D3CFC7;
    --c-line-dark: #2C2A31;

    /* Indigo reads as engineering rather than retail. */
    --c-accent:      #4F39D9;
    --c-accent-deep: #3B29A8;
    --c-accent-soft: #EFECFD;
    --c-accent-line: #D5CDF7;

    --c-ok: #10693F;      --c-ok-bg: #E6F4EC;     --c-ok-line: #BCE0CB;
    --c-warn: #8A5300;    --c-warn-bg: #FDF2E0;   --c-warn-line: #EFDBB4;
    --c-danger: #A81F1F;  --c-danger-bg: #FCEBEA; --c-danger-line: #EFC8C5;

    --f-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
    --f-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --f-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, monospace;

    --wrap: 1220px;
    --gutter: clamp(20px, 4vw, 40px);

    --r-xs: 6px;
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-full: 999px;

    --sh-xs: 0 1px 2px rgba(18, 17, 20, .05);
    --sh-sm: 0 2px 4px rgba(18, 17, 20, .05), 0 1px 2px rgba(18, 17, 20, .04);
    --sh-md: 0 10px 22px -8px rgba(18, 17, 20, .14), 0 2px 6px rgba(18, 17, 20, .05);
    --sh-lg: 0 28px 60px -24px rgba(18, 17, 20, .28), 0 6px 14px rgba(18, 17, 20, .07);
    --sh-accent: 0 10px 24px -10px rgba(79, 57, 217, .55);
}

/* ==========================================================================
   2. Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}

body {
    margin: 0;
    background: var(--c-bg);
    color: var(--c-body);
    font-family: var(--f-sans);
    font-size: 16.5px;
    line-height: 1.68;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: 'kern' 1, 'liga' 1, 'cv11' 1;
}

h1, h2, h3, h4, h5 {
    margin: 0 0 .5em;
    color: var(--c-ink);
    font-family: var(--f-display);
    font-weight: 600;
    line-height: 1.14;
    letter-spacing: -.02em;
    font-variation-settings: 'SOFT' 0, 'WONK' 0;
}

h1 { font-size: clamp(2.7rem, 6.2vw, 4.6rem); line-height: 1.04; letter-spacing: -.033em; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); letter-spacing: -.026em; }
h3 { font-family: var(--f-sans); font-size: 1.16rem; font-weight: 600; letter-spacing: -.011em; line-height: 1.4; }
h4 { font-family: var(--f-sans); font-size: 1rem; font-weight: 600; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--c-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s ease; }
a:hover { color: var(--c-accent-deep); }

img, svg, video { max-width: 100%; height: auto; }
code, pre, kbd { font-family: var(--f-mono); }
strong, b { font-weight: 650; color: var(--c-ink); }

:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--c-accent-soft); color: var(--c-ink); }

.tsl-skip {
    position: absolute; left: -9999px; top: 0; z-index: 200;
    background: var(--c-inverse); color: var(--c-on-dark);
    padding: 13px 22px; border-radius: 0 0 var(--r-sm) 0; text-decoration: none;
}
.tsl-skip:focus { left: 0; color: var(--c-on-dark); }

.screen-reader-text {
    position: absolute !important; width: 1px; height: 1px;
    overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap;
}

/* ==========================================================================
   3. Layout
   ========================================================================== */

.tsl-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.tsl-wrap--narrow { max-width: 780px; }

.tsl-section { padding-block: clamp(68px, 9vw, 120px); }
.tsl-section--sm { padding-block: clamp(48px, 6vw, 80px); }
.tsl-section--surface { background: var(--c-surface); border-block: 1px solid var(--c-line); }
.tsl-section--sunken { background: var(--c-sunken); border-block: 1px solid var(--c-line); }

.tsl-eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    margin-bottom: 20px;
    font-size: .74rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase;
    color: var(--c-accent);
}
.tsl-eyebrow::before { content: ''; width: 20px; height: 2px; border-radius: 2px; background: var(--c-accent); }

.tsl-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 60px); }
.tsl-head p { font-size: 1.14rem; color: var(--c-muted); margin-top: -.15em; }
.tsl-head--center { margin-inline: auto; text-align: center; }
.tsl-head--center .tsl-eyebrow::before { display: none; }

.tsl-lede { font-size: clamp(1.08rem, 1.6vw, 1.28rem); line-height: 1.6; color: var(--c-muted); }

/* ==========================================================================
   4. Buttons
   ========================================================================== */

.tsl-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    min-height: 50px; padding: 14px 24px;
    border: 1.5px solid transparent; border-radius: var(--r-sm);
    font-family: var(--f-sans); font-size: .97rem; font-weight: 600; letter-spacing: -.006em;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease,
                box-shadow .16s ease, transform .12s ease;
    touch-action: manipulation;
}
.tsl-btn:active { transform: translateY(1px); }
.tsl-btn svg { flex: none; }

.tsl-btn--primary { background: var(--c-accent); border-color: var(--c-accent); color: #fff; box-shadow: var(--sh-accent); }
.tsl-btn--primary:hover { background: var(--c-accent-deep); border-color: var(--c-accent-deep); color: #fff; }

.tsl-btn--solid { background: var(--c-inverse); border-color: var(--c-inverse); color: var(--c-on-dark); }
.tsl-btn--solid:hover { background: #26242C; border-color: #26242C; color: #fff; }

.tsl-btn--outline { background: var(--c-surface); border-color: var(--c-line-2); color: var(--c-ink); }
.tsl-btn--outline:hover { border-color: var(--c-ink); color: var(--c-ink); box-shadow: var(--sh-sm); }

/* Dark grounds need their own pairings, or the text disappears. */
.tsl-btn--on-dark { background: #fff; border-color: #fff; color: var(--c-inverse); }
.tsl-btn--on-dark:hover { background: var(--c-on-dark); border-color: var(--c-on-dark); color: var(--c-inverse); }

.tsl-btn--on-dark-outline { background: transparent; border-color: rgba(255,255,255,.34); color: #fff; }
.tsl-btn--on-dark-outline:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6); color: #fff; }

.tsl-btn--block { display: flex; width: 100%; }
.tsl-btn--sm { min-height: 42px; padding: 10px 18px; font-size: .9rem; }
.tsl-btn--lg { min-height: 56px; padding: 16px 30px; font-size: 1.02rem; }

.tsl-textlink {
    display: inline-flex; align-items: center; gap: 7px;
    /* A comfortable tap target on touch screens, without looking like a button. */
    min-height: 44px;
    font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--c-ink);
    touch-action: manipulation;
}
.tsl-textlink svg { transition: transform .16s ease; }
.tsl-textlink:hover { color: var(--c-accent); }
.tsl-textlink:hover svg { transform: translateX(3px); }

/* ==========================================================================
   5. Masthead — header and hero share one canvas
   ========================================================================== */

.tsl-masthead {
    position: relative;
    background:
        radial-gradient(900px 460px at 88% -8%, var(--c-accent-soft) 0%, transparent 62%),
        var(--c-bg);
    border-bottom: 1px solid var(--c-line);
    overflow: hidden;
}
.tsl-masthead > .tsl-wrap { position: relative; z-index: 1; }

.tsl-header { padding-top: 10px; }
.tsl-header__inner { display: flex; align-items: center; gap: 24px; min-height: 72px; padding-block: 8px; }

.tsl-header--stuck {
    position: fixed; inset: 0 0 auto; z-index: 60;
    padding-inline: var(--gutter);
    background: rgba(251, 250, 248, .86);
    backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--c-line);
    box-shadow: var(--sh-sm);
    animation: tsl-slide-down .24s cubic-bezier(.2,.7,.3,1);
}
.tsl-header--stuck .tsl-header__inner {
    max-width: var(--wrap); margin-inline: auto;
    min-height: 64px; padding-block: 10px;
}
@keyframes tsl-slide-down { from { transform: translateY(-100%); } to { transform: translateY(0); } }

.tsl-brand {
    display: inline-flex; align-items: center; min-height: 44px;
    text-decoration: none; color: var(--c-ink); touch-action: manipulation;
}
.tsl-brand svg, .tsl-brand img { display: block; height: 29px; width: auto; }
.tsl-brand:hover { color: var(--c-ink); }

.tsl-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.tsl-nav ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
/* Scoped to plain nav links only: a .tsl-btn inside the nav must keep its own
   colour pairing, and this rule would otherwise override it. */
.tsl-nav a:not(.tsl-btn) {
    display: inline-flex; align-items: center; min-height: 42px;
    padding: 0 14px; border-radius: var(--r-xs);
    color: var(--c-body); font-size: .95rem; font-weight: 500; text-decoration: none;
    transition: background-color .16s ease, color .16s ease;
}
.tsl-nav a:not(.tsl-btn):hover { background: var(--c-sunken); color: var(--c-ink); }
.tsl-nav .tsl-btn { margin-left: 8px; }

.tsl-burger {
    display: none; margin-left: auto;
    width: 44px; height: 44px;
    border: 1px solid var(--c-line-2); border-radius: var(--r-xs);
    background: var(--c-surface); cursor: pointer;
    align-items: center; justify-content: center;
}
.tsl-burger span { display: block; width: 17px; height: 1.6px; background: var(--c-ink); position: relative; border-radius: 2px; }
.tsl-burger span::before, .tsl-burger span::after {
    content: ''; position: absolute; left: 0; width: 17px; height: 1.6px; background: var(--c-ink); border-radius: 2px;
}
.tsl-burger span::before { top: -5.5px; }
.tsl-burger span::after { top: 5.5px; }

@media (max-width: 940px) {
    .tsl-burger { display: inline-flex; touch-action: manipulation; }

    /* The panel stays in the layout and animates on transform/opacity only, so
       opening is a compositor job rather than a re-layout. `visibility` keeps it
       out of the tab order while closed. */
    .tsl-nav {
        position: absolute; top: 100%; left: 0; right: 0; z-index: 70;
        display: flex; flex-direction: column; align-items: stretch; gap: 2px;
        padding: 14px var(--gutter) 20px;
        background: var(--c-surface); border-bottom: 1px solid var(--c-line);
        box-shadow: var(--sh-md);
        opacity: 0; visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .16s ease, transform .16s ease, visibility .16s;
        will-change: transform, opacity;
    }
    .tsl-nav.is-open { opacity: 1; visibility: visible; transform: none; }
    .tsl-nav ul { flex-direction: column; align-items: stretch; }
    .tsl-nav a { min-height: 48px; padding: 0 12px; }
    .tsl-nav .tsl-btn { margin: 10px 0 0; }

    .tsl-burger span, .tsl-burger span::before, .tsl-burger span::after {
        transition: transform .16s ease, opacity .16s ease;
    }
    .tsl-burger[aria-expanded="true"] span { background: transparent; }
    .tsl-burger[aria-expanded="true"] span::before { transform: translateY(5.5px) rotate(45deg); }
    .tsl-burger[aria-expanded="true"] span::after { transform: translateY(-5.5px) rotate(-45deg); }
}

@media (prefers-reduced-motion: reduce) {
    .tsl-nav { transition: none; }
}

.tsl-hero { padding-block: clamp(52px, 7vw, 92px) clamp(44px, 6vw, 76px); }
.tsl-hero__inner { max-width: 920px; }
.tsl-hero h1 { margin-bottom: .34em; }
.tsl-hero h1 em { font-style: italic; color: var(--c-accent); font-variation-settings: 'SOFT' 40, 'WONK' 1; }
.tsl-hero__lede { font-size: clamp(1.1rem, 1.8vw, 1.32rem); line-height: 1.58; color: var(--c-muted); max-width: 56ch; }
.tsl-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.tsl-tagpill {
    display: inline-flex; align-items: center; gap: 9px;
    margin-bottom: 24px; padding: 7px 15px 7px 11px;
    background: var(--c-surface); border: 1px solid var(--c-accent-line);
    border-radius: var(--r-full);
    font-size: .84rem; font-weight: 550; color: var(--c-accent-deep);
    box-shadow: var(--sh-xs);
}
.tsl-tagpill svg { color: var(--c-accent); }

.tsl-facts {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px; margin-top: clamp(40px, 5vw, 62px);
}
.tsl-facts__item {
    background: var(--c-surface); border: 1px solid var(--c-line);
    border-radius: var(--r-md); padding: 20px 22px; box-shadow: var(--sh-xs);
}
.tsl-facts__icon {
    width: 34px; height: 34px; margin-bottom: 14px;
    display: grid; place-items: center; border-radius: var(--r-xs);
    background: var(--c-accent-soft); color: var(--c-accent);
}
.tsl-facts__value { display: block; font-size: 1.02rem; font-weight: 650; color: var(--c-ink); margin-bottom: 3px; }
.tsl-facts__label { display: block; font-size: .88rem; color: var(--c-muted); line-height: 1.5; }

/* ==========================================================================
   6. Cards
   ========================================================================== */

.tsl-grid { display: grid; gap: 22px; }
.tsl-grid--3 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.tsl-grid--2 { grid-template-columns: repeat(auto-fill, minmax(370px, 1fr)); }
.tsl-grid--3:has(> :first-child:last-child) { grid-template-columns: minmax(0, 460px); justify-content: center; }
.tsl-grid--3:has(> :first-child:nth-last-child(2)) { grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; }

.tsl-card {
    position: relative; display: flex; flex-direction: column;
    background: var(--c-surface); border: 1px solid var(--c-line);
    border-radius: var(--r-lg); padding: 28px;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.tsl-card:hover { border-color: var(--c-line-2); box-shadow: var(--sh-lg); transform: translateY(-2px); }

.tsl-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.tsl-card__mark {
    width: 46px; height: 46px; flex: none;
    display: grid; place-items: center; border-radius: var(--r-sm);
    background: var(--c-inverse); color: var(--c-on-dark);
    font-family: var(--f-display); font-size: 1.08rem; font-weight: 600;
}
.tsl-chip {
    display: inline-flex; align-items: center;
    padding: 4px 10px; border-radius: var(--r-full);
    background: var(--c-sunken); border: 1px solid var(--c-line);
    font-family: var(--f-mono); font-size: .72rem; color: var(--c-muted);
}
.tsl-card h3 { margin-bottom: 7px; }
.tsl-card h3 a { color: var(--c-ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.tsl-card h3 a:hover { color: var(--c-accent); }
.tsl-card__desc { color: var(--c-muted); font-size: .97rem; margin-bottom: 20px; }
.tsl-card__foot {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-top: auto; padding-top: 18px; border-top: 1px solid var(--c-line);
}
.tsl-card__price { font-size: .88rem; color: var(--c-muted); }
.tsl-card__price strong { font-family: var(--f-display); font-size: 1.24rem; font-weight: 600; color: var(--c-ink); }

.tsl-steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.tsl-step { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 26px 24px; }
.tsl-step__n {
    display: inline-grid; place-items: center;
    width: 30px; height: 30px; margin-bottom: 16px; border-radius: var(--r-full);
    background: var(--c-accent); color: #fff;
    font-family: var(--f-mono); font-size: .76rem; font-weight: 600;
}
.tsl-step h3 { margin-bottom: 6px; }
.tsl-step p { color: var(--c-muted); font-size: .95rem; margin: 0; }

/* ==========================================================================
   7. Pricing
   ========================================================================== */

.tsl-switch {
    display: inline-flex; padding: 4px; gap: 3px;
    background: var(--c-sunken); border: 1px solid var(--c-line);
    border-radius: var(--r-full); margin-bottom: 36px;
}
.tsl-switch button {
    appearance: none; border: 0; background: transparent; cursor: pointer;
    min-height: 40px; padding: 9px 22px; border-radius: var(--r-full);
    font-family: var(--f-sans); font-size: .92rem; font-weight: 600; color: var(--c-muted);
    transition: background-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.tsl-switch button.is-active { background: var(--c-surface); color: var(--c-ink); box-shadow: var(--sh-sm); }
.tsl-switch button:not(.is-active):hover { color: var(--c-ink); }

.tsl-plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.tsl-plans:has(> .tsl-plan:nth-child(2):last-child) { max-width: 780px; margin-inline: auto; }

.tsl-plan {
    position: relative; display: flex; flex-direction: column;
    background: var(--c-surface); border: 1px solid var(--c-line);
    border-radius: var(--r-lg); padding: 30px 26px;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.tsl-plan:hover { box-shadow: var(--sh-md); }
.tsl-plan--best { border-color: var(--c-accent); border-width: 1.5px; box-shadow: var(--sh-md); }
.tsl-plan__flag {
    position: absolute; top: 0; left: 26px; transform: translateY(-50%);
    padding: 5px 13px; border-radius: var(--r-full);
    background: var(--c-accent); color: #fff;
    font-size: .69rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    box-shadow: var(--sh-accent);
}
.tsl-plan__name { font-size: 1.02rem; font-weight: 650; color: var(--c-ink); margin-bottom: 4px; }
.tsl-plan__sub { font-size: .88rem; color: var(--c-muted); margin-bottom: 20px; }
.tsl-plan__price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 5px; }
.tsl-plan__amount {
    font-family: var(--f-display); font-size: 2.9rem; font-weight: 600;
    color: var(--c-ink); line-height: 1; letter-spacing: -.035em;
}
.tsl-plan__per { font-size: .9rem; color: var(--c-muted); }
.tsl-plan__note { font-size: .84rem; color: var(--c-faint); margin-bottom: 24px; }
.tsl-plan__list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.tsl-plan__list li { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; }
.tsl-plan__list svg { flex: none; margin-top: 4px; color: var(--c-accent); }
.tsl-plan form, .tsl-plan > .tsl-btn { margin-top: auto; }

/* ==========================================================================
   8. FAQ + prose
   ========================================================================== */

.tsl-faq { display: grid; gap: 12px; max-width: 840px; }
.tsl-faq details {
    background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md);
    transition: border-color .16s ease, box-shadow .16s ease;
}
.tsl-faq details[open] { border-color: var(--c-line-2); box-shadow: var(--sh-sm); }
.tsl-faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    padding: 19px 22px; cursor: pointer; list-style: none;
    font-size: 1.01rem; font-weight: 600; color: var(--c-ink);
}
.tsl-faq summary::-webkit-details-marker { display: none; }
.tsl-faq summary::after {
    content: ''; flex: none; width: 10px; height: 10px;
    border-right: 1.8px solid var(--c-muted); border-bottom: 1.8px solid var(--c-muted);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .2s ease;
}
.tsl-faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.tsl-faq details p { margin: 0; padding: 0 22px 21px; color: var(--c-muted); max-width: 68ch; }

.tsl-prose { max-width: 760px; font-size: 1.04rem; }
.tsl-prose h2 { margin-top: 1.7em; }
.tsl-prose h3 { margin-top: 1.6em; font-size: 1.14rem; }
.tsl-prose ul, .tsl-prose ol { padding-left: 1.3em; }
.tsl-prose li { margin-bottom: .45em; }
.tsl-prose img { border-radius: var(--r-md); }
.tsl-prose pre {
    background: var(--c-inverse); color: #E9E7EE;
    padding: 20px 22px; border-radius: var(--r-md);
    overflow-x: auto; font-size: .89rem; line-height: 1.6;
}
.tsl-prose :not(pre) > code {
    background: var(--c-sunken); border: 1px solid var(--c-line);
    padding: 2px 6px; border-radius: 5px; font-size: .89em;
}
.tsl-prose blockquote {
    margin: 1.6em 0; padding: 4px 0 4px 22px;
    border-left: 3px solid var(--c-accent);
    font-family: var(--f-display); font-size: 1.16rem; color: var(--c-ink);
}
.tsl-prose table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.tsl-prose th, .tsl-prose td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--c-line); }

/* ==========================================================================
   9. CTA + footer
   ========================================================================== */

.tsl-cta {
    position: relative; overflow: hidden;
    background:
        radial-gradient(700px 340px at 85% 0%, rgba(79,57,217,.5) 0%, transparent 68%),
        var(--c-inverse);
    color: var(--c-on-dark);
    border-radius: var(--r-lg);
    padding: clamp(42px, 6vw, 72px) clamp(28px, 5vw, 60px);
    text-align: center;
}
.tsl-cta h2 { color: #fff; }
.tsl-cta p { color: var(--c-on-dark-2); max-width: 52ch; margin-inline: auto; font-size: 1.06rem; }
.tsl-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }

.tsl-footer { background: var(--c-inverse); color: var(--c-on-dark-2); padding-block: clamp(52px, 6vw, 76px) 30px; }
.tsl-footer__grid {
    display: grid; gap: 40px;
    grid-template-columns: 1.7fr 1fr 1fr 1fr;
    padding-bottom: 40px;
}
@media (max-width: 900px) { .tsl-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .tsl-footer__grid { grid-template-columns: 1fr; gap: 28px; } }
.tsl-footer__brand {
    display: inline-flex; align-items: center; min-height: 44px;
    color: var(--c-on-dark); text-decoration: none; touch-action: manipulation;
}
/* The wordmark paints with currentColor, so it inherits the light footer text. */
.tsl-footer__brand svg { height: 28px; width: auto; color: var(--c-on-dark); fill: currentColor; }
.tsl-footer__brand svg text, .tsl-footer__brand svg path { fill: currentColor; }
.tsl-footer__brand svg g { stroke: currentColor; }
.tsl-footer__brand img { height: 28px; width: auto; }
.tsl-footer__about p { color: var(--c-on-dark-2); font-size: .94rem; max-width: 34ch; margin-top: 16px; }
.tsl-footer h4 {
    margin-bottom: 16px;
    font-size: .72rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: #7A7686;
}
.tsl-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.tsl-footer a:not(.tsl-btn):not(.tsl-footer__brand) {
    display: inline-flex; align-items: center; min-height: 34px;
    color: var(--c-on-dark-2); text-decoration: none; font-size: .94rem; transition: color .15s ease;
}
@media (max-width: 640px) {
    .tsl-footer a:not(.tsl-btn):not(.tsl-footer__brand) { min-height: 44px; }
    .tsl-footer ul { gap: 2px; }
}
.tsl-footer a:not(.tsl-btn):not(.tsl-footer__brand):hover { color: #fff; }
.tsl-footer__bottom {
    display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
    padding-top: 26px; border-top: 1px solid var(--c-line-dark);
    color: #7A7686; font-size: .87rem;
}
.tsl-footer__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.tsl-footer__badge {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 12px; border: 1px solid var(--c-line-dark); border-radius: var(--r-full);
    font-size: .8rem; color: var(--c-on-dark-2);
}
.tsl-footer__badge svg { color: #6F6B7C; }

/* ==========================================================================
   10. Back to top
   ========================================================================== */

.tsl-totop {
    position: fixed; right: 22px; bottom: 22px; z-index: 55;
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border: 1px solid var(--c-line-2); border-radius: var(--r-full);
    background: var(--c-surface); color: var(--c-ink);
    box-shadow: var(--sh-md); cursor: pointer;
    opacity: 0; visibility: hidden; transform: translateY(10px) scale(.94);
    transition: opacity .2s ease, transform .2s ease, visibility .2s, border-color .16s ease, color .16s ease;
}
.tsl-totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.tsl-totop:hover { border-color: var(--c-accent); color: var(--c-accent); }
@media (max-width: 640px) { .tsl-totop { right: 14px; bottom: 14px; } }

/* ==========================================================================
   11. Account area
   ========================================================================== */

.tsl-account, .tsl-thankyou { max-width: 960px; margin-inline: auto; padding: clamp(40px,5vw,64px) var(--gutter) 80px; }
.tsl-account--login { max-width: 430px; }

.tsl-account__header {
    display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
    gap: 16px; margin-bottom: 30px; padding-bottom: 26px; border-bottom: 1px solid var(--c-line);
}
.tsl-account__header h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 5px; }
.tsl-account__greeting { color: var(--c-muted); font-size: .95rem; margin: 0; }

/* Sidebar on desktop, a scrollable row on small screens. */
.tsl-account__layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 34px; align-items: start; }
@media (max-width: 860px) { .tsl-account__layout { grid-template-columns: 1fr; gap: 24px; } }

.tsl-accountnav { display: grid; gap: 3px; position: sticky; top: 96px; }
@media (max-width: 860px) {
    .tsl-accountnav {
        position: static;
        grid-auto-flow: column; grid-auto-columns: max-content;
        overflow-x: auto; gap: 6px; padding-bottom: 6px;
        scrollbar-width: none; -webkit-overflow-scrolling: touch;
    }
    .tsl-accountnav::-webkit-scrollbar { display: none; }
}

.tsl-accountnav__item {
    display: flex; align-items: center; gap: 11px;
    padding: 11px 14px; border-radius: var(--r-sm);
    color: var(--c-body); font-size: .96rem; font-weight: 500;
    text-decoration: none; white-space: nowrap;
    border: 1px solid transparent;
    transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.tsl-accountnav__item svg { flex: none; color: var(--c-faint); transition: color .16s ease; }
.tsl-accountnav__item:hover { background: var(--c-sunken); color: var(--c-ink); }
.tsl-accountnav__item:hover svg { color: var(--c-body); }
.tsl-accountnav__item.is-active {
    background: var(--c-surface); border-color: var(--c-line);
    color: var(--c-ink); font-weight: 650; box-shadow: var(--sh-xs);
}
.tsl-accountnav__item.is-active svg { color: var(--c-accent); }
.tsl-accountnav__count {
    margin-left: auto; font-style: normal;
    min-width: 22px; padding: 1px 7px; border-radius: var(--r-full);
    background: var(--c-sunken); color: var(--c-muted);
    font-size: .78rem; font-weight: 600; text-align: center;
}
.tsl-accountnav__item.is-active .tsl-accountnav__count { background: var(--c-accent-soft); color: var(--c-accent); }

.tsl-account__panel { min-width: 0; }

.tsl-panelhead { margin-bottom: 20px; }
.tsl-panelhead h2 { font-size: 1.45rem; margin-bottom: 4px; }
.tsl-panelhead p { color: var(--c-muted); font-size: .95rem; margin: 0; }

.tsl-license {
    background: var(--c-surface); border: 1px solid var(--c-line);
    border-radius: var(--r-lg); padding: 26px; margin-bottom: 18px; box-shadow: var(--sh-xs);
}
.tsl-license__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.tsl-license__head h3 { margin: 0; font-size: 1.2rem; }
.tsl-license__meta {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 16px;
    margin: 0 0 18px; padding: 18px 0; border-block: 1px solid var(--c-line);
}
.tsl-license__meta dt { font-size: .71rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-faint); margin-bottom: 4px; }
.tsl-license__meta dd { margin: 0; font-weight: 650; color: var(--c-ink); font-size: .97rem; }

.tsl-statusnote { border: 1px solid; border-radius: var(--r-sm); padding: 14px 16px; margin-top: 16px; font-size: .93rem; }
.tsl-statusnote p { margin: 0; }
.tsl-statusnote p + p { margin-top: 4px; opacity: .92; }
.tsl-statusnote--ok { background: var(--c-ok-bg); border-color: var(--c-ok-line); color: var(--c-ok); }
.tsl-statusnote--warn { background: var(--c-warn-bg); border-color: var(--c-warn-line); color: var(--c-warn); }
.tsl-statusnote--danger { background: var(--c-danger-bg); border-color: var(--c-danger-line); color: var(--c-danger); }
.tsl-statusnote--neutral { background: var(--c-sunken); border-color: var(--c-line); color: var(--c-body); }
.tsl-statusnote a { color: inherit; font-weight: 650; }

.tsl-pill { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: var(--r-full); font-size: .77rem; font-weight: 650; }
.tsl-pill--ok { background: var(--c-ok-bg); color: var(--c-ok); }
.tsl-pill--warn { background: var(--c-warn-bg); color: var(--c-warn); }
.tsl-pill--danger { background: var(--c-danger-bg); color: var(--c-danger); }
.tsl-pill--neutral { background: var(--c-sunken); color: var(--c-muted); }

.tsl-key {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
    background: var(--c-sunken); border: 1px dashed var(--c-line-2);
    border-radius: var(--r-sm); padding: 13px 15px;
}
.tsl-key__value { font-family: var(--f-mono); font-size: .96rem; letter-spacing: .04em; color: var(--c-ink); font-weight: 500; word-break: break-all; }
.tsl-key__copy {
    margin-left: auto; appearance: none; cursor: pointer;
    border: 1px solid var(--c-line-2); background: var(--c-surface); color: var(--c-ink);
    border-radius: var(--r-xs); padding: 9px 16px; min-height: 40px;
    font-family: var(--f-sans); font-size: .85rem; font-weight: 600;
    transition: border-color .16s ease, background-color .16s ease;
}
.tsl-key__copy:hover { border-color: var(--c-ink); }

.tsl-sites { margin-top: 20px; }
.tsl-sites h4 { font-size: .71rem; letter-spacing: .13em; text-transform: uppercase; color: var(--c-faint); margin: 0 0 11px; }
.tsl-sites__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tsl-sites__item {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
    padding: 12px 15px; background: var(--c-sunken); border-radius: var(--r-sm); font-size: .94rem;
}
.tsl-sites__domain { font-weight: 550; color: var(--c-ink); }
.tsl-sites__date { color: var(--c-faint); font-size: .86rem; }
.tsl-sites__form { margin: 0 0 0 auto; }

.tsl-panelcard {
    background: var(--c-surface); border: 1px solid var(--c-line);
    border-radius: var(--r-lg); padding: 8px 22px; box-shadow: var(--sh-xs);
    overflow-x: auto;
}
.tsl-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tsl-table th {
    text-align: left; padding: 0 14px 12px;
    font-size: .71rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-faint);
    border-bottom: 1px solid var(--c-line);
}
.tsl-table td { padding: 15px 14px; border-bottom: 1px solid var(--c-line); }
.tsl-table tr:last-child td { border-bottom: 0; }
.tsl-right { text-align: right; }
.tsl-doclink {
    display: inline-block; padding: 5px 11px; margin-left: 5px;
    border: 1px solid var(--c-line-2); border-radius: var(--r-xs);
    font-size: .84rem; font-weight: 550; text-decoration: none; color: var(--c-ink);
    transition: border-color .16s ease, color .16s ease;
}
.tsl-doclink:hover { border-color: var(--c-accent); color: var(--c-accent); }

.tsl-form .tsl-field { display: grid; gap: 7px; margin-bottom: 20px; max-width: 420px; }
.tsl-form label, .tsl-account .login label { font-weight: 600; font-size: .91rem; color: var(--c-ink); }
.tsl-form input[type="text"], .tsl-form input[type="email"],
.tsl-account input[type="text"], .tsl-account input[type="password"] {
    width: 100%; padding: 13px 15px; min-height: 50px;
    border: 1px solid var(--c-line-2); border-radius: var(--r-sm);
    background: var(--c-surface); color: var(--c-ink);
    font-family: inherit; font-size: 1rem;
}
.tsl-form input:focus, .tsl-account input:focus {
    outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--c-accent-soft);
}
.tsl-account .login p { margin-bottom: 16px; }
.tsl-account .login-remember label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--c-body); }
.tsl-account__lost { margin-top: 18px; }
.tsl-account__lost a {
    display: inline-flex; align-items: center; min-height: 44px;
    color: var(--c-muted); font-size: .93rem; text-decoration: none;
}
.tsl-account__lost a:hover { color: var(--c-accent); text-decoration: underline; }
.tsl-account .login label { display: block; margin-bottom: 7px; }
.tsl-account .login-submit input, .tsl-account #wp-submit {
    appearance: none; cursor: pointer;
    background: var(--c-accent); color: #fff; border: 0;
    border-radius: var(--r-sm); padding: 14px 28px; min-height: 50px;
    font-family: var(--f-sans); font-size: .97rem; font-weight: 600;
}
.tsl-account .login-submit input:hover, .tsl-account #wp-submit:hover { background: var(--c-accent-deep); }

.tsl-notice { padding: 14px 17px; border-radius: var(--r-sm); margin-bottom: 22px; font-size: .94rem; border: 1px solid; }
.tsl-notice--ok { background: var(--c-ok-bg); border-color: var(--c-ok-line); color: var(--c-ok); }
.tsl-notice--warn { background: var(--c-warn-bg); border-color: var(--c-warn-line); color: var(--c-warn); }

.tsl-empty { text-align: center; padding: 54px 20px; }
.tsl-empty p { color: var(--c-muted); margin-bottom: 20px; }
.tsl-muted { color: var(--c-muted); font-size: .92rem; }
.tsl-portal { margin-top: 22px; }

.tsl-thankyou { text-align: center; max-width: 620px; }
.tsl-thankyou h1, .tsl-account--login h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 12px; }
.tsl-thankyou .tsl-key { justify-content: center; margin: 26px auto; }

/* ==========================================================================
   12. Utilities
   ========================================================================== */

.tsl-center { text-align: center; }
.tsl-mt { margin-top: 28px; }
[hidden] { display: none !important; }

/* ==========================================================================
   13. Subscription management
   ========================================================================== */

.tsl-plangroup { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--c-line); }
.tsl-plangroup h4 { margin-bottom: 6px; }
.tsl-plangroup > .tsl-muted { margin-bottom: 16px; }

.tsl-planoptions { display: grid; gap: 10px; }
.tsl-planoption {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px;
    background: var(--c-sunken); border: 1px solid var(--c-line);
    border-radius: var(--r-sm);
    transition: border-color .16s ease, background-color .16s ease;
}
.tsl-planoption:hover { border-color: var(--c-line-2); background: var(--c-surface); }
.tsl-planoption__body { display: grid; gap: 2px; margin-right: auto; }
.tsl-planoption__name { font-weight: 600; color: var(--c-ink); font-size: .97rem; }
.tsl-planoption__meta { font-size: .87rem; color: var(--c-muted); }

.tsl-subactions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--c-line); }
.tsl-subactions form { margin: 0; }

/* Proration confirmation */
.tsl-modal {
    position: fixed; inset: 0; z-index: 120;
    display: grid; place-items: center;
    padding: 20px;
    background: rgba(18, 17, 20, .55);
    backdrop-filter: blur(3px);
}
.tsl-modal__panel {
    width: 100%; max-width: 440px;
    background: var(--c-surface);
    border-radius: var(--r-lg);
    padding: 30px 28px;
    box-shadow: var(--sh-lg);
}
.tsl-modal__panel h3 { font-family: var(--f-display); font-size: 1.5rem; margin-bottom: 8px; }
.tsl-modal__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.tsl-modal__actions form { margin: 0; }

.tsl-quote { margin: 20px 0 16px; display: grid; gap: 0; }
.tsl-quote > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--c-line); }
.tsl-quote dt { color: var(--c-muted); font-size: .93rem; margin: 0; }
.tsl-quote dd { margin: 0; font-weight: 600; color: var(--c-ink); font-size: .95rem; }
.tsl-quote__total { border-bottom: 0 !important; border-top: 1.5px solid var(--c-ink) !important; padding-top: 14px !important; }
.tsl-quote__total dt { color: var(--c-ink); font-weight: 600; font-size: 1rem; }
.tsl-quote__total dd { font-family: var(--f-display); font-size: 1.5rem; font-weight: 600; }

/* ==========================================================================
   14. Homepage: split section and promises
   ========================================================================== */

.tsl-split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: clamp(34px, 5vw, 68px); align-items: start; }
@media (max-width: 900px) { .tsl-split { grid-template-columns: 1fr; gap: 34px; } }
.tsl-split__lead { position: sticky; top: 104px; }
@media (max-width: 900px) { .tsl-split__lead { position: static; } }

.tsl-promises { display: grid; gap: 14px; }
.tsl-promise {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 22px 24px;
    background: var(--c-surface); border: 1px solid var(--c-line);
    border-radius: var(--r-md);
    transition: border-color .16s ease, box-shadow .16s ease;
}
.tsl-promise:hover { border-color: var(--c-line-2); box-shadow: var(--sh-sm); }
.tsl-promise__icon {
    flex: none; width: 30px; height: 30px;
    display: grid; place-items: center; border-radius: var(--r-full);
    background: var(--c-accent-soft); color: var(--c-accent);
}
.tsl-promise h3 { margin-bottom: 5px; font-size: 1.03rem; }
.tsl-promise p { margin: 0; color: var(--c-muted); font-size: .95rem; }

.tsl-trustline {
    display: inline-flex; align-items: center; gap: 8px;
    width: 100%; justify-content: center;
    color: var(--c-muted); font-size: .92rem;
}
.tsl-trustline svg { color: var(--c-faint); }
