/*
 * THITO homepage
 * Loaded only by index.php. Every rule is scoped to .thito-home or a th- prefixed
 * class so shared pages are unaffected. Bootstrap 3 sets html{font-size:10px},
 * so sizes here are in px rather than rem.
 */

.thito-home {
    --th-brand: #EF7612;
    --th-brand-hover: #E06A08;
    --th-brand-ink: #B4500A;      /* brand orange for text on light backgrounds (AA) */
    --th-brand-tint: #FDF3EA;
    --th-brand-soft: #FBE3CD;
    --th-brand-deep: #E35F00;     /* app gradient start */
    --th-brand-light: #FBA65E;    /* app gradient end */
    --th-accent: #E06508;         /* vibrant orange for large headings (3.5:1, AA large text) */
    --th-peach: #FFF1E4;
    --th-grad: linear-gradient(120deg, #EF7612 0%, #F48B35 50%, #FBA65E 100%);
    --th-font-display: 'Urbanist', 'Urbanist Fallback', 'Inter', system-ui, sans-serif;
    --th-ink: #1C1917;
    --th-ink-2: #3F3A36;
    --th-muted: #625A53;
    --th-line: #ECE5DD;
    --th-bg: #FFFFFF;
    --th-bg-warm: #FBF8F4;
    --th-charcoal: #1F1C1A;
    --th-radius: 16px;
    --th-shadow-sm: 0 1px 2px rgba(28, 25, 23, .05);
    --th-shadow-md: 0 12px 32px -12px rgba(28, 25, 23, .14);
    --th-ease: cubic-bezier(.2, .7, .2, 1);
    --th-nav-h: 76px;             /* 12px gap + 64px pill */

    font-family: 'Inter', 'Inter Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--th-ink-2);
    background: var(--th-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

.thito-home h1,
.thito-home h2,
.thito-home h3,
.thito-home h4 {
    font-family: inherit;
    color: var(--th-ink);
}

.thito-home p { margin: 0; }

.thito-home main ul,
.thito-home main ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.thito-home img { max-width: 100%; height: auto; }

.thito-home ::selection { background: var(--th-brand-soft); color: var(--th-ink); }

/* Focus: style.css removes link outlines with !important, so restore a visible ring */
.thito-home a:focus-visible,
.thito-home button:focus-visible,
.thito-home [tabindex]:focus-visible {
    outline: 2px solid var(--th-brand-ink) !important;
    outline-offset: 3px;
    border-radius: 8px;
}

.th-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.thito-home .th-skip {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 10000;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--th-ink);
    color: #fff;
    font-weight: 600;
    transition: top .2s;
}

.thito-home .th-skip:focus { top: 12px; color: #fff; }

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

.th-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.th-section {
    padding: 112px 0;
    scroll-margin-top: var(--th-nav-h);
}

.th-section__head {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 24px 64px;
    align-items: end;
    margin-bottom: 56px;
}

.th-section__head--center {
    display: block;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.thito-home .th-eyebrow {
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--th-brand-ink);
}

.thito-home .th-h2 {
    font-size: clamp(30px, 3.6vw, 44px);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -.025em;
    margin: 0;
}

.thito-home .th-body {
    font-size: 17px;
    line-height: 1.7;
    color: var(--th-muted);
}

.th-icon { width: 22px; height: 22px; flex: none; }

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

.thito-home .th-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: background-color .2s var(--th-ease), color .2s var(--th-ease), box-shadow .2s var(--th-ease), transform .2s var(--th-ease);
}

.thito-home .th-btn .th-icon { width: 18px; height: 18px; }

/* Dark text on brand orange keeps contrast above 6:1 */
.thito-home .th-btn--primary,
.thito-home .th-btn--primary:focus {
    background: var(--th-brand);
    color: var(--th-ink);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 6px 16px -8px rgba(239, 118, 18, .8);
}

.thito-home .th-btn--primary:hover {
    background: var(--th-brand-hover);
    color: var(--th-ink);
    transform: translateY(-1px);
}

.thito-home .th-iconbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--th-line);
    border-radius: 999px;
    background: #fff;
    color: var(--th-ink);
    cursor: pointer;
    transition: border-color .2s, background-color .2s, opacity .2s;
}

.thito-home .th-iconbtn:hover { border-color: var(--th-ink); }

.thito-home .th-iconbtn:disabled { opacity: .35; cursor: default; border-color: var(--th-line); }

/* Store badges */
.th-stores {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.thito-home .th-store {
    display: block;
    border-radius: 10px;
    transition: transform .2s var(--th-ease);
}

.thito-home .th-store img {
    display: block;
    width: 160px;
    height: auto;
    aspect-ratio: 206 / 80;
    transition: filter .2s var(--th-ease);
}

/* The badge images have transparent margins, so the hover shadow follows the badge's own
   shape (drop-shadow) instead of the image rectangle (box-shadow) */
.thito-home .th-store:hover { transform: translateY(-2px); }
.thito-home .th-store:hover img { filter: drop-shadow(0 6px 8px rgba(28, 25, 23, .35)); }

/* Navigation: floating pill, as in the app's rounded cards ---------------- */

.thito-home #scrollProgressBar {
    height: 3px;
    background: linear-gradient(90deg, var(--th-brand-deep), var(--th-brand), var(--th-brand-light));
    z-index: 1001;
}

/* The header overlaps the top of each hero so the hero colour shows around the pill */
.th-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: block;               /* style.css makes every <header> inline-block and white */
    width: auto;
    background: transparent;
    height: var(--th-nav-h);
    margin-bottom: calc(var(--th-nav-h) * -1);
    padding: 12px 16px 0;
    pointer-events: none;
}

.th-nav__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1232px;
    height: 64px;
    margin: 0 auto;
    padding: 0 10px 0 24px;
    border: 1px solid rgba(239, 118, 18, .14);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 30px -14px rgba(120, 60, 10, .28);
    pointer-events: auto;
    transition: box-shadow .25s var(--th-ease), border-color .25s;
}

.th-nav.is-scrolled .th-nav__inner {
    border-color: rgba(239, 118, 18, .22);
    box-shadow: 0 14px 34px -14px rgba(120, 60, 10, .38);
}

.th-nav__brand { display: block; flex: none; }

.th-nav__brand picture { display: block; }

/* img/logo/thitologo.png (1600x830) has white margins; the logo itself is the 1409x627 box at
   86,108. The link is cropped to that box plus a few px of white on every side (1441x656 at
   70,95), so pixel rounding never shaves the edge of the final "O".
   --lh = visible logo height (of the 627px logo box, as before). */
.th-nav__brand {
    --lh: 40px;
    --ih: calc(var(--lh) * 830 / 627);
    width: calc(var(--ih) * 1441 / 830);
    height: calc(var(--ih) * 656 / 830);
    overflow: hidden;
}

.th-nav__brand img {
    display: block;
    width: auto;
    height: var(--ih);
    max-width: none;
    margin: calc(var(--ih) * -95 / 830) 0 0 calc(var(--ih) * -70 / 830);
    mix-blend-mode: multiply;
}

.th-nav__menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.thito-home .th-nav__links {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.thito-home .th-nav__links a {
    display: block;
    padding: 9px 13px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--th-ink-2);
    transition: color .2s, background-color .2s;
}

.thito-home .th-nav__links a:hover {
    color: var(--th-ink);
    background: var(--th-brand-tint);
}

.thito-home .th-nav__links a.is-active,
.thito-home .th-nav__links a.is-current {
    color: var(--th-ink);
    background: var(--th-brand-soft);
    box-shadow: none;
    border-radius: 999px;
}

.thito-home .th-nav__toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--th-brand-tint);
    cursor: pointer;
}

.th-nav__bars,
.th-nav__bars::before,
.th-nav__bars::after {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    border-radius: 2px;
    background: var(--th-ink);
    transition: transform .2s var(--th-ease), opacity .2s;
}

.th-nav__bars { position: relative; }

.th-nav__bars::before,
.th-nav__bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.th-nav__bars::before { top: -6px; }
.th-nav__bars::after { top: 6px; }

.th-nav__toggle[aria-expanded="true"] .th-nav__bars { background: transparent; }
.th-nav__toggle[aria-expanded="true"] .th-nav__bars::before { transform: translateY(6px) rotate(45deg); }
.th-nav__toggle[aria-expanded="true"] .th-nav__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1199px) {
    .th-nav__inner { padding: 0 10px 0 20px; }

    .th-js .th-nav__toggle { display: inline-flex; align-items: center; justify-content: center; }

    /* Without JS the menu simply wraps below the logo */
    html:not(.th-js) .th-nav { height: auto; margin-bottom: 0; }
    html:not(.th-js) .th-nav__inner { height: auto; flex-wrap: wrap; padding: 12px 20px; border-radius: 24px; }
    html:not(.th-js) .th-nav__menu { flex-wrap: wrap; gap: 12px; }
    html:not(.th-js) .th-nav__links { flex-wrap: wrap; }

    .th-js .th-nav__menu {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 12px 16px 16px;
        border: 1px solid var(--th-line);
        border-radius: 24px;
        background: #fff;
        box-shadow: 0 24px 48px -20px rgba(28, 25, 23, .35);
        max-height: calc(100vh - var(--th-nav-h) - 24px);
        overflow-y: auto;
    }

    .th-js .th-nav__menu.is-open { display: flex; }

    .th-js .th-nav__links { flex-direction: column; align-items: stretch; gap: 2px; }

    .th-js .thito-home .th-nav__links a { padding: 13px 16px; font-size: 16px; border-radius: 14px; }

    .th-js .th-nav__cta { width: 100%; min-height: 50px; }
}

@media (max-width: 767px) {
    .thito-home { --th-nav-h: 70px; }
    .th-nav { padding: 10px 12px 0; }
    .th-nav__inner { height: 60px; padding: 0 8px 0 16px; }
    .th-nav__brand { --lh: 36px; }
}

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

.th-hero {
    position: relative;
    overflow: hidden;
    padding: 80px 0 104px;
    background: var(--th-bg-warm);
    border-bottom: 1px solid var(--th-line);
}

.th-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 48px;
    align-items: center;
}

.thito-home .th-hero__title {
    margin: 0 0 24px;
    font-size: clamp(40px, 5.6vw, 66px);
    line-height: 1.04;
    font-weight: 700;
    letter-spacing: -.035em;
    color: var(--th-ink);
}

.th-hero__title span { color: var(--th-brand-ink); }

.thito-home .th-hero__lead {
    max-width: 540px;
    margin-bottom: 36px;
    font-size: 19px;
    line-height: 1.65;
    color: var(--th-muted);
}

.thito-home .th-hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--th-ink-2);
}

.th-hero__facts li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.th-hero__facts li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--th-brand);
}

.th-hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 24px 0;
}

/* Soft brand disc and ring behind the phone */
.th-hero__visual::before,
.th-hero__visual::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.th-hero__visual::before {
    width: 480px;
    height: 480px;
    background: var(--th-brand-soft);
}

.th-hero__visual::after {
    width: 600px;
    height: 600px;
    border: 1px solid #F1D9C3;
}

/* Phone mockup ---------------------------------------------------------- */

.th-phone {
    position: relative;
    z-index: 1;
    width: var(--th-phone-w, 300px);
    padding: 10px;
    border-radius: 46px;
    background: #171412;
    box-shadow:
        inset 0 0 0 1.5px #3A3431,
        0 2px 4px rgba(28, 25, 23, .08),
        0 40px 80px -32px rgba(90, 45, 10, .45);
}

.th-phone__screen {
    overflow: hidden;
    border-radius: 36px;
    background: #fff;
    aspect-ratio: 1080 / 2010;
}

.th-phone__screen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.th-phone--hero { --th-phone-w: 320px; }

.th-phone--sm {
    --th-phone-w: 232px;
    padding: 7px;
    border-radius: 34px;
    box-shadow:
        inset 0 0 0 1px #3A3431,
        0 2px 4px rgba(28, 25, 23, .06),
        0 24px 40px -24px rgba(28, 25, 23, .35);
}

.th-phone--sm .th-phone__screen { border-radius: 27px; }

/* Product value ---------------------------------------------------------- */

.th-value__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px 96px;
    align-items: start;
}

.th-value__intro .th-h2 { margin-bottom: 20px; }

.th-value__intro { position: sticky; top: calc(var(--th-nav-h) + 32px); }

.th-value__item {
    display: flex;
    gap: 20px;
    padding: 28px 0;
    border-top: 1px solid var(--th-line);
}

.th-value__item:last-child { border-bottom: 1px solid var(--th-line); }

.th-value__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: none;
    border-radius: 12px;
    background: var(--th-brand-tint);
    color: var(--th-brand-ink);
}

.thito-home .th-value__item h3 {
    margin: 2px 0 6px;
    font-size: 19px;
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: -.01em;
}

.th-value__item p { color: var(--th-muted); }

