/* Tieroo site. Tokens from the brand book (brand/tokens.json). No third-party requests. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #14213D;
  --teal: #2EC4B6;
  --deep-teal: #0F766E;
  --amber: #F2A541;
  --surface: #FFFFFF;
  --paper: #F6F4EF;
  --ink: #14213D;
  --ink-muted: #4A5568;
  --ink-on-navy: #F6F4EF;
  --muted-on-navy: #B8C1D6;
  --link: #0F766E;
  --border: #E3E0D8;
  --border-on-navy: #26345A;

  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --radius-md: 10px;
  --radius-card: 20px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --section: clamp(64px, 9vw, 128px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
  scrollbar-color: var(--deep-teal) var(--paper);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 26px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--teal); color: var(--navy); }

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

h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
p { margin: 0; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--deep-teal); outline-offset: 3px; border-radius: 4px; }
.on-navy :focus-visible, .on-teal :focus-visible { outline-color: var(--amber); }
.on-teal :focus-visible { outline-color: var(--navy); }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  background: var(--amber); color: var(--navy); font-weight: 600;
  padding: 10px 16px; border-radius: var(--radius-md); text-decoration: none;
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* Surfaces */
.on-navy { background: var(--navy); color: var(--ink-on-navy); }
.on-navy a { color: var(--teal); }
.on-teal { background: var(--teal); color: var(--navy); }
.on-teal a { color: var(--navy); }
.on-paper { background: var(--paper); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border-radius: var(--radius-md);
  font: inherit; font-weight: 600; font-size: 16px; line-height: 24px;
  text-decoration: none;
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn-teal, .on-navy .btn-teal { background: var(--teal); color: var(--navy); }
.btn-teal:hover { background: #4fd1c4; }
.btn-navy { background: var(--navy); color: var(--ink-on-navy); }
.btn-navy:hover { background: #1f2f55; }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 15px; }

/* Header */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; }
.logo { flex: none; display: block; padding: 4px 0; }
.logo img { width: 140px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: var(--radius-md); font-weight: 500; font-size: 15px; text-decoration: none; }
.on-navy .nav a:not(.btn) { color: var(--ink-on-navy); }
.nav a:not(.btn):hover { text-decoration: underline; text-decoration-thickness: 2px; }
.nav .btn { margin-left: 8px; }
@media (max-width: 860px) {
  .nav .nav-link { display: none; }
}
@media (max-width: 380px) {
  .logo img { width: 120px; }
  .nav .btn { margin-left: 0; }
}

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero-body {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center; gap: 32px;
  padding-top: clamp(32px, 6vw, 88px);
  padding-bottom: clamp(56px, 8vw, 120px);
  min-height: min(76vh, 720px);
}
.hero h1 {
  font-size: clamp(2.75rem, 1.4rem + 5.4vw, 5.75rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--surface);
}
.hero .lead {
  margin-top: 28px; max-width: 34ch;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.5;
  color: var(--muted-on-navy);
}
.hero .lead strong { color: var(--ink-on-navy); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 40px; }
.hero-actions .text-link { font-weight: 600; }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  margin: 48px 0 0; padding: 0; list-style: none;
  font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted-on-navy);
}
.hero-facts li { display: flex; align-items: center; gap: 10px; }
.hero-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--teal); }

.hero-cards { position: relative; align-self: stretch; min-height: 340px; }
.hero-cards svg {
  position: absolute; left: 0; top: 50%;
  width: clamp(600px, 54vw, 900px); height: auto; max-width: none;
  transform: translateY(-46%);
}

