/* =========================================================================
   Layout: page chrome and page-level sections (header, footer, homepage, content pages, motion states).
   Components (cards, buttons, tiles…) live in components.css; shop pages in shop.css.
   ========================================================================= */

/* ---------- Motion (only when motion.js has run: html.tn-motion) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
.tn-motion [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--tn-ease) var(--tn-delay, 0ms), transform 1s var(--tn-ease) var(--tn-delay, 0ms); }
.tn-motion [data-reveal="scale"] { transform: scale(.96); }
.tn-motion [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Basics ---------- */
.tn-main { display: block; }
.tn-skip { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--tn-ink); color: var(--tn-white); padding: 10px 16px; border-radius: var(--tn-r-sm); }
.tn-skip:focus { top: 12px; }
.tn-section--tint { background: var(--tn-teal-pale); }
.tn-section--power { background: var(--tn-sol-power-tint); }
.tn-sechead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 32px; }
.tn-sechead__intro { margin: 10px 0 0; color: var(--tn-ink-80); max-width: 560px; }
.tn-sechead__link { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tn-paylogos { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; vertical-align: middle; }
.tn-paylogos img { height: 22px; width: auto; }

/* ---------- Top bar + header ---------- */
.tn-topbar { background: var(--tn-ink); color: #cdd3e0; font-size: 13px; text-align: center; padding: 8px 0; }
.tn-header { position: sticky; top: 0; z-index: 1020; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: transform .5s var(--tn-ease), border-color var(--tn-dur-2), box-shadow var(--tn-dur-2); }
.tn-header.is-scrolled { border-color: var(--tn-line); box-shadow: 0 6px 24px rgba(0,4,35,.05); }
.tn-header.is-hidden { transform: translateY(-100%); }
.tn-header__row { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); padding-block: 14px; }
.tn-header__logo { display: inline-flex; flex: none; }
.tn-header__logo svg { width: 128px; height: auto; }
.tn-header__menu { border: 0; background: none; padding: 6px; margin-left: -6px; color: var(--tn-ink); }
.tn-header__actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.tn-header__action { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--tn-r-pill); color: var(--tn-ink); text-decoration: none; font-weight: 500; font-size: 14px; }
.tn-header__action:hover { background: var(--tn-mist); }
.tn-header__cart { position: relative; }
.tn-cart-count { position: absolute; top: 2px; right: 2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--tn-r-pill); background: var(--tn-teal); color: var(--tn-ink); font: 700 11px/20px var(--tn-font-body); text-align: center; box-shadow: 0 0 0 2px var(--tn-white); pointer-events: none; } /* sits over the icon's top-right corner */
.tn-cart-count--empty { display: none; }

.tn-search { flex: 1; max-width: 560px; display: flex; align-items: center; gap: 10px; padding: 0 16px; min-height: 46px; border-radius: var(--tn-r-pill); background: var(--tn-mist); border: 1.5px solid transparent; transition: border-color var(--tn-dur-2), background var(--tn-dur-2); }
.tn-search:focus-within { background: var(--tn-white); border-color: var(--tn-teal-deep); }
.tn-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: 400 15px var(--tn-font-body); color: var(--tn-ink); }
.tn-search input::-webkit-search-cancel-button { display: none; }
.tn-header .tn-search { display: none; }
@media (min-width: 768px) { .tn-header .tn-search { display: flex; } }

.tn-depts { border-top: 1px solid var(--tn-line); }
.tn-depts__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tn-depts__list a { position: relative; display: block; padding: 12px 12px; color: var(--tn-ink); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.tn-depts__list a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 3px; border-radius: 3px; background: var(--sol, var(--tn-teal)); transform: scaleX(0); transform-origin: left; transition: transform var(--tn-dur-3) var(--tn-ease); }
.tn-depts__list a:hover::after, .tn-depts__list a[aria-current]::after { transform: scaleX(1); }
.tn-depts__link--connected { --sol: var(--tn-sol-connected); } .tn-depts__link--power { --sol: var(--tn-sol-power); } .tn-depts__link--desk { --sol: var(--tn-sol-desk); }
.tn-depts__link--sale { --sol: var(--tn-signal); color: var(--tn-signal-text) !important; } /* genuine sales only */
.tn-depts__link--kitchen { --sol: var(--tn-sol-kitchen); } .tn-depts__link--watch { --sol: var(--tn-sol-watch); }
.tn-depts__list--vertical { flex-direction: column; gap: 0; }
.tn-depts__list--vertical a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--tn-line); }
.tn-depts__list--vertical a::after { display: none; }

