/* TouringIn — Asphalt & Signal on the web.
   One accent, spent on the single action; asphalt ground; type does the work.
   No framework: a stylesheet, a little inline SVG, one small script. */

:root {
  --ground: #0B0C0F;
  --raise: #121319;
  --card: #16171E;
  --line: #23252E;
  --line-2: #2E3140;
  --text: #F4F2EC;
  --muted: #9CA0AB;
  --dim: #6E727E;
  --accent: #FF6A1A;
  --accent-soft: rgba(255, 106, 26, .14);
  --signal: #FFC630;
  --ok: #22C55E;
  --wrap: 1140px;
  --r: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid rgba(255, 106, 26, .32); border-radius: 999px; padding: 6px 13px;
}
.eyebrow.calm { color: var(--muted); background: rgba(255,255,255,.04); border-color: var(--line); }
h1, h2, h3 { letter-spacing: -.03em; font-weight: 800; margin: 0; }
h2 { font-size: clamp(28px, 4.2vw, 40px); }
.lede { color: var(--muted); font-size: clamp(16px, 1.6vw, 18.5px); }
.sub { color: var(--muted); max-width: 58ch; margin: 12px 0 0; }

/* The light behind everything: two soft pools of colour and a grain, so flat
   dark panels do not read as a black rectangle. */
.glow { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
.glow::before, .glow::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px);
}
.glow::before {
  width: 52vw; height: 52vw; top: -18vw; right: -12vw;
  background: radial-gradient(circle, rgba(255,106,26,.20), transparent 62%);
}
.glow::after {
  width: 44vw; height: 44vw; top: 46vw; left: -16vw;
  background: radial-gradient(circle, rgba(80,120,255,.12), transparent 62%);
}
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E");
}

/* Header */
header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--ground) 84%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
header.stuck { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; gap: 16px; padding: 13px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.bar nav { margin-left: auto; display: flex; gap: 26px; font-size: 14.5px; color: var(--muted); }
.bar nav a { position: relative; padding: 4px 0; transition: color .2s var(--ease); }
.bar nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px;
  background: var(--accent); transition: right .25s var(--ease);
}
.bar nav a:hover { color: var(--text); }
.bar nav a:hover::after { right: 0; }
.bar .btn { padding: 9px 16px; font-size: 14px; }
@media (max-width: 880px) { .bar nav { display: none; } .bar .btn { margin-left: auto; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 24px; border-radius: 13px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), filter .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #150A02; box-shadow: 0 10px 30px -12px rgba(255,106,26,.75); }
.btn-primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-2); background: rgba(255,255,255,.03); color: var(--text); }
.btn-ghost:hover { border-color: #444857; background: rgba(255,255,255,.06); }
.btn svg { width: 17px; height: 17px; }

/* Hero. The photo is scrimmed from the left so the type sits on asphalt, not
   on tree branches, and the phone is capped: it is a product shot beside the
   sentence, not a second column of its own. */
.hero { position: relative; padding: clamp(40px, 5vw, 72px) 0 clamp(36px, 4vw, 58px); overflow: hidden; }
.hero-photo {
  position: absolute; inset: 0 0 auto 0; height: 88%; z-index: -1;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.6) 58%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.6) 58%, transparent 100%);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; opacity: .30; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, var(--ground) 8%, rgba(11,12,15,.82) 38%, rgba(11,12,15,.25) 62%, transparent 86%),
    linear-gradient(180deg, rgba(11,12,15,.75), transparent 34%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.08fr .92fr;
  gap: clamp(20px, 3.4vw, 48px); align-items: center;
}
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 {
  font-size: clamp(38px, 5.4vw, 60px); line-height: 1.04; margin: 18px 0 14px; max-width: 16ch;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { max-width: 46ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.note { font-size: 13px; color: var(--dim); margin-top: 13px; }
/* Side by side there is no room for two buttons, and a half-width ghost
   button beside a wide orange one looks like a mistake. */
@media (max-width: 520px) {
  .cta { flex-direction: column; align-items: stretch; }
  .cta .btn { width: 100%; }
}

/* The phone, its glow, and the two cards that float beside it */
.device-stage { display: grid; place-items: center; }
.phone { position: relative; width: min(256px, 68vw); }
.phone::before {
  content: ""; position: absolute; inset: 12% -26% 18% -26%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,106,26,.26), transparent 68%);
  filter: blur(46px); z-index: -1;
}
.device {
  position: relative; width: 100%; border-radius: 34px; padding: 8px;
  background: linear-gradient(160deg, #31353F, #14151B 58%);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.06) inset;
  animation: float 9s ease-in-out infinite;
}
/* The screenshot is taller than the frame; the frame crops it rather than the
   phone growing to fit. */
.device .screen {
  height: clamp(430px, 48vw, 545px); overflow: hidden; border-radius: 27px; background: #0F1116;
}
.device .screen img { width: 100%; }
.device::after {
  content: ""; position: absolute; left: 50%; top: 12px; transform: translateX(-50%);
  width: 72px; height: 5px; border-radius: 3px; background: #0B0C0F; z-index: 2;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 9px;
  background: color-mix(in srgb, var(--card) 94%, transparent);
  border: 1px solid var(--line-2); border-radius: 14px; padding: 10px 13px;
  font-size: 13px; font-weight: 600; backdrop-filter: blur(8px);
  box-shadow: 0 18px 40px -22px rgba(0,0,0,.95);
  animation: float 11s ease-in-out infinite;
}
.chip small { display: block; color: var(--dim); font-weight: 500; font-size: 11.5px; }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(34,197,94,.16); }
.chip.one { top: 9%; left: -60px; animation-delay: -2s; }
.chip.two { bottom: 11%; right: -56px; animation-delay: -5s; }
/* On a narrow screen the floating cards would sit half off the edge, so the
   phone stands on its own. */
