/*
 * Trawa Romero — Night Dossier v1
 * A reversible presentation layer. It never changes routes, content, data hooks,
 * IDs, controls, or application state.
 */

:root {
  --trawa-paper: #f1e9df;
  --trawa-ink: #060608;
  --trawa-pink: #ef8caf;
  --trawa-gold: #c69c68;
  --trawa-hairline: rgba(241, 233, 223, .14);
  --trawa-glass: rgba(8, 8, 11, .80);
  --trawa-shadow: 0 32px 90px rgba(0, 0, 0, .58);
  --maxw: 1360px;
}

html {
  scroll-padding-top: 112px;
}

body {
  background-color: var(--trawa-ink);
  background-image:
    linear-gradient(90deg, transparent 0, transparent calc(50% - .5px), rgba(255,255,255,.025) 50%, transparent calc(50% + .5px)),
    radial-gradient(ellipse at 82% 7%, rgba(239, 140, 175, .13), transparent 38%),
    radial-gradient(ellipse at 12% 43%, rgba(198, 156, 104, .065), transparent 34%);
  background-size: 100% 100%, 100% 100%, 100% 100%;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .13;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 5px);
  mix-blend-mode: soft-light;
}

.wrap {
  width: min(100%, var(--maxw));
}

main:has(> .hero:first-child .hero-copy) > .sec-pad {
  padding-top: 48px;
  padding-bottom: 48px;
}

/* One calm, persistent command bar across the public site. */
body > header,
header.site {
  position: sticky;
  top: 0;
  z-index: 70;
  border-bottom: 1px solid var(--trawa-hairline);
  background: rgba(5, 5, 7, .78);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
  backdrop-filter: blur(20px) saturate(125%);
}

.nav {
  min-height: 88px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  position: relative;
  isolation: isolate;
}

.brand .mono,
.brand .mark {
  border: 0 !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  background-image: url('tr-logo-frame-1.webp') !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  background-position: center !important;
  box-shadow: none !important;
  filter: drop-shadow(0 0 14px rgba(239, 140, 175, .34)) !important;
  animation: none !important;
}

.brand .mono::before,
.brand .mono::after,
.brand .mark::before,
.brand .mark::after {
  content: none !important;
  display: none !important;
}

.brand .mark {
  width: 74px !important;
  height: 74px !important;
  background-image: url('tr-logo-frame-1.webp') !important;
  background-repeat: no-repeat !important;
}

.brand::after {
  content: "";
  position: absolute;
  left: 68px;
  bottom: 3px;
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--trawa-pink), transparent);
  opacity: .75;
}

.wordmark,
.brand-text .wordmark {
  letter-spacing: .19em !important;
}

.nav-links,
.nav-tools,
.nav-actions {
  align-items: center;
}

