/* =========================
   BRAND SYSTEM — Vinicio Lupo
   Mobile-first design system
   ========================= */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/css/fonts/inter-v18-latin-regular.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/css/fonts/inter-v18-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/css/fonts/inter-v18-latin-800.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --tm-navy:   #0F172A;
  --tm-slate:  #334155;
  --tm-bg:     #F8FAFC;
  --tm-teal:   #0F766E;
  --tm-amber:  #D97706;
  --tm-grey-100: #F1F5F9;
  --tm-grey-300: #CBD5E1;
  --tm-grey-500: #64748B;
  --tm-grey-600: #475569;
  --tm-grey-700: #334155;
  --tm-white:  #FFFFFF;

  --tm-radius-lg: 24px;
  --tm-radius-md: 16px;
  --tm-radius-sm: 12px;

  --tm-shadow:      0 12px 30px rgba(15, 23, 42, 0.08);
  --tm-shadow-soft: 0 4px 16px rgba(15, 23, 42, 0.06);
  --tm-border:      1px solid rgba(51, 65, 85, 0.12);
  --tm-max: 1180px;

  /* Spacing scale */
  --sp-xs: 12px;
  --sp-sm: 20px;
  --sp-md: 32px;
  --sp-lg: 52px;
  --sp-xl: 88px;
}

/* =========================
   RESET / BASE
   ========================= */

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

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

body {
  background: var(--tm-bg);
  color: var(--tm-slate);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4, h5, h6 {
  color: var(--tm-navy);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.5em;
}

/* Fluid type — starts mobile-appropriate, expands fluidly */
h1 { font-size: clamp(1.9rem, 7vw, 4.2rem); }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.8rem); }
h3 { font-size: clamp(1.05rem, 2.5vw, 1.35rem); }

p, li { color: var(--tm-slate); }
p + p  { margin-top: 0.75em; }

a { color: var(--tm-teal); text-decoration: none; }
a:hover { opacity: 0.85; }

.tm-skip-link {
  position: absolute;
  left: 12px;
  top: 8px;
  z-index: 1400;
  background: var(--tm-navy);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transform: translateY(-140%);
  transition: transform 160ms ease;
}

.tm-skip-link:focus,
.tm-skip-link:focus-visible {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.35);
  outline-offset: 2px;
}

/* =========================
   SITE HEADER — mobile first
   ========================= */

.site-header {
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(51, 65, 85, 0.08);
  position: sticky;
  top: 0;
  z-index: 300;
  transition: box-shadow 280ms ease, background 280ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.07);
}

.tm-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  position: relative;
}

/* Brand */
.tm-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--tm-navy);
  flex-shrink: 0;
  z-index: 1;
}

.tm-brand:hover { opacity: 1; }

.tm-site-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.tm-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--tm-navy), var(--tm-slate));
  display: grid;
  place-items: center;
  box-shadow: var(--tm-shadow-soft);
  flex-shrink: 0;
}

.tm-brand-mark::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.9);
  border-radius: 50%;
}

.tm-brand-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--tm-navy);
  letter-spacing: -0.02em;
}

.tm-brand-text span {
  display: none; /* hidden on mobile */
}

/* Hamburger button */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 9px;
  background: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  z-index: 1;
  transition: background 180ms;
}

.nav-toggle:hover { background: var(--tm-grey-100); }

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--tm-navy);
  border-radius: 2px;
  transition: transform 280ms ease, opacity 200ms ease;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.main-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  position: absolute;
  top: calc(100% + 1px);
  left: calc(-1 * (100vw - 100%) / 2);
  right: calc(-1 * (100vw - 100%) / 2);
  width: 100vw;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px 20px 20px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.08);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.1);
  animation: slideDown 220ms ease;
}

.main-nav.is-open { display: flex; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.main-nav a {
  color: var(--tm-slate);
  font-size: 15px;
  font-weight: 500;
  padding: 11px 14px;
  border-radius: 10px;
  transition: color 160ms ease, background 160ms ease;
  white-space: nowrap;
}

.main-nav a:hover  { color: var(--tm-navy); background: var(--tm-grey-100); opacity: 1; }

.main-nav a.active {
  color: var(--tm-teal);
  background: rgba(15, 118, 110, 0.08);
  font-weight: 600;
  opacity: 1;
}

.main-nav .nav-cta {
  background: var(--tm-teal);
  color: #fff !important;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 10px;
  margin-top: 4px;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.25);
  text-align: center;
}