@media (max-width: 860px) { .chip { display: none; } }

/* Strip of plain facts under the hero */
.strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; margin-top: clamp(28px, 3.4vw, 42px);
}
.strip div { background: var(--raise); padding: 18px 20px; }
.strip b { display: block; font-size: 20px; letter-spacing: -.02em; }
.strip span { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .strip { grid-template-columns: repeat(2, 1fr); } }

/* Sections. Every other one stands on a raised band with hairline edges, so
   the page has a beat instead of running as one black sheet. */
section { padding: clamp(50px, 5.6vw, 76px) 0; position: relative; }
section.alt {
  background: linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,.01) 60%, transparent);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.head { max-width: 62ch; margin-bottom: clamp(26px, 3.4vw, 40px); }
.head h2 { margin-top: 12px; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  grid-column: span 2; border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255,255,255,.045), rgba(255,255,255,0) 46%), var(--card);
  border-radius: var(--r); padding: 26px; position: relative; overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.tile::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,106,26,.55), transparent);
  opacity: 0; transition: opacity .25s var(--ease);
}
.tile:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 24px 50px -34px #000; }
.tile:hover::before { opacity: 1; }
.tile.wide { grid-column: span 3; }
.tile.tall { grid-column: span 2; grid-row: span 2; }
.tile h3 { font-size: 19px; margin: 15px 0 8px; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; }
.tile .ic {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(255,106,26,.25);
}
.tile.y .ic { background: rgba(255,198,48,.12); color: var(--signal); border-color: rgba(255,198,48,.25); }
.tile.g .ic { background: rgba(34,197,94,.12); color: var(--ok); border-color: rgba(34,197,94,.25); }
.tile .ic svg { width: 21px; height: 21px; }
/* The shot fills its two rows without its own height driving them, so the
   text tiles beside it decide how tall the row is. */
.tile.shot { padding: 0; min-height: 260px; }
.tile.shot img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center; opacity: .92;
}
@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .tile.wide { grid-column: span 4; }
  .tile.tall { grid-column: span 2; grid-row: span 2; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .tile, .tile.wide, .tile.tall { grid-column: span 1; grid-row: auto; }
  .tile.shot { min-height: 340px; }
}

