/*
Theme Name: TrueNewel
Theme URI: https://truenewel.com
Author: Syxth Limited
Author URI: https://truenewel.com
Description: A polished single-product WooCommerce theme for TrueNewel 90 — a reinforced square-cut saw guide for 90mm stair newel posts. Mobile-first, fast and WooCommerce-compatible. TrueNewel is a trading name of Syxth Limited.
Version: 1.0.10
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: truenewel
Tags: woocommerce, e-commerce, single-product, custom-colors, custom-logo, footer-widgets, sticky-post, translation-ready
WC requires at least: 7.0
WC tested up to: 8.7
*/

/* =========================================================
   TrueNewel — Design Tokens
   ========================================================= */
:root {
  --tn-blue: #123A5A;        /* Primary deep tool blue */
  --tn-blue-700: #0e2e47;
  --tn-blue-900: #0a2235;
  --tn-charcoal: #2B2F33;    /* Charcoal */
  --tn-orange: #F28C28;      /* Precision orange (CTA, cut-line) */
  --tn-orange-600: #d9751a;
  --tn-offwhite: #F7F4EE;    /* Workshop off-white */
  --tn-grey: #EEF1F3;        /* Light grey */
  --tn-beige: #D8C7A3;       /* MDF beige accent */
  --tn-green: #3D7A4A;       /* Suitable green */
  --tn-red: #B84335;         /* Warning red */

  --tn-text: #2B2F33;
  --tn-text-soft: #525a61;
  --tn-border: #dfe4e8;
  --tn-white: #ffffff;

  --tn-font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --tn-font-body: "Roboto", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --tn-maxw: 1180px;
  --tn-radius: 10px;
  --tn-radius-lg: 16px;
  --tn-shadow: 0 6px 22px rgba(18, 58, 90, 0.08);
  --tn-shadow-lg: 0 18px 50px rgba(18, 58, 90, 0.14);
  --tn-header-h: 72px;
  --tn-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* =========================================================
   Base / Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--tn-header-h) + 18px); }
body {
  margin: 0;
  font-family: var(--tn-font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--tn-text);
  background: var(--tn-offwhite);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tn-blue); text-decoration: none; transition: color .18s var(--tn-ease); }
a:hover { color: var(--tn-orange-600); }