.nav-links {
  gap: clamp(14px, 2vw, 30px);
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 8px;
  left: 0;
  height: 1px;
  background: var(--trawa-pink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .28s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.lang-switch,
.btn,
.back,
.segment,
.text-action,
button {
  border-radius: 999px;
}

.btn {
  min-height: 48px;
}

.btn-pink {
  background: var(--trawa-paper);
  color: #160e11;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
}

.btn-pink:hover {
  background: var(--trawa-pink);
  box-shadow: 0 18px 44px rgba(239,140,175,.22);
}

.eyebrow,
.label,
.section-label,
.news-meta {
  letter-spacing: .28em;
}

/* The homepage eyebrow keeps one typographic voice across EN, PL and ES. */
main > .hero:first-child:has(.hero-copy) .hero-copy > .eyebrow {
  font-family: var(--ui, "Hanken Grotesk", system-ui, sans-serif) !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: .28em;
  text-transform: uppercase;
}

/* Homepage cover — a Trawa field dossier, not a centred template. */
main > .hero:first-child:has(.hero-copy) {
  overflow: clip;
  border-bottom: 0;
  padding: 12px 0 30px;
}

main > .hero:first-child:has(.hero-copy) > .wrap {
  position: relative;
}

main > .hero:first-child:has(.hero-copy) > .wrap::before {
  content: "TR / 2026";
  position: absolute;
  top: 8px;
  right: 33px;
  z-index: 12;
  color: rgba(241,233,223,.62);
  font: 700 13px/1 var(--ui, system-ui, sans-serif);
  letter-spacing: .34em;
  writing-mode: vertical-rl;
}

main > .hero:first-child:has(.hero-copy) .hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  min-height: 520px;
  height: auto;
}

main > .hero:first-child:has(.hero-copy) .hero-copy {
  grid-column: 1 / span 7;
  grid-row: 1;
  z-index: 8;
  padding: 36px 0 30px;
}

main > .hero:first-child:has(.hero-copy) .hero-copy::before {
  content: "";
  display: block;
  width: 76px;
  height: 5px;
  margin-bottom: 24px;
  background: var(--trawa-pink);
  box-shadow: 92px 0 0 -2px var(--trawa-gold);
}

main > .hero:first-child:has(.hero-copy) .hero h1,
main > .hero:first-child:has(.hero-copy) h1 {
  max-width: 830px;
  margin-top: 24px;
  font-size: clamp(58px, 7.1vw, 104px);
  line-height: .91;
  letter-spacing: -.045em;
  text-wrap: balance;
  text-shadow: 0 12px 44px rgba(0,0,0,.62);
}

main > .hero:first-child:has(.hero-copy) h1 .accent {
  display: inline-block;
  padding-right: .05em;
  color: var(--trawa-pink);
  font-style: italic;
  transform: rotate(-1.4deg);
}

main > .hero:first-child:has(.hero-copy) .sub {
  max-width: 540px;
  margin-top: 22px;
  padding-left: 22px;
  border-left: 1px solid rgba(239,140,175,.62);
  color: rgba(241,233,223,.72);
  font-size: 16px;
}

main > .hero:first-child:has(.hero-copy) .hero-cta {
  margin-top: 30px;
}

main > .hero:first-child:has(.hero-copy) .hero-visual {
  grid-column: 6 / -1;
  grid-row: 1;
  align-self: stretch;
  min-height: 460px;
  margin: 14px 24px 10px -18px;
  overflow: hidden;
  border: 1px solid rgba(241,233,223,.24);
  border-radius: 4px 58px 4px 4px;
  background: #0a080b;
  box-shadow: var(--trawa-shadow);
  clip-path: polygon(5% 0, 100% 0, 100% 94%, 92% 100%, 0 100%, 0 9%);
  transform: rotate(1.2deg);
}

main > .hero:first-child:has(.hero-copy) .hero-visual::before {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(5,5,7,.94), rgba(5,5,7,.2) 38%, transparent 63%),
    linear-gradient(0deg, rgba(5,5,7,.52), transparent 40%);
}

main > .hero:first-child:has(.hero-copy) .hero-visual::after {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 3;
  border: 1px solid rgba(241,233,223,.24);
  border-radius: 2px 42px 2px 2px;
  pointer-events: none;
}

main > .hero:first-child:has(.hero-copy) .hero-visual img {
  filter: saturate(.88) contrast(1.08) brightness(.88);
  transform-origin: 68% 50%;
}

/* Compact proof points: aligned, readable and consistent across locales. */
.trust {
  overflow: visible;
  padding: 0 0 26px;
  border: 0;
}

.trust-grid {
  gap: 10px;
}

.trust-item {
  min-height: 0;
  padding: 20px 18px;
  border: 1px solid var(--trawa-hairline) !important;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(18,17,21,.94), rgba(8,8,10,.9));
  box-shadow: 0 12px 34px rgba(0,0,0,.2);
  clip-path: none;
}

.trust-item:nth-child(even) {
  transform: none;
}

.trust-item .ico {
  color: var(--trawa-pink);
}

.trust-item h2 {
  font-size: 13px;
  letter-spacing: .23em;
}

/* Indexed editorial sections. */
#guide,
#products,
#legal,
#tracker {
  counter-increment: trawa-section;
}

main {
  counter-reset: trawa-section;
}

#guide > .wrap,
#products > .wrap,
#legal > .wrap,
#tracker > .wrap {
  position: relative;
}

#guide > .wrap::before,
#products > .wrap::before,
#legal > .wrap::before,
#tracker > .wrap::before {
  content: "0" counter(trawa-section);
  position: absolute;
  top: -40px;
  left: 18px;
  z-index: -1;
  color: rgba(239,140,175,.07);
  font: 600 clamp(96px, 14vw, 210px)/.75 var(--serif, Georgia, serif);
  letter-spacing: -.08em;
  pointer-events: none;
}

.steps-panel {
  overflow: visible;
  border: 0;
  background: transparent;
}

.steps-intro {
  position: relative;
  margin-bottom: 18px;
  border: 0;
  border-top: 1px solid var(--trawa-hairline);
  border-bottom: 1px solid var(--trawa-hairline);
  background: rgba(8,8,10,.55);
}

