/* ==========================================================================
   TravelSpy design tokens + base
   Independent of every other site in this project. Scope: public/css/travelspy
   ========================================================================== */

:root {
    --ts-forest: #163300;
    --ts-forest-soft: #1c4100;
    --ts-bright: #9fe870;
    --ts-bright-dark: #8edb5c;
    --ts-mint: #d7f7c8;
    --ts-cream: #f7f4ef;
    --ts-sand: #efeae3;
    --ts-white: #ffffff;
    --ts-ink: #0e0f0c;
    --ts-body: #454745;
    --ts-muted: #6b706a;
    --ts-line: #dcd9d3;
    --ts-line-dark: rgba(255, 255, 255, .16);
    --ts-blue: #163300;
    --ts-accent: #260a2f;
    --ts-danger: #a8200d;

    --ts-radius-sm: 8px;
    --ts-radius: 16px;
    --ts-radius-lg: 24px;
    --ts-radius-pill: 100px;

    --ts-shadow-sm: 0 1px 2px rgba(22, 51, 0, .06), 0 2px 8px rgba(22, 51, 0, .05);
    --ts-shadow: 0 2px 4px rgba(22, 51, 0, .05), 0 12px 32px rgba(22, 51, 0, .08);
    --ts-shadow-lg: 0 4px 12px rgba(22, 51, 0, .06), 0 32px 64px rgba(22, 51, 0, .12);

    --ts-max: 1216px;
    --ts-gutter: 24px;
    --ts-header-h: 72px;

    --ts-font: "Inter", "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --ts-font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body.ts-body {
    margin: 0;
    font-family: var(--ts-font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ts-body);
    background: var(--ts-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.ts-body h1,
.ts-body h2,
.ts-body h3,
.ts-body h4,
.ts-body h5 {
    font-family: var(--ts-font-display);
    color: var(--ts-forest);
    margin: 0 0 .5em;
    letter-spacing: -.02em;
    line-height: 1.1;
    font-weight: 700;
}

.ts-body h1 { font-size: clamp(2.5rem, 5.2vw, 4.25rem); letter-spacing: -.035em; }
.ts-body h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); letter-spacing: -.03em; }
.ts-body h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); }
.ts-body h4 { font-size: 1.125rem; }

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

/* Links are undecorated by default so component classes (buttons, nav, cards)
   are not fighting a higher-specificity base rule. Prose links opt back in. */
.ts-body a {
    color: var(--ts-forest);
    text-decoration: none;
}

.ts-body .ts-lede a,
.ts-body .ts-small a,
.ts-body .ts-doc a,
.ts-body .ts-footer__legal a,
.ts-body a.ts-inline {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
}

.ts-body a:hover { color: var(--ts-forest-soft); }

img { max-width: 100%; height: auto; display: block; }

/* ---------- Layout primitives ---------- */

.ts-container {
    width: 100%;
    max-width: var(--ts-max);
    margin: 0 auto;
    padding: 0 var(--ts-gutter);
}

.ts-container--narrow { max-width: 820px; }

.ts-section { padding: 80px 0; }
.ts-section--tight { padding: 56px 0; }
.ts-section--loose { padding: 112px 0; }

.ts-section--cream { background: var(--ts-cream); }
.ts-section--sand { background: var(--ts-sand); }
.ts-section--mint { background: var(--ts-mint); }
.ts-section--forest { background: var(--ts-forest); }

.ts-section--forest h1,
.ts-section--forest h2,
.ts-section--forest h3,
.ts-section--forest h4 { color: var(--ts-bright); }

.ts-section--forest,
.ts-section--forest p { color: rgba(255, 255, 255, .82); }

.ts-grid { display: grid; gap: 24px; }
.ts-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ts-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ts-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.ts-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
}

.ts-stack > * + * { margin-top: 20px; }
.ts-center { text-align: center; }
.ts-measure { max-width: 42ch; }
.ts-measure-wide { max-width: 62ch; }
.ts-mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Type helpers ---------- */