.tn-offcanvas .offcanvas-header { padding: 20px var(--tn-gutter); }
.tn-offcanvas .offcanvas-body { padding: 0 var(--tn-gutter) 32px; }
.tn-offcanvas__logo svg { width: 120px; height: auto; }
.tn-offcanvas__close { border: 0; background: var(--tn-mist); width: 44px; height: 44px; border-radius: var(--tn-dot); display: grid; place-items: center; color: var(--tn-ink); }

/* ---------- Hero ---------- */
.tn-hero { padding-block: clamp(40px, 7vw, 96px) clamp(48px, 8vw, 112px); overflow: hidden; }
.tn-hero__title { margin: 16px 0 0; }
.tn-hero__lead { margin: 24px 0 30px; max-width: 520px; }
.tn-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.tn-hero__facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--tn-ink-80); }
.tn-hero__facts li { display: flex; align-items: center; gap: 8px; }
.tn-hero__visual { position: relative; display: grid; max-width: 560px; margin-inline: auto; }
/* Rotating slides sit on top of each other and crossfade; each brings its department colour (--c). */
.tn-hero__slide { grid-area: 1 / 1; position: relative; display: block; text-decoration: none; color: inherit; opacity: 0; visibility: hidden; transform: scale(.97);
  transition: opacity .45s ease, transform .45s ease, visibility 0s .45s; }                 /* Out first… */
.tn-hero__slide.is-active { opacity: 1; visibility: visible; transform: none;
  transition: opacity .8s var(--tn-ease) .4s, transform .8s var(--tn-ease) .4s, visibility 0s; } /* …then the next one in, so colours never mix. */
.tn-hero__slide .tn-stage { background: var(--c, var(--tn-teal)); transition: background 1.1s var(--tn-ease); }
.tn-hero__slide .tn-bubble--out { background: var(--c, var(--tn-teal)); }
.tn-hero__dots { position: absolute; right: 4%; bottom: 2%; display: flex; gap: 6px; z-index: 2; }
.tn-hero__dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: var(--tn-dot); background: var(--tn-line); cursor: pointer; transition: width var(--tn-dur-2), background var(--tn-dur-2); }
.tn-hero__dots button[aria-current="true"] { width: 26px; border-radius: var(--tn-r-pill); background: var(--tn-ink); }
.tn-hero__dots button:focus-visible { outline: 2px solid var(--tn-teal-deep); outline-offset: 3px; }
.tn-hero__stage { animation: tn-float 9s ease-in-out infinite; }
.tn-hero__stage img { width: 64%; }
.tn-hero__bubble { position: absolute; left: -2%; bottom: 6%; max-width: 280px; box-shadow: var(--tn-shadow-2); font-size: 14px; }
@keyframes tn-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .tn-hero__stage { animation: none; } }

/* ---------- Homepage blocks ---------- */
.tn-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.tn-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tn-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.tn-rail > * { scroll-snap-align: start; }
.tn-banner { height: 100%; min-height: clamp(320px, 38vw, 460px); }
.tn-banner__img { transform: scale(1.12); will-change: transform; }
.tn-banner__text { margin: 0; max-width: 460px; font-size: 16px; }
.tn-banner .tn-btn { justify-self: start; }
.tn-banner--power { --c: var(--tn-sol-power); } .tn-banner--desk { --c: var(--tn-sol-desk); } .tn-banner--kitchen { --c: var(--tn-sol-kitchen); }
.tn-banner--watch { --c: var(--tn-sol-watch); } .tn-banner--connected { --c: var(--tn-sol-connected); }
.tn-banner--solution .tn-dot { background: var(--tn-ink); }
.tn-banner__label { color: var(--tn-teal); }
.tn-banner--solution .tn-banner__label { color: var(--tn-ink); }

.tn-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.tn-step { background: var(--tn-white); border-radius: var(--tn-r-lg); padding: 26px; }
.tn-step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--tn-dot); background: var(--tn-teal); font: 700 16px var(--tn-font-display); margin-bottom: 16px; }
.tn-step p { margin: 8px 0 0; color: var(--tn-ink-80); font-size: 15px; }
.tn-honest { margin: 24px 0 0; max-width: 780px; color: var(--tn-ink-80); }