.steps-intro::after {
  content: "";
  position: absolute;
  top: -1px;
  right: 11%;
  width: 74px;
  height: 3px;
  background: var(--trawa-pink);
}

.steps-row {
  gap: 12px;
}

.step,
.step:nth-child(n+5),
.step:last-child {
  overflow: hidden;
  border: 1px solid var(--trawa-hairline);
  border-radius: 3px 30px 3px 3px;
  background: rgba(12,12,15,.82);
  box-shadow: 0 24px 60px rgba(0,0,0,.24);
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}

.step:nth-child(2n) {
  transform: translateY(14px);
}

.step.is-clickable:hover,
.step.is-clickable:focus-visible {
  transform: translateY(-4px) rotate(-.35deg);
  border-color: rgba(239,140,175,.55);
  background: rgba(22,16,20,.96);
}

.step-num {
  color: var(--trawa-pink);
  font-style: italic;
}

.legalline {
  width: fit-content;
  max-width: 100%;
  margin: 26px auto 0;
  padding: 10px 18px;
  border: 1px solid var(--trawa-hairline);
  border-radius: 999px;
  background: rgba(8,8,10,.62);
}

/* Homepage product journey: one continuous route, not a generic card shelf. */
#products .journey-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.72fr);
  overflow: hidden;
  border: 1px solid var(--trawa-hairline);
  border-radius: 3px 38px 3px 3px;
  background:
    linear-gradient(120deg, rgba(198,156,104,.075), transparent 32%),
    linear-gradient(145deg, rgba(17,16,20,.97), rgba(7,7,9,.98));
  box-shadow: var(--trawa-shadow);
}

#products .journey-shell::after {
  content: "TR / ROUTE 05";
  position: absolute;
  right: 22px;
  bottom: 15px;
  color: rgba(241,233,223,.34);
  font: 700 13px/1 var(--ui, system-ui, sans-serif);
  letter-spacing: .28em;
  pointer-events: none;
}

.journey-intro {
  position: relative;
  z-index: 1;
  padding: clamp(30px, 4vw, 54px) clamp(24px, 3vw, 42px);
  border-right: 1px solid var(--trawa-hairline);
  background:
    radial-gradient(circle at 4% 8%, rgba(239,140,175,.13), transparent 35%),
    rgba(9,9,12,.72);
}

.journey-intro::before {
  content: "";
  display: block;
  width: 62px;
  height: 4px;
  margin-bottom: 28px;
  background: var(--trawa-pink);
  box-shadow: 74px 0 0 -1px var(--trawa-gold);
}

.journey-index-label {
  display: block;
  margin: 18px 0 14px;
  color: rgba(241,233,223,.52);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.55;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.journey-intro h2 {
  max-width: 430px;
  margin: 0;
  color: var(--trawa-paper);
  font: 600 clamp(38px, 4.2vw, 60px)/.98 var(--serif, Georgia, serif);
  letter-spacing: -.045em;
  text-wrap: balance;
}

.journey-intro p {
  max-width: 430px;
  margin: 24px 0 0;
  color: rgba(241,233,223,.72);
  font-size: 16px;
  line-height: 1.7;
}

.journey-list {
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey-stop {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) minmax(210px, .7fr);
  gap: clamp(18px, 2.2vw, 30px);
  align-items: center;
  min-width: 0;
  padding: 26px clamp(22px, 2.6vw, 34px);
  border-bottom: 1px solid var(--trawa-hairline);
  background: rgba(8,8,10,.38);
  isolation: isolate;
  transition: background-color .22s ease;
}

.journey-stop:last-child {
  padding-bottom: 40px;
  border-bottom: 0;
}

.journey-stop::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  width: 3px;
  background: var(--trawa-pink);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform .22s ease;
}

.journey-stop:hover,
.journey-stop:focus-within {
  background: rgba(239,140,175,.055);
}

.journey-stop:hover::before,
.journey-stop:focus-within::before,
.journey-stop--wording::before {
  transform: scaleY(1);
}

.journey-stop--wording {
  background:
    linear-gradient(90deg, rgba(239,140,175,.105), transparent 72%),
    rgba(14,11,15,.78);
}

.journey-number {
  align-self: start;
  color: var(--trawa-pink);
  font: italic 500 42px/.9 var(--serif, Georgia, serif);
  letter-spacing: -.06em;
}

.journey-copy {
  min-width: 0;
}

