:root {
  --ti-navy: #08306b;
  --ti-blue: #0057b8;
  --ti-blue-2: #1e73d8;
  --ti-light-blue: #eef6ff;
  --ti-gold: #d8a316;
  --ti-gold-dark: #c79500;
  --ti-text: #10213f;
  --ti-body: #31435f;
  --ti-border: #d9e5f5;
  --ti-white: #ffffff;
  --ti-green: #2f9e63;
  --ti-violet: #6656c9;
  --ti-red: #b54545;
  --ti-shadow: 0 12px 30px rgba(8, 48, 107, 0.12);
  --ti-radius: 16px;
  --ti-max: 1180px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ti-text);
  background: #f8fbff;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ti-blue);
  text-decoration: none;
}

a:hover {
  color: var(--ti-navy);
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(216, 163, 22, 0.72);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  color: var(--ti-white);
  background: var(--ti-navy);
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--ti-border);
  box-shadow: 0 6px 18px rgba(8, 48, 107, 0.05);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(100% - 2rem, var(--ti-max));
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand img {
  display: block;
  width: min(292px, 52vw);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.25rem 0.72rem;
  color: var(--ti-text);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 800;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ti-blue);
  background: var(--ti-light-blue);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--ti-navy);
  background: var(--ti-white);
  border: 1px solid var(--ti-border);
  border-radius: 8px;
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.menu-lines {
  position: relative;
}

.menu-lines::before,
.menu-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-lines::before {
  top: -7px;
}

.menu-lines::after {
  top: 7px;
}

.hero-bg {
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 8%, rgba(216, 163, 22, 0.16), transparent 22rem),
    linear-gradient(135deg, #f5fbff 0%, #e9f5ff 64%, #ffffff 100%);
  border-bottom: 1px solid var(--ti-border);
}

.hero,
.section,
.footer-inner {
  width: min(100% - 2rem, var(--ti-max));
  margin: 0 auto;
}

.hero {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
  gap: clamp(1.6rem, 5vw, 4rem);
  align-items: center;
}

.hero.compact {
  grid-template-columns: 1fr;
}