.ts-eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ts-forest);
    margin-bottom: 16px;
}

.ts-section--forest .ts-eyebrow { color: var(--ts-bright); }

.ts-lede {
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    line-height: 1.55;
    color: var(--ts-body);
}

.ts-section--forest .ts-lede { color: rgba(255, 255, 255, .84); }

.ts-small { font-size: .875rem; color: var(--ts-muted); }

/* ---------- Buttons ---------- */

.ts-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: 2px solid transparent;
    border-radius: var(--ts-radius-pill);
    font-family: var(--ts-font);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}

.ts-btn:hover { text-decoration: none; transform: translateY(-1px); }
.ts-btn:focus-visible { outline: 3px solid var(--ts-forest); outline-offset: 2px; }
.ts-btn:disabled { opacity: .5; cursor: default; }
.ts-btn:disabled:hover { transform: none; }

/* `.ts-body a` is specificity 0,1,1 - these need to match or beat it. */
.ts-body .ts-btn--primary { background: var(--ts-bright); color: var(--ts-forest); }
.ts-body .ts-btn--primary:hover { background: var(--ts-bright-dark); color: var(--ts-forest); }

.ts-body .ts-btn--dark { background: var(--ts-forest); color: var(--ts-white); }
.ts-body .ts-btn--dark:hover { background: var(--ts-forest-soft); color: var(--ts-white); }

.ts-body .ts-btn--ghost { background: transparent; color: var(--ts-forest); border-color: var(--ts-forest); }
.ts-body .ts-btn--ghost:hover { background: var(--ts-forest); color: var(--ts-white); }

.ts-body .ts-btn--light { background: var(--ts-white); color: var(--ts-forest); }
.ts-body .ts-btn--light:hover { background: var(--ts-cream); color: var(--ts-forest); }

.ts-body .ts-btn--on-dark-ghost { background: transparent; color: var(--ts-white); border-color: rgba(255, 255, 255, .5); }
.ts-body .ts-btn--on-dark-ghost:hover { background: rgba(255, 255, 255, .12); color: var(--ts-white); }

.ts-btn--sm { padding: 10px 20px; font-size: .9375rem; }
.ts-btn--block { width: 100%; }

.ts-btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.ts-btn-row--center { justify-content: center; }

.ts-textlink {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--ts-bright);
    padding-bottom: 2px;
}

.ts-textlink:hover { border-bottom-color: var(--ts-forest); text-decoration: none; }
.ts-section--forest .ts-textlink { color: var(--ts-bright); }

/* ---------- Cards ---------- */

/* No height: 100% here - grid items already stretch to equal heights, and the
   percentage made cards stretch inside start-aligned splits too. */
.ts-card {
    background: var(--ts-white);
    border: 1px solid var(--ts-line);
    border-radius: var(--ts-radius-lg);
    padding: 32px;
    transition: box-shadow .18s ease, transform .18s ease;
}

a.ts-card { text-decoration: none; display: block; color: inherit; }
a.ts-card:hover { box-shadow: var(--ts-shadow); transform: translateY(-3px); }

.ts-card--flat { border-radius: var(--ts-radius); padding: 24px; }
.ts-card--mint { background: var(--ts-mint); border-color: transparent; }
.ts-card--cream { background: var(--ts-cream); border-color: transparent; }

.ts-card h3, .ts-card h4 { margin-bottom: 10px; }
.ts-card p { color: var(--ts-body); font-size: .96rem; }

/* Sits on a forest section, so it needs a lifted surface rather than the same colour.
   Must come after `.ts-card p`, which has equal specificity. */
.ts-card--forest { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .82); }
.ts-card--forest h3, .ts-card--forest h4 { color: var(--ts-bright); }
.ts-card--forest p { color: rgba(255, 255, 255, .82); }
.ts-card--forest .ts-small { color: rgba(255, 255, 255, .6); }

.ts-card__tag {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ts-forest);
    background: var(--ts-mint);
    border-radius: var(--ts-radius-pill);
    padding: 5px 12px;
    margin-bottom: 14px;
}