.journey-label {
  display: block;
  margin-bottom: 7px;
  color: var(--trawa-gold);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.journey-copy h3 {
  margin: 0;
  color: var(--trawa-paper);
  font: 600 clamp(23px, 2.1vw, 31px)/1.08 var(--serif, Georgia, serif);
  letter-spacing: -.025em;
  text-wrap: balance;
}

.journey-copy p {
  max-width: 650px;
  margin: 10px 0 0;
  color: rgba(241,233,223,.7);
  font-size: 15.5px;
  line-height: 1.65;
}

.journey-outcome {
  min-width: 0;
  padding-left: clamp(18px, 2vw, 26px);
  border-left: 1px solid var(--trawa-hairline);
}

.journey-outcome > span {
  display: block;
  color: rgba(241,233,223,.48);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.journey-outcome strong {
  display: block;
  margin-top: 5px;
  color: rgba(241,233,223,.88);
  font-size: 14.5px;
  line-height: 1.45;
}

.journey-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  padding: 10px 15px;
  border: 1px solid rgba(239,140,175,.42);
  border-radius: 999px;
  color: var(--trawa-paper);
  background: rgba(239,140,175,.055);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.journey-action:hover,
.journey-action:focus-visible {
  border-color: var(--trawa-pink);
  color: #160e11;
  background: var(--trawa-pink);
}

/* The former duplicate document checklist is now a compact decision boundary. */
#legal .editorial-followup {
  display: grid;
  grid-template-columns: minmax(300px, .66fr) minmax(0, 1.7fr);
  gap: clamp(20px, 2.5vw, 34px);
  align-items: start;
}

#legal .journey-boundary {
  position: sticky;
  top: 112px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  padding: clamp(24px, 3vw, 34px);
  border-radius: 3px 30px 3px 3px;
  background:
    linear-gradient(150deg, rgba(198,156,104,.11), transparent 45%),
    rgba(10,10,13,.94);
}

.journey-boundary-age {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(198,156,104,.52);
  border-radius: 50%;
  color: var(--trawa-gold);
  font: 600 19px/1 var(--serif, Georgia, serif);
}

.journey-boundary h2 {
  margin: 10px 0 0;
  color: var(--trawa-paper);
  font: 600 clamp(25px, 2.55vw, 35px)/1.08 var(--serif, Georgia, serif);
  letter-spacing: -.03em;
  text-wrap: balance;
}

.journey-boundary p {
  margin: 17px 0 0;
  color: rgba(241,233,223,.7);
  font-size: 15px;
  line-height: 1.68;
}

.journey-boundary-actions {
  display: grid;
  gap: 9px;
  margin-top: 22px;
}

.journey-boundary-actions .age-notice,
.journey-boundary-actions a {
  display: inline-flex;
  align-items: center;
  width: 100%;
  min-height: 46px;
  padding: 10px 15px;
  border: 1px solid var(--trawa-hairline);
  border-radius: 999px;
  color: rgba(241,233,223,.84);
  background: rgba(255,255,255,.025);
  font: 750 13px/1.35 var(--ui, system-ui, sans-serif);
  text-align: left;
  text-decoration: none;
}

.journey-boundary-actions .age-notice {
  border-color: rgba(239,140,175,.46);
  color: var(--trawa-paper);
}

.journey-boundary-actions .age-notice:hover,
.journey-boundary-actions a:hover {
  border-color: var(--trawa-pink);
  background: rgba(239,140,175,.08);
}

#legal .editorial-followup #news-preview {
  min-width: 0;
  margin-top: 0;
}

/* Raise the homepage's smallest body and caption text above display-only sizes. */
.trust-item p,
.step p,
.tracker .ti p {
  font-size: 14.5px;
  line-height: 1.62;
}

.step-more,
.news-meta,
.visual-note,
.nb-checks div {
  font-size: 12.5px;
  line-height: 1.55;
}

.step-detail .sd-sub,
.sd-note,
.sd-disclaimer,
.sd-item span,
.access-step span {
  font-size: 14px;
  line-height: 1.62;
}

.news-head > .btn {
  min-height: 44px;
  font-size: 12.5px !important;
}

.foot-col a,
.foot-col span {
  font-size: 12.5px;
  line-height: 1.55;
}

.foot-disc h3 {
  font-size: 12px !important;
  letter-spacing: .14em;
}

.foot-disc p,
.foot-bottom .legal,
.foot-bottom .copy {
  font-size: 12px;
  line-height: 1.55;
}

.use-forms .section-head {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(240px,380px);
  align-items: end;
  gap: 24px;
  padding: 16px 0 12px;
  border-top: 1px solid var(--trawa-hairline);
}

.use-forms .section-head .htitle {
  max-width: 640px;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1;
  letter-spacing: -.035em;
}