/* Features -------------------------------------------------------------- */

.th-features {
    background: var(--th-bg-warm);
    border-top: 1px solid var(--th-line);
    border-bottom: 1px solid var(--th-line);
}

.thito-home .th-features__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--th-line);
    border-radius: var(--th-radius);
    background: var(--th-line);
}

.th-feature {
    position: relative;
    padding: 32px 28px 36px;
    background: #fff;
    transition: background-color .25s var(--th-ease);
}

.th-feature::after {
    content: "";
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 0;
    height: 2px;
    background: var(--th-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--th-ease);
}

.th-feature:hover { background: #FFFCF9; }
.th-feature:hover::after { transform: scaleX(1); }

.th-feature__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 24px;
    border-radius: 12px;
    border: 1px solid #F3DCC8;
    background: var(--th-brand-tint);
    color: var(--th-brand-ink);
    transition: background-color .25s, color .25s, border-color .25s;
}

.th-feature:hover .th-feature__icon {
    background: var(--th-brand);
    border-color: var(--th-brand);
    color: var(--th-ink);
}

.thito-home .th-feature__title {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: -.01em;
}

.thito-home .th-feature__text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--th-muted);
}

/* How it works ----------------------------------------------------------- */

.thito-home .th-steps__list {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    counter-reset: none;
}

/* Connector line between step numbers */
.th-steps__list::before {
    content: "";
    position: absolute;
    top: 28px;
    left: calc(16.66% + 28px);
    right: calc(16.66% + 28px);
    border-top: 1px dashed #DCCFC2;
}

.th-step {
    position: relative;
    text-align: center;
    padding: 0 12px;
}

.th-step__num {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 24px;
    border-radius: 50%;
    border: 1px solid var(--th-line);
    background: #fff;
    box-shadow: 0 0 0 8px #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--th-brand-ink);
}

.th-step:first-child .th-step__num {
    background: var(--th-brand);
    border-color: var(--th-brand);
    color: var(--th-ink);
}

.thito-home .th-step__title {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -.01em;
}

.thito-home .th-step__text {
    max-width: 320px;
    margin: 0 auto;
    color: var(--th-muted);
}

/* App tour ---------------------------------------------------------------- */

.th-tour {
    padding-bottom: 96px;
    background: var(--th-bg-warm);
    border-top: 1px solid var(--th-line);
}

.th-tour .th-section__head { margin-bottom: 40px; }

.th-tour__controls {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.th-tour__track {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 max(24px, calc((100vw - 1200px) / 2 + 24px));
    scrollbar-width: thin;
    scrollbar-color: #D9CCBF transparent;
    -webkit-overflow-scrolling: touch;
}

.thito-home .th-tour__track:focus-visible { outline-offset: -2px; border-radius: 0; }

.thito-home .th-tour__list {
    display: flex;
    gap: 32px;
    width: max-content;
    padding: 8px max(24px, calc((100vw - 1200px) / 2 + 24px)) 32px;
}

.th-tour__item {
    flex: none;
    width: 232px;
    scroll-snap-align: start;
}

.th-tour__item figure { margin: 0; }

.th-tour__item figcaption {
    margin-top: 20px;
    padding-right: 8px;
}

.th-tour__item figcaption strong {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
    font-weight: 600;
    color: var(--th-ink);
}

.th-tour__item figcaption span {
    display: block;
    font-size: 14px;
    line-height: 1.5;
    color: var(--th-muted);
}

/* Final CTA ---------------------------------------------------------------- */

.th-cta { padding: 96px 0 112px; }

.th-cta__panel {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    padding: 64px;
    border-radius: 24px;
    background: var(--th-charcoal);
    color: #D6CFC8;
}

/* Brand accent arc in the corner */
.th-cta__panel::before {
    content: "";
    position: absolute;
    right: -140px;
    top: -140px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    border: 56px solid var(--th-brand);
    opacity: .9;
    pointer-events: none;
}

.th-cta__copy {
    position: relative;
    max-width: 560px;
}

.thito-home .th-cta .th-h2 {
    margin-bottom: 16px;
    color: #fff;
}

.th-cta__copy p {
    margin-bottom: 32px;
    font-size: 17px;
    line-height: 1.65;
}

.th-cta__qr {
    position: relative;
    flex: none;
    padding: 16px 16px 14px;
    border-radius: 16px;
    background: #fff;
    text-align: center;
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6);
}

.th-cta__qr img {
    display: block;
    width: 148px;
    height: 148px;
    image-rendering: pixelated;
}

.thito-home .th-cta__qr p {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--th-ink);
}

/* Footer (shared footer.php, restyled on the homepage only) ------------------ */

.thito-home .footer .overview-block-ptb {
    padding: 72px 0 40px;
    background-color: var(--th-charcoal) !important;
}

.thito-home .footer .overview-block-ptb .img-responsive {
    max-width: 220px;
    margin: 8px auto 32px;
}

.thito-home .footer h4 {
    margin-top: 8px !important;
    margin-bottom: 16px !important;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #A8A09A;
}

.thito-home .footer .list-unstyled li { margin-bottom: 6px; }

.thito-home .footer .list-unstyled a {
    font-size: 15px;
    color: #EDE8E3 !important;
    transition: color .2s;
}

.thito-home .footer .list-unstyled a:hover { color: var(--th-brand) !important; }

.thito-home .footer .info-share { margin-top: 8px; padding-top: 0; }

.thito-home .footer .info-share li a {
    width: 44px;
    height: 44px;
    line-height: 44px;
    border-color: #4A4440;
    transition: background-color .2s, border-color .2s, color .2s;
}

.thito-home .footer .info-share li a:hover {
    background: var(--th-brand);
    border-color: var(--th-brand);
    color: var(--th-ink);
}

.thito-home .footer .iq-footer {
    background-color: var(--th-charcoal) !important;
    border-top: 1px solid #36302C;
}

.thito-home .footer .footer-copyright {
    font-size: 14px;
    color: #A8A09A !important;
}

.thito-home .footer .footer-copyright .text-green { color: #EDE8E3; }

/* Back to top ---------------------------------------------------------------- */

.thito-home .th-totop {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--th-line);
    background: #fff;
    color: var(--th-ink);
    box-shadow: var(--th-shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .25s, transform .25s var(--th-ease), visibility .25s, border-color .2s;
}

.thito-home .th-totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.thito-home .th-totop:hover { color: var(--th-ink); border-color: var(--th-ink); }

/* Scroll reveal (JS only; content is visible without it) ------------------------- */

@media (prefers-reduced-motion: no-preference) {
    .th-js .th-reveal {
        opacity: 0;
        transform: translateY(14px);
        transition: opacity .6s var(--th-ease), transform .6s var(--th-ease);
    }

    .th-js .th-reveal.is-visible {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .thito-home *,
    .thito-home *::before,
    .thito-home *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

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

@media (max-width: 1023px) {
    .th-section { padding: 88px 0; }

    .th-hero { padding: 56px 0 80px; }

    .th-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 32px; }

    .th-phone--hero { --th-phone-w: 280px; }

    .th-hero__visual::before { width: 400px; height: 400px; }
    .th-hero__visual::after { width: 500px; height: 500px; }

    .th-value__grid { gap: 40px 56px; }

    .thito-home .th-features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .th-cta__panel { padding: 48px; }
}

@media (max-width: 767px) {
    .th-container { padding: 0 20px; }

    .th-section { padding: 72px 0; }

    .th-section__head {
        grid-template-columns: minmax(0, 1fr);
        margin-bottom: 40px;
    }

    .th-hero { padding: 40px 0 64px; }

    .th-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }

    .th-hero__copy { text-align: center; }

    .thito-home .th-hero__lead { margin-left: auto; margin-right: auto; font-size: 17px; margin-bottom: 28px; }

    .th-hero .th-stores,
    .thito-home .th-hero__facts { justify-content: center; }

    .th-phone--hero { --th-phone-w: 260px; }

    .th-hero__visual::before { width: 320px; height: 320px; }
    .th-hero__visual::after { width: 400px; height: 400px; }

    .th-value__grid { grid-template-columns: minmax(0, 1fr); }

    .th-value__intro { position: static; }

    .thito-home .th-steps__list { grid-template-columns: minmax(0, 1fr); gap: 0; }

    .th-steps__list::before {
        top: 28px;
        bottom: 28px;
        left: 28px;
        right: auto;
        border-top: 0;
        border-left: 1px dashed #DCCFC2;
    }

    .th-step {
        display: grid;
        grid-template-columns: 56px minmax(0, 1fr);
        column-gap: 20px;
        padding: 0 0 32px;
        text-align: left;
    }

    .th-step:last-child { padding-bottom: 0; }

    .th-step__num { grid-row: span 2; margin-bottom: 0; }

    .thito-home .th-step__title { margin-top: 14px; }

    .thito-home .th-step__text { margin: 0; max-width: none; }

    .th-tour__controls { justify-content: flex-start; }

    .th-cta { padding: 64px 0 80px; }

    .th-cta__panel {
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 24px;
        border-radius: 20px;
    }

    .th-cta__panel::before {
        top: auto;
        right: -150px;
        bottom: -150px;
        width: 260px;
        height: 260px;
        border-width: 40px;
    }

    /* Scanning a QR code on the same phone is not useful */
    .th-cta__qr { display: none; }

    .thito-home .footer .overview-block-ptb { padding: 56px 0 32px; }
}

@media (max-width: 479px) {
    .thito-home .th-features__grid { grid-template-columns: minmax(0, 1fr); }

    .th-feature { padding: 28px 24px 32px; }

    .thito-home .th-store img { width: 148px; }

    .th-tour__item { width: 216px; }

    .th-phone--sm { --th-phone-w: 216px; }
}

/* Footer columns stack below Bootstrap's md breakpoint */
@media (max-width: 991px) {
    .thito-home .footer .overview-block-ptb { text-align: center; }
}


/* ===================================================================================
 * Vibrant theme layer
 * Brings in the THITO app's look: the orange header gradient with soft light circles,
 * white rounded cards, and a geometric display face (Urbanist). Text placed on orange
 * stays charcoal for contrast; large headings use --th-accent (AA for large text).
 * =================================================================================== */

/* Typography */
.thito-home h1,
.thito-home h2,
.thito-home h3 { font-family: var(--th-font-display); }

.thito-home .th-h2 {
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.08;
    text-wrap: balance;
}

.thito-home .th-h2 span { color: var(--th-accent); }

.thito-home .th-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--th-brand-soft);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .07em;
    color: var(--th-brand-ink);
}

.thito-home .th-eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--th-brand);
}

/* Buttons */
.thito-home .th-btn--primary,
.thito-home .th-btn--primary:focus {
    background: var(--th-grad);
    background-size: 160% 100%;
    background-position: 0 0;
    color: var(--th-ink);
    box-shadow: 0 10px 24px -10px rgba(227, 95, 0, .75);
    transition: background-position .35s var(--th-ease), box-shadow .25s var(--th-ease), transform .2s var(--th-ease);
}

.thito-home .th-btn--primary:hover {
    background: var(--th-grad);
    background-size: 160% 100%;
    background-position: 100% 0;
    color: var(--th-ink);
    box-shadow: 0 14px 28px -10px rgba(227, 95, 0, .8);
    transform: translateY(-2px);
}

/* Hero */
.th-hero {
    padding-top: calc(var(--th-nav-h) + 72px);
    padding-bottom: 136px;
    border-bottom: 0;
    background:
        radial-gradient(800px 520px at 82% 30%, rgba(251, 166, 94, .38), transparent 62%),
        radial-gradient(600px 420px at 0% 100%, rgba(239, 118, 18, .12), transparent 60%),
        linear-gradient(180deg, #FFF7F0 0%, #FFE9D6 100%);
    scroll-margin-top: 0;
}

/* Wave into the next (white) section */
.th-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 72px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 72' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0 40C180 8 360 0 540 18s360 50 540 44 270-34 360-46v56H0z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
    pointer-events: none;
}

