/* remotehost home page, on top of app.css (tokens, fonts, buttons, nav, footer, reveals live there). Built with the landing-page-design skill (~/.claude/skills): every size is a Tailwind type
   step, every gap a spacing token (0 2 4 8 12 16 24 32 40 48 64 80 96), radii are Tailwind radii, backgrounds are flat,
   dark backgrounds come only from #000000 #181818 #1F1F1F #272727 #313131 #131209. One typeface (Geist), Geist Mono only
   for terminal and code. No italics, nothing heavier than 700. */

@media (max-width: 640px) { .wrap { padding: 0 16px; } .ps-card { padding: 24px; } }
section { padding: 96px 0; }
@media (max-width: 640px) { section { padding: 64px 0; } }
.eyebrow { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--accent); margin-bottom: 12px; display: flex; gap: 8px; align-items: center; }
.h2 { font-size: 36px; line-height: 40px; max-width: 680px; }
@media (max-width: 640px) { .h2 { font-size: 30px; line-height: 36px; } }
.lead { font-size: 18px; line-height: 28px; color: var(--muted); max-width: 680px; margin-top: 16px; }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 20px; }

/* ---------- hero ---------- */
.hero { padding-top: 96px; padding-bottom: 64px; }
.hero .wrap { padding-top: 64px; }
@media (max-width: 640px) { .hero .wrap { padding-top: 48px; } }
.hero h1 { font-size: 60px; line-height: 1; max-width: 680px; font-weight: 600; letter-spacing: -0.035em;
  background: linear-gradient(90deg, var(--h1-from), var(--h1-to)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 4px; }
@media (max-width: 640px) { .hero h1 { font-size: 36px; line-height: 40px; } .hero h1 br { display: none; } }
.hero .sub { font-size: 18px; line-height: 28px; color: var(--muted); max-width: 680px; margin-top: 24px; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 32px; }
.hero .risk { font-size: 14px; line-height: 20px; color: var(--muted); }
.proof { display: block; margin-top: 24px; font-size: 14px; line-height: 20px; color: var(--muted); }
.proof a { color: var(--fg); font-weight: 600; text-decoration-color: var(--line); text-underline-offset: 4px; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 9999px; background: var(--ok); position: relative; margin-right: 8px; vertical-align: 1px; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--ok); animation: ring 2s var(--e2) infinite; }
@keyframes ring { from { transform: scale(1); opacity: 0.55; } to { transform: scale(2.6); opacity: 0; } }

/* terminal (hero mockup + cards) */
.hterm { margin-top: 48px; border-radius: 16px; overflow: hidden; background: #000000; border: 1px solid #313131; color: #D7E2DC;
  box-shadow: 0 32px 64px -40px rgba(0, 0, 0, 0.6); }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #181818; border-bottom: 1px solid #272727;
  font: 500 12px/16px var(--mono); color: #7D8C84; }
