/* TechLoss site. Colours and type come from the app itself so the two feel like one product. */
:root {
  color-scheme: light dark;
  --bg: #FAF7F2; --surface: #FFFFFF; --band: #F1EADF; --line: #DDD4C6;
  --text: #1F1C18; --muted: #5F5950;
  --accent: #2F54EB; --accent-hover: #2546D6; --on-accent: #FFFFFF;
  --food: #C2461E; --good: #17784E;
  --f-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --f-body: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px; --gut: clamp(16px, 4vw, 40px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121417; --surface: #1B1E23; --band: #181B20; --line: #343941;
    --text: #F2F0EC; --muted: #B4B0A8;
    --accent: #9AACFF; --accent-hover: #B3C1FF; --on-accent: #10142B;
    --food: #FF9E7D; --good: #6FD3A4;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--f-body); }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; z-index: 5; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.mark { font-family: var(--f-display); font-weight: 800; font-size: 24px; letter-spacing: -.03em; color: var(--text); text-decoration: none; }
.mark i { font-style: normal; color: var(--accent); }
.top nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); }
.top nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 0; }
.top nav a:hover { color: var(--accent); }
.top nav a.btn { color: var(--on-accent); padding: 10px 16px; }
@media (max-width: 620px) { .top nav a:not(.btn) { display: none; } }

.btn { display: inline-block; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 16px; text-decoration: none; padding: 14px 22px; border-radius: 999px; border: 0; }
.btn:hover { background: var(--accent-hover); color: var(--on-accent); }

/* type */
h1, h2, h3 { font-family: var(--f-display); letter-spacing: -.03em; margin: 0; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(40px, 5.4vw, 70px); line-height: .98; letter-spacing: -.04em; hyphens: manual; }
h2 { font-weight: 750; font-size: clamp(30px, 4.2vw, 48px); line-height: 1.02; }
h3 { font-weight: 700; font-size: 20px; letter-spacing: -.015em; line-height: 1.2; }
p { margin: 0; }
.lede { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; color: var(--muted); max-width: 34em; }
.small { font-size: 14.5px; color: var(--muted); line-height: 1.5; }

/* hero: words on the left, the route on the right */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding-block: clamp(28px, 6vw, 80px) clamp(40px, 7vw, 96px); }
.hero .lede { margin-top: 22px; }
.hero .get { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .r-t { font-size: 22px; } .r-b { font-size: 24px; } }
.route { margin: 0; }
.route svg { display: block; width: 100%; height: auto; overflow: visible; }
.route figcaption { margin-top: 10px; }
.r-grid { stroke: var(--line); stroke-width: 1; }
.r-done { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.r-next { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 10; opacity: .75; }
.r-dot { fill: var(--bg); stroke: var(--accent); stroke-width: 3; }
.r-here { fill: var(--food); }
.r-halo { fill: var(--food); opacity: .16; }
.r-goal { fill: var(--good); }
.r-t { font: 600 15px var(--f-body); fill: var(--muted); }
.r-b { font: 700 17px var(--f-display); fill: var(--text); letter-spacing: -.01em; }
@media (prefers-reduced-motion: no-preference) {
  .r-done { stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw 1.5s .25s cubic-bezier(.4, 0, .2, 1) forwards; }
  .r-hereg { opacity: 0; animation: pop .45s 1.55s ease-out forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* sections */
.sec { padding-block: clamp(48px, 8vw, 104px); }
.sec > .wrap > h2 + .lede { margin-top: 16px; }
.band { background: var(--band); }

/* how it works: a real sequence, so it is numbered and joined by the same line as the route */
.steps { list-style: none; margin: clamp(28px, 4vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(16px, 2.6vw, 36px); counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-top: 46px; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); font: 800 15px/26px var(--f-display); text-align: center; color: var(--text); z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 14.5px; left: 32px; right: calc(-1 * clamp(16px, 2.6vw, 36px)); border-top: 3px dotted var(--accent); opacity: .6; }
.steps li:last-child::after { display: none; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 16px; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps li { padding: 0 0 0 50px; }
  .steps li::after { top: 32px; bottom: -26px; left: 14.5px; right: auto; border-top: 0; border-left: 3px dotted var(--accent); }
}

/* what's inside: a plain two-column list, not a wall of cards */
.inside { margin: clamp(28px, 4vw, 48px) 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 6vw, 88px); }
.inside div { padding: 22px 0; border-top: 1px solid var(--line); }
.inside dt { font: 700 20px/1.2 var(--f-display); letter-spacing: -.015em; }
.inside dd { margin: 6px 0 0; color: var(--muted); font-size: 16px; max-width: 30em; }
@media (max-width: 720px) { .inside { grid-template-columns: 1fr; } }

/* honest numbers */
.honest { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5vw, 72px); margin-top: clamp(28px, 4vw, 48px); }
.honest ul { margin: 14px 0 0; padding: 0; list-style: none; }
.honest li { padding: 12px 0 12px 30px; border-top: 1px solid var(--line); position: relative; }
.honest li::before { position: absolute; left: 0; top: 11px; font: 800 18px var(--f-display); }
.yes li::before { content: "✓"; color: var(--good); }
.no li::before { content: "✕"; color: var(--food); }
@media (max-width: 720px) { .honest { grid-template-columns: 1fr; } }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(28px, 4vw, 44px); max-width: 760px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.plan.pick { border: 2px solid var(--accent); padding: 25px; }
.plan .price { font: 800 46px/1 var(--f-display); letter-spacing: -.04em; margin-top: 12px; }
.plan .price span { font: 600 16px var(--f-body); letter-spacing: 0; color: var(--muted); }
.plan p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.plan .tag { display: inline-block; margin-left: 8px; font: 700 13px var(--f-body); letter-spacing: 0; color: var(--good); vertical-align: middle; }
.terms { margin-top: 20px; max-width: 46em; }
@media (max-width: 620px) { .plans { grid-template-columns: 1fr; } }

/* questions */
.faq { margin-top: clamp(24px, 3vw, 36px); max-width: 780px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 34px 18px 0; font: 700 19px/1.3 var(--f-display); letter-spacing: -.015em; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 500 26px var(--f-display); color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 40em; }

/* closing call and footer */
.close { text-align: left; }
.close .get { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.soon { font-weight: 600; color: var(--muted); }
footer { border-top: 1px solid var(--line); padding-block: 32px 48px; font-size: 15px; color: var(--muted); }
footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
footer a { color: var(--text); display: inline-block; padding: 6px 0; }
footer p + p { margin-top: 6px; }

/* legal and support pages */
.doc { overflow-wrap: anywhere; max-width: 760px; padding-block: clamp(24px, 4vw, 56px) 72px; }
.doc h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1; margin-bottom: 10px; }
.doc h2 { font-size: 24px; line-height: 1.15; margin: 36px 0 8px; letter-spacing: -.02em; }
.doc p, .doc ul, .doc ol { margin: 0 0 12px; }
.doc .m { color: var(--muted); }
.doc table { border-collapse: collapse; width: 100%; font-size: 15.5px; margin-bottom: 12px; }
.doc td, .doc th { border-bottom: 1px solid var(--line); padding: 10px 8px 10px 0; text-align: left; vertical-align: top; }
.doc .tablewrap { overflow-x: auto; }
.doc .draft { border: 2px dashed var(--food); border-radius: 12px; padding: 10px 14px; }

@media (max-width: 860px) { .route .r-t { font-size: 21px; } .route .r-b { font-size: 24px; } }