/* Steps. The numbers are strung on one line, the way the three steps are one
   sequence and not three unrelated cards. */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step {
  background: linear-gradient(165deg, rgba(255,255,255,.04), transparent 44%), var(--raise);
  border: 1px solid var(--line); border-radius: var(--r); padding: 26px; position: relative;
}
.step::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent); color: #150A02; font-weight: 800; font-size: 15px; margin-bottom: 16px;
  box-shadow: 0 0 0 5px rgba(255,106,26,.12);
}
.step::after {
  content: ""; position: absolute; top: 43px; left: calc(100% + 1px); width: 20px; height: 1px;
  background: linear-gradient(90deg, rgba(255,106,26,.5), rgba(255,106,26,.12));
}
.step:last-child::after { display: none; }
@media (max-width: 820px) { .step::after { display: none; } }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Screenshot rail */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(300px, 76vw);
  gap: 18px; overflow-x: auto; padding: 4px 4px 22px; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.rail figure { margin: 0; scroll-snap-align: center; }
/* Every shot is shown the same height: the frame crops, the image is never
   stretched. */
.rail .frame {
  position: relative; height: 520px; overflow: hidden; border-radius: 20px;
  border: 1px solid var(--line-2); box-shadow: 0 30px 60px -34px #000;
  background: #0E1014;
}
/* Shown at full width and cropped at the bottom — never zoomed in, or the
   right-hand edge of the screen would be cut off. */
.rail .frame img { width: 100%; }
.rail .frame::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 96px;
  background: linear-gradient(180deg, transparent, rgba(14,16,20,.92));
}
.rail figcaption { color: var(--muted); font-size: 13.5px; margin-top: 12px; }

/* Tiers */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tier {
  background: linear-gradient(165deg, rgba(255,255,255,.04), transparent 40%), var(--card);
  border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px;
  display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.tier::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--line-2); }
.tier:nth-child(1)::before { background: linear-gradient(90deg, #6E727E, transparent); }
.tier:nth-child(3)::before { background: linear-gradient(90deg, #FFC630, transparent); }
.tier:nth-child(4)::before { background: linear-gradient(90deg, #7C6BFF, transparent); }
.tier.lead {
  border-color: rgba(255,106,26,.55);
  background: linear-gradient(180deg, rgba(255,106,26,.10), transparent 46%), var(--card);
  box-shadow: 0 30px 60px -40px rgba(255,106,26,.55);
  transform: translateY(-10px);
}
.tier.lead::before { background: linear-gradient(90deg, var(--accent), transparent); }
@media (max-width: 980px) { .tier.lead { transform: none; } }
.tier .tag { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.tier h3 { font-size: 19px; }
.tier .who { color: var(--dim); font-size: 13.5px; margin: 4px 0 16px; }
.tier ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 14.2px; color: var(--muted); }
.tier li { display: flex; gap: 9px; align-items: flex-start; }
.tier li svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--accent); }
@media (max-width: 980px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiers { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); align-items: start; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }
details {
  background: var(--raise); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
  transition: border-color .2s var(--ease);
}
details[open] { border-color: var(--line-2); }
summary { cursor: pointer; font-weight: 700; font-size: 15.5px; list-style: none; display: flex; align-items: center; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; margin-left: auto; color: var(--accent); font-size: 20px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); font-size: 14.5px; margin: 10px 0 2px; }

/* Closing call */
.band {
  border: 1px solid var(--line-2); border-radius: 26px; padding: clamp(30px, 5vw, 54px);
  background: linear-gradient(140deg, rgba(255,106,26,.16), rgba(255,106,26,.02) 46%), var(--raise);
  text-align: center;
}
.band h2 { max-width: 20ch; margin-inline: auto; }
.band .cta { justify-content: center; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 60px; color: var(--muted); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; gap: 16px 26px; align-items: center; }
.foot .right { margin-left: auto; color: var(--dim); }
.foot a:hover { color: var(--text); }
@media (max-width: 720px) { .foot .right { margin-left: 0; } }

/* Long-form pages */
.doc { padding: clamp(40px, 6vw, 72px) 0 90px; max-width: 78ch; }
.doc h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 8px; }
.doc h2 { font-size: 20px; margin-top: 36px; }
.doc p, .doc li { color: var(--muted); font-size: 15.5px; }
.doc strong { color: var(--text); }
.doc a { color: var(--accent); }

/* Reveal on scroll — off entirely for anyone who asked for less motion. */
.rise { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; transition: none; }
  .device, .chip { animation: none; }
}