.hero h1 {
  margin: 0;
  max-width: 850px;
  color: var(--ti-navy);
  font-size: clamp(2.25rem, 4.8vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.lead {
  max-width: 800px;
  margin: 1rem 0 0;
  color: var(--ti-body);
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
  line-height: 1.55;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  color: var(--ti-blue);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow::after {
  content: "";
  width: 42px;
  height: 3px;
  background: var(--ti-gold);
  border-radius: 999px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.72rem 1.05rem;
  color: var(--ti-blue);
  background: var(--ti-white);
  border: 1px solid var(--ti-blue);
  border-radius: 8px;
  font-weight: 850;
  line-height: 1.2;
  box-shadow: 0 6px 16px rgba(8, 48, 107, 0.06);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(8, 48, 107, 0.14);
}

.btn-primary {
  color: var(--ti-white);
  background: var(--ti-blue);
  border-color: var(--ti-blue);
}

.btn-primary:hover {
  color: var(--ti-white);
  background: var(--ti-navy);
}

.btn-gold {
  color: var(--ti-navy);
  background: var(--ti-gold);
  border-color: var(--ti-gold);
}

.btn-gold:hover {
  color: var(--ti-navy);
  background: var(--ti-gold-dark);
}

.btn-muted {
  color: var(--ti-body);
  background: #eef3fa;
  border-color: #d2dfef;
  box-shadow: none;
  cursor: not-allowed;
}

.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section.narrow {
  width: min(860px, calc(100% - 2rem));
  margin-right: auto;
  margin-left: auto;
}

.section + .section {
  padding-top: 0;
}

.section-header {
  max-width: 820px;
  margin-bottom: 1.4rem;
}

.section-header.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

h2,
.section-header h2 {
  margin: 0;
  color: var(--ti-navy);
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  line-height: 1.13;
  letter-spacing: 0;
}

h3 {
  color: var(--ti-navy);
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.panel,
.price-card,
.resource-card,
.lesson-card,
.account-panel,
.notice,
.table-wrap {
  background: var(--ti-white);
  border: 1px solid var(--ti-border);
  border-radius: var(--ti-radius);
  box-shadow: var(--ti-shadow);
}

.card,
.panel,
.price-card,
.resource-card,
.lesson-card,
.account-panel,
.notice {
  padding: 1.25rem;
}

.card p,
.panel p,
.price-card p,
.resource-card p,
.lesson-card p,
.account-panel p,
.notice p {
  color: var(--ti-body);
}

.icon-chip,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
}

.icon-chip {
  width: 48px;
  height: 48px;
  color: var(--ti-white);
  background: var(--ti-blue);
}

.icon-chip.gold {
  color: var(--ti-navy);
  background: var(--ti-gold);
}

.icon-chip.green {
  background: var(--ti-green);
}

.icon-chip.violet {
  background: var(--ti-violet);
}

.badge {
  padding: 0.28rem 0.58rem;
  color: var(--ti-white);
  background: var(--ti-blue);
  font-size: 0.78rem;
}

.badge.free {
  background: var(--ti-green);
}

.badge.premium {
  color: var(--ti-navy);
  background: var(--ti-gold);
}

.badge.locked {
  background: var(--ti-red);
}

.badge.test {
  background: var(--ti-violet);
}

.dashboard-grid,
.lesson-layout,
.auth-grid,
.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1rem;
  align-items: start;
}

.auth-grid,
.account-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
}

.check-list,
.plain-list,
.footer-links,
.step-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.plain-list li {
  position: relative;
  padding-left: 1.55rem;
  margin: 0.55rem 0;
  color: var(--ti-body);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.56rem;
  width: 0.58rem;
  height: 0.58rem;
  background: var(--ti-gold);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(216, 163, 22, 0.16);
}

.progress-track {
  width: 100%;
  height: 10px;
  overflow: hidden;
  background: #e3edf8;
  border-radius: 999px;
}

.progress-track span {
  display: block;
  width: 28%;
  height: 100%;
  background: linear-gradient(90deg, var(--ti-blue), var(--ti-gold));
}

.account-links {
  display: grid;
  gap: 0.65rem;
}

.account-links a,
.account-links span {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem;
  color: var(--ti-text);
  background: #f8fbff;
  border: 1px solid var(--ti-border);
  border-radius: 12px;
  font-weight: 800;
}

.locked-message {
  display: block;
}

[data-preview-access="member"] .locked-message {
  display: none;
}

[data-preview-access="visitor"] .member-only-action {
  display: none;
}

.access-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem;
  background: var(--ti-light-blue);
  border: 1px solid var(--ti-border);
  border-radius: var(--ti-radius);
}

.access-toolbar button[aria-pressed="true"] {
  color: var(--ti-white);
  background: var(--ti-blue);
}

.lesson-table {
  width: 100%;
  border-collapse: collapse;
}

.lesson-table th,
.lesson-table td {
  padding: 0.85rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--ti-border);
}

.lesson-table th {
  color: var(--ti-navy);
  background: var(--ti-light-blue);
  font-size: 0.86rem;
  text-transform: uppercase;
}

.sidebar {
  position: sticky;
  top: 104px;
}

.step-list {
  counter-reset: steps;
  display: grid;
  gap: 0.8rem;
}

.step-list li {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.75rem;
  color: var(--ti-body);
}

.step-list li::before {
  content: counter(steps);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  color: var(--ti-white);
  background: var(--ti-blue);
  border-radius: 50%;
  font-weight: 900;
}