.ts-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--ts-mint);
    color: var(--ts-forest);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 18px;
}

/* ---------- Stats ---------- */

.ts-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.ts-stat__value {
    font-family: var(--ts-font-display);
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1;
    color: var(--ts-forest);
    margin-bottom: 8px;
}

.ts-section--forest .ts-stat__value { color: var(--ts-bright); }
.ts-stat__label { font-size: .95rem; color: var(--ts-muted); }
.ts-section--forest .ts-stat__label { color: rgba(255, 255, 255, .7); }

/* ---------- Lists ---------- */

.ts-list { list-style: none; margin: 0; padding: 0; }
.ts-list li { position: relative; padding-left: 30px; margin-bottom: 12px; }

.ts-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .45em;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ts-bright);
}

.ts-list--check li::after {
    content: "";
    position: absolute;
    left: 5px;
    top: .72em;
    width: 8px;
    height: 4px;
    border-left: 2px solid var(--ts-forest);
    border-bottom: 2px solid var(--ts-forest);
    transform: rotate(-45deg);
}

.ts-list--cross li::before { background: var(--ts-sand); }
.ts-list--cross li::after {
    content: "\00d7";
    position: absolute;
    left: 5px;
    top: .05em;
    font-weight: 700;
    color: var(--ts-danger);
}

.ts-pill-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }

.ts-pill-list li {
    font-size: .875rem;
    background: var(--ts-white);
    border: 1px solid var(--ts-line);
    border-radius: var(--ts-radius-pill);
    padding: 7px 14px;
    color: var(--ts-body);
}

.ts-contact-list { list-style: none; margin: 4px 0 0; padding: 0; }

.ts-contact-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--ts-line);
}

.ts-contact-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.ts-contact-list span { font-weight: 600; color: var(--ts-forest); font-size: .9rem; }
.ts-contact-list a { font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Header ---------- */

.ts-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: var(--ts-white);
    border-bottom: 1px solid var(--ts-line);
}

.ts-header__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    min-height: var(--ts-header-h);
}

.ts-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--ts-font-display);
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -.04em;
    color: var(--ts-forest);
    text-decoration: none;
    flex: 0 0 auto;
}

.ts-logo:hover { text-decoration: none; }

.ts-logo__mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--ts-bright);
    display: grid;
    place-items: center;
    font-size: .95rem;
    color: var(--ts-forest);
}

.ts-body .ts-logo--light { color: var(--ts-white); }
.ts-body .ts-logo--light:hover { color: var(--ts-white); }

.ts-nav { display: flex; align-items: stretch; gap: 4px; flex: 1 1 auto; align-self: stretch; }

/* Items stretch to the full header height so moving the pointer down towards the
   mega panel never crosses a gap that would trigger mouseleave. */
.ts-nav__item { position: relative; display: flex; align-items: center; }

.ts-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: var(--ts-radius-sm);
    font-weight: 600;
    font-size: .975rem;
    color: var(--ts-forest);
    text-decoration: none;
    background: none;
    border: 0;
    cursor: pointer;
    font-family: var(--ts-font);
}

.ts-nav__link:hover { background: var(--ts-cream); text-decoration: none; }
.ts-nav__link[aria-expanded="true"] { background: var(--ts-cream); }
.ts-nav__link.is-active { background: var(--ts-mint); }

.ts-nav__caret {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .15s ease;
}

.ts-nav__link[aria-expanded="true"] .ts-nav__caret { transform: rotate(-135deg) translateY(-2px); }

.ts-mega {
    position: absolute;
    top: calc(100% + 2px);
    left: -12px;
    min-width: 620px;
    background: var(--ts-white);
    border: 1px solid var(--ts-line);
    border-radius: var(--ts-radius-lg);
    box-shadow: var(--ts-shadow-lg);
    padding: 24px;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 24px;
}

.ts-mega.is-open { display: grid; }
.ts-mega--single { min-width: 340px; grid-template-columns: minmax(0, 1fr); }