.main-nav .nav-cta:hover {
  background: var(--tm-teal);
  color: #fff !important;
  transform: none;
  opacity: 0.92;
}

.main-nav .nav-cta.active {
  background: var(--tm-teal);
  color: #fff !important;
}

.tm-nav-lang {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 0;
  border-top: 1px solid rgba(51, 65, 85, 0.08);
  margin-top: 6px;
}

.tm-nav-lang a {
  font-size: 12px;
  font-weight: 700;
  color: var(--tm-grey-500);
  letter-spacing: 0.04em;
  padding: 4px 0;
  border-radius: 0;
}

.tm-nav-lang a:hover { color: var(--tm-teal); background: transparent; opacity: 1; }
.tm-nav-lang a[aria-current="page"] { color: var(--tm-navy); }
.tm-nav-lang a[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

/* =========================
   LAYOUT UTILITIES — mobile first
   ========================= */

.tm-container {
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
  margin-left: auto;
  margin-right: auto;
}

.tm-max-820 { max-width: 820px; margin-left: auto; margin-right: auto; }
.tm-center  { text-align: center; }

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

/* Sections: small on mobile, expand on desktop */
.tm-section        { padding: var(--sp-lg) 0; }
.tm-hero-section   { padding: var(--sp-lg) 0 var(--sp-md); }
.tm-section-alt    { background: rgba(241, 245, 249, 0.6); }

/* Grids — all start as 1 column */
.tm-grid-2,
.tm-grid-3,
.tm-grid-4,
.tm-offer-grid,
.tm-features-grid,
.tm-metrics-grid,
.tm-steps-grid,
.tm-pricing-grid,
.tm-dashboard-grid,
.tm-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* =========================
   COMPONENTS
   ========================= */

/* Badge */
.tm-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--tm-teal);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.tm-badge-dark {
  background: rgba(255,255,255,0.14);
  color: #fff;
}

/* Buttons — full-width on mobile */
.tm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: 180ms ease;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
  white-space: nowrap;
}

.tm-btn-primary {
  background: var(--tm-teal);
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.2);
}

.tm-btn-primary:hover { transform: translateY(-1px); filter: brightness(0.97); opacity: 1; }

.tm-btn-secondary {
  background: var(--tm-white);
  color: var(--tm-navy) !important;
  border-color: rgba(51, 65, 85, 0.16);
}

.tm-btn-secondary:hover { background: var(--tm-grey-100); opacity: 1; }

/* Card */
.tm-card {
  background: rgba(255,255,255,0.96);
  border: var(--tm-border);
  border-radius: var(--tm-radius-md);
  box-shadow: var(--tm-shadow-soft);
  padding: 20px;
}

.tm-card h3 { margin-top: 0; }
.tm-card > p { margin-top: 0.6em; }

/* List */
.tm-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.tm-list li {
  position: relative;
  padding-left: 22px;
  line-height: 1.6;
}

.tm-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--tm-teal);
}

/* Section head */
.tm-section-head { margin-bottom: 24px; }

.tm-section-head p {
  font-size: 16px;
  line-height: 1.7;
  margin-top: 0.6em;
}

/* =========================
   HERO
   ========================= */

.tm-hero-copy h1 {
  margin-top: 14px;
  margin-bottom: 14px;
}

.tm-hero-subtitle {
  font-size: 16px;
  line-height: 1.7;
}

.tm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

/* Hero panel — hidden on mobile, revealed on tablet+ */
.tm-hero-panel { display: none; }

/* Mock window */
.tm-panel-window {
  background: linear-gradient(180deg, #ffffff, #f6f9fc);
  border: var(--tm-border);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--tm-shadow);
  overflow: hidden;
  position: relative;
}

.tm-panel-window::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148,163,184,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.72), transparent);
  pointer-events: none;
}

.tm-panel-top {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.tm-panel-top span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--tm-grey-300);
}