.thito-home .th-hero__title {
    font-family: var(--th-font-display);
    font-size: clamp(44px, 6.2vw, 76px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.03em;
}

.th-hero__title span { color: var(--th-accent); }

/* App-header gradient disc with the app's lighter circle */
.th-hero__visual::before {
    width: 480px;
    height: 480px;
    background: var(--th-grad);
    box-shadow: 0 40px 80px -30px rgba(227, 95, 0, .55);
}

.th-hero__visual::after {
    top: 14%;
    left: 74%;
    width: 200px;
    height: 200px;
    border: 0;
    background: rgba(255, 255, 255, .3);
}

.thito-home .th-hero__facts { gap: 10px; }

.thito-home .th-hero__facts li {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(239, 118, 18, .2);
    background: rgba(255, 255, 255, .85);
    font-weight: 600;
}

/* Product value */
.th-value__icon,
.th-feature__icon {
    border: 0;
    background: var(--th-grad);
    color: var(--th-ink);
    box-shadow: 0 8px 18px -10px rgba(227, 95, 0, .8);
}

.th-value__icon { width: 52px; height: 52px; border-radius: 16px; }

.thito-home .th-value__item h3 { font-size: 20px; font-weight: 700; }

/* Features: separate rounded cards on a peach band */
.th-features {
    border: 0;
    background:
        radial-gradient(700px 400px at 100% 0%, rgba(251, 166, 94, .22), transparent 60%),
        linear-gradient(180deg, #FFF4EA 0%, #FFF9F4 100%);
}

.thito-home .th-features__grid {
    gap: 20px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.th-feature {
    border: 1px solid rgba(239, 118, 18, .12);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 28px -20px rgba(120, 60, 10, .35);
    transition: transform .3s var(--th-ease), box-shadow .3s var(--th-ease), border-color .3s;
}

.th-feature::after { display: none; }

.th-feature:hover {
    background: #fff;
    border-color: rgba(239, 118, 18, .35);
    box-shadow: 0 22px 40px -22px rgba(227, 95, 0, .5);
    transform: translateY(-4px);
}

.th-feature__icon { width: 50px; height: 50px; border-radius: 15px; transition: transform .3s var(--th-ease); }

.th-feature:hover .th-feature__icon {
    background: var(--th-grad);
    color: var(--th-ink);
    transform: rotate(-6deg) scale(1.06);
}

.thito-home .th-feature__title { font-size: 19px; font-weight: 700; }

/* How it works */
.th-steps__list::before { border-top: 2px dashed rgba(239, 118, 18, .35); }

.th-step__num,
.th-step:first-child .th-step__num {
    width: 64px;
    height: 64px;
    border: 0;
    background: var(--th-grad);
    box-shadow: 0 0 0 8px #fff, 0 14px 28px -12px rgba(227, 95, 0, .8);
    font-family: var(--th-font-display);
    font-size: 20px;
    font-weight: 800;
    color: var(--th-ink);
}

.thito-home .th-step__title { font-size: 22px; font-weight: 700; }

/* App tour: dark band with orange glow so the orange app screens pop */
.th-tour {
    border-top: 0;
    background:
        radial-gradient(700px 420px at 10% 0%, rgba(239, 118, 18, .35), transparent 60%),
        radial-gradient(640px 420px at 95% 100%, rgba(251, 166, 94, .22), transparent 60%),
        var(--th-ink);
    color: #CFC7BF;
}

.thito-home .th-tour .th-h2 { color: #fff; }
.thito-home .th-tour .th-h2 span { color: var(--th-brand-light); }

.thito-home .th-tour .th-eyebrow {
    background: rgba(239, 118, 18, .18);
    color: #FFB98A;
}

.thito-home .th-tour .th-iconbtn {
    border-color: rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

.thito-home .th-tour .th-iconbtn:hover { border-color: var(--th-brand-light); background: rgba(239, 118, 18, .18); }
.thito-home .th-tour .th-iconbtn:disabled { opacity: .3; border-color: rgba(255, 255, 255, .2); background: transparent; }

.th-tour .th-phone--sm {
    box-shadow:
        inset 0 0 0 1px #3A3431,
        0 0 0 1px rgba(255, 255, 255, .08),
        0 30px 50px -24px rgba(0, 0, 0, .8),
        0 0 60px -20px rgba(239, 118, 18, .45);
}

.th-tour__track { scrollbar-color: rgba(255, 255, 255, .25) transparent; }

.th-tour__item figcaption strong { color: #fff; font-family: var(--th-font-display); font-size: 18px; font-weight: 700; }
.th-tour__item figcaption span { color: #BDB4AB; }

.thito-home .th-tour a:focus-visible,
.thito-home .th-tour button:focus-visible,
.thito-home .th-tour [tabindex]:focus-visible { outline-color: var(--th-brand-light) !important; }

/* Final CTA: the app's orange header, with its soft light circles */
.th-cta__panel {
    background: var(--th-grad);
    color: var(--th-ink);
    box-shadow: 0 30px 60px -30px rgba(227, 95, 0, .65);
}

.th-cta__panel::before {
    right: -120px;
    top: -170px;
    width: 440px;
    height: 440px;
    border: 0;
    background: rgba(255, 255, 255, .2);
    opacity: 1;
}

.th-cta__panel::after {
    content: "";
    position: absolute;
    left: -90px;
    bottom: -140px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    pointer-events: none;
}

.th-cta__copy,
.th-cta__qr { z-index: 1; }

.thito-home .th-cta .th-h2 { color: var(--th-ink); }
.th-cta__copy p { color: #2A2522; }

.thito-home .th-cta__panel .th-btn--primary,
.thito-home .th-cta__panel .th-btn--primary:focus {
    background: var(--th-ink);
    color: #fff;
    box-shadow: 0 10px 24px -12px rgba(28, 25, 23, .7);
}

.thito-home .th-cta__panel .th-btn--primary:hover { background: #000; color: #fff; }

.thito-home .th-cta__panel .th-btn--light,
.thito-home .th-cta__panel .th-btn--light:focus {
    background: #fff;
    color: var(--th-ink);
    box-shadow: none;
}

.thito-home .th-cta__panel .th-btn--light:hover { background: #FFF4EA; color: var(--th-ink); }

.thito-home .th-cta__panel a:focus-visible { outline-color: var(--th-ink) !important; }

/* Footer: app-gradient top edge */
.thito-home .footer .overview-block-ptb { border-top: 4px solid var(--th-brand); border-image: var(--th-grad) 1; }

/* Back to top */
.thito-home .th-totop,
.thito-home .th-totop:hover {
    border: 0;
    background: var(--th-grad);
    color: var(--th-ink);
    box-shadow: 0 12px 24px -10px rgba(227, 95, 0, .8);
}

@media (max-width: 1023px) {
    .th-hero { padding-top: calc(var(--th-nav-h) + 48px); padding-bottom: 112px; }
    .th-hero__visual::before { width: 400px; height: 400px; }
    .th-hero__visual::after { width: 160px; height: 160px; }
}

@media (max-width: 767px) {
    .th-hero { padding-top: calc(var(--th-nav-h) + 32px); padding-bottom: 96px; }
    .th-hero::after { height: 40px; }
    .th-hero__visual::before { width: 320px; height: 320px; }
    .th-hero__visual::after { top: 10%; left: 70%; width: 120px; height: 120px; }

    .th-step__num,
    .th-step:first-child .th-step__num { width: 56px; height: 56px; font-size: 18px; }

    .th-cta__panel::before { top: auto; right: -140px; bottom: -160px; width: 280px; height: 280px; border-width: 0; }
    .th-cta__panel::after { display: none; }
}

/* App tour: scroll-driven showcase ---------------------------------------------------
 * js/homepage.js adds .is-pinned and sets the section height. The inner panel sticks to
 * the viewport while the phones glide sideways and turn as they pass the centre.
 * Without the class (no JS, reduced motion, short windows) it stays a swipe row. */

.th-tour.is-pinned {
    scroll-margin-top: 0;
    --th-tour-w: clamp(160px, calc((100svh - 360px) / 1.9), 260px);
    padding: 0;
    background: var(--th-ink);
}

.th-tour.is-pinned .th-tour__pin {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    height: 100svh;
    padding: calc(var(--th-nav-h) + 12px) 0 20px;
    overflow: hidden;
    background:
        radial-gradient(700px 420px at 10% 0%, rgba(239, 118, 18, .35), transparent 60%),
        radial-gradient(640px 420px at 95% 100%, rgba(251, 166, 94, .22), transparent 60%),
        var(--th-ink);
}

.th-tour.is-pinned .th-section__head { margin-bottom: 24px; }

.th-tour.is-pinned .th-tour__track {
    overflow: visible;
    scroll-snap-type: none;
}

/* Half-window padding lets the first and last phones reach the centre */
.thito-home .th-tour.is-pinned .th-tour__list {
    padding: 8px calc(50vw - var(--th-tour-w) / 2) 8px;
    will-change: transform;
}

/* Phones scale with the window height so the whole panel fits on screen */
.th-tour.is-pinned .th-tour__item {
    position: relative;
    width: var(--th-tour-w);
}

.th-tour.is-pinned .th-phone--sm {
    --th-phone-w: 100%;
    transform-origin: center center;
    will-change: transform;
}

/* Per-phone captions stay for screen readers; sighted users get the still caption below */
.th-tour.is-pinned .th-tour__item figcaption {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Still caption under the phone in focus: fades in once a phone is selected */
.th-tour__caption { display: none; }

.th-tour.is-pinned .th-tour__caption {
    display: block;
    position: relative;
    z-index: 2;                      /* above the selected phone's glow, so the text stays crisp */
    min-height: 84px;
    max-width: 420px;
    margin: 24px auto 0;
    padding: 0 20px;
    text-align: center;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .28s var(--th-ease), transform .28s var(--th-ease);
}

.th-tour.is-pinned .th-tour__caption.is-visible {
    opacity: 1;
    transform: none;
}

.th-tour__caption-title {
    display: block;
    margin-bottom: 6px;
    font-family: var(--th-font-display);
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.th-tour__caption-text {
    display: block;
    font-size: 15px;
    line-height: 1.55;
    color: #D6CEC6;
}

@media (max-width: 767px) {
    .th-tour.is-pinned .th-tour__pin { padding-top: calc(var(--th-nav-h) + 8px); }
    .th-tour.is-pinned .th-section__head { margin-bottom: 16px; gap: 12px; }
    .th-tour.is-pinned { --th-tour-w: clamp(160px, calc((100svh - 400px) / 1.9), 250px); }
}

/* Main frame: the selected phone is lifted with an orange glow (size is set in js/homepage.js) */
.th-tour.is-pinned .th-tour__item .th-phone--sm {
    transition: box-shadow .35s var(--th-ease);
}

.th-tour.is-pinned .th-tour__item.is-main .th-phone--sm {
    box-shadow:
        inset 0 0 0 1px #3A3431,
        0 0 0 2px rgba(251, 166, 94, .55),
        0 36px 60px -24px rgba(0, 0, 0, .85),
        0 0 90px -10px rgba(239, 118, 18, .75);
}

/* Scroll progress: animate with transform (compositor only) instead of width */
.thito-home #scrollProgressBar {
    width: 100% !important;
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: none;
    will-change: transform;
}

/* App tour performance: the moving pieces get their own layers */
.th-tour.is-pinned .th-phone--sm { will-change: transform, opacity; backface-visibility: hidden; }
.th-tour.is-pinned .th-tour__pin { contain: layout paint; }

/* For every age (inside How it works) -------------------------------------------------
 * Each person stands in an arch in the app's orange tones; their head pops out above it. */

.th-ages {
    margin-top: 96px;
    text-align: center;
}

.th-ages__head { max-width: 560px; margin: 0 auto 40px; }

.thito-home .th-ages__title {
    margin: 0 0 10px;
    font-family: var(--th-font-display);
    font-size: clamp(28px, 3.2vw, 38px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.02em;
    color: var(--th-ink);
}

.th-ages__title span { color: var(--th-accent); }

.thito-home .th-ages__lead { font-size: 17px; line-height: 1.6; color: var(--th-muted); }

.thito-home .th-ages__row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 260px));
    justify-content: center;
    gap: 40px;
}

.th-age { --th-frame-h: 360px; }

.th-age__frame {
    position: relative;
    height: var(--th-frame-h);
    /* Clip the sides (also for layout, so wide photos never cause sideways scrolling) and the
       rounded bottom to the arch; leave the top open so heads pop out */
    overflow: hidden;
    overflow: clip visible;
    clip-path: inset(-40% 0 0 0 round 0 0 28px 28px);
}

.th-age__arch {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 72%;
    overflow: hidden;
    border-radius: 999px 999px 28px 28px;
}

/* The app's soft light circle */
.th-age__arch::after {
    content: "";
    position: absolute;
    top: -18%;
    right: -22%;
    width: 70%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(255, 255, 255, .28);
}

.th-age--kid .th-age__arch   { background: linear-gradient(160deg, #FFE9D6 0%, #FFC48F 100%); }
.th-age--young .th-age__arch { background: var(--th-grad); }
.th-age--old .th-age__arch   { background: linear-gradient(160deg, #FFD8B3 0%, #F39A4C 100%); }

/* Natural relative heights: the child stands shorter than the adults */
.th-age--kid   { --th-person-h: 84%; }
.th-age--young { --th-person-h: 100%; }
.th-age--old   { --th-person-h: 96%; }

.th-age picture { display: contents; }

.thito-home .th-age__person {
    position: absolute;
    left: 50%;
    bottom: 0;
    z-index: 1;
    width: auto;
    height: var(--th-person-h, 100%);
    max-width: none;
    transform: translateX(-50%);
}


/* Soft ground shadow under each arch */
.th-age .th-age__label::before {
    content: "";
    display: block;
    width: 64%;
    height: 12px;
    margin: -6px auto 14px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(120, 60, 10, .22), transparent);
}

.thito-home .th-age__label {
    margin-top: 0;
    line-height: 1.3;
}

.th-age__label strong {
    display: block;
    font-family: var(--th-font-display);
    font-size: 20px;
    font-weight: 800;
    color: var(--th-ink);
}

.th-age__label span {
    display: block;
    margin-top: 2px;
    font-size: 14px;
    font-weight: 500;
    color: var(--th-muted);
}

/* People rise into place one after another */
@media (prefers-reduced-motion: no-preference) {
    .th-js .th-age.th-reveal { transition-delay: var(--th-age-delay, 0ms); }

    .th-js .th-age.th-reveal .th-age__person {
        transform: translateX(-50%) translateY(40px);
        opacity: 0;
        transition: transform .8s var(--th-ease) calc(var(--th-age-delay, 0ms) + 120ms),
                    opacity .6s var(--th-ease) calc(var(--th-age-delay, 0ms) + 120ms);
    }

    .th-js .th-age.th-reveal.is-visible .th-age__person { transform: translateX(-50%); opacity: 1; }
}

@media (max-width: 1023px) {
    .thito-home .th-ages__row { grid-template-columns: repeat(3, minmax(0, 220px)); gap: 24px; }
    .th-age { --th-frame-h: 300px; }
}

@media (max-width: 767px) {
    .th-ages { margin-top: 64px; }
    .th-ages__head { margin-bottom: 28px; }
    .thito-home .th-ages__lead { font-size: 15px; }
    .thito-home .th-ages__row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .th-age { --th-frame-h: 200px; }
    .th-age__frame { clip-path: inset(-40% 0 0 0 round 0 0 18px 18px); }
    .th-age__arch { border-radius: 999px 999px 18px 18px; }
    .th-age__label strong { font-size: 16px; }
    .th-age__label span { font-size: 12px; }
}

/* Hero question: "Who are you looking after?" ----------------------------------------- */

.th-ask {
    min-width: 0;
    margin: 4px 0 24px;
    padding: 0;
    border: 0;
}

/* Without JavaScript the answers can't respond, so only the lead text shows */
html:not(.th-js) .th-ask { display: none; }

.thito-home .th-ask__hint {
    display: block;
    width: auto;
    margin: 0 0 12px;
    padding: 0;
    border: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--th-muted);
}

.th-ask__options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.th-ask__chip { position: relative; margin: 0; cursor: pointer; }

.th-ask__chip input {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.th-ask__chip span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border: 1.5px solid rgba(239, 118, 18, .3);
    border-radius: 999px;
    background: #fff;
    font-size: 15px;
    font-weight: 600;
    color: var(--th-ink);
    box-shadow: 0 6px 16px -12px rgba(120, 60, 10, .45);
    transition: background-color .2s, border-color .2s, box-shadow .2s, transform .2s var(--th-ease);
}

.th-ask__chip:hover span { border-color: var(--th-brand); transform: translateY(-1px); }

.th-ask__chip input:checked + span {
    border-color: transparent;
    background: var(--th-grad);
    box-shadow: 0 10px 22px -12px rgba(227, 95, 0, .8);
}

.th-ask__chip input:focus-visible + span {
    outline: 2px solid var(--th-brand-ink);
    outline-offset: 3px;
}

/* Result area: the intro and all answers share one grid cell, so its height is always the
   tallest of them from the first paint and nothing below ever moves */
.th-ask__result {
    display: grid;
    margin-bottom: 32px;
}

.th-ask__result > * { grid-area: 1 / 1; }

.th-ask__answer { visibility: hidden; }
.th-ask__answer.is-shown { visibility: visible; }
.th-ask__intro.is-gone { visibility: hidden; }

/* Without JavaScript only the intro is used */
html:not(.th-js) .th-ask__answer { display: none; }

.thito-home .th-ask__result .th-hero__lead { margin-bottom: 0; }

.thito-home .th-ask__title {
    margin: 0 0 12px;
    font-family: var(--th-font-display);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--th-ink);
}

.thito-home .th-ask__points {
    display: grid;
    gap: 8px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.th-ask__points li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 500;
    color: var(--th-ink-2);
}

.th-ask__points li::before {
    content: "";
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C1917' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 13px no-repeat,
        var(--th-grad);
}

.thito-home .th-ask__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 700;
    color: var(--th-brand-ink);
}

.thito-home .th-ask__more .th-icon { width: 17px; height: 17px; transition: transform .2s var(--th-ease); }
.thito-home .th-ask__more:hover { color: var(--th-brand-ink); }
.thito-home .th-ask__more:hover .th-icon { transform: translateX(3px); }

@media (prefers-reduced-motion: no-preference) {
    .th-ask__answer.is-shown,
    .th-ask__intro.is-back { animation: th-answer-in .45s var(--th-ease) both; }

    .th-ask__answer.is-shown li { animation: th-answer-in .45s var(--th-ease) both; }
    .th-ask__answer.is-shown li:nth-child(1) { animation-delay: .08s; }
    .th-ask__answer.is-shown li:nth-child(2) { animation-delay: .16s; }
    .th-ask__answer.is-shown li:nth-child(3) { animation-delay: .24s; }
    .th-ask__answer.is-shown li:nth-child(4) { animation-delay: .32s; }
    .th-ask__answer.is-shown .th-ask__more { animation: th-answer-in .45s var(--th-ease) .40s both; }

}

@keyframes th-answer-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

@media (max-width: 767px) {
    .th-ask__options { justify-content: center; }
    .th-ask__chip span { min-height: 44px; padding: 0 16px; font-size: 14px; }
    .thito-home .th-ask__hint { text-align: center; }
    .th-ask__answer { justify-self: center; max-width: 100%; text-align: left; }
    .th-ask__result { text-align: center; }
    .thito-home .th-ask__title { font-size: 21px; text-align: center; }
    .th-ask__more { justify-content: center; width: 100%; }
}

/* Hero on phones: app mockup first, compact question, answers in a card --------------- */
@media (max-width: 767px) {
    .th-hero { padding-top: calc(var(--th-nav-h) + 16px); padding-bottom: 72px; }
    .th-hero__grid { gap: 18px; }

    /* Phone mockup above the copy, smaller, so taps visibly change the screen */
    .th-hero__visual { order: -1; padding: 6px 0 0; }
    .th-phone--hero { --th-phone-w: 190px; padding: 7px; border-radius: 32px; }
    .th-hero .th-phone--hero .th-phone__screen { border-radius: 25px; }
    .th-hero__visual::before { width: 250px; height: 250px; }
    .th-hero__visual::after { top: 2%; left: 64%; width: 90px; height: 90px; }

    .th-hero .th-eyebrow { margin-bottom: 10px; }
    .thito-home .th-hero__title { margin-bottom: 14px; font-size: 38px; }
    .th-hero__title span { display: block; }

    /* Answers as a tidy 2 x 2 grid of equal buttons */
    .th-ask { margin: 0 0 14px; }
    .thito-home .th-ask__hint { margin-bottom: 10px; font-size: 13px; }
    .th-ask__options {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .th-ask__chip span { justify-content: center; width: 100%; min-height: 46px; padding: 0 10px; font-size: 14px; }

    /* Intro and answers sit in a soft card, so the reserved height reads as intentional */
    .th-ask__result {
        margin-bottom: 22px;
        padding: 16px 18px;
        border: 1px solid rgba(239, 118, 18, .16);
        border-radius: 20px;
        background: rgba(255, 255, 255, .78);
        box-shadow: 0 12px 26px -20px rgba(120, 60, 10, .45);
        text-align: left;
    }
    .th-ask__answer { justify-self: stretch; }
    .th-ask__result .th-ask__intro { align-self: center; }
    .thito-home .th-ask__result .th-hero__lead { font-size: 15px; line-height: 1.6; text-align: left; }
    .thito-home .th-ask__title { margin-bottom: 10px; font-size: 19px; text-align: left; }
    .th-ask__points li { align-items: flex-start; font-size: 14.5px; line-height: 1.45; }
    .th-ask__points li::before { width: 20px; height: 20px; margin-top: 0; }
    .th-ask__more { justify-content: flex-start; width: auto; font-size: 14px; }

    .thito-home .th-hero .th-store img { width: 140px; }
    .thito-home .th-hero__facts { margin-top: 18px; gap: 8px; }
    .thito-home .th-hero__facts li { padding: 6px 12px; font-size: 13px; }
}

/* "Every age" on phones: one family-photo group instead of three narrow arches -------- */
@media (max-width: 767px) {
    .thito-home .th-ages__row {
        position: relative;
        margin: 0 -20px;                 /* use the full screen width */
        gap: 0;
        overflow: hidden;
        overflow: clip;
    }

    /* One soft disc behind the whole group */
    .th-ages__row::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        width: 236px;
        height: 236px;
        border-radius: 50%;
        background:
            radial-gradient(circle at 70% 25%, rgba(255, 255, 255, .45) 0 18%, transparent 19%),
            linear-gradient(160deg, #FFE3CB 0%, #FBA65E 100%);
        transform: translateX(-50%);
        /* Fade the lower half away so it reads as a soft glow, not a hard circle */
        -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent 85%);
        mask-image: linear-gradient(to bottom, #000 35%, transparent 85%);
    }

    .th-age { --th-frame-h: 230px; position: relative; }
    .th-age--kid   { --th-person-h: 74%; z-index: 3; }
    .th-age--young { --th-person-h: 100%; z-index: 1; }
    .th-age--old   { --th-person-h: 86%; z-index: 2; }

    .th-age__arch { display: none; }

    .th-age__frame {
        overflow: visible;
        clip-path: none;
    }

    /* Lean the outer two towards the middle so the group overlaps like a family photo,
       and fade the bottom of each photo instead of a hard cut */
    .thito-home .th-age__person {
        -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
        mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
    }

    .thito-home .th-age--kid .th-age__person { left: 64%; }
    .thito-home .th-age--old .th-age__person { left: 34%; }

    .th-age .th-age__label::before { display: none; }
    .thito-home .th-age__label { position: relative; margin-top: 12px; }
}

/* Features on phones: compact rows (icon left, text right) instead of tall cards ------- */
@media (max-width: 767px) {
    .th-features .th-section__head { margin-bottom: 24px; }
    .th-features .th-section__head .th-body { font-size: 15px; }

    .thito-home .th-features__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .th-features .th-feature {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr);
        column-gap: 14px;
        align-items: start;
        padding: 14px 16px;
        border-radius: 16px;
        box-shadow: 0 6px 18px -16px rgba(120, 60, 10, .4);
    }

    .th-features .th-feature__icon {
        grid-row: span 2;
        width: 44px;
        height: 44px;
        margin: 0;
        border-radius: 12px;
    }

    .th-features .th-feature__icon .th-icon { width: 20px; height: 20px; }

    .thito-home .th-features .th-feature__title { margin: 1px 0 3px; font-size: 16px; }
    .thito-home .th-features .th-feature__text { font-size: 14px; line-height: 1.5; }

    /* No lift on tap */
    .th-features .th-feature:hover { transform: none; }
}

/* Shorter homepage on phones ------------------------------------------------------------ */
@media (max-width: 767px) {
    /* Section rhythm */
    .thito-home .th-section { padding: 52px 0; }
    .thito-home .th-section__head { margin-bottom: 22px; gap: 10px; }
    .thito-home .th-h2 { font-size: 27px; }
    .thito-home .th-body { font-size: 15px; line-height: 1.6; }

    /* Hero */
    .th-hero { padding-bottom: 52px; }

    /* What is THITO: tighter list */
    .th-value__grid { gap: 20px; }
    .th-value__item { gap: 14px; padding: 16px 0; }
    .th-value__icon { width: 42px; height: 42px; border-radius: 12px; }
    .thito-home .th-value__item h3 { margin: 0 0 3px; font-size: 17px; }
    .th-value__item p { font-size: 14px; line-height: 1.5; }

    /* Features: 2 x 4 grid of small tiles (icon + name) */
    .thito-home .th-features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .th-features .th-feature {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 14px;
    }
    .th-features .th-feature__icon { width: 40px; height: 40px; }
    .thito-home .th-features .th-feature__title { margin: 0; font-size: 15px; line-height: 1.3; }
    .thito-home .th-features .th-feature__text { display: none; }

    /* How it works: compact steps */
    .th-step { padding-bottom: 20px; column-gap: 14px; grid-template-columns: 44px minmax(0, 1fr); }
    .th-step__num,
    .th-step:first-child .th-step__num { width: 44px; height: 44px; font-size: 15px; box-shadow: 0 0 0 6px #fff, 0 10px 20px -12px rgba(227, 95, 0, .8); }
    .th-steps__list::before { top: 22px; bottom: 22px; left: 22px; }
    .thito-home .th-step__title { margin-top: 10px; font-size: 17px; }
    .thito-home .th-step__text { font-size: 14px; line-height: 1.5; }
    .th-ages { margin-top: 40px; }
    .th-age { --th-frame-h: 200px; }
    .th-ages__row::before { width: 210px; height: 210px; }

    /* Download panel */
    .thito-home .th-cta { padding: 40px 0 52px; }
    .th-cta__panel { padding: 30px 22px; }
    .th-cta__copy p { margin-bottom: 20px; font-size: 15px; }

    /* Footer: smaller logo, links in two columns, social icons inline */
    .thito-home .footer .overview-block-ptb { padding: 36px 0 20px; }
    .thito-home .footer .overview-block-ptb .img-responsive { max-width: 130px; margin: 0 auto 18px; }
    .thito-home .footer h4 { margin: 0 0 10px !important; }
    .thito-home .footer .list-unstyled {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px 16px;
        max-width: 320px;
        margin: 0 auto;
    }
    .thito-home .footer .list-unstyled li { margin: 0; }
    .thito-home .footer .list-unstyled a { font-size: 14px; }
    .thito-home .footer .info-share { margin-top: 18px; }
    .thito-home .footer .footer-copyright { font-size: 12.5px; }
}

@media (max-width: 767px) {
    .th-cta .th-stores { flex-wrap: nowrap; gap: 10px; }
    .thito-home .th-cta .th-store img { width: 136px; }
}

/* Phones: bring back the short feature descriptions, in smaller text */
@media (max-width: 767px) {
    .thito-home .th-features .th-feature__text {
        display: block;
        margin-top: -4px;
        font-size: 12.5px;
        line-height: 1.45;
        color: var(--th-muted);
    }
    .th-features .th-feature { gap: 8px; }
}

/* Video guide (after the App tour) -------------------------------------------------------- */
.th-video { padding-bottom: 32px; }

.thito-home .th-video__lead { margin-top: 12px; }

.th-video__frame {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    background: var(--th-ink);
    box-shadow: 0 30px 60px -30px rgba(120, 60, 10, .55);
}

.th-video__frame::before {           /* app-orange edge */
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border: 3px solid rgba(239, 118, 18, .35);
    border-radius: inherit;
    pointer-events: none;
}

.th-video__play,
.th-video__frame iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.th-video__play img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--th-ease), filter .3s;
}

.th-video__play:hover img { transform: scale(1.03); filter: brightness(.9); }

.th-video__button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: var(--th-grad);
    box-shadow: 0 0 0 10px rgba(255, 255, 255, .28), 0 16px 34px -10px rgba(0, 0, 0, .55);
    transform: translate(-50%, -50%);
    transition: transform .25s var(--th-ease), box-shadow .25s;
}

.th-video__button::after {           /* play triangle */
    content: "";
    position: absolute;
    top: 50%;
    left: 54%;
    border-style: solid;
    border-width: 14px 0 14px 23px;
    border-color: transparent transparent transparent var(--th-ink);
    transform: translate(-50%, -50%);
}

.th-video__play:hover .th-video__button { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 0 0 14px rgba(255, 255, 255, .3), 0 16px 34px -10px rgba(0, 0, 0, .55); }

.thito-home .th-video__play:focus-visible { outline-offset: -6px; border-radius: 24px; }

@media (max-width: 767px) {
    .thito-home .th-video { padding: 44px 0 16px; }
    .th-video__frame { margin: 0 -4px; border-radius: 16px; }
    .th-video__frame::before { border-width: 2px; }
    .th-video__button { width: 62px; height: 62px; box-shadow: 0 0 0 7px rgba(255, 255, 255, .28), 0 12px 26px -10px rgba(0, 0, 0, .55); }
    .th-video__button::after { border-width: 11px 0 11px 18px; }
}

/* FAQ (end of homepage) ------------------------------------------------------------------ */
.th-faq {
    background: var(--th-bg-warm);
    border-top: 1px solid var(--th-line);
}

.th-faq__grid {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 40px 72px;
    align-items: start;
}

.th-faq__intro { position: sticky; top: calc(var(--th-nav-h) + 32px); }
.thito-home .th-faq__intro .th-h2 { margin-bottom: 16px; }

.thito-home .th-faq__contact,
.thito-home .th-faq__answer a {
    font-weight: 600;
    color: var(--th-brand-ink);
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.th-faq__list { display: grid; gap: 12px; }

.th-faq__item {
    border: 1px solid rgba(239, 118, 18, .14);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 22px -20px rgba(120, 60, 10, .4);
    transition: border-color .2s, box-shadow .2s;
}

.th-faq__item[open] {
    border-color: rgba(239, 118, 18, .35);
    box-shadow: 0 14px 30px -22px rgba(227, 95, 0, .45);
}

.th-faq__item summary {
    position: relative;
    display: block;
    padding: 20px 64px 20px 24px;
    cursor: pointer;
    list-style: none;
    font-family: var(--th-font-display);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--th-ink);
}

.th-faq__item summary::-webkit-details-marker { display: none; }

/* Plus / minus button */
.th-faq__item summary::before,
.th-faq__item summary::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 24px;
    width: 14px;
    height: 2px;
    margin-top: -1px;
    border-radius: 2px;
    background: var(--th-ink);
    transition: transform .25s var(--th-ease);
}

.th-faq__item summary::after { transform: rotate(90deg); }
.th-faq__item[open] summary::after { transform: rotate(0deg); }

.th-faq__item summary:hover { color: var(--th-brand-ink); }

.thito-home .th-faq__item summary:focus-visible { outline-offset: -2px; border-radius: 18px; }

.th-faq__answer { padding: 0 24px 22px; }

.thito-home .th-faq__answer p {
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--th-muted);
}

@media (prefers-reduced-motion: no-preference) {
    .th-faq__item[open] .th-faq__answer { animation: th-answer-in .35s var(--th-ease) both; }
}

@media (max-width: 1023px) {
    .th-faq__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .th-faq__intro { position: static; }
}

@media (max-width: 767px) {
    .th-faq__list { gap: 8px; }
    .th-faq__item { border-radius: 14px; }
    .th-faq__item summary { padding: 16px 52px 16px 18px; font-size: 16px; }
    .th-faq__item summary::before,
    .th-faq__item summary::after { right: 18px; }
    .th-faq__answer { padding: 0 18px 16px; }
    .thito-home .th-faq__answer p { font-size: 14.5px; }
}

/* THITO marks: faded logo marks drifting behind section content (partials/marks.php) ----- */
.th-has-marks { position: relative; overflow: hidden; overflow: clip; isolation: isolate; }
.th-has-marks > .th-container { position: relative; z-index: 1; }

.th-marks { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.thito-home .th-mark {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: auto;
    max-width: none;
    height: var(--h);
    margin: calc(var(--h) / -2) 0 0 calc(var(--h) * -.4);
    opacity: var(--o);
    transform: rotate(var(--r));
    animation: th-mark-drift var(--d) ease-in-out var(--delay) infinite alternate;
    animation-play-state: paused;          /* runs only while the section is near the screen (js/homepage.js) */
}

.th-has-marks.is-near .th-mark,
html:not(.th-js) .th-mark { animation-play-state: running; }

@keyframes th-mark-drift {
    from { transform: translate3d(0, 0, 0) rotate(var(--r)); }
    to   { transform: translate3d(10px, -18px, 0) rotate(calc(var(--r) + 8deg)); }
}

/* Phones: only the marks flagged for small screens, a little smaller */
@media (max-width: 767px) {
    .thito-home .th-mark--wide { display: none; }
    .thito-home .th-mark { height: calc(var(--h) * .7); margin: calc(var(--h) * -.35) 0 0 calc(var(--h) * -.28); }
}

@media (prefers-reduced-motion: reduce) {
    .thito-home .th-mark { animation: none; }
}

/* Hero phone: frame matches the app home screenshot (1170 x 2532), so it is shown whole */
.th-hero .th-phone--hero .th-phone__screen { aspect-ratio: 1170 / 2532; }

/* iPhone-style mockups (every .th-phone: homepage hero, App tour, About hero) ----------
 * Black bezel inside a titanium edge, Dynamic Island, side buttons. Sizes are relative,
 * so the same rules work for every phone size. */
.th-phone {
    border: 1.5px solid #5E5D63;
    background: #050506;
}

/* Titanium edge highlight just inside the frame */
.th-phone {
    background:
        linear-gradient(#050506, #050506) padding-box,
        linear-gradient(145deg, #8E8D93 0%, #3C3B40 35%, #6F6E74 60%, #2F2E33 100%) border-box;
    border-color: transparent;
}

/* Dynamic Island */
.th-phone::after {
    content: "";
    position: absolute;
    top: 1.75%;
    left: 50%;
    z-index: 2;
    width: 30%;
    aspect-ratio: 3.3;
    border-radius: 999px;
    background: #000;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
    transform: translateX(-50%);
    pointer-events: none;
}

/* Side buttons: action + volume on the left, power on the right */
.th-phone::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -4px;
    right: -4px;
    z-index: -1;
    background:
        linear-gradient(90deg, #2A292E, #57565C) left 0 top 17% / 4px 4.5% no-repeat,
        linear-gradient(90deg, #2A292E, #57565C) left 0 top 25% / 4px 8% no-repeat,
        linear-gradient(90deg, #2A292E, #57565C) left 0 top 35% / 4px 8% no-repeat,
        linear-gradient(90deg, #57565C, #2A292E) right 0 top 27% / 4px 12% no-repeat;
    border-radius: 2px;
    pointer-events: none;
}

/* Rounder, iPhone-like corners */
.th-phone--hero { border-radius: 52px; }
.th-phone--hero .th-phone__screen { border-radius: 42px; }
.th-phone--sm { border-radius: 38px; }
.th-phone--sm .th-phone__screen { border-radius: 31px; }

@media (max-width: 767px) {
    .th-phone--hero { border-radius: 34px; }
    .th-hero .th-phone--hero .th-phone__screen,
    .th-pagehero .th-phone--hero .th-phone__screen { border-radius: 27px; }
    .th-phone::before { left: -3px; right: -3px; background-size: 3px 4.5%, 3px 8%, 3px 8%, 3px 12%; }
}

@media (max-width: 479px) {
    .th-phone--sm { border-radius: 34px; }
    .th-phone--sm .th-phone__screen { border-radius: 27px; }
}

/* Screenshots without their own status bar (App tour, About hero): add an iPhone status
   bar in the app's header orange above them, so the Dynamic Island never covers content. */
.th-phone--sm .th-phone__screen,
.th-pagehero .th-phone__screen {
    position: relative;
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    padding-top: 12.5%;
    background: linear-gradient(90deg, #F07A1C, #F59A4E);
}

.th-phone--sm .th-phone__screen img,
.th-pagehero .th-phone__screen img { flex: 1; min-height: 0; height: auto; }

/* Time on the left */
.th-phone--sm .th-phone__screen::before,
.th-pagehero .th-phone__screen::before {
    content: "9:41";
    position: absolute;
    top: 3.4cqw;
    left: 9cqw;
    font-family: -apple-system, 'Inter', system-ui, sans-serif;
    font-size: 4.6cqw;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.01em;
    color: #fff;
}

/* Signal, Wi-Fi and battery on the right */
.th-phone--sm .th-phone__screen::after,
.th-pagehero .th-phone__screen::after {
    content: "";
    position: absolute;
    top: 3.4cqw;
    right: 7.5cqw;
    width: 19cqw;
    height: 4.6cqw;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 76 18' fill='%23fff'%3E%3Crect x='0' y='12' width='3.5' height='5' rx='1'/%3E%3Crect x='5.5' y='9' width='3.5' height='8' rx='1'/%3E%3Crect x='11' y='5.5' width='3.5' height='11.5' rx='1'/%3E%3Crect x='16.5' y='2' width='3.5' height='15' rx='1'/%3E%3Cpath d='M35 4.5a12 12 0 0 1 8.5 3.5l1.8-1.9A14.6 14.6 0 0 0 35 1.9 14.6 14.6 0 0 0 24.7 6.1l1.8 1.9A12 12 0 0 1 35 4.5zm0 5a7 7 0 0 1 5 2.1l1.8-1.9A9.6 9.6 0 0 0 35 6.9a9.6 9.6 0 0 0-6.8 2.8l1.8 1.9a7 7 0 0 1 5-2.1zm0 5 2.4-2.5a3.4 3.4 0 0 0-4.8 0z'/%3E%3Crect x='51' y='3' width='21' height='12' rx='3.5' fill='none' stroke='%23fff' stroke-opacity='.55' stroke-width='1.4'/%3E%3Crect x='53.2' y='5.2' width='16.6' height='7.6' rx='2'/%3E%3Cpath d='M73.6 7v4a2 2 0 0 0 0-4z' fill-opacity='.55'/%3E%3C/svg%3E") right center / contain no-repeat;
}

/* Screenshots that include their own iPhone status bar (e.g. the new Home screen):
   no added status bar; the image fills the screen from the top */
.th-phone--sm .th-phone__screen--native {
    padding-top: 0;
    background: #fff;
}
.th-phone--sm .th-phone__screen--native::before,
.th-phone--sm .th-phone__screen--native::after { content: none; }
.th-phone--sm .th-phone__screen--native img { flex: 1 1 0; height: 100%; }

/* About hero: shows the same Home screenshot (with its own status bar) as the homepage hero */
.th-pagehero .th-phone__screen--native { padding-top: 0; background: #fff; aspect-ratio: 1170 / 2532; }
.th-pagehero .th-phone__screen--native::before,
.th-pagehero .th-phone__screen--native::after { content: none; }

/* Light status bar (dark text/icons on white) for screenshots that start on white content */
.th-phone--sm .th-phone__screen--light { background: #fff; }
.th-phone--sm .th-phone__screen--light::before { color: #1C1917; }
.th-phone--sm .th-phone__screen--light::after { filter: invert(1) brightness(.12); }

/* <picture> wrappers (WebP + JPEG fallback) must not affect the phone screen layout */
.th-phone__screen picture { display: contents; }

/* Mobile menu: drops down and fades in; links follow one after another ---------------- */
@media (max-width: 1199px) {
    .th-js .th-nav__menu {
        display: flex;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-10px) scale(.97);
        transform-origin: top right;
        pointer-events: none;
        transition: opacity .22s ease, transform .3s var(--th-ease), visibility 0s linear .3s;
    }

    .th-js .th-nav__menu.is-open {
        visibility: visible;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        transition: opacity .22s ease, transform .3s var(--th-ease), visibility 0s;
    }

    .th-js .th-nav__links li,
    .th-js .th-nav__cta {
        opacity: 0;
        transform: translateY(-6px);
        transition: opacity .2s ease, transform .25s var(--th-ease);
    }

    .th-js .th-nav__menu.is-open .th-nav__links li,
    .th-js .th-nav__menu.is-open .th-nav__cta { opacity: 1; transform: none; }

    .th-js .th-nav__menu.is-open .th-nav__links li:nth-child(1) { transition-delay: .04s; }
    .th-js .th-nav__menu.is-open .th-nav__links li:nth-child(2) { transition-delay: .07s; }
    .th-js .th-nav__menu.is-open .th-nav__links li:nth-child(3) { transition-delay: .10s; }
    .th-js .th-nav__menu.is-open .th-nav__links li:nth-child(4) { transition-delay: .13s; }
    .th-js .th-nav__menu.is-open .th-nav__links li:nth-child(5) { transition-delay: .16s; }
    .th-js .th-nav__menu.is-open .th-nav__links li:nth-child(6) { transition-delay: .19s; }
    .th-js .th-nav__menu.is-open .th-nav__links li:nth-child(7) { transition-delay: .22s; }
    .th-js .th-nav__menu.is-open .th-nav__cta { transition-delay: .26s; }

    /* Hamburger lines morph into a cross */
    .th-nav__bars,
    .th-nav__bars::before,
    .th-nav__bars::after { transition: transform .3s var(--th-ease), background-color .2s; }
}

@media (prefers-reduced-motion: reduce) {
    .th-js .th-nav__menu,
    .th-js .th-nav__menu.is-open,
    .th-js .th-nav__links li,
    .th-js .th-nav__cta { transition: none !important; transform: none !important; }
}

/* Phone frame image (images/phone-frame, cut out of img/iphonepng/phone2.png, a generic
 * AI-generated phone) --------------------------------------------------------------------
 * Overrides the CSS-drawn phone everywhere. The frame (775 x 1506) sits on top; the
 * screenshot fills the transparent screen opening behind it (insets measured from the PNG). */
.th-phone {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    aspect-ratio: 775 / 1506;
    box-shadow: none;
    filter: drop-shadow(0 30px 40px rgba(90, 45, 10, .28));
}

.th-phone::before { content: none; }

.th-phone::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    width: auto;
    aspect-ratio: auto;
    border-radius: 0;
    background: url("../images/phone-frame.webp?v=2") center / 100% 100% no-repeat;
    box-shadow: none;
    transform: none;
}

/* Screen opening */
.th-phone .th-phone__screen,
.th-phone--hero .th-phone__screen,
.th-phone--sm .th-phone__screen,
.th-hero .th-phone--hero .th-phone__screen,
.th-pagehero .th-phone--hero .th-phone__screen {
    position: absolute;
    top: 2.52%;
    bottom: 2.59%;
    left: 5.94%;
    right: 5.94%;
    border-radius: 9.1% / 4.35%;
    aspect-ratio: auto;
}

.th-phone,
.th-phone--hero,
.th-phone--sm { border-radius: 0; }

/* App tour: keep the glow on the selected phone, now around the frame shape */
.th-tour .th-phone--sm,
.th-tour.is-pinned .th-tour__item .th-phone--sm,
.th-tour.is-pinned .th-tour__item.is-main .th-phone--sm { box-shadow: none; }
.th-tour .th-phone--sm { filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .55)); }
.th-tour.is-pinned .th-tour__item.is-main .th-phone--sm { filter: drop-shadow(0 0 28px rgba(239, 118, 18, .55)) drop-shadow(0 26px 30px rgba(0, 0, 0, .6)); }

@media (max-width: 767px) {
    .th-phone { filter: drop-shadow(0 18px 24px rgba(90, 45, 10, .25)); }
}

/* "Every age" on phones wider than ~400px (e.g. 440 x 956): keep the family group at its
   390px-phone width and centre it, so it stays clustered around the circle */
@media (max-width: 767px) {
    .thito-home .th-ages__row {
        width: min(100% + 40px, 400px);
        margin-left: calc(50% - min(50% + 20px, 200px));
        margin-right: calc(50% - min(50% + 20px, 200px));
    }
}

/* "Every age" on phones: place the kid and the senior a fixed distance from the adult in the
   middle (columns are equal thirds, so the adult's centre is 150% of a column from the kid's
   column start), so the group looks identical on every phone width */
@media (max-width: 767px) {
    .th-ages { --th-kid-gap: 100px; --th-senior-gap: 110px; }
    .thito-home .th-age--kid .th-age__person { left: calc(150% - var(--th-kid-gap)); }
    .thito-home .th-age--old .th-age__person { left: calc(var(--th-senior-gap) - 50%); }
}

/* App tour (pinned): vertical panning stays with the browser; sideways swipes go to js/homepage.js */
.th-tour.is-pinned .th-tour__pin { touch-action: pan-y; }

/* App tour on touch screens: no filter shadows on the moving phones (they forced repaints every
   frame); the selected phone gets a soft glow behind it that only fades (GPU-composited) */
@media (pointer: coarse) {
    .th-tour .th-phone--sm,
    .th-tour.is-pinned .th-tour__item .th-phone--sm,
    .th-tour.is-pinned .th-tour__item.is-main .th-phone--sm { filter: none; }

    .th-tour .th-phone--sm::before {
        content: "";
        position: absolute;
        inset: -10% -24%;
        z-index: -1;
        background: radial-gradient(closest-side, rgba(239, 118, 18, .5), rgba(239, 118, 18, 0));
        opacity: 0;
        transition: opacity .25s ease;
        pointer-events: none;
    }

    .th-tour.is-pinned .th-tour__item.is-main .th-phone--sm::before { opacity: 1; }
}

/* App tour: on the last phone, a small bouncing down-arrow hints that the page continues
   (decorative only: not focusable, not clickable) */
.th-tour__more { display: none; }

.th-tour.is-pinned .th-tour__more {
    display: block;
    position: relative;
    flex: none;
    width: 28px;
    height: 28px;
    margin: 2px auto 0;              /* space is always reserved, so nothing moves when it appears */
    border: 1.5px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .3s ease, transform .3s var(--th-ease);
}

.th-tour__more::after {
    content: "";
    position: absolute;
    top: 7px;
    left: 50%;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

.th-tour.is-pinned.is-end .th-tour__more {
    opacity: .85;
    transform: none;
    animation: th-more-bounce 1.6s ease-in-out .3s infinite;
}

@keyframes th-more-bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(4px); }
}

@media (prefers-reduced-motion: reduce) {
    .th-tour.is-pinned.is-end .th-tour__more { animation: none; }
}

/* App tour fixes: (1) the phone-wide section padding must not apply to the pinned tour,
   otherwise the panel un-pins ~50px early and slides away at the last phone;
   (2) leave room for the "more below" arrow under the caption on short screens */
.thito-home .th-tour.is-pinned { padding: 0; }
.th-tour.is-pinned { --th-tour-w: clamp(100px, calc((100svh - 400px) / 2.15), 260px); }   /* frame is 414 x 854 */
@media (max-width: 767px) {
    .th-tour.is-pinned { --th-tour-w: clamp(96px, calc((100svh - 440px) / 2.15), 250px); }
}

/* Hero question: show the answers are tappable --------------------------------------------
 * A small tapping-finger icon by the hint, and a soft ring that pulses out of each answer in
 * turn. Both stop once the visitor has tapped an answer (.is-used). */
.thito-home .th-ask__hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.th-ask__tap {
    flex: none;
    width: 18px;
    height: 18px;
    background: var(--th-brand);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 11V5.5a1.5 1.5 0 0 1 3 0V10'/%3E%3Cpath d='M12 9.5a1.5 1.5 0 0 1 3 0V11'/%3E%3Cpath d='M15 10.5a1.5 1.5 0 0 1 3 0V15a6 6 0 0 1-6 6h-1.2a5 5 0 0 1-4.1-2.1L4 15.2a1.6 1.6 0 0 1 2.5-2L9 15.5V11'/%3E%3Cpath d='M5 4.5 6.2 6M3.5 8.5h1.8M13.5 2.5 12.8 4'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 11V5.5a1.5 1.5 0 0 1 3 0V10'/%3E%3Cpath d='M12 9.5a1.5 1.5 0 0 1 3 0V11'/%3E%3Cpath d='M15 10.5a1.5 1.5 0 0 1 3 0V15a6 6 0 0 1-6 6h-1.2a5 5 0 0 1-4.1-2.1L4 15.2a1.6 1.6 0 0 1 2.5-2L9 15.5V11'/%3E%3Cpath d='M5 4.5 6.2 6M3.5 8.5h1.8M13.5 2.5 12.8 4'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Pulse ring on each answer (sits behind the chip, composited) */
.th-ask__chip span { position: relative; }

.th-ask__chip span::after {
    content: "";
    position: absolute;
    inset: -2px;
    border: 2px solid var(--th-brand);
    border-radius: inherit;
    opacity: 0;
    pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
    .th-ask:not(.is-used) .th-ask__tap { animation: th-tap 1.6s ease-in-out infinite; }

    .th-ask:not(.is-used) .th-ask__chip span::after { animation: th-chip-pulse 3.2s ease-out infinite; }
    .th-ask:not(.is-used) .th-ask__chip:nth-child(2) span::after { animation-delay: .4s; }
    .th-ask:not(.is-used) .th-ask__chip:nth-child(3) span::after { animation-delay: .8s; }
    .th-ask:not(.is-used) .th-ask__chip:nth-child(4) span::after { animation-delay: 1.2s; }
}

@keyframes th-tap {
    0%, 60%, 100% { transform: translateY(0) scale(1); }
    30%           { transform: translateY(2px) scale(.88); }
}

@keyframes th-chip-pulse {
    0%        { opacity: .55; transform: scale(1); }
    35%, 100% { opacity: 0;   transform: scale(1.12, 1.35); }
}

/* Once answered, the hint switches to "Tap your answer again to go back" */
.th-ask.is-used .th-ask__tap { opacity: .7; }

@media (max-width: 767px) {
    .thito-home .th-ask__hint { display: flex; justify-content: center; }
}

/* App tour on phones: compact heading and caption so the phones can be larger and readable */
@media (max-width: 767px) {
    .th-tour.is-pinned { --th-tour-w: clamp(150px, calc((100svh - 290px) / 2.15), 250px); }
    .th-tour.is-pinned .th-tour__pin { padding-top: calc(var(--th-nav-h) + 6px); padding-bottom: 12px; }

    /* Title and arrow buttons on one line; the small "APP TOUR" label is hidden while pinned */
    .th-tour.is-pinned .th-section__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 10px;
    }
    .th-tour.is-pinned .th-section__head .th-eyebrow { display: none; }
    .thito-home .th-tour.is-pinned .th-h2 { font-size: 23px; line-height: 1.15; }
    .th-tour.is-pinned .th-tour__controls { flex: none; gap: 6px; }
    .thito-home .th-tour.is-pinned .th-iconbtn { width: 38px; height: 38px; }

    /* Tighter caption under the phone */
    /* Fixed height (two text lines), so a one- or two-line caption never moves the phones */
    .th-tour.is-pinned .th-tour__caption { min-height: 0; height: 74px; margin-top: 12px; }
    .th-tour.is-pinned .th-tour__caption-title { margin-bottom: 3px; font-size: 18px; }
    .th-tour.is-pinned .th-tour__caption-text { font-size: 14px; line-height: 1.45; }
}

/* Fast scroll catch at the first App tour phone (touch screens): a moment of no scrolling
   so the browser drops the leftover momentum (js/homepage.js) */
html.th-scroll-hold,
html.th-scroll-hold body { overflow: hidden; touch-action: none; }

/* Navbar: fixed instead of sticky. Sticky elements are re-positioned a frame late after the
   instant scroll a tour swipe makes, so on phones the bar briefly vanished ("blinked"). Fixed
   elements are pinned by the compositor with no delay. The bar already takes no space in the
   layout (negative margin), so nothing else moves. */
.th-js .th-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin-bottom: 0;
}

/* What is THITO: family cut-out standing in front of an orange semicircle (like "Every age") */
.th-value__photo {
    position: relative;
    margin: 32px 0 0;
    /* Clip the sides and the rounded bottom to the arch; leave the top open so heads pop out */
    clip-path: inset(-40% 0 0 0 round 0 0 28px 28px);
}

.th-value__arch {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    aspect-ratio: 2 / 1;                /* a true semicircle across the full width */
    overflow: hidden;
    border-radius: 999px 999px 28px 28px;
    background: var(--th-grad);
}

/* The app's soft light circle */
.th-value__arch::after {
    content: "";
    position: absolute;
    top: -30%;
    right: -6%;
    width: 40%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(255, 255, 255, .28);
}

.th-value__photo picture { display: contents; }

.thito-home .th-value__family {
    position: relative;
    z-index: 1;
    display: block;
    width: 92%;
    height: auto;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .th-value__photo { margin-top: 22px; clip-path: inset(-40% 0 0 0 round 0 0 22px 22px); }
    .th-value__arch { border-radius: 999px 999px 22px 22px; }
}

/* GSAP motion (js/gsap-home.js) ------------------------------------------------------------
   While GSAP runs (html.th-gsap) it owns the homepage reveals, so the CSS reveal is switched off;
   GSAP's inline styles then set every starting state. Without GSAP nothing below applies. */
.th-js.th-gsap .th-reveal { opacity: 1; transform: none; transition: none; }
.th-js.th-gsap .th-age.th-reveal .th-age__person { opacity: 1; transform: translateX(-50%); transition: none; }

/* The hero waits, hidden, for its first frame of animation (an inline 2.5s timer always lifts this) */
.th-gsap-wait .th-hero__copy,
.th-gsap-wait .th-hero__visual { visibility: hidden; }

/* Navbar "Download app": no orange glow (it spilled out under the button inside the white bar);
   the big call-to-action buttons elsewhere keep theirs */
.thito-home .th-nav .th-nav__cta,
.thito-home .th-nav .th-nav__cta:focus,
.thito-home .th-nav .th-nav__cta:hover { box-shadow: none; }

/* How it works: "Download THITO" is a link to the app; only "THITO" is in the THITO logo orange */
.thito-home .th-step__link {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    text-decoration-color: transparent;
    transition: text-decoration-color .2s;
}

.thito-home .th-step__link:hover,
.thito-home .th-step__link:focus-visible { color: inherit; text-decoration-color: var(--th-brand); }

.thito-home .th-step__accent { color: var(--th-brand); }

/* Phones: no time, signal, Wi-Fi or battery. The screenshots have had theirs erased from the
   image files; this removes the status bar the site draws above the language screen. */
.th-phone--sm .th-phone__screen::before,
.th-phone--sm .th-phone__screen::after,
.th-pagehero .th-phone__screen::before,
.th-pagehero .th-phone__screen::after { content: none; }

/* Store badges: the App Store artwork fills more of its image (71 px of 80) than the Google Play
   artwork (63 px of 80), so it is shown at 63/71 of the width to make both badges the same height */
.th-stores { align-items: center; }
.thito-home .th-store img[src*="app-store"] { width: calc(160px * 63 / 71); }
@media (max-width: 479px) {
    .thito-home .th-store img[src*="app-store"] { width: calc(148px * 63 / 71); }
}
@media (max-width: 767px) {
    .thito-home .th-hero .th-store img[src*="app-store"] { width: calc(140px * 63 / 71); }
    .thito-home .th-cta .th-store img[src*="app-store"] { width: calc(136px * 63 / 71); }
}

/* Homepage polish (2026-10-29) ---------------------------------------------------------------
   Small finishing touches, same look: balanced headline wrapping, press feedback on controls,
   no grey tap flash on phones, and hover lifts only on devices that really hover. */
.thito-home .th-h2,
.thito-home .th-hero__title,
.thito-home .th-step h3,
.thito-home .th-feature__title { text-wrap: balance; }
.thito-home .th-body,
.thito-home .th-hero__lead,
.thito-home .th-faq__item p { text-wrap: pretty; }

.thito-home { -webkit-tap-highlight-color: transparent; }

/* Press feedback: controls answer the moment they are pressed */
.thito-home .th-btn:active,
.thito-home .th-iconbtn:active { transform: scale(.97); transition-duration: .1s; }
.thito-home .th-store:active { transform: scale(.97); }
.th-ask__chip:active span { transform: scale(.97); transition-duration: .1s; }

/* Touch screens: no hover lift that stays stuck after a tap */
@media (hover: none) {
    .thito-home .th-btn--primary:hover,
    .thito-home .th-store:hover,
    .th-ask__chip:hover span,
    .th-feature:hover,
    .th-feature:hover .th-feature__icon,
    .th-video__play:hover img { transform: none; }
    .thito-home .th-store:hover img { filter: none; }
}

/* Homepage refinement (2026-10-29): fewer template tells. Hairlines, flat tints and type do the work. */
/* Floating THITO marks: quieter, so they read as texture rather than stickers */
.thito-home .th-mark { opacity: calc(var(--o) * .55); }

/* Hero: the three facts as one quiet line, not three pills */
.thito-home .th-hero__facts { gap: 6px 18px; margin-top: 26px; }
.thito-home .th-hero__facts li {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--th-ink-2);
}
.thito-home .th-hero__facts li::before { width: 5px; height: 5px; }

/* Icons in "What is THITO" and Features: flat tint squares instead of glowing gradient bubbles */
.thito-home .th-value__icon,
.thito-home .th-feature__icon {
    border: 1px solid #F3DCC8;
    background: var(--th-brand-tint);
    color: var(--th-brand-ink);
    box-shadow: none;
}

/* Features: one panel divided by hairlines instead of eight floating cards */
.thito-home .th-features__grid {
    gap: 1px;
    overflow: hidden;
    border: 1px solid rgba(28, 25, 23, .08);
    border-radius: 24px;
    background: rgba(28, 25, 23, .08);
    box-shadow: 0 24px 48px -36px rgba(120, 60, 10, .35);
}
.thito-home .th-feature {
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    transition: background-color .25s ease;
}
.thito-home .th-feature__icon { width: 44px; height: 44px; border-radius: 12px; transition: background-color .25s, color .25s, border-color .25s; }
.thito-home .th-feature__title { font-size: 18px; font-weight: 700; }
@media (hover: hover) and (pointer: fine) {
    .thito-home .th-feature:hover { background: #FFFAF5; border: 0; box-shadow: none; transform: none; }
    .thito-home .th-feature:hover .th-feature__icon { background: var(--th-brand); border-color: var(--th-brand); color: var(--th-ink); transform: none; }
}
@media (hover: none) {
    .thito-home .th-feature:hover { background: #fff; box-shadow: none; }
    .thito-home .th-feature:hover .th-feature__icon { background: var(--th-brand-tint); color: var(--th-brand-ink); border-color: #F3DCC8; }
}

/* How it works: numbered columns on a hairline, no circles or dashed connector */
.thito-home .th-steps__list { gap: 40px; }
.thito-home .th-steps__list::before { display: none; }
.thito-home .th-step {
    padding: 22px 0 0;
    border-top: 1px solid rgba(28, 25, 23, .1);
    text-align: left;
}
.thito-home .th-step__num,
.thito-home .th-step:first-child .th-step__num {
    display: block;
    width: auto;
    height: auto;
    margin: 0 0 14px;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    font-family: var(--th-font-display);
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.03em;
    color: var(--th-brand);
}
.thito-home .th-step__text { max-width: 340px; margin: 0; }

/* FAQ: one panel with dividers instead of a stack of cards */
.thito-home .th-faq__list {
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(28, 25, 23, .08);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 48px -36px rgba(120, 60, 10, .3);
}
.thito-home .th-faq__item {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.thito-home .th-faq__item + .th-faq__item { border-top: 1px solid rgba(28, 25, 23, .08); }
.thito-home .th-faq__item[open] { background: #FFFAF5; box-shadow: none; }
.thito-home .th-faq__item summary:focus-visible { border-radius: 0; }

@media (max-width: 767px) {
    .thito-home .th-features__grid { gap: 1px; border-radius: 20px; }
    .thito-home .th-features .th-feature { padding: 16px; }
    .thito-home .th-step { grid-template-columns: 44px minmax(0, 1fr); padding: 16px 0; border-top: 1px solid rgba(28, 25, 23, .1); }
    .thito-home .th-step__num,
    .thito-home .th-step:first-child .th-step__num { margin: 0; font-size: 28px; }
    .thito-home .th-step__title { margin-top: 0; }
    .thito-home .th-faq__list { border-radius: 18px; }
}

/* =====================================================================================
   Warm redesign (2026-10-29)
   Navbar: one full-width warm gradient bar (peach to apricot), no floating pill. Buttons:
   rounded rectangles in a warm gradient with a soft top highlight, pressed feel, no pills.
   Hero: no disc and ring behind the phone, just a soft warm glow.
   The App tour (#app-tour, .th-tour) is never styled here.
   ===================================================================================== */
:root { --th-nav-h: 68px; }

/* Navbar: a warm gradient bar across the top (every redesigned page) ------------------------ */
.th-nav,
.th-js .th-nav {
    height: var(--th-nav-h);
    padding: 0;
    background:
        radial-gradient(420px 120px at 88% -30%, rgba(255, 255, 255, .45), transparent 70%),
        linear-gradient(90deg, #FFE6CE 0%, #FFCB97 32%, #FFAE66 64%, #F7883A 100%);
    border-bottom: 1px solid rgba(170, 70, 0, .22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
    pointer-events: auto;
    transition: box-shadow .2s ease-out;
}

.th-nav.is-scrolled { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 10px 26px -18px rgba(150, 60, 0, .45); }

.th-nav__inner,
.th-nav.is-scrolled .th-nav__inner {
    max-width: 1232px;
    height: 100%;
    padding: 0 16px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.th-nav__brand { --lh: 34px; }

@media (min-width: 1200px) {
    .th-nav__menu { align-self: stretch; gap: 22px; }
    .thito-home .th-nav__links { align-self: stretch; align-items: stretch; gap: 2px; }
    .thito-home .th-nav__links li { display: flex; }

    .thito-home .th-nav__links a {
        position: relative;
        display: flex;
        align-items: center;
        padding: 0 13px;
        border-radius: 0;
        background: none;
        font-size: 15px;
        font-weight: 500;
        color: #3A2414;
        transition: color .15s ease;
    }

    /* Current page / section: a short deep-orange bar sitting on the bar's bottom edge */
    .thito-home .th-nav__links a::after {
        content: "";
        position: absolute;
        left: 13px;
        right: 13px;
        bottom: -1px;
        height: 3px;
        border-radius: 3px 3px 0 0;
        background: #D9560A;
        transform: scaleX(0);
        transition: transform .22s cubic-bezier(.23, 1, .32, 1);
    }

    .thito-home .th-nav__links a.is-active,
    .thito-home .th-nav__links a.is-current {
        border-radius: 0;
        background: none;
        box-shadow: none;
        color: var(--th-ink);
        font-weight: 600;
    }

    .thito-home .th-nav__links a.is-active::after,
    .thito-home .th-nav__links a.is-current::after { transform: scaleX(1); }

    .th-nav__menu .th-nav__cta { align-self: center; }
}

@media (hover: hover) and (pointer: fine) {
    .thito-home .th-nav__links a:hover { background: none; color: var(--th-ink); }
    .thito-home .th-nav__links a:not(.is-active):not(.is-current):hover::after { transform: scaleX(.4); }
}

/* Navbar button: deep ink, so it holds its own on the warm end of the bar */
.thito-home .th-nav .th-nav__cta,
.thito-home .th-nav .th-nav__cta:focus {
    min-height: 42px;
    padding: 0 18px 0 15px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(180deg, #2E2621 0%, #1A1512 100%);
    color: #fff;
    font-size: 14.5px;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 6px 14px -8px rgba(40, 20, 5, .6);
    transition: transform .16s ease-out, filter .15s ease;
}

.thito-home .th-nav .th-nav__cta .th-icon { color: #FDB173; }
.thito-home .th-nav .th-nav__cta:active { transform: scale(.97); }

@media (hover: hover) and (pointer: fine) {
    .thito-home .th-nav .th-nav__cta:hover { filter: brightness(1.18); color: #fff; }
}

.thito-home .th-nav__toggle {
    border-radius: 12px;
    background: rgba(255, 255, 255, .55);
    color: var(--th-ink);
}

/* Phones and tablets: the menu drops as a white sheet under the bar */
@media (max-width: 1199px) {
    .th-js .th-nav__menu {
        top: 100%;
        left: 0;
        right: 0;
        margin-top: 1px;
        padding: 6px 16px 16px;
        border: 0;
        border-radius: 0 0 20px 20px;
        background: #fff;
        box-shadow: 0 26px 40px -26px rgba(120, 50, 0, .45);
    }

    .th-js .th-nav__links { gap: 0; }
    .th-js .thito-home .th-nav__links a {
        padding: 15px 8px;
        border-radius: 0;
        border-bottom: 1px solid rgba(28, 25, 23, .08);
        font-weight: 500;
        color: var(--th-ink);
    }
    .th-js .thito-home .th-nav__links a::after { content: none; }
    .th-js .thito-home .th-nav__links a.is-active,
    .th-js .thito-home .th-nav__links a.is-current { background: none; color: #C2500A; font-weight: 600; }
    .th-js .thito-home .th-nav .th-nav__cta { width: 100%; min-height: 50px; justify-content: center; margin-top: 8px; }
}

@media (max-width: 767px) {
    :root, .thito-home { --th-nav-h: 62px; }
    .th-nav, .th-js .th-nav { padding: 0; }
    .th-nav__inner, .th-nav.is-scrolled .th-nav__inner { height: 100%; padding: 0 10px 0 16px; border-radius: 0; }
    .th-nav__brand { --lh: 30px; }
}

/* Buttons: warm gradient rectangles with a soft top highlight -------------------------------- */
.thito-home .th-btn--primary,
.thito-home .th-btn--primary:focus,
.thito-home .th-totop {
    border: 0;
    border-radius: 12px;
    background: linear-gradient(180deg, #F5801F 0%, #DE5E08 100%);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 1px 2px rgba(120, 45, 0, .3), 0 10px 20px -12px rgba(222, 94, 8, .8);
    transition: transform .16s ease-out, filter .15s ease, box-shadow .2s ease;
}

.thito-home .th-btn--primary:active,
.thito-home .th-totop:active { transform: scale(.97); }

@media (hover: hover) and (pointer: fine) {
    .thito-home .th-btn--primary:hover,
    .thito-home .th-totop:hover { filter: brightness(1.06); color: #fff; }
}

.thito-home .th-btn--primary:focus-visible,
.thito-home .th-totop:focus-visible { outline: 2px solid var(--th-ink); outline-offset: 3px; }

/* Hero answers: rounded rectangles; the chosen one takes the warm button gradient */
.thito-home .th-ask__chip span {
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid #EBCFB4;
    border-radius: 12px;
    background: rgba(255, 255, 255, .85);
    color: var(--th-ink);
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(120, 60, 10, .06);
    transition: border-color .15s ease, background-color .15s ease, color .15s ease, transform .16s ease-out;
}

.thito-home .th-ask__chip input:checked + span {
    border-color: transparent;
    background: linear-gradient(180deg, #F5801F 0%, #DE5E08 100%);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 18px -12px rgba(222, 94, 8, .8);
}

.thito-home .th-ask__chip input:focus-visible + span { outline: 2px solid var(--th-ink); outline-offset: 3px; }

@media (hover: hover) and (pointer: fine) {
    .thito-home .th-ask__chip:hover span { border-color: #E3A672; transform: none; }
    .thito-home .th-ask__chip:hover input:checked + span { border-color: transparent; }
}

/* Video: a white play button with an ink triangle, no orange ring */
.thito-home .th-video__button { background: #fff; box-shadow: 0 0 0 10px rgba(255, 255, 255, .25), 0 16px 34px -12px rgba(0, 0, 0, .5); }

/* Hero: no disc and ring behind the phone, just a soft warm glow ---------------------------- */
.thito-home .th-hero .th-hero__visual::before {
    width: 620px;
    height: 620px;
    background: radial-gradient(closest-side, rgba(251, 166, 94, .5), rgba(251, 166, 94, .18) 55%, rgba(251, 166, 94, 0));
    box-shadow: none;
}

.thito-home .th-hero .th-hero__visual::after { display: none; }

/* Download panel: the warm gradient alone, without decorative bubbles */
.thito-home .th-cta__panel::before,
.thito-home .th-cta__panel::after { display: none; }

@media (max-width: 767px) {
    .thito-home .th-hero .th-hero__visual::before { width: 330px; height: 330px; }
    .thito-home .th-ask__chip span { justify-content: center; padding: 0 10px; }
}
/* Back to top keeps its show/hide fade (opacity, visibility, slide) alongside the button feel */
.thito-home .th-totop { transition: opacity .25s, visibility .25s, transform .25s cubic-bezier(.23, 1, .32, 1), filter .15s ease; }
.thito-home .th-totop.is-visible:active { transform: scale(.97); }
.thito-home .th-totop:active { transform: translateY(8px); }

/* Navbar: plain white, and it slides out of the way while scrolling down, back on scroll up
   (js/homepage.js toggles .is-hidden). (2026-10-29) */
.th-nav,
.th-js .th-nav {
    background: #fff;
    border-bottom: 1px solid rgba(28, 25, 23, .08);
    box-shadow: none;
    transition: transform .32s cubic-bezier(.23, 1, .32, 1), box-shadow .2s ease-out;
}

.th-nav.is-scrolled { box-shadow: 0 8px 24px -18px rgba(28, 25, 23, .35); }
.th-nav.is-hidden { transform: translateY(-100%); box-shadow: none; }

.thito-home .th-nav__links a { color: var(--th-ink-2); }
.thito-home .th-nav__toggle { background: var(--th-brand-tint); }

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

/* FAQ on phones (2026-10-29): the heading breaks after "Questions?", the intro breathes,
   every question has a round tap target for + / −, and answers read comfortably */
@media (max-width: 767px) {
    .thito-home .th-faq { padding-top: 56px; padding-bottom: 64px; }
    .thito-home .th-faq__grid { gap: 22px; }
    .thito-home .th-faq__intro .th-h2 { margin-bottom: 10px; font-size: 32px; line-height: 1.08; }
    .thito-home .th-faq__intro .th-h2 span { display: block; }
    .thito-home .th-faq__intro .th-body { font-size: 15.5px; line-height: 1.6; }

    .thito-home .th-faq__list { border-radius: 20px; }
    .thito-home .th-faq__item summary {
        min-height: 60px;
        padding: 17px 62px 17px 18px;
        font-size: 16px;
        line-height: 1.4;
    }

    /* Round tap target behind the plus / minus */
    .thito-home .th-faq__item summary {
        background-image: radial-gradient(circle at calc(100% - 31px) 50%, var(--th-brand-tint) 15px, transparent 15.5px);
        background-repeat: no-repeat;
    }
    .thito-home .th-faq__item[open] summary {
        background-image: radial-gradient(circle at calc(100% - 31px) 50%, var(--th-brand) 15px, transparent 15.5px);
    }
    .thito-home .th-faq__item summary::before,
    .thito-home .th-faq__item summary::after { right: 24px; width: 14px; background: var(--th-brand-ink); }
    .thito-home .th-faq__item[open] summary::before,
    .thito-home .th-faq__item[open] summary::after { background: #fff; }

    .thito-home .th-faq__answer { padding: 0 20px 20px 18px; }
    .thito-home .th-faq__answer p { font-size: 15px; line-height: 1.65; }
}

/* Navbar "Download app": warm orange (was ink) — every page */
.thito-home .th-nav .th-nav__cta,
.thito-home .th-nav .th-nav__cta:focus {
    background: linear-gradient(180deg, #F5801F 0%, #DE5E08 100%);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 1px 2px rgba(120, 45, 0, .3), 0 8px 16px -10px rgba(222, 94, 8, .8);
}
.thito-home .th-nav .th-nav__cta .th-icon { color: #fff; }
@media (hover: hover) and (pointer: fine) {
    .thito-home .th-nav .th-nav__cta:hover { filter: brightness(1.06); color: #fff; }
}
.thito-home .th-nav .th-nav__cta:focus-visible { outline: 2px solid var(--th-ink); outline-offset: 3px; }

/* Careers (2026-11-03): one calm panel, heading and line on the left, the button on the right */
.thito-home .th-careers { padding-top: 0; }
.th-careers__panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 40px 48px;
    border: 1px solid rgba(28, 25, 23, .08);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 48px -36px rgba(120, 60, 10, .3);
}
.th-careers__copy { max-width: 620px; }
.thito-home .th-careers .th-h2 { margin-bottom: 10px; }
.thito-home .th-careers .th-body { margin: 0; }
.thito-home .th-careers__btn { flex: none; white-space: nowrap; }
.thito-home .th-careers__btn .th-icon { transition: transform .2s cubic-bezier(.23, 1, .32, 1); }
@media (hover: hover) and (pointer: fine) {
    .thito-home .th-careers__btn:hover .th-icon { transform: translateX(3px); }
}
@media (max-width: 767px) {
    .th-careers__panel { flex-direction: column; align-items: flex-start; gap: 20px; padding: 26px 22px; border-radius: 20px; }
    .thito-home .th-careers__btn { width: 100%; justify-content: center; min-height: 50px; }
}

/* FAQ heading pinned on phones and tablets (2026-11-03): the heading becomes a slim bar that
   sticks under the navbar (or at the very top while the navbar is hidden) as the questions
   scroll; the "Can't find…" line scrolls normally. The intro box is unwrapped (display:
   contents) so the heading sticks within the whole FAQ column, not just its own box. */
@media (max-width: 1023px) {
    .thito-home .th-faq__intro { display: contents; }
    .thito-home .th-faq__intro .th-h2 {
        position: sticky;
        top: var(--th-nav-h);
        z-index: 5;
        margin: 0 -20px -12px;
        padding: 12px 20px;
        background: var(--th-bg-warm);
        transition: top .32s cubic-bezier(.23, 1, .32, 1), box-shadow .2s ease-out;
    }
    body:has(.th-nav.is-hidden) .thito-home .th-faq__intro .th-h2,
    .thito-home:has(.th-nav.is-hidden) .th-faq__intro .th-h2 { top: 0; }
    .thito-home .th-faq__intro .th-h2.is-stuck { box-shadow: 0 1px 0 rgba(28, 25, 23, .08), 0 10px 18px -16px rgba(28, 25, 23, .35); }
}

@media (max-width: 767px) {
    .thito-home .th-faq__intro .th-h2 { font-size: 26px; line-height: 1.12; }
    .thito-home .th-faq__intro .th-h2 span { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
    .thito-home .th-faq__intro .th-h2 { transition: none; }
}

/* FAQ heading on desktop (2026-11-03): fixed in place, not sticky */
@media (min-width: 1024px) {
    /* The heading stays in its place at the top of the section, beside the first question, and
       scrolls with the page like everything else (it does not follow the questions down) */
    .thito-home .th-faq__intro,
    .thito-home:has(.th-nav.is-hidden) .th-faq__intro {
        position: static;
        transition: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    .thito-home .th-faq__intro { transition: none; }
}

/* App tour on shorter desktop/laptop windows (2026-11-04): the phones are sized from the
   window height, and on 1366x768 / 125%-scaled laptops the old allowance left them ~120px
   wide. Use the compact heading and caption (as on phones) so the phones stay large. */
@media (min-width: 768px) and (max-height: 860px) {
    .th-tour.is-pinned { --th-tour-w: clamp(150px, calc((100svh - 290px) / 2.15), 260px); }
    .th-tour.is-pinned .th-tour__pin { padding-top: calc(var(--th-nav-h) + 8px); padding-bottom: 12px; }
    .th-tour.is-pinned .th-section__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 10px;
    }
    .th-tour.is-pinned .th-section__head .th-eyebrow { display: none; }
    .thito-home .th-tour.is-pinned .th-h2 { margin: 0; font-size: 32px; line-height: 1.1; }
    .th-tour.is-pinned .th-tour__caption { min-height: 0; height: 70px; margin-top: 10px; }
    .th-tour.is-pinned .th-tour__caption-title { margin-bottom: 3px; font-size: 19px; }
    .th-tour.is-pinned .th-tour__caption-text { font-size: 14px; line-height: 1.45; }
}
