/* Landing extras (TRT tracking page, app screenshots, dose-move arrows) layered on landing.css.
   Everything animated hangs off the same hooks landing.js already sets
   (.rv / .is-in on .lp-widget), so it needs no extra script. */

/* ---------- "why track" cards ---------------------------------------- */
.trt-why { list-style: none; margin: 2.4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trt-why li { position: relative; overflow: hidden; padding: 24px 22px 22px; border-radius: 22px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); transition: transform .3s var(--lp-ease), border-color .3s, box-shadow .3s; }
.trt-why li:hover { transform: translateY(-5px); border-color: rgba(255, 138, 155, .55); box-shadow: 0 0 36px var(--in-glow-b); }
.trt-why .n { position: absolute; top: 4px; right: 16px; font: 800 4rem/1 var(--in-font-display); color: rgba(255, 255, 255, .06); pointer-events: none; }
.trt-why .ic { width: 48px; height: 48px; border-radius: 15px; background: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; box-shadow: 0 0 28px var(--in-glow-card); }
.trt-why .ic svg { width: 24px; height: 24px; stroke: var(--in-accent); fill: none; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.trt-why h3 { font-family: var(--in-font-display); font-weight: 800; text-transform: uppercase; font-size: 1.5rem; line-height: 1; color: #fff; margin: 0 0 .5rem; }
.trt-why p { margin: 0; color: var(--in-muted-on-dark); font-size: .97rem; }

/* ---------- 1-5 rating rows (diary widget) -------------------------- */
.trt-scale-row { display: grid; grid-template-columns: 9.4rem 1fr 1.6rem; gap: 12px; align-items: center; margin-bottom: 13px; font-size: .86rem; }
.trt-scale-row .nm { font-weight: 600; }
.trt-scale-row .v { text-align: right; font: 800 1.15rem var(--in-font-display); color: var(--in-ink); }
.trt-dots { display: flex; gap: 6px; }
.trt-dots i { position: relative; flex: 1; height: 24px; border-radius: 8px; background: #EEF0F4; overflow: hidden; }
.trt-dots i::after { content: ""; position: absolute; inset: 0; border-radius: 8px; background: linear-gradient(0deg, #E11D48, #FF5C7C); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .5s var(--lp-ease) calc(var(--d, 0s) + var(--k, 0) * .11s); }
.lp-widget.is-in .trt-dots i.on::after, .no-js .trt-dots i.on::after { transform: scaleY(1); }
.trt-note { margin-top: 6px; padding: 10px 12px; border-radius: 12px; background: #F7F8FB; border-left: 4px solid var(--in-accent); font-size: .84rem; color: #3B4252; }
.trt-note small { display: block; color: #8A92A3; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }

/* ---------- charts: dated markers + legend --------------------------- */
.lp-svgchart .trt-mark { stroke: var(--in-accent); stroke-width: 1.6; stroke-dasharray: 3 5; opacity: 0; transition: opacity .6s ease var(--md, 1.2s); }
.lp-svgchart .trt-mark.b { stroke: #8A92A3; }
.lp-svgchart .trt-mlb { fill: var(--in-accent-text, #B4123A); font: 700 10.5px var(--in-font-body); opacity: 0; transition: opacity .6s ease var(--md, 1.2s); }
.lp-svgchart .trt-mlb.b { fill: #5B6270; }
.lp-widget.is-in .trt-mark, .lp-widget.is-in .trt-mlb, .no-js .trt-mark, .no-js .trt-mlb { opacity: 1; }
.lp-svgchart .trt-flat { fill: none; stroke: #8A92A3; stroke-width: 2.4; stroke-dasharray: 7 6; stroke-linecap: round; opacity: 0; transition: opacity .8s ease .3s; }
.lp-widget.is-in .trt-flat, .no-js .trt-flat { opacity: 1; }
.trt-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 0; padding: 0; list-style: none; font-size: .8rem; color: #4A5160; }
.trt-legend li { display: inline-flex; align-items: center; gap: 7px; }
.trt-legend i { width: 22px; height: 0; border-top: 3px solid var(--in-accent); border-radius: 2px; }
.trt-legend i.g { border-top: 3px dashed #8A92A3; }
.trt-legend i.d { border-top: 2px dotted var(--in-accent); }
.trt-demo { margin: 12px 0 0; font-size: .72rem; color: #8A92A3; }

/* ---------- pain -> fix pairs ---------------------------------------- */
.trt-solve { display: grid; gap: 14px; margin-top: 2.4rem; }
.trt-pair { display: grid; grid-template-columns: 1fr 52px 1fr; gap: 14px; align-items: stretch; }
.trt-pair .p, .trt-pair .s { padding: 18px 20px; border-radius: 20px; }
.trt-pair .p { background: rgba(225, 29, 72, .09); border: 1px solid rgba(255, 138, 155, .22); color: #D3D7E0; }
.trt-pair .p b, .trt-pair .s b { display: block; margin-bottom: 3px; }
.trt-pair .p b { color: #FFB3C0; }
.trt-pair .s { background: #fff; color: var(--in-ink); box-shadow: 0 0 0 1px rgba(255, 255, 255, .7), 0 0 34px var(--in-glow-card); }
.trt-pair .s span { color: #4A5160; font-size: .95rem; }
.trt-pair .a { align-self: center; justify-self: center; width: 42px; height: 42px; border-radius: 50%; background: var(--in-accent); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 26px var(--in-glow-a); }
.trt-pair .a svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- related links -------------------------------------------- */
.trt-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; margin: 2rem 0 0; padding: 0; list-style: none; }
.trt-links a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05); color: #E8EAF0; font-weight: 600; font-size: .92rem; text-decoration: none; transition: background .25s, border-color .25s; }
.trt-links a:hover { background: rgba(255, 255, 255, .12); border-color: var(--lp-pink); color: #fff; }

@media (max-width: 991.98px) {
  .trt-why { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767.98px) {
  .trt-pair { grid-template-columns: 1fr; }
  .trt-pair .a { transform: rotate(90deg); }
  .trt-scale-row { grid-template-columns: 7.2rem 1fr 1.4rem; gap: 9px; }
}
@media (max-width: 575.98px) {
  .trt-why { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .trt-dots i::after { transition-duration: .001s; transition-delay: 0s; }
}

/* ---------- app screenshots (home page + How it works) --------------- */
.lp-shots { display: flex; justify-content: center; align-items: flex-end; gap: 22px; flex-wrap: wrap; }
.lp-shots figure { margin: 0; text-align: center; flex: 0 1 300px; min-width: 0; }
.lp-shots img { display: block; width: 100%; height: auto; border-radius: 24px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 0 50px var(--in-glow-card), 0 26px 46px -18px rgba(0, 0, 0, .75); }
.lp-shots figure.lp-shot-phone { flex-basis: 230px; }
.lp-shots figure.lp-shot-phone img { border-radius: 30px; border: 6px solid #11141c; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 0 50px var(--in-glow-b), 0 26px 46px -18px rgba(0, 0, 0, .85); }
.lp-shots figcaption { margin-top: 12px; font-size: .84rem; color: var(--in-muted-on-dark); }

/* dose-move arrow in the dashboard screen preview */
.mk-pr .mv { flex: none; font-weight: 700; font-size: calc(var(--u) * 9); line-height: 1; padding: calc(var(--u) * 2) calc(var(--u) * 5); border: 1px solid #E3E6EE; border-radius: calc(var(--u) * 5); color: #8A92A3; background: #fff; }
.trt-scale-row .nm small { display: block; font-weight: 500; font-size: .72rem; color: #6B7385; margin-top: 1px; }
.trt-sub { margin: 16px 0 10px; padding-top: 14px; border-top: 1px solid #E3E6EE; font: 700 .72rem var(--in-font-body); letter-spacing: .1em; text-transform: uppercase; color: #5B6270; }
.trt-sub small { font-weight: 500; letter-spacing: .02em; text-transform: none; color: #8A92A3; }
.trt-dots.four i { height: 20px; }