/* ---------- Content pages ---------- */
.tn-page__head { padding-block: clamp(36px, 6vw, 72px) 28px; }
.tn-page__head .tn-h1 { margin-top: 12px; }
.tn-prose { max-width: 760px; font-size: 17px; line-height: 1.7; padding-bottom: clamp(48px, 8vw, 96px); }
.tn-prose h2 { font: 600 24px/1.25 var(--tn-font-body); margin: 2em 0 .6em; }
.tn-prose h3 { font: 600 19px/1.3 var(--tn-font-body); margin: 1.6em 0 .5em; }
.tn-prose p, .tn-prose ul, .tn-prose ol { margin: 0 0 1em; }
.tn-prose ul li::marker { color: var(--tn-teal-deep); }
.tn-prose a { color: var(--tn-teal-deep); font-weight: 600; text-underline-offset: 3px; }
.tn-prose strong, .tn-prose b { font-weight: 600; }
.tn-prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 1.4em; }
.tn-prose th, .tn-prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--tn-line); }
.tn-prose th { width: 38%; font-weight: 600; background: var(--tn-mist); }
.tn-prose blockquote { margin: 1.4em 0; padding: 16px 20px; border-left: 4px solid var(--tn-teal); background: var(--tn-teal-pale); border-radius: 0 var(--tn-r-md) var(--tn-r-md) 0; }
.tn-404__search { max-width: 520px; }
.tn-postcard { display: grid; gap: 10px; text-decoration: none; color: inherit; }
.tn-postcard img { border-radius: var(--tn-r-lg); }

/* ---------- Toast ---------- */
.tn-toast { position: fixed; left: 50%; bottom: 24px; z-index: 1090; display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: var(--tn-r-pill);
  background: var(--tn-ink); color: var(--tn-white); font-size: 14px; box-shadow: var(--tn-shadow-2); transform: translate(-50%, 20px); opacity: 0; transition: opacity .3s var(--tn-ease), transform .4s var(--tn-ease-pop); }