.use-forms .section-head > p {
  max-width: 380px;
  padding-top: 0;
}

.use-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 10px;
  overflow: visible;
  border: 0;
  background: transparent;
}

.use-card {
  grid-column: auto;
  min-height: 0;
  padding: 18px 16px;
  border: 1px solid var(--trawa-hairline) !important;
  border-radius: 14px;
  background: rgba(10,10,13,.86);
}

.use-card:nth-child(1),
.use-card:nth-child(2),
.use-card:nth-child(4),
.use-card:nth-child(5),
.use-card:last-child {
  grid-column: auto;
}

.use-card .use-icon {
  color: var(--trawa-pink);
}

.use-card h3 {
  font-family: var(--serif, Georgia, serif);
  font-size: 21px;
  line-height: 1.08;
}

/* Documentation stays editorial but no longer consumes an entire viewport. */
#legal .two-col {
  gap: 20px;
}

#legal .docs {
  padding: clamp(22px, 2.5vw, 30px);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(19,17,21,.95), rgba(8,8,10,.96));
  box-shadow: 0 18px 48px rgba(0,0,0,.22);
}

.docs h2 {
  max-width: 740px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -.03em;
}

.age-box {
  transform: none;
  border-radius: 14px;
  background: rgba(5,5,7,.72);
}

#news-preview {
  margin-top: 24px;
}

.news-grid {
  align-items: start;
}

.news-card,
.news-feature {
  border-radius: 3px 30px 3px 3px;
  background: rgba(10,10,13,.9);
}

.news-card:nth-child(2) {
  margin-top: 20px;
}

.news-card:nth-child(3) {
  margin-top: 0;
}

.news-thumb {
  aspect-ratio: 4 / 3;
}

.news-body {
  padding: 20px 20px 24px;
}

.news-body h3 {
  font-size: clamp(19px, 2vw, 25px);
}

/* Price entry point: a cinematic, useful three-part module. */
.tracker {
  overflow: visible;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
  border: 0;
  background: transparent;
}

.tracker .cell {
  border: 1px solid var(--trawa-hairline) !important;
  border-radius: 16px;
  background: rgba(10,10,13,.88);
}

.tracker .ti {
  padding: clamp(22px, 2.5vw, 28px);
}

.tracker .ti h2 {
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
}

.tk-img {
  transform: none;
  box-shadow: 0 18px 48px rgba(0,0,0,.22);
}

.tk-chart {
  transform: none;
}

.tracker-visual-link {
  min-height: 170px !important;
  padding: 20px !important;
}

.tracker .access-list {
  gap: 10px;
}

.news-bar {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(13,12,15,.88);
}

.news-bar::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -56px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(239,140,175,.2);
  border-radius: 50%;
}

footer.site,
body > footer {
  border-top: 1px solid var(--trawa-hairline);
  background: linear-gradient(180deg, rgba(5,5,7,.2), #030304 35%);
}

#products,
#legal,
#tracker {
  padding-bottom: 28px;
}

footer.site .foot-grid {
  padding-top: 30px;
  padding-bottom: 22px;
}

footer.site .flap-band {
  padding: 18px 0 20px !important;
}

footer.site .flap-caption {
  margin-top: 8px;
}

footer.site .local-visitor-counter {
  margin-top: 10px;
}

/* Inner pages inherit the same editorial language without changing their flows. */
body > section.hero,
main > section.hero:not(:first-child),
body > main > section.hero:only-child {
  overflow: hidden;
}

body > section.hero > .wrap,
main > section.hero > .wrap:has(> h1) {
  position: relative;
  padding-top: clamp(60px, 8vw, 118px);
  padding-bottom: clamp(54px, 7vw, 96px);
  border-bottom: 1px solid var(--trawa-hairline);
}

body > section.hero > .wrap::after,
main > section.hero > .wrap:has(> h1)::after {
  content: "TR";
  position: absolute;
  right: 3%;
  bottom: -9%;
  color: rgba(239,140,175,.055);
  font: 600 clamp(160px, 26vw, 360px)/.8 var(--serif, Georgia, serif);
  letter-spacing: -.12em;
  pointer-events: none;
}

body > section.hero h1,
main > section.hero > .wrap:has(> h1) h1 {
  position: relative;
  z-index: 1;
  max-width: 980px;
  font-size: clamp(54px, 7.2vw, 102px);
  line-height: .92;
  letter-spacing: -.045em;
  text-wrap: balance;
}