/* Invisible bridge covering the offset between the trigger and the panel. */
.ts-mega::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
}

.ts-mega__title {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ts-muted);
    padding: 8px 12px;
    margin: 0;
}

.ts-mega__link {
    display: block;
    padding: 10px 12px;
    border-radius: var(--ts-radius-sm);
    text-decoration: none;
    color: var(--ts-forest);
}

.ts-mega__link:hover { background: var(--ts-cream); text-decoration: none; }
.ts-mega__link strong { display: block; font-weight: 600; font-size: .975rem; }
.ts-mega__link span { display: block; font-size: .85rem; color: var(--ts-muted); font-weight: 400; }

.ts-header__actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.ts-burger {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--ts-line);
    border-radius: var(--ts-radius-sm);
    background: var(--ts-white);
    cursor: pointer;
    padding: 0;
    position: relative;
}

.ts-burger span,
.ts-burger::before,
.ts-burger::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    height: 2px;
    background: var(--ts-forest);
    border-radius: 2px;
}

.ts-burger span { top: 50%; transform: translateY(-50%); }
.ts-burger::before { top: 14px; }
.ts-burger::after { bottom: 14px; }

/* ---------- Hero ---------- */

.ts-hero { background: var(--ts-mint); padding: 88px 0 96px; }
.ts-hero--forest { background: var(--ts-forest); }
.ts-hero--cream { background: var(--ts-cream); }

.ts-hero--forest h1 { color: var(--ts-bright); }
.ts-hero--forest .ts-lede { color: rgba(255, 255, 255, .84); }
.ts-hero--forest .ts-eyebrow { color: var(--ts-bright); }

.ts-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }

.ts-hero__note { font-size: .875rem; color: var(--ts-muted); margin-top: 20px; }
.ts-hero--forest .ts-hero__note { color: rgba(255, 255, 255, .6); }

.ts-hero__metric {
    background: var(--ts-forest);
    border-radius: var(--ts-radius-lg);
    padding: 56px 40px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 10px;
    text-align: center;
}

.ts-hero__metric .ts-stat__value {
    color: var(--ts-bright);
    font-size: clamp(3rem, 6vw, 4.5rem);
    margin: 0;
}

.ts-hero__metric p { color: rgba(255, 255, 255, .78); margin: 0; max-width: 30ch; }
.ts-hero__metric .ts-hero__metric-note { font-size: .8rem; color: rgba(255, 255, 255, .45); max-width: none; }

/* ---------- Mock UI panel (used as the hero visual) ---------- */

.ts-mock {
    background: var(--ts-white);
    border-radius: var(--ts-radius-lg);
    box-shadow: var(--ts-shadow-lg);
    overflow: hidden;
    border: 1px solid var(--ts-line);
}

.ts-mock__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--ts-cream);
    border-bottom: 1px solid var(--ts-line);
    font-size: .8rem;
    color: var(--ts-muted);
}

.ts-mock__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ts-line); }
.ts-mock__body { padding: 20px; }

.ts-mock__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--ts-line);
}

.ts-mock__row:last-child { border-bottom: 0; }
.ts-mock__row strong { color: var(--ts-forest); font-size: .95rem; display: block; }
.ts-mock__row small { color: var(--ts-muted); font-size: .8rem; }

.ts-score {
    font-family: var(--ts-font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--ts-forest);
    background: var(--ts-mint);
    border-radius: var(--ts-radius-pill);
    padding: 4px 14px;
    white-space: nowrap;
}

.ts-meter { height: 6px; border-radius: 3px; background: var(--ts-sand); overflow: hidden; margin-top: 8px; }
.ts-meter span { display: block; height: 100%; background: var(--ts-bright); border-radius: 3px; }

/* ---------- Logo strip ---------- */

.ts-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px 48px;
    opacity: .72;
}