.tm-panel-content {
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.tm-panel-card {
  background: rgba(255,255,255,0.92);
  border: var(--tm-border);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: var(--tm-shadow-soft);
}

.tm-panel-card strong {
  display: block;
  font-size: 11px;
  color: var(--tm-grey-500);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
}

.tm-panel-card p { margin: 0; font-size: 13px; }

/* =========================
   PROBLEM BOX
   ========================= */

.tm-problem-box {
  background: rgba(255,255,255,0.96);
  border: var(--tm-border);
  border-radius: var(--tm-radius-md);
  box-shadow: var(--tm-shadow-soft);
  padding: 22px;
}

.tm-problem-note {
  margin-top: 18px;
  color: var(--tm-grey-500);
  font-style: italic;
  font-size: 15px;
}

/* =========================
   CTA BOX
   ========================= */

.tm-cta-box {
  background: linear-gradient(135deg, rgba(15,23,42,1), rgba(51,65,85,0.96));
  color: #fff;
  border-radius: 22px;
  padding: 28px 22px;
  box-shadow: var(--tm-shadow);
}

.tm-cta-content { max-width: 760px; }

.tm-cta-box h2, .tm-cta-box p { color: #fff; }
.tm-cta-box p { opacity: 0.86; margin-top: 0.6em; font-size: 16px; }

/* =========================
   TRADING MONITOR
   ========================= */

.tm-page { background: var(--tm-bg); color: var(--tm-navy); }

/* In-page nav (TM page) */
.tm-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0 28px;
}

.tm-nav-links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.tm-nav-links a { color: var(--tm-slate); font-size: 14px; font-weight: 500; }
.tm-nav-links a:hover { color: var(--tm-teal); opacity: 1; }

.tm-dashboard {
  position: relative;
  background: linear-gradient(180deg, #ffffff, #f6f9fc);
  border: var(--tm-border);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--tm-shadow);
  overflow: hidden;
}

.tm-dashboard::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148,163,184,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
  pointer-events: none;
}

.tm-dashboard-top { display: flex; gap: 8px; margin-bottom: 14px; }
.tm-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--tm-grey-300); }

.tm-mini-card { padding: 14px; }
.tm-mini-card strong {
  display: block;
  font-size: 11px;
  color: var(--tm-grey-500);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.tm-mini-card span { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
.tm-kpi-trend { margin-top: 6px; font-size: 12px; color: var(--tm-teal); font-weight: 600; }

.tm-side-stack { display: grid; gap: 14px; }

.tm-chart {
  margin-top: 14px;
  height: 160px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(15,118,110,0.10), rgba(15,118,110,0.00)),
    linear-gradient(rgba(148,163,184,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.12) 1px, transparent 1px),
    #fff;
  background-size: auto, 24px 24px, 24px 24px, auto;
  overflow: hidden;
}
.tm-chart svg { width: 100%; height: 100%; }

.tm-metric {
  background: rgba(255,255,255,0.94);
  border: var(--tm-border);
  border-radius: var(--tm-radius-md);
  box-shadow: var(--tm-shadow-soft);
  padding: 20px;
}

.tm-metric strong { display: block; font-size: 12px; color: var(--tm-grey-500); margin-bottom: 10px; }
.tm-metric span   { display: block; font-size: clamp(22px, 6vw, 38px); line-height: 1; letter-spacing: -0.05em; margin-bottom: 6px; }
.tm-metric p      { margin: 0; line-height: 1.55; font-size: 14px; }

.tm-feature {
  background: rgba(255,255,255,0.94);
  border: var(--tm-border);
  border-radius: var(--tm-radius-md);
  box-shadow: var(--tm-shadow-soft);
  padding: 22px;
}

.tm-feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(15,118,110,0.08);
  color: var(--tm-teal);
  font-weight: 800;
  margin-bottom: 14px;
  font-size: 14px;
}

.tm-step {
  background: rgba(255,255,255,0.94);
  border: var(--tm-border);
  border-radius: var(--tm-radius-md);
  box-shadow: var(--tm-shadow-soft);
  padding: 20px;
}