h1, h2, h3, h4, h5 {
  font-family: var(--tn-font-head);
  font-weight: 600;
  line-height: 1.08;
  color: var(--tn-blue);
  margin: 0 0 .5em;
  letter-spacing: .2px;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
p { margin: 0 0 1rem; }

:focus-visible {
  outline: 3px solid var(--tn-orange);
  outline-offset: 2px;
  border-radius: 4px;
}
::selection { background: var(--tn-orange); color: #fff; }

/* =========================================================
   Layout helpers
   ========================================================= */
.tn-container { width: 100%; max-width: var(--tn-maxw); margin: 0 auto; padding: 0 22px; }
.tn-section { padding: clamp(48px, 8vw, 96px) 0; }
.tn-section--tight { padding: clamp(36px, 6vw, 72px) 0; }
.tn-bg-white { background: var(--tn-white); }
.tn-bg-offwhite { background: var(--tn-offwhite); }
.tn-bg-grey { background: var(--tn-grey); }
.tn-bg-blue { background: var(--tn-blue); color: var(--tn-offwhite); }
.tn-bg-blue h1, .tn-bg-blue h2, .tn-bg-blue h3 { color: #fff; }
.tn-bg-charcoal { background: var(--tn-charcoal); color: var(--tn-grey); }

.tn-eyebrow {
  font-family: var(--tn-font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: .92rem;
  color: var(--tn-orange-600);
  margin: 0 0 .55rem;
  display: inline-block;
}
.tn-bg-blue .tn-eyebrow { color: var(--tn-orange); }
.tn-lead { font-size: 1.12rem; color: var(--tn-text-soft); max-width: 60ch; }
.tn-center .tn-lead { margin-left: auto; margin-right: auto; }
.tn-bg-blue .tn-lead { color: #d8e1ea; }
.tn-section-head { max-width: 720px; margin-bottom: 2.4rem; }
.tn-center { text-align: center; margin-left: auto; margin-right: auto; }

/* =========================================================
   Buttons
   ========================================================= */
.tn-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--tn-font-head);
  font-weight: 600; font-size: 1.08rem; letter-spacing: .4px;
  padding: .82em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform .16s var(--tn-ease), background-color .18s var(--tn-ease), box-shadow .18s var(--tn-ease), border-color .18s var(--tn-ease), color .18s var(--tn-ease);
  line-height: 1.1;
}
.tn-btn svg { width: 1.15em; height: 1.15em; }
.tn-btn:hover { transform: translateY(-2px); }
.tn-btn:active { transform: translateY(0); }

.tn-btn--primary { background: var(--tn-orange); color: #1c1205; box-shadow: 0 8px 20px rgba(242,140,40,.32); }
.tn-btn--primary:hover { background: var(--tn-orange-600); color: #1c1205; box-shadow: 0 12px 26px rgba(242,140,40,.4); }

.tn-btn--blue { background: var(--tn-blue); color: #fff; }
.tn-btn--blue:hover { background: var(--tn-blue-700); color: #fff; }

.tn-btn--outline { background: transparent; color: var(--tn-blue); border-color: var(--tn-blue); }
.tn-btn--outline:hover { background: var(--tn-blue); color: #fff; }
.tn-bg-blue .tn-btn--outline { color: #fff; border-color: rgba(255,255,255,.6); }
.tn-bg-blue .tn-btn--outline:hover { background: #fff; color: var(--tn-blue); }
.tn-hero .tn-btn--outline { color: #fff; border-color: rgba(255,255,255,.65); }
.tn-hero .tn-btn--outline:hover { background: #fff; color: var(--tn-blue); }

.tn-btn--ghost { background: transparent; color: var(--tn-blue); padding: .5em .4em; }
.tn-btn--lg { font-size: 1.18rem; padding: .95em 1.9em; }
.tn-btn--block { display: flex; width: 100%; }

/* =========================================================
   Header
   ========================================================= */
.tn-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(247,244,238,.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--tn-border);
}
.tn-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--tn-header-h); gap: 18px;
}
.tn-logo { display: inline-flex; align-items: center; height: 100%; }
.tn-logo__svg { display: inline-flex; align-items: center; }
.tn-logo svg, .tn-logo img { height: 50px; width: auto; display: block; }
.tn-logo--footer svg, .tn-logo--footer img { height: 64px; width: auto; max-width: 280px; }

.tn-nav { display: flex; align-items: center; gap: 4px; }
.tn-nav a.tn-nav__link {
  font-family: var(--tn-font-head);
  font-weight: 600; font-size: 1.04rem; letter-spacing: .3px;
  color: var(--tn-charcoal);
  padding: .5em .72em; border-radius: 6px;
  position: relative;
}
.tn-nav a.tn-nav__link:hover { color: var(--tn-blue); background: rgba(18,58,90,.06); }
.tn-header__actions { display: flex; align-items: center; gap: 10px; }

.tn-basket {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  color: var(--tn-blue); background: rgba(18,58,90,.06);
}
.tn-basket:hover { background: rgba(18,58,90,.12); color: var(--tn-blue); }
.tn-basket svg { width: 22px; height: 22px; }
.tn-basket__count {
  position: absolute; top: -3px; right: -3px;
  min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--tn-orange); color: #1c1205;
  font-family: var(--tn-font-head); font-weight: 700; font-size: .78rem;
  border-radius: 999px; display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.tn-nav__toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent;
  color: var(--tn-blue); cursor: pointer; border-radius: 8px;
}
.tn-nav__toggle svg { width: 26px; height: 26px; }

@media (max-width: 980px) {
  .tn-nav__toggle { display: inline-flex; align-items: center; justify-content: center; }
  .tn-nav {
    position: fixed; inset: var(--tn-header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--tn-offwhite);
    padding: 14px 18px 22px;
    border-bottom: 1px solid var(--tn-border);
    box-shadow: var(--tn-shadow-lg);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .2s var(--tn-ease), transform .2s var(--tn-ease);
    max-height: calc(100vh - var(--tn-header-h)); overflow-y: auto;
  }
  .tn-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .tn-nav a.tn-nav__link { padding: .8em .6em; font-size: 1.15rem; border-bottom: 1px solid var(--tn-border); border-radius: 0; }
  .tn-nav .tn-btn { margin-top: 12px; }
  .tn-header__cta-desktop { display: none; }
}
@media (min-width: 981px) {
  .tn-nav .tn-btn { display: none; }
}

/* =========================================================
   Hero
   ========================================================= */
.tn-hero { background: var(--tn-blue); color: var(--tn-offwhite); position: relative; overflow: hidden; }
.tn-hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(242,140,40,.16), transparent 65%); pointer-events: none;
}
.tn-hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  padding: clamp(44px, 7vw, 90px) 0;
}
.tn-hero h1 { color: #fff; }
.tn-hero__sub { font-size: 1.2rem; color: #d8e1ea; max-width: 54ch; margin-bottom: 1.4rem; }
.tn-hero__list { list-style: none; padding: 0; margin: 0 0 1.8rem; display: grid; gap: .55rem; }
.tn-hero__list li { display: flex; gap: .7rem; align-items: flex-start; color: #e7edf2; font-size: 1.02rem; }
.tn-hero__list li svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--tn-orange); margin-top: 2px; }
/* CTA layout: full-width primary on top, two equal outline buttons below. */
.tn-hero__cta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 560px;
}
.tn-hero__cta > .tn-btn { width: 100%; }
.tn-hero__cta > .tn-btn--primary { grid-column: 1 / -1; }
.tn-hero__media { position: relative; }

@media (max-width: 880px) {
  .tn-hero__grid { grid-template-columns: 1fr; gap: 30px; }
  .tn-hero__media { order: -1; }
}
@media (max-width: 520px) {
  /* Stack all three CTAs full-width on narrow phones. */
  .tn-hero__cta { grid-template-columns: 1fr; max-width: none; }
}
@media (max-width: 480px) {
  .tn-logo svg, .tn-logo img { height: 44px; }
}

/* =========================================================
   Media placeholders
   ========================================================= */
.tn-media {
  position: relative; width: 100%; border-radius: var(--tn-radius-lg);
  overflow: hidden; background: var(--tn-grey); box-shadow: var(--tn-shadow);
}
.tn-media img { width: 100%; height: 100%; object-fit: cover; }
.tn-media--4x3 { aspect-ratio: 4 / 3; }
.tn-media--3x4 { aspect-ratio: 3 / 4; }
.tn-media--16x9 { aspect-ratio: 16 / 9; }
.tn-media--1x1 { aspect-ratio: 1 / 1; }
.tn-media--3x2 { aspect-ratio: 3 / 2; }

.tn-ph {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; text-align: center;
  padding: 22px;
  background:
    repeating-linear-gradient(45deg, rgba(18,58,90,.04) 0 14px, rgba(18,58,90,.07) 14px 28px),
    var(--tn-grey);
  border: 2px dashed rgba(18,58,90,.22);
  border-radius: var(--tn-radius-lg);
  color: var(--tn-blue);
}
.tn-ph__icon { width: 46px; height: 46px; color: var(--tn-blue); opacity: .65; }
.tn-ph__label { font-family: var(--tn-font-head); font-weight: 600; font-size: 1.05rem; line-height: 1.2; max-width: 28ch; }
.tn-ph__hint { font-size: .8rem; color: var(--tn-text-soft); font-family: var(--tn-font-body); max-width: 30ch; }
.tn-ph__tag {
  font-family: var(--tn-font-head); font-weight: 600; font-size: .72rem; letter-spacing: 1px;
  text-transform: uppercase; background: var(--tn-blue); color: #fff;
  padding: 3px 10px; border-radius: 999px;
}

/* =========================================================
   Cards & grids
   ========================================================= */
.tn-grid { display: grid; gap: 24px; }
.tn-grid--2 { grid-template-columns: repeat(2, 1fr); }
.tn-grid--3 { grid-template-columns: repeat(3, 1fr); }
.tn-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .tn-grid--3, .tn-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .tn-grid--2, .tn-grid--3, .tn-grid--4 { grid-template-columns: 1fr; } }

.tn-card {
  background: var(--tn-white); border: 1px solid var(--tn-border);
  border-radius: var(--tn-radius-lg); padding: 28px;
  transition: transform .2s var(--tn-ease), box-shadow .2s var(--tn-ease), border-color .2s var(--tn-ease);
}
.tn-card:hover { transform: translateY(-4px); box-shadow: var(--tn-shadow-lg); }

/* Step cards */
.tn-step { background: var(--tn-white); border: 1px solid var(--tn-border); border-radius: var(--tn-radius-lg); padding: 26px; position: relative; }
.tn-step__num {
  font-family: var(--tn-font-head); font-weight: 700; font-size: 1.4rem;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--tn-blue); color: #fff;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.tn-step h3 { margin-bottom: .35rem; }

/* =========================================================
   Kit / variation cards
   ========================================================= */
.tn-kits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .tn-kits { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.tn-kit {
  display: flex; flex-direction: column;
  background: var(--tn-white); border: 1px solid var(--tn-border);
  border-radius: var(--tn-radius-lg); overflow: hidden;
  transition: transform .2s var(--tn-ease), box-shadow .2s var(--tn-ease), border-color .2s var(--tn-ease);
}
.tn-kit:hover { transform: translateY(-5px); box-shadow: var(--tn-shadow-lg); border-color: var(--tn-beige); }
.tn-kit--featured { border-color: var(--tn-orange); box-shadow: 0 10px 30px rgba(242,140,40,.18); }
.tn-kit__flag {
  background: var(--tn-orange); color: #1c1205; text-align: center;
  font-family: var(--tn-font-head); font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  font-size: .78rem; padding: 6px;
}
.tn-kit__media { aspect-ratio: 4 / 3; }
/* Media sits flush inside the card; the card's own radius/overflow rounds the outer
   corners. This keeps the featured card's image square beneath the "Most popular" flag. */
.tn-kit__media .tn-media, .tn-kit__media .tn-ph { border-radius: 0; box-shadow: none; }
.tn-kit__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.tn-kit__name { font-family: var(--tn-font-head); font-weight: 700; font-size: 1.5rem; color: var(--tn-blue); margin: 0 0 .15rem; }
.tn-kit__price { font-family: var(--tn-font-head); font-weight: 700; font-size: 2.1rem; color: var(--tn-charcoal); line-height: 1; margin-bottom: .2rem; }
.tn-kit__price small { font-size: .9rem; color: var(--tn-text-soft); font-weight: 400; }
.tn-kit__price .amount, .tn-kit__price ins, .tn-kit__price del { font-size: inherit; }
.tn-kit__price del { opacity: .55; font-weight: 400; margin-right: .35rem; }
.tn-kit__price ins { text-decoration: none; }
.tn-kit__delivery { display: block; font-size: .85rem; color: var(--tn-green); font-weight: 600; margin-top: .2rem; }
.tn-kit__price-na { font-size: 1.2rem; color: var(--tn-text-soft); font-weight: 600; }
.tn-kit__admin-note { font-size: .82rem; line-height: 1.4; color: #b3261e; margin: .6rem 0 0; }
.tn-btn:disabled, .tn-btn[disabled], .tn-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; box-shadow: none; }
.tn-btn:disabled:hover, .tn-btn[disabled]:hover, .tn-btn[aria-disabled="true"]:hover { transform: none; }
.tn-kit__best { font-size: .92rem; color: var(--tn-orange-600); font-weight: 600; margin-bottom: 1rem; }
.tn-kit__list { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .5rem; }
.tn-kit__list li { display: flex; gap: .55rem; align-items: flex-start; font-size: .96rem; color: var(--tn-text-soft); }
.tn-kit__list li svg { width: 18px; height: 18px; color: var(--tn-green); flex: 0 0 auto; margin-top: 3px; }
.tn-kit__cta { margin-top: auto; }
.tn-kit__assembly { font-size: .85rem; color: var(--tn-text-soft); margin: 0 0 1rem; font-style: italic; }

/* =========================================================
   Page prose (legal / content pages)
   ========================================================= */
.tn-prose { color: var(--tn-text); }
.tn-prose > *:first-child { margin-top: 0; }
.tn-prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 2rem 0 .6rem; }
.tn-prose h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin: 1.5rem 0 .5rem; }
.tn-prose p { margin: 0 0 1rem; }
.tn-prose ul, .tn-prose ol { margin: 0 0 1.2rem; padding-left: 1.3rem; display: grid; gap: .4rem; }
.tn-prose li { line-height: 1.6; }
.tn-prose a { color: var(--tn-blue); text-decoration: underline; text-underline-offset: 2px; }
.tn-prose a:hover { color: var(--tn-orange-600); }
.tn-prose strong { color: var(--tn-charcoal); }
.tn-prose hr { border: 0; border-top: 1px solid var(--tn-border); margin: 2rem 0; }

/* =========================================================
   Suitability lists
   ========================================================= */
.tn-fit { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .tn-fit { grid-template-columns: 1fr; } }
.tn-fit__col { background: var(--tn-white); border: 1px solid var(--tn-border); border-radius: var(--tn-radius-lg); padding: 26px; }
.tn-fit__col--yes { border-top: 4px solid var(--tn-green); }
.tn-fit__col--no { border-top: 4px solid var(--tn-red); }
.tn-fit__title { display: flex; align-items: center; gap: .5rem; font-family: var(--tn-font-head); font-weight: 700; font-size: 1.3rem; margin-bottom: 1rem; }
.tn-fit__title svg { width: 28px; height: 28px; flex: 0 0 auto; }
.tn-fit__col--yes .tn-fit__title { color: var(--tn-green); }
.tn-fit__col--no .tn-fit__title { color: var(--tn-red); }
.tn-fit__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.tn-fit__list li { display: flex; gap: .6rem; align-items: flex-start; font-size: 1rem; }
.tn-fit__list li svg { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 3px; }
.tn-fit__col--yes li svg { color: var(--tn-green); }
.tn-fit__col--no li svg { color: var(--tn-red); }

/* =========================================================
   Callouts / notices
   ========================================================= */
.tn-notice {
  display: flex; gap: 14px; align-items: flex-start;
  border-radius: var(--tn-radius); padding: 18px 20px; margin: 1.4rem 0;
}
.tn-notice svg { width: 24px; height: 24px; flex: 0 0 auto; margin-top: 1px; }
.tn-notice p { margin: 0; font-size: .98rem; }
.tn-notice--warn { background: rgba(184,67,53,.08); border: 1px solid rgba(184,67,53,.3); color: #7d2b21; }
.tn-notice--warn svg { color: var(--tn-red); }
.tn-notice--info { background: rgba(18,58,90,.06); border: 1px solid rgba(18,58,90,.18); color: var(--tn-blue); }
.tn-notice--info svg { color: var(--tn-blue); }
.tn-notice--ok { background: rgba(61,122,74,.08); border: 1px solid rgba(61,122,74,.3); color: #2c5837; }
.tn-notice--ok svg { color: var(--tn-green); }

/* =========================================================
   AI answer block
   ========================================================= */
.tn-answer {
  background: var(--tn-white); border-left: 5px solid var(--tn-orange);
  border-radius: 0 var(--tn-radius) var(--tn-radius) 0;
  padding: 20px 24px; box-shadow: var(--tn-shadow); margin-top: 1.4rem;
}
.tn-answer h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.tn-answer p { margin: 0; color: var(--tn-text-soft); }

/* =========================================================
   FAQ accordion
   ========================================================= */
.tn-faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.tn-faq__item { background: var(--tn-white); border: 1px solid var(--tn-border); border-radius: var(--tn-radius); overflow: hidden; }
.tn-faq__q {
  width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
  font-family: var(--tn-font-head); font-weight: 600; font-size: 1.18rem; color: var(--tn-blue);
  padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.tn-faq__q:hover { color: var(--tn-orange-600); }
.tn-faq__q .tn-faq__icon { flex: 0 0 auto; width: 22px; height: 22px; transition: transform .25s var(--tn-ease); color: var(--tn-orange); }
.tn-faq__item.is-open .tn-faq__icon { transform: rotate(45deg); }
.tn-faq__a { max-height: 0; overflow: hidden; transition: max-height .3s var(--tn-ease); }
.tn-faq__a-inner { padding: 0 22px 20px; color: var(--tn-text-soft); }
.tn-faq__item.is-open .tn-faq__a { max-height: 480px; }
.tn-faq__cta { margin: .9rem 0 0; }
.tn-faq__cta a { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--tn-font-head); font-weight: 600; color: var(--tn-blue); }
.tn-faq__cta a:hover { color: var(--tn-orange-600); }
.tn-faq__cta svg { width: 18px; height: 18px; }

/* =========================================================
   Forms (styled wrappers + fallback)
   ========================================================= */
.tn-formwrap { background: var(--tn-white); border: 1px solid var(--tn-border); border-radius: var(--tn-radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--tn-shadow); }
.tn-form-fallback {
  border: 2px dashed var(--tn-beige); background: var(--tn-offwhite);
  border-radius: var(--tn-radius); padding: 26px; text-align: left;
}
.tn-form-fallback h4 { font-family: var(--tn-font-head); color: var(--tn-charcoal); margin: 0 0 .4rem; font-size: 1.15rem; }
.tn-form-fallback p { margin: 0 0 .8rem; color: var(--tn-text-soft); font-size: .95rem; }
.tn-form-fallback code { background: var(--tn-grey); padding: 2px 7px; border-radius: 5px; font-size: .88rem; color: var(--tn-blue); }
.tn-form-fallback ul { margin: .4rem 0 0; padding-left: 1.1rem; color: var(--tn-text-soft); font-size: .9rem; }

/* Native Fluent Forms styling alignment (light touch) */
.tn-formwrap .ff-el-input--label label,
.tn-formwrap label { font-family: var(--tn-font-head); font-weight: 600; color: var(--tn-charcoal); }
.tn-formwrap input[type=text], .tn-formwrap input[type=email], .tn-formwrap input[type=tel],
.tn-formwrap input[type=url], .tn-formwrap select, .tn-formwrap textarea {
  width: 100%; font-family: var(--tn-font-body); font-size: 1rem;
  padding: .7em .85em; border: 1px solid var(--tn-border); border-radius: 8px; background: #fff; color: var(--tn-text);
}
.tn-formwrap input:focus, .tn-formwrap select:focus, .tn-formwrap textarea:focus { border-color: var(--tn-blue); outline: none; box-shadow: 0 0 0 3px rgba(18,58,90,.12); }

/* =========================================================
   Video block
   ========================================================= */
.tn-video__play {
  width: 76px; height: 76px; border-radius: 50%; background: var(--tn-orange); color: #1c1205;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(242,140,40,.4);
}
.tn-video__play svg { width: 30px; height: 30px; margin-left: 4px; }

/* =========================================================
   Footer
   ========================================================= */
.tn-footer { background: var(--tn-charcoal); color: #c5cbd1; padding: 64px 0 28px; }
.tn-footer a { color: #d7dde2; }
.tn-footer a:hover { color: var(--tn-orange); }
.tn-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
@media (max-width: 760px) { .tn-footer__grid { grid-template-columns: 1fr; gap: 28px; } }
.tn-footer__about p { font-size: .95rem; color: #aeb5bc; max-width: 42ch; }
.tn-footer__logo svg, .tn-footer__logo img { height: 70px; width: auto; margin-bottom: 16px; }
.tn-footer h4 { font-family: var(--tn-font-head); color: #fff; font-size: 1.15rem; margin: 0 0 14px; letter-spacing: .5px; }
.tn-footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.tn-footer__links a { font-size: .96rem; }
.tn-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center;
  font-size: .86rem; color: #9aa1a8;
}

/* =========================================================
   Trust strip
   ========================================================= */
.tn-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 760px) { .tn-trust { grid-template-columns: repeat(2, 1fr); } }
.tn-trust__item { display: flex; gap: 12px; align-items: flex-start; }
.tn-trust__item svg { width: 28px; height: 28px; color: var(--tn-orange); flex: 0 0 auto; }
.tn-trust__item strong { display: block; font-family: var(--tn-font-head); color: var(--tn-blue); font-size: 1.08rem; }
.tn-trust__item span { font-size: .9rem; color: var(--tn-text-soft); }
.tn-bg-blue .tn-trust__item strong { color: #fff; }
.tn-bg-blue .tn-trust__item span { color: #c3cdd6; }

/* =========================================================
   Compatibility diagram (simple SVG-friendly)
   ========================================================= */
.tn-diagram { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 1.4rem; }
@media (max-width: 620px) { .tn-diagram { grid-template-columns: 1fr; } }

/* =========================================================
   Utility
   ========================================================= */
.tn-mt-0 { margin-top: 0; }
.tn-mb-0 { margin-bottom: 0; }
.tn-mt-2 { margin-top: 2rem; }
.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;
}
.tn-skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999; background: var(--tn-blue); color: #fff;
  padding: 12px 18px; border-radius: 0 0 8px 0;
}
.tn-skip-link:focus { left: 0; color: #fff; }

/* Reveal animation (respectful) */
.tn-reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--tn-ease), transform .5s var(--tn-ease); }
.tn-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .tn-reveal { opacity: 1; transform: none; transition: none; }
  .tn-btn:hover, .tn-card:hover, .tn-kit:hover { transform: none; }
}

/* Problem section portrait image */
.tn-problem__media { margin: 0; }
.tn-problem__img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 825px;
  margin: 0 auto;
  border-radius: var(--tn-radius-lg);
}

/* Custom HTML video embed (e.g. Adilo) — the embed code supplies its own
   responsive wrapper so we only need overflow + border-radius here. */
.tn-video__embed { border-radius: var(--tn-radius-lg); overflow: hidden; }

/* =========================================================
   v1.0.1 — Dark-background contrast fixes
   ========================================================= */

/* Charcoal-section text (video/demo section uses tn-bg-charcoal).
   .tn-bg-charcoal already sets body colour to var(--tn-grey).
   Headings and .tn-lead have explicit colour rules that override
   inheritance, so they need the same treatment as .tn-bg-blue. */
.tn-bg-charcoal h1,
.tn-bg-charcoal h2,
.tn-bg-charcoal h3 { color: #ffffff; }
.tn-bg-charcoal .tn-eyebrow { color: var(--tn-orange); }
.tn-bg-charcoal .tn-lead { color: #d8e1ea; }

/* Logo fill override: all bundled SVGs embed their fills as inline
   style attributes (style="fill:#123a5a") and as fill presentation
   attributes. On dark blue/charcoal sections the brand blue logo
   body is invisible against the background. !important is required
   to override inline SVG style attributes. The orange cut-line
   (#f60 / #FF6600) does NOT match these selectors and is unaffected.
   Both lowercase and uppercase hex variants are matched for safety. */
.tn-origin-logo svg [style*="123a5a"],
.tn-origin-logo svg [style*="123A5A"],
.tn-origin-logo svg [fill="#123a5a"],
.tn-origin-logo svg [fill="#123A5A"],
.tn-footer__logo svg [style*="123a5a"],
.tn-footer__logo svg [style*="123A5A"],
.tn-footer__logo svg [fill="#123a5a"],
.tn-footer__logo svg [fill="#123A5A"] {
  fill: #F7F4EE !important;
}