.ts-logos span {
    font-family: var(--ts-font-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -.02em;
    color: var(--ts-forest);
}

.ts-section--forest .ts-logos span { color: rgba(255, 255, 255, .78); }

/* ---------- Steps ---------- */

.ts-steps { counter-reset: ts-step; display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }

.ts-step {
    background: var(--ts-white);
    border: 1px solid var(--ts-line);
    border-radius: var(--ts-radius-lg);
    padding: 28px;
}

.ts-step h3 { font-size: 1.2rem; }

/* ---------- Quote ---------- */

.ts-quote {
    background: var(--ts-forest);
    border-radius: var(--ts-radius-lg);
    padding: 56px;
    color: var(--ts-white);
}

.ts-quote blockquote {
    margin: 0 0 24px;
    font-family: var(--ts-font-display);
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    line-height: 1.3;
    letter-spacing: -.02em;
    color: var(--ts-bright);
}

.ts-quote cite { font-style: normal; font-size: .95rem; color: rgba(255, 255, 255, .75); }
.ts-quote cite strong { display: block; color: var(--ts-white); font-size: 1rem; }

/* ---------- Accordion (FAQ) ---------- */

.ts-accordion { border-top: 1px solid var(--ts-line); }
.ts-accordion__item { border-bottom: 1px solid var(--ts-line); }

.ts-accordion__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 0;
    background: none;
    border: 0;
    text-align: left;
    cursor: pointer;
    font-family: var(--ts-font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ts-forest);
}

.ts-accordion__icon {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ts-mint);
    position: relative;
}

.ts-accordion__icon::before,
.ts-accordion__icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    background: var(--ts-forest);
    transform: translate(-50%, -50%);
}

.ts-accordion__icon::before { width: 12px; height: 2px; }
.ts-accordion__icon::after { width: 2px; height: 12px; transition: transform .18s ease; }

.ts-accordion__trigger[aria-expanded="true"] .ts-accordion__icon::after { transform: translate(-50%, -50%) scaleY(0); }

.ts-accordion__panel { display: none; padding: 0 0 24px; max-width: 70ch; }
.ts-accordion__panel.is-open { display: block; }

/* ---------- Tables ---------- */

.ts-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ts-table th, .ts-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--ts-line); vertical-align: top; }
.ts-table th { font-family: var(--ts-font-display); color: var(--ts-forest); font-weight: 700; }
.ts-table tbody tr:hover { background: var(--ts-cream); }

/* ---------- Pricing ---------- */

.ts-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }

.ts-plan {
    background: var(--ts-white);
    border: 1px solid var(--ts-line);
    border-radius: var(--ts-radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ts-plan--featured { background: var(--ts-forest); border-color: var(--ts-forest); color: rgba(255, 255, 255, .82); }
.ts-plan--featured h3 { color: var(--ts-bright); }
.ts-plan--featured .ts-plan__price { color: var(--ts-bright); }
.ts-plan--featured .ts-list li::before { background: var(--ts-bright); }

.ts-plan__price {
    font-family: var(--ts-font-display);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -.035em;
    color: var(--ts-forest);
    line-height: 1;
}

.ts-plan__cadence { font-size: .875rem; color: var(--ts-muted); margin-bottom: 20px; }
.ts-plan--featured .ts-plan__cadence { color: rgba(255, 255, 255, .6); }
.ts-plan__features { flex: 1 1 auto; margin: 24px 0; }

.ts-plan__badge {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    background: var(--ts-bright);
    color: var(--ts-forest);
    border-radius: var(--ts-radius-pill);
    padding: 5px 12px;
    margin-bottom: 14px;
}

/* ---------- Forms ---------- */

.ts-field { margin-bottom: 22px; }

.ts-field label {
    display: block;
    font-size: .875rem;
    font-weight: 600;
    color: var(--ts-forest);
    margin-bottom: 8px;
}

.ts-input,
.ts-select,
.ts-textarea {
    width: 100%;
    padding: 13px 16px;
    font-family: var(--ts-font);
    font-size: 1rem;
    color: var(--ts-ink);
    background: var(--ts-white);
    border: 1px solid var(--ts-line);
    border-radius: var(--ts-radius-sm);
}

.ts-input:focus,
.ts-select:focus,
.ts-textarea:focus {
    outline: none;
    border-color: var(--ts-forest);
    box-shadow: 0 0 0 3px rgba(159, 232, 112, .55);
}

.ts-textarea { min-height: 150px; resize: vertical; }

.ts-error { color: var(--ts-danger); font-size: .85rem; margin-top: 6px; }

.ts-alert {
    background: var(--ts-mint);
    border-radius: var(--ts-radius);
    padding: 16px 20px;
    color: var(--ts-forest);
    font-weight: 600;
    margin-bottom: 24px;
}

/* ---------- Breadcrumb ---------- */

.ts-crumbs { font-size: .85rem; color: var(--ts-muted); margin-bottom: 20px; }
.ts-crumbs a { color: inherit; text-decoration: none; }
.ts-crumbs a:hover { text-decoration: underline; }
.ts-crumbs span { margin: 0 8px; opacity: .6; }
.ts-hero--forest .ts-crumbs { color: rgba(255, 255, 255, .6); }

/* ---------- CTA band ---------- */

.ts-cta {
    background: var(--ts-bright);
    border-radius: var(--ts-radius-lg);
    padding: 64px 56px;
    text-align: center;
}

.ts-cta h2 { color: var(--ts-forest); max-width: 20ch; margin-left: auto; margin-right: auto; }
.ts-cta p { color: var(--ts-forest-soft); max-width: 56ch; margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */

.ts-footer { background: var(--ts-forest); color: rgba(255, 255, 255, .7); padding: 72px 0 32px; }
.ts-footer h4 { color: var(--ts-white); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.ts-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; }
.ts-footer ul { list-style: none; margin: 0; padding: 0; }
.ts-footer li { margin-bottom: 10px; }
.ts-footer a { color: rgba(255, 255, 255, .7); text-decoration: none; font-size: .925rem; }
.ts-footer a:hover { color: var(--ts-bright); text-decoration: none; }

.ts-footer__bottom {
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--ts-line-dark);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    font-size: .85rem;
}

.ts-footer__legal { max-width: 70ch; font-size: .8rem; color: rgba(255, 255, 255, .45); margin-top: 16px; }

/* ---------- Skip link ---------- */

.ts-body .ts-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ts-forest);
    color: var(--ts-white);
    padding: 12px 20px;
    z-index: 1000;
    border-radius: 0 0 var(--ts-radius-sm) 0;
}

.ts-body .ts-skip:focus { left: 0; color: var(--ts-white); }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
    .ts-nav { display: none; }
    .ts-burger { display: block; }
    .ts-footer__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .ts-hero__grid,
    .ts-split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .ts-grid--3,
    .ts-grid--4,
    .ts-steps,
    .ts-plans,
    .ts-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ts-section { padding: 64px 0; }
    .ts-section--loose { padding: 72px 0; }
    .ts-quote { padding: 36px; }
    .ts-cta { padding: 48px 28px; }
}

@media (max-width: 640px) {
    .ts-grid--2,
    .ts-grid--3,
    .ts-grid--4,
    .ts-steps,
    .ts-plans,
    .ts-stats,
    .ts-footer__grid { grid-template-columns: minmax(0, 1fr); }
    .ts-hero { padding: 56px 0 64px; }
    .ts-card { padding: 24px; }
    .ts-header__actions .ts-btn--demo { display: none; }
}

/* ---------- Mobile drawer ---------- */

.ts-drawer {
    position: fixed;
    inset: var(--ts-header-h) 0 0 0;
    background: var(--ts-white);
    z-index: 899;
    overflow-y: auto;
    padding: 24px var(--ts-gutter) 48px;
    display: none;
}

.ts-drawer.is-open { display: block; }
.ts-drawer h4 { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ts-muted); margin: 24px 0 8px; }
.ts-drawer a { display: block; padding: 12px 0; font-weight: 600; color: var(--ts-forest); text-decoration: none; border-bottom: 1px solid var(--ts-line); }
.ts-drawer .ts-btn { margin-top: 20px; border-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