.screenshot-placeholder {
  display: block;
  margin-top: 0.55rem;
  padding: 0.8rem;
  color: var(--ti-body);
  background: repeating-linear-gradient(45deg, #f8fbff, #f8fbff 12px, #edf4fc 12px, #edf4fc 24px);
  border: 1px dashed #a9c3e6;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 800;
}

.notice.warning {
  border-color: rgba(216, 163, 22, 0.45);
  background: #fff8e4;
}

.notice.locked {
  border-color: rgba(181, 69, 69, 0.26);
  background: #fff5f5;
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

.form-field {
  display: grid;
  gap: 0.35rem;
}

.form-field label {
  color: var(--ti-text);
  font-weight: 850;
}

.form-field input {
  width: 100%;
  padding: 0.78rem 0.85rem;
  color: var(--ti-text);
  border: 1px solid #c9d8eb;
  border-radius: 10px;
}

.form-message {
  display: none;
  margin: 0;
  padding: 0.8rem;
  color: var(--ti-navy);
  background: var(--ti-light-blue);
  border: 1px solid var(--ti-border);
  border-radius: 10px;
  font-weight: 800;
}

.form-message.is-visible {
  display: block;
}

.note {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  color: var(--ti-body);
  background: #fff8e4;
  border: 1px solid rgba(216, 163, 22, 0.35);
  border-radius: 12px;
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  padding: clamp(1.4rem, 4vw, 2.25rem);
  color: var(--ti-white);
  background:
    radial-gradient(circle at 86% 10%, rgba(216, 163, 22, 0.32), transparent 18rem),
    linear-gradient(135deg, #08306b 0%, #0057b8 100%);
  border-radius: var(--ti-radius);
  box-shadow: var(--ti-shadow);
}

.cta-band h2 {
  color: var(--ti-white);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.88);
}

.site-footer {
  color: rgba(255, 255, 255, 0.82);
  background:
    radial-gradient(circle at 85% 8%, rgba(216, 163, 22, 0.24), transparent 20rem),
    linear-gradient(135deg, #061f47 0%, #08306b 100%);
}

.footer-inner {
  padding: clamp(2.5rem, 5vw, 4.2rem) 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, minmax(120px, 1fr));
  gap: 1.4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-column h3,
.footer-brand h2 {
  margin: 0 0 0.65rem;
  color: var(--ti-white);
}

.footer-brand strong {
  color: var(--ti-gold);
}

.footer-links {
  display: grid;
  gap: 0.38rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  font-size: 0.9rem;
}

@media (max-width: 1040px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 0.8rem 0;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
  }

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

  .hero,
  .dashboard-grid,
  .lesson-layout,
  .auth-grid,
  .account-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .grid.four,
  .grid.three,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .header-inner,
  .hero,
  .section,
  .footer-inner {
    width: min(100% - 1.25rem, var(--ti-max));
  }

  .brand img {
    width: min(230px, 68vw);
  }

  .hero h1 {
    font-size: clamp(2.1rem, 10vw, 3.1rem);
  }

  .grid.four,
  .grid.three,
  .grid.two,
  .footer-grid,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .table-wrap {
    overflow-x: auto;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

.software-config-checklist {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid #dce8f6;
}

.software-config-checklist h3 {
  margin: 0;
  color: var(--ti-navy);
  font-size: 1.05rem;
}

.software-config-checklist > p {
  margin: 0.45rem 0 0;
}

.software-config-scroll {
  overflow-x: auto;
  margin-top: 0.2rem;
}

.software-config-table {
  min-width: 820px;
}

.software-config-table th:nth-child(1) {
  width: 22%;
}

.software-config-table th:nth-child(3),
.software-config-table th:nth-child(4) {
  width: 27%;
}


/* Final sitewide footer */
.tia-global-footer {
  margin-top: clamp(2.5rem, 6vw, 5rem);
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1rem, 3vw, 2rem) 1.5rem;
  background: linear-gradient(110deg, #061f48 0%, #07336f 62%, #173c68 100%);
  color: #ffffff;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tia-global-footer__inner {
  width: min(1500px, 100%);
  margin: 0 auto;
}

.tia-global-footer__grid {
  display: grid;
  grid-template-columns: minmax(250px, 1.45fr) repeat(4, minmax(135px, 1fr));
  gap: clamp(1.5rem, 3vw, 3.5rem);
  align-items: start;
}

.tia-global-footer h2,
.tia-global-footer h3,
.tia-global-footer p {
  color: #ffffff;
}

.tia-global-footer h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.15;
}

.tia-global-footer h2 strong {
  color: #f2b520;
}

.tia-global-footer h3 {
  margin: 0 0 1rem;
  font-size: 0.93rem;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tia-global-footer p {
  margin: 0 0 1rem;
  line-height: 1.7;
}

.tia-global-footer__disclaimer {
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 0.94rem;
}

.tia-global-footer ul {
  display: grid;
  gap: 0.72rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tia-global-footer a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
}

.tia-global-footer a:hover,
.tia-global-footer a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.tia-global-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: clamp(2rem, 4vw, 3.25rem);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
}

@media (max-width: 1180px) {
  .tia-global-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tia-global-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .tia-global-footer__grid {
    grid-template-columns: 1fr;
  }

  .tia-global-footer__brand {
    grid-column: auto;
  }

  .tia-global-footer__bottom {
    flex-direction: column;
  }
}
