/* /demo: the product tour. Real app screens are rendered inside .frame elements. */
.tour-label { color: #b9cbc3; font-weight: 500; border-left: 1px solid #3d6558; padding-left: 14px; white-space: nowrap; }
.tour-wrap { max-width: 1560px; margin: 0 auto; padding: 0 var(--pad) 80px; }
.t-hero { background: var(--felt); color: #fff; }
.t-hero-in { max-width: 1560px; margin: 0 auto; padding: clamp(28px, 6vw, 72px) var(--pad); display: grid; gap: 22px; position: relative; }
.t-hero h1 { font-size: clamp(2.1rem, 1.1rem + 5vw, 4.4rem); letter-spacing: -.025em; max-width: 14ch; }
.t-hero p { color: #cfdcd6; font-size: clamp(1rem, .9rem + .5vw, 1.2rem); max-width: 62ch; }
.t-hero .btn.ghost { color: #fff; border-color: #5d8275; } .t-hero .btn.ghost:hover { background: var(--felt-2); }
.t-hero svg.balls { position: absolute; right: var(--pad); top: 0; width: min(30vw, 330px); display: none; } @media (min-width: 900px) { .t-hero svg.balls { display: block; } }
.t-facts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); margin-top: -26px; position: relative; }
.t-facts .panel { display: grid; gap: 4px; align-content: start; } .t-facts b { font: 600 1.1rem var(--slab); }
.t-layout { display: grid; gap: 26px; margin-top: 30px; }
.t-nav { position: sticky; top: 56px; z-index: 20; background: var(--glass); margin: 0 calc(var(--pad) * -1); padding: 8px var(--pad); display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.t-nav::-webkit-scrollbar { display: none; }
.t-nav a { flex: none; padding: 6px 12px; border-radius: 99px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .88rem; background: var(--paper); border: 1px solid var(--line); }
.t-nav a.on { background: var(--felt); color: #fff; border-color: var(--felt); }
.t-nav .grp { display: none; }
@media (min-width: 1100px) {
  .t-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
  .t-nav { flex-direction: column; align-self: start; top: 76px; margin: 0; padding: 0; background: none; border: 0; overflow: visible; gap: 1px; max-height: calc(100vh - 96px); overflow-y: auto; }
  .t-nav a { border: 0; background: none; border-radius: 6px; padding: 5px 10px; font-weight: 500; color: var(--muted); border-left: 3px solid transparent; border-radius: 0; }
  .t-nav a.on { background: none; color: var(--felt); border-left-color: var(--brass); font-weight: 700; }
  .t-nav .grp { display: block; font: 600 .95rem var(--slab); color: var(--ink); padding: 14px 10px 4px; } .t-nav .grp:first-child { padding-top: 0; }
}
@media (max-height: 480px) { .tour .top { position: static; } .t-nav { top: 0; } }
.t-main { display: grid; gap: 64px; min-width: 0; }
.t-chapter { display: grid; gap: 44px; }
.t-chapter > header { display: grid; gap: 8px; border-top: 4px solid var(--felt); padding-top: 18px; } .t-chapter > header h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); } .t-chapter > header p { color: var(--muted); max-width: 70ch; font-size: 1.05rem; }
.feat { display: grid; gap: 16px; scroll-margin-top: 120px; min-width: 0; }
.feat-text { display: grid; gap: 10px; align-content: start; max-width: 70ch; } .feat-text h3 { font-size: 1.4rem; } .feat-text ul { margin: 0; padding-left: 20px; display: grid; gap: 5px; color: #33423d; } .feat-text p { color: #33423d; }
.feat-frames { display: grid; gap: 14px; min-width: 0; align-items: start; }
@media (min-width: 820px) { .feat-frames.pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .feat-frames.pair.narrow-first { grid-template-columns: 360px minmax(0, 1fr); } }
@media (min-width: 1500px) { .feat { grid-template-columns: 300px minmax(0, 1fr); gap: 34px; } .feat-text { position: sticky; top: 84px; } }
.frame { background: var(--glass); border: 1px solid #b7c5be; border-radius: 12px; overflow: hidden; min-width: 0; box-shadow: 0 10px 30px rgba(18, 59, 50, .10); }
.frame.phone { max-width: 380px; width: 100%; justify-self: center; border-radius: 22px; border-width: 5px; border-color: #24332e; }
.frame-bar { background: var(--felt); color: #dfe9e4; display: flex; align-items: center; gap: 10px; padding: 7px 12px; font-size: .78rem; min-width: 0; }
.frame-bar svg { width: 18px; height: 18px; flex: none; } .frame-bar .url { background: #0d2d26; border-radius: 6px; padding: 3px 9px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, Menlo, monospace; font-size: .72rem; }
.frame-bar .who { white-space: nowrap; background: var(--brass); color: #1d1503; font-weight: 700; border-radius: 99px; padding: 2px 9px; }
.frame-body { --pad: 14px; padding: 14px; max-height: 620px; overflow: hidden; position: relative; }
.frame.open .frame-body { max-height: none; }
.frame-more { display: flex; justify-content: center; padding: 8px; background: linear-gradient(transparent, var(--glass) 40%); margin-top: -46px; position: relative; padding-top: 30px; }
.frame.open .frame-more { margin-top: 0; padding-top: 8px; background: none; } .frame.fits .frame-more { display: none; }
.frame-foot { display: flex; gap: 8px 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 8px 12px; background: var(--paper); border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.t-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.t-end { background: var(--felt); color: #fff; border-radius: 14px; padding: clamp(20px, 4vw, 40px); display: grid; gap: 14px; } .t-end p { color: #cfdcd6; max-width: 64ch; } .t-end .btn.ghost { color: #fff; border-color: #5d8275; }
.tour .top .btn { white-space: nowrap; }
@media (max-width: 480px) { .tour-label { display: none; } }