main > section.hero > .wrap.hero-grid {
  position: relative;
  gap: clamp(28px, 6vw, 90px);
  padding-top: clamp(52px, 7vw, 94px);
  padding-bottom: clamp(48px, 7vw, 88px);
}

main > section.hero > .wrap.hero-grid h1 {
  max-width: 800px;
  font-size: clamp(54px, 7vw, 96px);
  line-height: .92;
  letter-spacing: -.045em;
}

.access-card,
.explorer,
.advanced-wrap,
.catalog-intro,
.catalog-controls,
.catalog-table,
main > .wrap > .section,
.section > .wrap > .news-list,
.note,
.callout,
.facts .fact {
  border-radius: 3px 28px 3px 3px !important;
}

.access-card {
  transform: rotate(.8deg);
  box-shadow: var(--trawa-shadow);
}

.explorer,
.catalog-table,
main > .wrap > .section {
  border-color: var(--trawa-hairline) !important;
  background: rgba(9,9,12,.84) !important;
}

.section-head h2,
.catalog-intro h2,
.news-list h2,
main > .wrap > .section > h2 {
  letter-spacing: -.025em;
}

.news-feature {
  transition: transform .3s ease, border-color .3s ease;
}

.news-feature:nth-child(even) {
  margin-left: clamp(0px, 5vw, 70px);
}

.news-feature:hover {
  transform: translateX(8px);
  border-color: rgba(239,140,175,.45);
}

table tbody tr {
  transition: background-color .22s ease, transform .22s ease;
}

@media (hover:hover) {
  table tbody tr:hover {
    background: rgba(239,140,175,.055);
  }
}

@media (max-width: 1180px) {
  .nav-links {
    gap: 14px;
  }

  .nav-links a {
    font-size: 13px;
    letter-spacing: .12em;
  }

  main > .hero:first-child:has(.hero-copy) .hero-grid {
    min-height: 500px;
  }

  main > .hero:first-child:has(.hero-copy) .hero h1,
  main > .hero:first-child:has(.hero-copy) h1 {
    font-size: clamp(54px, 7vw, 82px);
  }
}

@media (max-width: 1080px) {
  body > header,
  header.site {
    position: relative;
  }

  html {
    scroll-padding-top: 24px;
  }

  main > .hero:first-child:has(.hero-copy) {
    padding-top: 10px;
  }

  main > .hero:first-child:has(.hero-copy) .hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 0;
  }

  main > .hero:first-child:has(.hero-copy) .hero-copy {
    grid-column: 1;
    grid-row: 1;
    padding: 36px 0 22px;
  }

  main > .hero:first-child:has(.hero-copy) .hero-visual {
    grid-column: 1;
    grid-row: 2;
    min-height: clamp(320px, 52vw, 440px);
    margin: 10px 0 0;
    transform: none;
  }

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

  .trust-item:nth-child(even) {
    transform: none;
  }

  #products .journey-shell {
    grid-template-columns: 1fr;
  }

  .journey-intro {
    border-right: 0;
    border-bottom: 1px solid var(--trawa-hairline);
  }

  .journey-intro h2,
  .journey-intro p {
    max-width: 760px;
  }

  #legal .editorial-followup {
    grid-template-columns: 1fr;
  }

  #legal .journey-boundary {
    position: static;
  }

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

  .use-card,
  .use-card:nth-child(1),
  .use-card:nth-child(2),
  .use-card:nth-child(4),
  .use-card:nth-child(5) {
    grid-column: auto;
  }

  .use-card:last-child {
    grid-column: 1 / -1;
  }

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

  .tracker .ti {
    grid-column: 1 / -1;
  }

  .tk-img,
  .tk-chart,
  .age-box {
    transform: none;
  }
}