.term-bar span { width: 12px; height: 12px; border-radius: 9999px; display: block; }
.term-bar span:nth-child(1) { background: #FF5F57; } .term-bar span:nth-child(2) { background: #FEBC2E; } .term-bar span:nth-child(3) { background: #28C840; }
.term-bar b { margin-left: 8px; font-weight: 500; }
.hterm pre { margin: 0; padding: 24px; font: 400 14px/20px var(--mono); overflow-x: auto; white-space: pre; }
.t-p { color: #5CC496; font-weight: 700; user-select: none; } .t-c { color: #F2F5F3; font-weight: 600; } .t-f { color: #7FD1E6; }
.t-a { color: #E8C97A; } .t-u { color: #8FB8FF; text-decoration: underline; text-decoration-color: rgba(143, 184, 255, 0.4); text-underline-offset: 4px; }
.t-o { color: #A8B5AE; } .t-ok { color: #5CC496; } .t-m { color: #6B7A72; } .t-k { color: #C7A4FF; }
.caret { display: inline-block; width: 8px; height: 16px; vertical-align: -2px; background: #5CC496; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* hero mockup load intro (design-to-motion website: intro only) */
.mock .ln { opacity: 0; transform: translateY(10px); filter: blur(4px);
  transition: transform 1.05s var(--e), opacity 0.8s var(--e2), filter 0.8s var(--e2); transition-delay: var(--d); }
.mock.in .ln { opacity: 1; transform: none; filter: none; }

/* ---------- problem / solution ---------- */
.ps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 48px; }
@media (max-width: 800px) { .ps { grid-template-columns: minmax(0, 1fr); } }
.ps-card code { overflow-wrap: anywhere; }
.ps-card { border: 1px solid var(--line); border-radius: 16px; padding: 32px; background: var(--surface); }
.ps-card h3 { font-size: 20px; line-height: 28px; display: flex; gap: 12px; align-items: center; }
.ps-card ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; color: var(--muted); }
.ps-card li { display: flex; gap: 12px; align-items: flex-start; }
.ps-card li .ic-sm { margin-top: 4px; }
.ps-card.before .ic, .ps-card.before .ic-sm { color: var(--bad); }
.ps-card.after .ic, .ps-card.after .ic-sm { color: var(--ok); }

/* ---------- tagline reveal (B11) ---------- */
.tagline { padding: 96px 0; }
.tagline p { font-size: 48px; line-height: 1; font-weight: 600; letter-spacing: -0.03em; max-width: 880px; }
@media (max-width: 640px) { .tagline p { font-size: 36px; line-height: 40px; } }
.tagline .w { color: var(--fg); opacity: 0.3; transition: opacity 0.9s var(--spring); }
.tagline .w.on { opacity: 1; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.card { grid-column: span 2; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 24px; background: var(--surface);
  overflow: hidden; isolation: isolate; }
.card.wide { grid-column: span 3; }
.card.full { grid-column: 1 / -1; }
@media (max-width: 960px) { .card, .card.wide { grid-column: span 3; } }
@media (max-width: 640px) { .bento { grid-template-columns: minmax(0, 1fr); } .card, .card.wide, .card.full { grid-column: auto; } }
.card .txt { padding: 24px 24px 0; }
.card h3 { font-size: 18px; line-height: 28px; display: flex; gap: 8px; align-items: center; }
.card h3 .ic { color: var(--accent); }
.card .txt p { color: var(--muted); font-size: 14px; line-height: 20px; margin-top: 8px; }
.card .tag { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 9999px; padding: 0 8px; margin-left: auto; }
.vis { margin: 24px; margin-top: auto; padding-top: 24px; min-height: 176px; position: relative; }
.vis-in { position: relative; height: 176px; border-radius: 12px; background: var(--raised); overflow: hidden; }
/* card intro: card rise (design-to-motion B2 `card`), then contents */
.card.pre { transform: translateY(24px) scale(0.985); filter: blur(6px); opacity: 0; }
.card { transition: transform 0.9s var(--e), filter 0.8s var(--e2), opacity 0.6s var(--e2); }

/* 1: typing terminal */
.mini-term { position: absolute; inset: 0; background: #000000; border-radius: inherit; padding: 16px; font: 400 12px/16px var(--mono); color: #D7E2DC; }
.mini-term div { overflow-wrap: anywhere; }
.mini-term .l2 { margin-top: 8px; color: #5CC496; transition: opacity 0.7s var(--e2), filter 0.7s var(--e2), transform 1.05s var(--e); }
.mini-term .l2.off { opacity: 0; filter: blur(4px); transform: translateY(10px); }
.mini-term .url { color: #8FB8FF; }
.mini-term .ms { margin-top: 8px; color: #7D8C84; transition: opacity 0.7s var(--e2); }

/* 2: request list */
.reqs { list-style: none; margin: 0; padding: 8px; display: grid; gap: 4px; }
.reqs li { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; font: 400 12px/16px var(--mono);
  transition: background-color 0.5s var(--e2); }
.reqs li.hot { background: var(--surface); }
.reqs .ip { color: var(--muted); }
.reqs .badge { margin-left: auto; font: 600 12px/16px var(--sans); border-radius: 9999px; padding: 0 8px; border: 1px solid currentColor;
  transition: transform 0.5s var(--e); }
.reqs li.hot .badge { transform: scale(1.08); }
.b-ok { color: var(--ok); } .b-bad { color: var(--bad); } .b-warn { color: var(--warn); }

/* 3: service restart */
.svc { padding: 16px; display: grid; gap: 12px; }
.svc-row { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 8px; padding: 12px; }
.svc-dot { width: 10px; height: 10px; border-radius: 9999px; background: var(--ok); transition: background-color 0.5s var(--e2); position: relative; }
.svc-dot.down { background: var(--bad); } .svc-dot.wait { background: var(--warn); }
.svc-name { font: 500 12px/16px var(--mono); }
.svc-state { margin-left: auto; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ok); }
.svc-log { font: 400 12px/16px var(--mono); color: var(--muted); padding: 0 4px; min-height: 40px; }
.svc-log div { transition: opacity 0.6s var(--e2), transform 0.9s var(--e); }
.svc-log div.off { opacity: 0; transform: translateY(8px); }

/* 4: claim stack */
.stack { position: absolute; inset: 0; padding: 16px; }
.chip { position: absolute; left: 16px; right: 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); padding: 12px;
  transition: transform 1.05s var(--e), opacity 0.8s var(--e2), filter 0.8s var(--e2); }
.chip .row1 { display: flex; align-items: center; gap: 8px; font: 500 12px/16px var(--mono); min-width: 0; }
.chip .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip .pill { flex: none; }
.chip .row2 { font-size: 12px; line-height: 16px; color: var(--muted); margin-top: 8px; display: flex; gap: 8px; align-items: center; }
.chip .pill { margin-left: auto; font: 600 12px/16px var(--sans); border-radius: 9999px; padding: 0 8px; }
.chip.anon .pill { color: var(--warn); border: 1px solid var(--warn); }
.chip.mine .pill { color: var(--ok); border: 1px solid var(--ok); }
.chip.anon { top: 16px; } .chip.mine { top: 80px; }
.chip.back { transform: translateY(-8px) scale(0.96); opacity: 0.5; }
.chip.hidden { transform: translateY(24px); opacity: 0; filter: blur(6px); }

/* 5: code tabs */
.tabs { display: flex; gap: 4px; padding: 8px 8px 0; position: relative; }
.tabs span { font: 600 12px/16px var(--sans); padding: 4px 12px; border-radius: 9999px; color: var(--muted); position: relative; z-index: 1;
  transition: color 0.6s var(--e2); }
.tabs span.on { color: var(--fg); }
.tabs .slider { position: absolute; top: 8px; height: 24px; border-radius: 9999px; background: var(--surface); transition: transform 0.9s var(--io), width 0.9s var(--io); }
.code { position: relative; height: 136px; }
.code pre { position: absolute; inset: 0; margin: 0; padding: 12px 16px; font: 400 12px/16px var(--mono); color: var(--fg); white-space: pre;
  overflow: hidden; transition: opacity 0.6s var(--e2), filter 0.6s var(--e2), transform 0.9s var(--e); }
.code pre.off { opacity: 0; filter: blur(4px); transform: translateY(8px); }
.code .kw { color: var(--accent); } .code .st { color: var(--res); } .code .cm { color: var(--faint); }

/* 6: usage meter */
.meter-card { padding: 24px 16px; }
.meter-top { display: flex; align-items: baseline; gap: 8px; }
.meter-num { font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.meter-of { color: var(--muted); font-size: 14px; line-height: 20px; }
.bar { height: 8px; border-radius: 9999px; background: var(--surface); margin-top: 16px; overflow: hidden; }
.bar > div { height: 100%; width: 100%; background: var(--accent); border-radius: inherit; transform-origin: left; }
.meter-meta { display: flex; justify-content: space-between; margin-top: 12px; font-size: 12px; line-height: 16px; color: var(--muted); }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; counter-reset: s; }
@media (max-width: 800px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step { border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: var(--surface); counter-increment: s; }
.step::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9999px; background: var(--raised);
  font-weight: 600; font-size: 14px; line-height: 20px; margin-bottom: 16px; }
.step h3 { font-size: 18px; line-height: 28px; }
.step p { color: var(--muted); font-size: 14px; line-height: 20px; margin-top: 8px; }
.step code { font-size: 12px; background: var(--raised); padding: 2px 4px; border-radius: 4px; }
.flow-wrap { margin-top: 32px; }

/* the shared flow animation (app/static/flow.js), restyled flat for this page */
.flow-wrap .rhflow { margin: 0; }
.flow-wrap .rhflow-stage { background: var(--surface); background-image: none; border-color: var(--line); border-radius: 24px; }
.flow-wrap .rhflow-node { background: var(--bg); border-radius: 12px; }
.flow-wrap .rhflow-steps li { font-size: 14px; line-height: 20px; }

/* ---------- proof ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: var(--surface); }
.stat .n { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat .l { color: var(--muted); font-size: 14px; line-height: 20px; margin-top: 8px; }
.demo-card { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; border: 1px solid var(--line);
  border-radius: 16px; padding: 24px; background: var(--surface); }
.demo-card p { color: var(--muted); max-width: 640px; }
.demo-card b { color: var(--fg); }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
@media (max-width: 900px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.plan { border: 1px solid var(--line); border-radius: 24px; padding: 32px; background: var(--surface); display: flex; flex-direction: column; }
.plan.pick { border-color: var(--accent); }
.plan h3 { font-size: 20px; line-height: 28px; display: flex; align-items: center; gap: 8px; }
.plan .price { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.02em; margin-top: 16px; }
.plan .per { font-size: 14px; line-height: 20px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.plan ul { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 12px; font-size: 14px; line-height: 20px; }
.plan li { display: flex; gap: 8px; align-items: flex-start; }
.plan li .ic-sm { color: var(--ok); margin-top: 2px; }
.plan li.no { color: var(--faint); } .plan li.no .ic-sm { color: var(--faint); }
.plan .btn { margin-top: auto; justify-content: center; }
.plan-note { margin-top: 24px; font-size: 14px; line-height: 20px; color: var(--muted); max-width: 680px; }

/* ---------- FAQ ---------- */
.faq { margin-top: 48px; display: grid; gap: 8px; max-width: 800px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 24px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-radius: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform 0.7s var(--spring); color: var(--muted); }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq .a { padding: 0 24px 24px; color: var(--muted); }
.faq .a code { background: var(--raised); padding: 2px 4px; border-radius: 4px; }

/* ---------- final CTA + footer ---------- */
.final { text-align: left; }
.final-card { border-radius: 24px; padding: 64px 48px; background: var(--surface); border: 1px solid var(--line); }
@media (max-width: 640px) { .final-card { padding: 40px 24px; } }
.final-card .cta-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 32px; }
footer.site { border-top: 1px solid var(--line); padding: 48px 0 64px; }
.foot { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; font-size: 14px; line-height: 20px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { color: var(--muted); text-decoration: none; transition: color 0.7s var(--spring); }
.foot a:hover { color: var(--fg); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .rv, .card.pre, .mock .ln { transform: none !important; filter: none !important; opacity: 1 !important; }
  .tagline .w { opacity: 1; }
}