/* The one authored motion: the front card settles onto the back card, then the dot lands. */
@media (prefers-reduced-motion: no-preference) {
  .card-front { animation: settle 1100ms var(--ease-out) 120ms both; }
  .card-dot { animation: dot 700ms var(--ease-out) 700ms both; transform-box: fill-box; transform-origin: center; }
  @keyframes settle { from { transform: translate(-56px, -64px); } to { transform: none; } }
  @keyframes dot { from { transform: scale(0.2); } to { transform: none; } }
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media (max-width: 860px) {
  .hero-body { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-bottom: 0; gap: 0; }
  .hero-cards { min-height: 0; height: clamp(220px, 62vw, 380px); margin-right: calc(-1 * var(--gutter)); margin-top: 40px; }
  .hero-cards svg { width: max(520px, 118vw); top: 0; transform: none; left: 18%; }
}

/* Sections */
.section { padding: var(--section) 0; }
.section-head { max-width: 40rem; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2, .h2 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  line-height: 1.08; letter-spacing: -0.025em;
}
.section-head p { margin-top: 20px; font-size: 18px; line-height: 30px; color: var(--ink-muted); }
.on-navy .section-head p { color: var(--muted-on-navy); }
.on-teal .section-head p { color: var(--navy); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); margin: 0; padding: 0; list-style: none; }
.steps li { border-top: 2px solid var(--navy); padding-top: 24px; }
.step-n {
  display: block; font-size: clamp(3.5rem, 2.6rem + 3vw, 5.5rem); line-height: 1; font-weight: 700;
  letter-spacing: -0.04em; color: var(--deep-teal); font-variant-numeric: tabular-nums;
}
.steps h3 { margin-top: 20px; font-size: 22px; line-height: 28px; }
.steps p { margin-top: 10px; color: var(--ink-muted); max-width: 34ch; }
.path {
  display: inline-block; font-weight: 600; color: var(--ink); white-space: nowrap;
}
@media (max-width: 760px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

/* Features */
.feature-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 6vw, 80px) clamp(32px, 6vw, 96px); }
.feature-group h3 {
  font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--deep-teal); padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.feature-group dl { margin: 0; }
.feature-group dt { margin-top: 24px; font-size: 19px; line-height: 26px; font-weight: 700; letter-spacing: -0.01em; }
.feature-group dd { margin: 6px 0 0; color: var(--ink-muted); max-width: 46ch; }
.feature-group ul { margin: 8px 0 0; padding-left: 20px; color: var(--ink-muted); }
.feature-group ul li::marker { color: var(--deep-teal); }
@media (max-width: 760px) {
  .feature-groups { grid-template-columns: minmax(0, 1fr); }
}