@media (max-width: 760px) {
  .wrap {
    padding-right: 20px;
    padding-left: 20px;
  }

  .nav {
    min-height: 74px;
  }

  .brand .mark {
    width: 58px !important;
    height: 58px !important;
  }

  .brand::after,
  main > .hero:first-child:has(.hero-copy) > .wrap::before {
    display: none;
  }

  main > .hero:first-child:has(.hero-copy) {
    padding-bottom: 24px;
  }

  main > .hero:first-child:has(.hero-copy) .hero-copy::before {
    margin-bottom: 24px;
  }

  main > .hero:first-child:has(.hero-copy) .hero h1,
  main > .hero:first-child:has(.hero-copy) h1 {
    font-size: clamp(48px, 14vw, 72px);
    line-height: .93;
  }

  main > .hero:first-child:has(.hero-copy) .sub {
    padding-left: 16px;
    font-size: 15px;
  }

  main > .hero:first-child:has(.hero-copy) .hero-visual {
    min-height: 300px;
    border-radius: 3px 34px 3px 3px;
    clip-path: polygon(6% 0,100% 0,100% 94%,92% 100%,0 100%,0 8%);
  }

  main > .hero:first-child:has(.hero-copy) .hero-visual::after {
    inset: 10px;
  }

  .trust {
    padding-bottom: 28px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-item,
  .trust-item:nth-child(even) {
    min-height: 0;
    transform: none;
  }

  .nav-toggle,
  .nav-links a,
  .lang-switch a,
  .pricebtn,
  .journey-action,
  .journey-boundary-actions .age-notice,
  .journey-boundary-actions a,
  .news-head > .btn {
    min-height: 48px;
  }

  .nav-links a {
    display: flex;
    align-items: center;
  }

  #products .journey-shell {
    border-radius: 3px 28px 3px 3px;
  }

  .journey-intro {
    padding: 30px 24px 32px;
  }

  .journey-intro h2 {
    font-size: clamp(38px, 11vw, 52px);
  }

  .journey-stop {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
    padding: 24px 20px;
  }

  .journey-stop:last-child {
    padding-bottom: 38px;
  }

  .journey-number {
    font-size: 36px;
  }

  .journey-copy h3 {
    font-size: 25px;
  }

  .journey-copy p {
    font-size: 15.5px;
  }

  .journey-outcome {
    grid-column: 2;
    padding: 16px 0 0;
    border-top: 1px solid var(--trawa-hairline);
    border-left: 0;
  }

  #legal .journey-boundary {
    top: auto;
  }

  .steps-intro {
    display: block;
  }

  .steps-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .step,
  .step:nth-child(n+5),
  .step:last-child,
  .step:nth-child(2n) {
    grid-column: 1;
    min-height: 0;
    transform: none;
  }

  .use-forms .section-head {
    display: block;
  }

  .use-forms .section-head > p {
    margin-top: 10px;
  }

  .use-grid {
    grid-template-columns: 1fr;
  }

  .use-card,
  .use-card:nth-child(1),
  .use-card:nth-child(2),
  .use-card:nth-child(4),
  .use-card:nth-child(5),
  .use-card:last-child {
    grid-column: 1;
    min-height: 0;
  }

  .tracker,
  .tracker .ti {
    grid-template-columns: 1fr;
    grid-column: 1;
  }

  .tracker-visual-link {
    min-height: 160px !important;
  }

  .docs-flex {
    grid-template-columns: 1fr;
  }

  .news-card:nth-child(2),
  .news-card:nth-child(3) {
    margin-top: 0;
  }

  .news-bar {
    border-radius: 28px 3px 3px 3px;
  }

  .news-feature:nth-child(even) {
    margin-left: 0;
  }

  .foot-col a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  body > section.hero h1,
  main > section.hero > .wrap:has(> h1) h1,
  main > section.hero > .wrap.hero-grid h1 {
    font-size: clamp(46px, 13vw, 70px);
  }
}

/* Mobile finish: keep the command bar compact while every action stays easy to tap. */
@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  body > header .nav,
  header.site .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand menu"
      "languages price";
    gap: 12px;
    align-items: center;
    min-height: 0;
    padding-top: 12px;
    padding-bottom: 14px;
  }

  body > header .nav > .brand,
  header.site .nav > .brand {
    grid-area: brand;
    min-width: 0;
  }

  body > header .nav > .nav-toggle,
  header.site .nav > .nav-toggle {
    grid-area: menu;
    justify-self: end;
    min-width: 48px;
    min-height: 48px;
  }

  body > header .nav > .lang-switch,
  header.site .nav > .lang-switch {
    grid-area: languages;
    justify-self: start;
    min-width: 0;
  }

  body > header .nav > .pricebtn,
  header.site .nav > .pricebtn {
    grid-area: price;
    justify-self: stretch;
    width: auto;
    min-width: 0;
    min-height: 48px;
  }

  .lang-switch a {
    min-width: 48px;
    min-height: 48px;
    font-size: 13px;
  }

  .nav-links a,
  .pricebtn,
  .btn,
  .journey-action,
  .journey-boundary-actions .age-notice,
  .journey-boundary-actions a {
    font-size: 13px;
  }

  .eyebrow,
  .section-label,
  .label,
  .news-meta {
    font-size: 12px;
    line-height: 1.55;
  }

  .local-visitor-counter .label {
    font-size: 12px !important;
  }

  .trust-item h2 {
    font-size: 12px;
    line-height: 1.45;
  }

  .step-more,
  button.step .step-more,
  .visual-note,
  .nb-checks div {
    font-size: 12px !important;
    line-height: 1.5;
  }

  .hero-grid,
  .hero-copy,
  .hero-visual,
  .trust-grid,
  .journey-shell,
  .journey-stop,
  .use-grid,
  .tracker,
  .news-grid {
    min-width: 0;
    max-width: 100%;
  }

  main > .hero:first-child:has(.hero-copy) .hero h1,
  main > .hero:first-child:has(.hero-copy) h1 {
    font-size: clamp(46px, 13vw, 68px);
  }

  main > .hero:first-child:has(.hero-copy) .sub {
    font-size: 16px;
    line-height: 1.65;
  }

  .journey-copy p,
  .journey-outcome strong,
  .trust-item p,
  .step p,
  .tracker .ti p {
    font-size: 16px;
    line-height: 1.65;
  }

  .foot-col a {
    min-height: 48px;
  }

  .foot-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
  }
}