.tn-toast.is-in { opacity: 1; transform: translate(-50%, 0); }
.tn-toast .tn-icon { --tn-icon-dot: var(--tn-teal); color: var(--tn-teal); }
.tn-toast a { color: var(--tn-teal); font-weight: 600; white-space: nowrap; }
.tn-toast span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Footer ---------- */
.tn-footer { background: var(--tn-ink); color: #c3c9d8; padding-top: clamp(56px, 8vw, 96px); font-size: 15px; }
.tn-footer a:not(.tn-btn) { color: #e6e9f1; text-decoration: none; }   /* Buttons keep their own colours. */
.tn-footer a:not(.tn-btn):hover { color: var(--tn-teal); }
.tn-footer__band { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: clamp(40px, 6vw, 72px); border-bottom: 1px solid rgba(255,255,255,.1); }
.tn-footer__tagline { color: var(--tn-white); font-size: clamp(40px, 7vw, 96px); margin: 0; }
.tn-footer__help { display: grid; gap: 12px; justify-items: start; max-width: 320px; }
.tn-footer__help p { margin: 0; color: #e6e9f1; }
.tn-footer__cols { padding-block: clamp(36px, 5vw, 56px); }
.tn-footer__logo svg { width: 132px; height: auto; }
.tn-footer__about { margin: 16px 0; max-width: 360px; }
.tn-footer__contact, .tn-footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tn-footer__contact li { display: flex; align-items: center; gap: 10px; }
.tn-footer__contact .tn-icon { color: #e6e9f1; }
.tn-footer__title { color: var(--tn-white); font-weight: 600; margin: 0 0 14px; }
.tn-footer__news { margin-top: 28px; max-width: 380px; }
.tn-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-block: 22px 28px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }
.tn-footer__bottom p { margin: 0; }
.tn-footer__pay { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tn-footer__pay img { background: var(--tn-white); border-radius: 6px; padding: 3px 6px; height: 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) { .tn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 991px) {
  .tn-steps { grid-template-columns: repeat(2, 1fr); }
  .tn-hero__bubble { left: 0; bottom: -2%; }
  .tn-header__logo svg { width: 112px; }
}
@media (max-width: 767px) {
  .tn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tn-card { padding: 8px 8px 12px; }
  .tn-card__title { font-size: 14px; }
  .tn-tiles { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tn-steps { grid-template-columns: 1fr; }
}
@media (max-width: 420px) { .tn-card__meta { display: none; } }

/* ---------- QA fixes (26 Oct) ---------- */
/* WordPress/Woo screen-reader text (e.g. quantity labels): hidden visually, still read aloud. */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; padding: 10px 16px; background: var(--tn-white); z-index: 1000; }
/* Mobile search row */
.tn-header__msearch { padding-bottom: 12px; }
.tn-header__msearch .tn-search { display: flex; max-width: none; }
/* Hero on phones: a smaller dot so the headline and product share the first screen. */
@media (max-width: 991px) { .tn-hero__visual { max-width: 380px; } .tn-hero__bubble { max-width: 220px; } }

/* ---------- Contact page ---------- */
.tn-contact__lead { max-width: 640px; margin: 16px 0 0; }
.tn-ways { list-style: none; margin: 0 0 clamp(40px, 6vw, 72px); padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tn-way { display: grid; align-content: start; justify-items: start; gap: 6px; padding: 22px; border: 1px solid var(--tn-line); border-radius: var(--tn-r-xl); background: var(--tn-white); }
.tn-way--main { background: var(--tn-teal-pale); border-color: transparent; }
.tn-way__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 6px; border-radius: var(--tn-dot); background: var(--tn-ink); color: var(--tn-white); }
.tn-way__icon .tn-icon { width: 20px; height: 20px; }
.tn-way__label { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; }
.tn-way__value { margin: 0; font: 600 20px/1.3 var(--tn-font-body); }
.tn-way__value a { color: var(--tn-ink); text-decoration: none; word-break: break-word; }
.tn-way__value a:hover { text-decoration: underline; }
.tn-way__note { margin: 0; font-size: 14px; color: var(--tn-ink-60); }
.tn-way .tn-btn { margin-top: 8px; }
.tn-contact__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding-bottom: clamp(56px, 8vw, 104px); }
.tn-contact__form .tn-h2 { margin: 0 0 22px; }
.tn-form__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tn-contactform__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.tn-contactform__foot .tn-field__hint { margin: 0; }
.tn-contactform { scroll-margin-top: 110px; }
.tn-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tn-contact__aside { display: grid; gap: 16px; }
.tn-home-note { display: grid; gap: 12px; padding: clamp(22px, 3vw, 32px); border-radius: var(--tn-r-xl); background: var(--tn-ink); color: var(--tn-white); }
.tn-home-note .tn-label { color: var(--tn-teal); margin: 0; }
.tn-home-note .tn-h2 { color: var(--tn-white); margin: 0; font-size: clamp(26px, 2.6vw, 34px); }
.tn-home-note p { margin: 0; color: rgba(255, 255, 255, .82); line-height: 1.6; }
.tn-home-note__link { color: var(--tn-white); font-weight: 600; font-size: 14px; text-underline-offset: 3px; }
.tn-contact__box { padding: 22px; border: 1px solid var(--tn-line); border-radius: var(--tn-r-xl); }
.tn-contact__box .tn-co__title { margin: 0 0 12px; font-size: 18px; }
.tn-quick { list-style: none; margin: 0; padding: 0; display: grid; }
.tn-quick li + li { border-top: 1px solid var(--tn-line); }
.tn-quick a { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; color: var(--tn-ink-60); text-decoration: none; font-size: 14px; }
.tn-quick a .tn-icon { margin-top: 2px; color: var(--tn-teal-deep); }
.tn-quick b { display: block; color: var(--tn-ink); font-size: 15px; }
.tn-quick a:hover b { text-decoration: underline; }
.tn-facts { margin: 0 0 12px; display: grid; gap: 8px; font-size: 14px; }
.tn-facts div { display: grid; grid-template-columns: 130px 1fr; gap: 10px; }
.tn-facts dt { color: var(--tn-ink-60); font-weight: 400; }
.tn-facts dd { margin: 0; font-weight: 500; }
@media (max-width: 991px) {
  .tn-ways { grid-template-columns: 1fr; }
  .tn-contact__grid { grid-template-columns: 1fr; }
  .tn-contact__aside { display: contents; }          /* Lets the "online-only" note move above the form on phones. */
  .tn-home-note { order: -1; }
}
@media (max-width: 575px) { .tn-form__pair { grid-template-columns: 1fr; } }
