:root {
  --bg: #f6f5f1; --surface: #ffffff; --ink: #1d2327; --muted: #5d666b; --line: #e2e0d8;
  --accent: #1f6f5c; --accent-ink: #ffffff; --soft: #e8f1ee;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15181a; --surface: #1d2124; --ink: #e7e9ea; --muted: #a0a8ad; --line: #2c3236;
    --accent: #4fb69a; --accent-ink: #0d1412; --soft: #1f2e2a;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body { margin: 0; font: 17px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--ink); }
a { color: var(--accent); }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 20px; }
header.top { display: flex; align-items: center; gap: 20px; padding: 18px 0; }
header.top .logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 24px;
  letter-spacing: -.02em; color: var(--accent); text-decoration: none; }
header.top .logo img { display: block; }
header.top nav { display: flex; gap: 18px; margin-left: auto; align-items: center; flex-wrap: wrap; }
header.top nav a { color: var(--ink); text-decoration: none; font-size: 15px; }
.button { display: inline-block; background: var(--accent); color: var(--accent-ink) !important; padding: 10px 18px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.hero { padding: 56px 0 40px; }
.hero h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 16px; }
.hero p { font-size: 19px; color: var(--muted); max-width: 680px; margin: 0 0 24px; }
.note { font-size: 14px; color: var(--muted); margin-top: 10px; }
section { padding: 28px 0; border-top: 1px solid var(--line); }
section h2 { font-size: 24px; margin: 0 0 14px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.steps b { display: block; margin-bottom: 6px; }
.steps span { color: var(--muted); font-size: 15px; }
.card { background: var(--soft); border-radius: 12px; padding: 18px 20px; }
.card ul { margin: 8px 0; padding-left: 20px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.plan.featured { border-color: var(--accent); }
.plan h3 { margin: 0; font-size: 18px; }
.plan .price { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.plan .price small { font-size: 15px; font-weight: 400; color: var(--muted); }
.plan .credits { color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.plan .button { margin-top: auto; text-align: center; }
footer { border-top: 1px solid var(--line); padding: 24px 0 40px; font-size: 14px; color: var(--muted); }
footer a { color: var(--muted); margin-right: 14px; }
.legal h1 { font-size: 32px; margin: 32px 0 4px; }
.legal h2 { font-size: 20px; margin: 28px 0 8px; }
.legal .version { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.legal .changes { background: var(--soft); border-left: 3px solid var(--accent); padding: 8px 12px; font-size: 14px; }
@media (max-width: 560px) {
  header.top nav a:not(.button) { display: none; }
  .hero { padding-top: 32px; }
}

/* the home page */
.home { --teal: #016666; --deep: #022b2b; --mint: #7efccc; --mint-soft: rgba(126, 252, 204, .14); }
.home .wrap { max-width: 1120px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.home main section { border-top: none; padding-top: 72px; padding-bottom: 72px; }
.home h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 14px; }
.home h3 { font-size: 18px; margin: 10px 0 6px; }
.kicker { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  margin: 0 0 10px; }
.intro { color: var(--muted); font-size: 18px; max-width: 720px; margin: 0 0 32px; }
.button { transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(1, 102, 102, .25); }
.button.big { padding: 14px 26px; font-size: 17px; border-radius: 12px; border: 1px solid transparent; }
.button.ghost.big, .actions .button { padding: 14px 26px; font-size: 17px; border-radius: 12px; }
.button.ghost { background: transparent; border: 1px solid rgba(126, 252, 204, .45); color: #e6fffa !important; }
.button.ghost:hover { background: var(--mint-soft); box-shadow: none; }

.hero-band { position: relative; overflow: hidden; color: #e6fffa;
  background: radial-gradient(1000px 520px at 85% 10%, rgba(126, 252, 204, .18), transparent 60%),
              radial-gradient(700px 400px at 0% 100%, rgba(1, 102, 102, .55), transparent 70%),
              linear-gradient(160deg, #011e1e 0%, var(--deep) 45%, #013d3d 100%); }
.hero-band::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(126, 252, 204, .07) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(126, 252, 204, .07) 1px, transparent 1px);
  background-size: 40px 40px; }
.hero-band .wrap { position: relative; }
.home header.top .logo { color: #e6fffa; }
.home .hero-band header.top nav a { color: #cfeee6; }
.home .hero-band header.top nav a:hover { color: var(--mint); }
.home .hero-band header.top .button { background: var(--mint); color: #022b2b !important; }
.home .hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 56px 0 36px; }
.home .hero h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.05; letter-spacing: -.035em; margin: 0 0 20px;
  color: #ffffff; }
.glow { background: linear-gradient(90deg, var(--mint), #b8fff0 60%, #5fd8c0); -webkit-background-clip: text;
  background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 12px;
  border: 1px solid rgba(126, 252, 204, .3); border-radius: 999px; background: rgba(126, 252, 204, .08);
  font-size: 13px; color: #cfeee6; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); }
.home .hero .lead { font-size: 19px; color: #b9d9d2; max-width: 560px; margin: 0 0 28px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.home .hero .note { color: #8fbab1; margin-top: 16px; }
.home .hero-band .button { background: var(--mint); color: #022b2b !important; }
.home .hero-band .button.ghost { background: transparent; color: #e6fffa !important; }

.hero-art { position: relative; }
.hero-art svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .45)); }
.trace { stroke-dasharray: 6 10; animation: flow 3.2s linear infinite; }
.trace.dim { animation-duration: 5s; }
@keyframes flow { to { stroke-dashoffset: -64; } }
.tag { position: absolute; padding: 7px 12px; border-radius: 10px; font-size: 13px; color: #e6fffa;
  background: rgba(2, 43, 43, .82); border: 1px solid rgba(126, 252, 204, .35); backdrop-filter: blur(6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .3); white-space: nowrap; }
.tag b { color: var(--mint); margin-right: 4px; }
.tag::before { content: "✓"; color: var(--mint); margin-right: 6px; font-weight: 700; }
.tag.t1 { top: 6%; left: -2%; }
.tag.t2 { top: 44%; right: -3%; }
.tag.t3 { bottom: 4%; left: 14%; }

.stages { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 8px 0 0;
  padding: 0 0 48px; }
.stages li { padding: 8px 16px; border-radius: 999px; font-size: 14px; color: #cfeee6;
  border: 1px solid rgba(126, 252, 204, .25); background: rgba(126, 252, 204, .06); }
.stages li + li::before { content: "→"; color: rgba(126, 252, 204, .6); margin: 0 10px 0 -2px; }

.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
  counter-reset: none; }
.flow li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px 18px 20px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.flow li:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 16px 34px rgba(1, 60, 60, .12); }
.flow .num { position: absolute; top: 16px; right: 16px; font-size: 13px; font-weight: 700; color: var(--muted); }
.flow p, .feature p, .tier p { color: var(--muted); font-size: 15px; margin: 0; }
.icon { width: 40px; height: 40px; padding: 9px; border-radius: 12px; color: var(--accent); background: var(--soft); }

.peek { background: linear-gradient(180deg, var(--bg), var(--soft)); }
.window { margin-top: 28px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--surface);
  box-shadow: 0 30px 70px rgba(1, 40, 40, .18); }
.window-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: var(--bg); }
.window-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.window-bar b { margin-left: 10px; font-size: 14px; color: var(--muted); font-weight: 600; }
.window-body { display: grid; grid-template-columns: 1.1fr 1fr; }
.chat { padding: 22px; display: flex; flex-direction: column; gap: 12px; border-right: 1px solid var(--line); }
.msg { margin: 0; padding: 12px 14px; border-radius: 14px; font-size: 15px; max-width: 92%; }
.msg b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent);
  margin-bottom: 4px; }
.msg.you { align-self: flex-end; background: var(--soft); }
.msg.rirti { background: var(--bg); border: 1px solid var(--line); }
.msg.event { align-self: center; max-width: 100%; font-size: 13px; color: var(--muted); background: none; text-align: center; }
.parts { padding: 22px; }
.parts-title { font-weight: 700; margin: 0 0 12px; }
.parts table { width: 100%; border-collapse: collapse; font-size: 14px; }
.parts th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase;
  letter-spacing: .06em; padding: 0 8px 8px 0; }
.parts td { padding: 10px 8px 10px 0; border-top: 1px solid var(--line); vertical-align: top; }
.parts td small { display: block; color: var(--muted); font-size: 12px; }
.parts-note { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.ok { display: inline-block; white-space: nowrap; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600;
  color: #0b6b4f; background: #d8f6ea; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px;
  transition: border-color .2s ease, transform .2s ease; }
.feature:hover { border-color: var(--accent); transform: translateY(-2px); }

.files-band { background: linear-gradient(160deg, #011e1e, var(--deep) 60%, #013d3d); color: #e6fffa; }
.files-band .kicker { color: var(--mint); }
.files { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.files li { border: 1px solid rgba(126, 252, 204, .22); background: rgba(126, 252, 204, .05); border-radius: 16px;
  padding: 20px 18px; display: flex; flex-direction: column; gap: 6px; }
.files .ext { font-family: ui-monospace, Menlo, monospace; font-size: 13px; color: var(--mint); }
.files small { color: #a9cbc4; font-size: 14px; }

.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 14px 0; }
.ticks li { position: relative; padding-left: 28px; margin: 0 0 10px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.part-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px;
  box-shadow: 0 24px 50px rgba(1, 40, 40, .12); }
.part-head { display: flex; justify-content: space-between; align-items: center; margin: 0; font-size: 20px; }
.badge { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--soft); color: var(--accent); }
.part-sub { color: var(--muted); margin: 4px 0 16px; font-size: 14px; }
.part-card dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; font-size: 15px; }
.part-card dt { color: var(--muted); }
.part-card dd { margin: 0; font-weight: 600; }
.part-foot { margin: 16px 0 0; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--muted); }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.tier { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.tier.featured { border-color: var(--accent); box-shadow: 0 16px 34px rgba(1, 60, 60, .12); }
.tier h3 { margin-top: 0; }

.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 24px; color: var(--accent);
  transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

.cta-band { background: radial-gradient(700px 300px at 50% 0%, rgba(126, 252, 204, .25), transparent 70%),
  linear-gradient(160deg, #011e1e, var(--teal)); color: #e6fffa; }
.cta-band p { color: #b9d9d2; font-size: 18px; margin: 0 0 24px; }
.cta-band .button { background: var(--mint); color: #022b2b !important; }

.home footer { border-top: 1px solid var(--line); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.footer-grid b { display: block; color: var(--ink); margin-bottom: 8px; }
.footer-grid a { display: block; margin: 0 0 6px; }
.footer-grid .logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px;
  color: var(--accent); text-decoration: none; margin-bottom: 8px; }
.fineprint { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }

@media (prefers-color-scheme: dark) {
  .ok { color: #9ff0cf; background: rgba(126, 252, 204, .12); }
  .flow li:hover, .tier.featured { box-shadow: 0 16px 34px rgba(0, 0, 0, .35); }
}
@media (max-width: 980px) {
  .home .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .hero-art { max-width: 560px; margin: 0 auto; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .features, .tiers { grid-template-columns: repeat(2, 1fr); }
  .files { grid-template-columns: repeat(2, 1fr); }
  .window-body, .split { grid-template-columns: 1fr; }
  .chat { border-right: none; border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .flow, .features, .tiers, .files { grid-template-columns: 1fr; }
  .home main section { padding-top: 52px; padding-bottom: 52px; }
  .tag.t1 { left: 0; } .tag.t2 { right: 0; }
  .stages li + li::before { margin: 0 6px 0 -2px; }
}
@media (prefers-reduced-motion: reduce) {
  .trace { animation: none; }
  .button, .flow li, .feature { transition: none; }
}