.tm-step-index {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--tm-navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.tm-step h3 { margin: 0 0 6px; }

.tm-pricing {
  background: rgba(255,255,255,0.94);
  border: var(--tm-border);
  border-radius: var(--tm-radius-md);
  box-shadow: var(--tm-shadow-soft);
  padding: 24px;
}

.tm-price { margin: 14px 0 8px; display: flex; align-items: flex-end; gap: 8px; }
.tm-price strong { font-size: 44px; line-height: 0.95; letter-spacing: -0.06em; }
.tm-price span   { color: var(--tm-grey-500); padding-bottom: 6px; }

.tm-email-form { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }

.tm-email-form input[type="email"] {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.10);
  color: #fff;
  padding: 0 14px;
  font-size: 15px;
  outline: none;
}

.tm-email-form input::placeholder { color: rgba(255,255,255,0.55); }

/* =========================
   FORMS
   ========================= */

.tm-form-group { margin-bottom: 16px; }

.tm-form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--tm-navy);
}

.tm-form-group input,
.tm-form-group textarea,
.tm-form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(51, 65, 85, 0.16);
  border-radius: 12px;
  background: #fff;
  color: var(--tm-navy);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 180ms, box-shadow 180ms;
}

.tm-form-group input:focus,
.tm-form-group textarea:focus {
  outline: none;
  border-color: var(--tm-teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.tm-form-group textarea { resize: vertical; }

/* Alerts */
.tm-alert {
  padding: 13px 16px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-weight: 500;
  font-size: 15px;
}

.tm-alert-success { background: #d4edda; border: 1px solid #c3e6cb; color: #155724; }
.tm-alert-error   { background: #f8d7da; border: 1px solid #f5c6cb; color: #721c24; }

/* Contact page layout */
.tm-contact-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }

/* =========================
   SITE FOOTER
   ========================= */

.site-footer {
  padding: 22px 0 28px;
  border-top: 1px solid rgba(51, 65, 85, 0.1);
  background: var(--tm-white);
}

.tm-footer-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer small,
.site-footer a { color: var(--tm-grey-500); font-size: 14px; }

.tm-footer-links { display: flex; gap: 16px; flex-wrap: wrap; }

.site-toast-root {
  position: fixed;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  display: grid;
  gap: 10px;
  z-index: 1200;
  max-width: min(92vw, 420px);
}

.site-toast {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 14px 16px;
  background: rgba(15, 23, 42, 0.96);
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.24);
  transform: translateY(12px);
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-toast-text {
  margin: 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
}

.site-toast-action,
.site-toast-close {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
}

.site-toast-action {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 600;
}

.site-toast-close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 22px;
  line-height: 1;
}

.article-next-steps,
.article-author-box {
  background: rgba(255,255,255,0.96);
  border: var(--tm-border);
  border-radius: var(--tm-radius-md);
  box-shadow: var(--tm-shadow-soft);
  padding: 22px;
}

.article-next-steps h2,
.article-author-box h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

.article-next-steps p,
.article-author-box p {
  margin: 0;
}

.article-next-steps-links {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.article-next-steps-links a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(15, 118, 110, 0.06);
  color: var(--tm-navy);
  font-weight: 600;
}

.article-next-steps-links a::after {
  content: '→';
  color: var(--tm-teal);
}

.tm-faq-grid {
  display: grid;
  gap: 12px;
}

/* =========================
   MOBILE EXTRA-SMALL ≤ 400px
   ========================= */

@media (max-width: 400px) {
  .tm-container { padding-left: 14px; padding-right: 14px; }
  h1 { font-size: clamp(1.7rem, 8vw, 2.2rem); }
  .tm-hero-subtitle { font-size: 15px; }
  .tm-btn { width: 100%; }
  .tm-hero-actions { flex-direction: column; align-items: stretch; }
  .tm-cta-box { padding: 22px 18px; border-radius: 18px; }
  .tm-card { padding: 16px; }
  .main-nav .nav-cta { width: 100%; }
  .site-toast {
    grid-template-columns: 1fr auto;
  }
  .site-toast-close {
    grid-column: 2;
    grid-row: 1;
  }
  .site-toast-action {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* =========================
   SAFE AREA (iOS notch)
   ========================= */

.site-header,
.tm-header-inner { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.site-footer { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); padding-bottom: max(28px, env(safe-area-inset-bottom)); }

/* Anti-zoom iOS on form inputs (≥16px) + bigger tap targets */
input[type="email"],
input[type="text"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="url"],
input[type="password"],
textarea,
select { font-size: 16px; }

.main-nav a,
.tm-footer-links a,
.tm-btn,
button { min-height: 44px; }

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

/* =========================
   RESPONSIVE — tablet ≥ 640px
   ========================= */

@media (min-width: 640px) {
  :root { --sp-lg: 64px; }

  .tm-container { padding-left: 24px; padding-right: 24px; max-width: var(--tm-max); }

  .tm-grid-2    { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .tm-grid-3    { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .tm-grid-4    { grid-template-columns: repeat(2, 1fr); gap: 18px; }

  .tm-offer-grid      { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .tm-features-grid   { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .tm-metrics-grid    { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .tm-steps-grid      { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .tm-pricing-grid    { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .tm-dashboard-grid  { grid-template-columns: 1.2fr 0.8fr; gap: 16px; position: relative; z-index: 1; }

  .tm-contact-grid { grid-template-columns: 1fr 1fr; gap: 40px; }

  .tm-card        { padding: 24px; }
  .tm-cta-box     { padding: 36px 32px; border-radius: 26px; }
  .tm-panel-window { padding: 22px; }
  .tm-section-head p { font-size: 17px; }
  .tm-hero-subtitle  { font-size: 17px; }

  .tm-email-form { flex-direction: row; }
  .tm-email-form input[type="email"] { flex: 1 1 200px; width: auto; }

  .tm-footer-grid { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* =========================
   RESPONSIVE — tablet landscape ≥ 768px
   ========================= */

@media (min-width: 768px) {
  :root { --sp-lg: 76px; }

  /* Show tagline in brand */
  .tm-brand-text span { display: block; font-size: 10px; font-weight: 600; color: var(--tm-grey-500); letter-spacing: 0.07em; text-transform: uppercase; margin-top: 1px; }

  /* Switch to horizontal desktop nav */
  .nav-toggle { display: none; }

  .main-nav {
    display: flex !important;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    background: none;
    padding: 0;
    border: none;
    box-shadow: none;
    width: auto;
    backdrop-filter: none;
    animation: none;
  }

  .main-nav a {
    font-size: 14px;
    padding: 7px 13px;
    margin-top: 0;
  }

  .main-nav .nav-cta {
    padding: 8px 18px;
    margin-top: 0;
    margin-left: 10px;
    text-align: left;
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.28);
  }

  .main-nav .nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(15, 118, 110, 0.36);
    opacity: 1;
  }

  .tm-nav-lang {
    padding: 0;
    margin-top: 0;
    margin-left: 10px;
    border-top: none;
    gap: 8px;
  }

  .tm-nav-lang a {
    padding: 6px 2px;
  }

  .tm-section       { padding: var(--sp-xl) 0; }
  .tm-hero-section  { padding: var(--sp-xl) 0 calc(var(--sp-xl) * 1.1); }
  .tm-section-head  { margin-bottom: 32px; }

  .tm-card    { padding: 28px; }
  .tm-cta-box { padding: 40px 44px; }

  .tm-chart { height: 200px; }
}

/* =========================
   RESPONSIVE — desktop ≥ 900px (hero 2-col)
   ========================= */

@media (min-width: 900px) {
  .tm-hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
  }

  .tm-hero-panel { display: block; }
  .tm-hero-copy h1 { max-width: 13ch; }
  .tm-hero-subtitle { font-size: 18px; }
}

/* =========================
   RESPONSIVE — desktop ≥ 1024px
   ========================= */

@media (min-width: 1024px) {
  .tm-grid-3         { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .tm-grid-4         { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .tm-offer-grid     { grid-template-columns: 1.1fr 1fr 0.9fr; gap: 20px; }
  .tm-features-grid  { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .tm-metrics-grid   { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .tm-steps-grid     { grid-template-columns: repeat(4, 1fr); gap: 20px; }

  .tm-section-head   { max-width: 760px; margin-bottom: 36px; }
  .tm-section-head p { font-size: 18px; }
  .tm-chart { height: 220px; }
  .tm-site-logo { width: 40px; height: 40px; }
}

/* =========================
   COOKIE CONSENT BANNER
   ========================= */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--tm-navy);
  color: var(--tm-white);
  padding: 20px;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.15);
  font-size: 14px;
}

.cookie-banner[aria-hidden="true"] {
  display: none;
}

.cookie-banner-content {
  max-width: var(--tm-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

.cookie-banner-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  margin-top: 0;
}

.cookie-banner-description {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.cookie-banner-link {
  color: var(--tm-white);
  text-decoration: underline;
  text-underline-offset: 0.16em;
  font-weight: 600;
}

.cookie-banner-link:hover {
  color: #CCFBF1;
}

.cookie-banner-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Cookie Buttons */
.cookie-btn {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cookie-btn-primary {
  background: var(--tm-teal);
  color: var(--tm-white);
}

.cookie-btn-primary:hover {
  background: #0a5d56;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.3);
}

.cookie-btn-secondary {
  background: transparent;
  color: var(--tm-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.cookie-btn-tertiary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--tm-white);
  border: none;
}

.cookie-btn-tertiary:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.cookie-modal[aria-hidden="false"] {
  display: flex;
}

.cookie-modal-content {
  background: var(--tm-white);
  border-radius: 16px;
  padding: 40px;
  max-width: 500px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--tm-shadow);
}

.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--tm-slate);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.cookie-modal-close:hover {
  background: var(--tm-bg);
}

.cookie-modal-content h2 {
  font-size: 20px;
  color: var(--tm-navy);
  margin-bottom: 28px;
  margin-top: 0;
  padding-right: 20px;
}

.cookie-preference {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--tm-border);
}

.cookie-preference:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.cookie-preference-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.cookie-preference-header h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--tm-navy);
  margin: 0;
}

.cookie-badge {
  background: var(--tm-bg);
  color: var(--tm-slate);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.cookie-preference-description {
  font-size: 14px;
  color: var(--tm-slate);
  line-height: 1.6;
  margin: 0;
}

/* Cookie Toggle Switch */
.cookie-toggle {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.cookie-toggle input {
  display: none;
}

.toggle-slider {
  width: 44px;
  height: 24px;
  background: #cbd5e1;
  border-radius: 12px;
  position: relative;
  transition: background 0.3s ease;
}

.toggle-slider::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--tm-white);
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: left 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked + .toggle-slider {
  background: var(--tm-teal);
}

.cookie-toggle input:checked + .toggle-slider::after {
  left: 22px;
}

.cookie-modal-buttons {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.cookie-legal-note {
  font-size: 12px;
  color: var(--tm-grey-500);
  line-height: 1.5;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--tm-border);
}

.cookie-essential-warning {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 13px;
  line-height: 1.5;
}

button[disabled],
input[disabled],
textarea[disabled],
select[disabled] {
  cursor: not-allowed;
  opacity: 0.65;
}

/* Footer link button */
.footer-link-button {
  background: none;
  border: none;
  color: var(--tm-slate);
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link-button:hover {
  color: var(--tm-teal);
  text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .cookie-banner-content {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cookie-banner-buttons {
    justify-content: stretch;
  }

  .cookie-btn {
    flex: 1;
    min-width: 0;
  }

  .cookie-modal-content {
    padding: 24px;
    border-radius: 12px;
  }

  .cookie-modal-content h2 {
    font-size: 18px;
    margin-bottom: 20px;
  }
}


/* ── FAQ accordion ─────────────────────────────────────────────── */
.tm-faq-item {
  background: var(--tm-white, #fff);
  border: 1px solid var(--tm-grey-200, #e5e7eb);
  border-radius: var(--tm-radius-md, 10px);
  padding: 0;
  overflow: hidden;
  transition: box-shadow .2s;
}
.tm-faq-item[open] {
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.tm-faq-item summary {
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .975rem;
  color: var(--tm-navy, #0c1f3f);
  user-select: none;
}
.tm-faq-item summary::-webkit-details-marker { display: none; }
.tm-faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--tm-teal, #0d9488);
  transition: transform .2s;
  flex-shrink: 0;
  margin-left: 12px;
}
.tm-faq-item[open] summary::after { content: '−'; }
.tm-faq-item p {
  margin: 0;
  padding: 0 22px 18px;
  font-size: .93rem;
  color: var(--tm-grey-600, #6b7280);
  line-height: 1.7;
}
.tm-faq-item a { color: var(--tm-teal, #0d9488); }