/* Customer Levels */
.levels-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.tag {
  display: inline-block; margin-bottom: 20px; padding: 4px 12px; border-radius: 999px;
  background: var(--navy); color: var(--ink-on-navy);
  font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
.levels-copy p { margin-top: 20px; font-size: 18px; line-height: 30px; max-width: 36rem; }
.levels-list { margin: 28px 0 0; padding: 0; list-style: none; }
.levels-list li { padding: 14px 0; border-top: 1px solid rgba(20, 33, 61, 0.28); }
.levels-list li:last-child { border-bottom: 1px solid rgba(20, 33, 61, 0.28); }
.levels-list strong { font-weight: 700; }
.levels-art { width: 100%; height: auto; }
.levels-note { margin-top: 16px; font-size: 14px; line-height: 20px; font-weight: 500; }
@media (max-width: 860px) {
  .levels-grid { grid-template-columns: minmax(0, 1fr); }
}

/* For whom */
.audiences { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.audiences li { padding: 28px clamp(16px, 2.5vw, 32px) 8px 0; }
.audiences li + li { padding-left: clamp(16px, 2.5vw, 32px); border-left: 1px solid var(--border); }
.audiences h3 { font-size: 22px; line-height: 28px; letter-spacing: -0.01em; }
.audiences p { margin-top: 10px; color: var(--ink-muted); }
@media (max-width: 760px) {
  .audiences { grid-template-columns: minmax(0, 1fr); }
  .audiences li, .audiences li + li { padding: 24px 0; border-left: 0; }
  .audiences li + li { border-top: 1px solid var(--border); }
}

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table caption { text-align: left; padding-bottom: 12px; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.price-table th, .price-table td { padding: 14px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: baseline; }
.price-table th:first-child, .price-table td:first-child { padding-left: 0; }
.price-table th:last-child, .price-table td:last-child { padding-right: 0; }
.price-table thead th { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-muted); border-bottom: 2px solid var(--navy); }
.price-table tbody th { font-weight: 600; }
.price-table .num { text-align: right; white-space: nowrap; }
.price-table .price { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.price-table .addon { color: var(--ink-muted); }
.price-table .free th, .price-table .free td { background: var(--surface); }
.price-table .free th { padding-left: 12px; border-radius: 10px 0 0 10px; }
.price-table .free td:last-child { padding-right: 12px; border-radius: 0 10px 10px 0; }
.price-table .free td, .price-table .free th { border-bottom-color: transparent; }
.pricing-notes { margin: 0; padding: 0; list-style: none; }
.pricing-notes li { padding: 18px 0; border-top: 1px solid var(--border); }
.pricing-notes li:last-child { border-bottom: 1px solid var(--border); }
.pricing-notes strong { display: block; font-size: 17px; }
.pricing-notes span { display: block; margin-top: 4px; color: var(--ink-muted); }
@media (max-width: 960px) {
  .pricing-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .price-table th, .price-table td { padding: 12px 6px; }
  .price-table .price { font-size: 18px; }
  .price-table tbody th { font-size: 15px; }
}

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font-size: 19px; line-height: 26px; font-weight: 700; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-right: 6px;
  border-right: 2px solid var(--deep-teal); border-bottom: 2px solid var(--deep-teal);
  transform: translateY(-3px) rotate(45deg); transition: transform 200ms var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq summary:hover { color: var(--deep-teal); }
.faq .answer { padding: 0 0 24px; max-width: 62ch; color: var(--ink-muted); }
.faq .answer p + p { margin-top: 12px; }
@media (max-width: 860px) {
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Get started */
.start { position: relative; overflow: hidden; }
.start-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.start h2 { color: var(--surface); }
.start ol { margin: 28px 0 0; padding-left: 22px; max-width: 40rem; font-size: 18px; line-height: 30px; color: var(--muted-on-navy); }
.start ol li + li { margin-top: 8px; }
.start ol li::marker { color: var(--teal); font-weight: 700; }
.start ol strong { color: var(--ink-on-navy); font-weight: 600; }
.start .note { margin-top: 24px; color: var(--muted-on-navy); max-width: 40rem; }
.mail {
  display: inline-block; margin-top: 36px;
  font-size: clamp(1.5rem, 1rem + 2.4vw, 2.5rem); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}
.on-navy .mail { color: var(--teal); }
.mail:hover { text-decoration-thickness: 4px; }
.start-cards svg { width: 100%; max-width: 460px; height: auto; margin-left: auto; }
@media (max-width: 860px) {
  .start-grid { grid-template-columns: minmax(0, 1fr); }
  .start-cards svg { max-width: 300px; margin: 0; }
}

/* Footer */
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--border-on-navy); font-size: 15px; line-height: 24px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; }
.site-footer .logo img { width: 128px; }
.site-footer address { font-style: normal; color: var(--muted-on-navy); margin-top: 20px; }
.site-footer h2 { font-size: 13px; line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-on-navy); font-weight: 600; }
.site-footer ul { margin: 14px 0 0; padding: 0; list-style: none; }
.site-footer ul li + li { margin-top: 6px; }
.site-footer .on-navy a, .site-footer a { color: var(--ink-on-navy); }
.fineprint { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border-on-navy); color: var(--muted-on-navy); font-size: 13px; line-height: 20px; max-width: 80ch; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

/* Read mode: legal pages */
.doc-header { border-bottom: 1px solid var(--border); }
.doc-header .nav a:not(.btn) { color: var(--ink); }
.draft {
  background: var(--amber); color: var(--navy);
  font-size: 14px; line-height: 20px; font-weight: 600; text-align: center; padding: 10px 16px;
}
.doc { padding: clamp(48px, 7vw, 96px) 0 var(--section); }
.doc-body { max-width: 68ch; }
.doc h1 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); line-height: 1.05; letter-spacing: -0.03em; }
.doc .meta { margin-top: 16px; color: var(--ink-muted); font-size: 15px; }
.doc h2 { margin-top: 56px; font-size: 24px; line-height: 30px; letter-spacing: -0.015em; }
.doc h3 { margin-top: 28px; font-size: 18px; line-height: 26px; }
.doc p, .doc ul, .doc ol { margin: 14px 0 0; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc li::marker { color: var(--deep-teal); }
.doc .intro { margin-top: 28px; font-size: 18px; line-height: 30px; }
.doc table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--border); }
.doc thead th { font-size: 12px; line-height: 16px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-muted); border-bottom: 2px solid var(--navy); }
.toc { margin-top: 32px; padding: 20px 24px; background: var(--paper); border-radius: var(--radius-card); }
.toc h2 { margin: 0; font-size: 13px; line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.toc ol { margin-top: 10px; columns: 2; column-gap: 32px; }
@media (max-width: 600px) { .toc ol { columns: 1; } .doc table { font-size: 14px; } }

/* 404 */
.notfound { min-height: 100vh; display: flex; flex-direction: column; }
.notfound main { flex: 1; display: flex; align-items: center; }
.notfound h1 { font-size: clamp(2.5rem, 1.6rem + 4vw, 4.5rem); line-height: 1; letter-spacing: -0.035em; color: var(--surface); }
.notfound p { margin-top: 20px; font-size: 18px; line-height: 30px; color: var(--muted-on-navy); max-width: 40ch; }
.notfound .hero-actions { margin-top: 32px; }

/* Utility */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