@media (max-width: 520px) {
  main > .hero:first-child:has(.hero-copy) .hero-cta .btn {
    width: 100%;
  }

  main > .hero:first-child:has(.hero-copy) .hero-visual {
    min-height: 260px;
  }

  .journey-intro {
    padding-right: 20px;
    padding-left: 20px;
  }

  .journey-index-label {
    font-size: 12px;
  }

  .journey-stop {
    grid-template-columns: 42px minmax(0, 1fr);
    padding-right: 18px;
    padding-left: 18px;
  }

  .journey-outcome {
    grid-column: 1 / -1;
  }

  #legal .journey-boundary {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 20px;
  }

  .journey-boundary-age {
    width: 52px;
    height: 52px;
  }

  .checklist {
    grid-template-columns: 1fr;
  }

  .checklist li:last-child {
    grid-column: 1;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .legalline {
    align-items: flex-start;
    border-radius: 16px 3px 3px 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html,
  html:focus-within {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .nav-links a::after,
  .news-feature,
  .step,
  table tbody tr {
    transition: none !important;
  }

  main > .hero:first-child:has(.hero-copy) .hero-visual,
  .step:nth-child(2n),
  .trust-item:nth-child(even),
  .news-card:nth-child(2),
  .news-card:nth-child(3),
  .age-box,
  .access-card,
  .tk-img,
  .tk-chart {
    transform: none !important;
  }

  .visual-rotator .visual-frame {
    opacity: 0 !important;
    transform: none !important;
    transition: none !important;
  }

  .visual-rotator .visual-frame:first-child {
    z-index: 1 !important;
    opacity: 1 !important;
  }
}

/*
 * Some utility pages group every destination inside one nav-actions wrapper.
 * The standard two-row command-bar grid expects those controls as direct
 * children, so the grouped variant needs its own compact mobile composition.
 */
@media (max-width: 760px) {
  body > header .nav:has(> .nav-actions),
  header.site .nav:has(> .nav-actions) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    min-height: 0;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  body > header .nav:has(> .nav-actions) > .brand,
  header.site .nav:has(> .nav-actions) > .brand {
    align-self: flex-start;
    width: max-content;
    max-width: 100%;
  }

  body > header .nav:has(> .nav-actions) > .journey-links,
  header.site .nav:has(> .nav-actions) > .journey-links,
  body > header .nav:has(> .nav-actions) > .nav-actions,
  header.site .nav:has(> .nav-actions) > .nav-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 8px;
    padding: 2px 2px 7px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body > header .nav:has(> .nav-actions) > .journey-links::-webkit-scrollbar,
  header.site .nav:has(> .nav-actions) > .journey-links::-webkit-scrollbar,
  body > header .nav:has(> .nav-actions) > .nav-actions::-webkit-scrollbar,
  header.site .nav:has(> .nav-actions) > .nav-actions::-webkit-scrollbar {
    display: none;
  }

  body > header .nav:has(> .nav-actions) > .journey-links > a,
  header.site .nav:has(> .nav-actions) > .journey-links > a,
  body > header .nav:has(> .nav-actions) > .nav-actions > *,
  header.site .nav:has(> .nav-actions) > .nav-actions > * {
    flex: 0 0 auto;
    min-width: max-content;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  body > header .nav:has(> .nav-actions) > .nav-actions > .btn,
  header.site .nav:has(> .nav-actions) > .nav-actions > .btn {
    width: auto;
  }
}
