/* tome-os.com: the theme and the parts every page shares. */
:root {
  color-scheme: dark;
  --abyss: #08060f;
  --night: #14102b;
  --page: #1f1842;
  --raised: #2b2163;
  --line: #3a2f73;
  --text: #efeaff;
  --muted: #c9c1ec;
  --faint: #a99fd6;
  --glow: #9d7bff;
  --talk: #5cc8ff;
  --hush: #f2b84b;
  --accent: var(--glow);
  --accent-hover: #b39bff;
  --display: 'Cinzel', Georgia, serif;
  --body: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
.telemancer { --accent: var(--talk); --accent-hover: #8fdaff; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.6;
  background: radial-gradient(ellipse at 90% 0%, rgba(43, 33, 99, 0.6), transparent 60%) no-repeat, var(--night);
}
a { color: var(--text); }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--page); padding: 8px 14px; border-radius: 8px; z-index: 10; }

/* Header */
header.site { border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; min-height: 68px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; letter-spacing: 3px; font-size: 20px; }
.brand:hover { color: var(--text); }
.brand img { width: 36px; height: 33px; }
nav ul { display: flex; gap: 8px 20px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; align-items: center; }
nav a { text-decoration: none; color: var(--muted); font-size: 15px; }
nav a[aria-current="page"] { color: var(--text); }
nav .btn { min-height: 40px; padding: 0 18px; font-size: 15px; }

/* Type */
h1 { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 7vw, 68px); line-height: 1.05; letter-spacing: 2px; margin: 0 0 20px; }
h2 { font-family: var(--display); font-size: clamp(28px, 4vw, 38px); line-height: 1.15; letter-spacing: 1px; margin: 0 0 12px; }
.lede { font-size: 19px; color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.sub { color: var(--muted); margin: 0 0 32px; max-width: 40em; }
.eyebrow { display: inline-block; font-size: 13px; letter-spacing: 2px; font-weight: 600; color: var(--accent); margin: 0 0 12px; text-transform: uppercase; }
code, .cmd { font-family: var(--mono); font-size: 14px; }
.cmd { display: inline-block; margin-top: 10px; padding: 4px 10px; border-radius: 8px; background: var(--night); color: #b6f5c6; }

/* Buttons */
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 24px; font-weight: 600; text-decoration: none; border: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.btn:hover { border-color: var(--accent); color: var(--text); }
.btn.primary { background: var(--accent); color: var(--night); border-color: var(--accent); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--night); }
.btn svg { flex-shrink: 0; }
.fine { color: var(--faint); font-size: 14px; margin: 12px 0 0; }

/* Hero */
.hero { display: grid; gap: 40px; align-items: center; padding: 56px 0 48px; }
@media (min-width: 860px) { .hero { grid-template-columns: 1.1fr 0.9fr; padding: 88px 0 72px; } }
.hero-art { display: flex; justify-content: center; position: relative; }

/* Sections */
section { padding: 0 0 80px; scroll-margin-top: 16px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--page); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.card h3 { margin: 12px 0 6px; font-size: 19px; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--raised); display: flex; align-items: center; justify-content: center; color: var(--glow); }
.icon.talk { color: var(--talk); }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 14px; background: #3a2c14; color: #fbe2b0; margin: 0 0 72px; }
.notice svg { flex-shrink: 0; margin-top: 4px; }

.pill { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 13px; font-weight: 600; }
.pill.soon { background: #3a2c14; color: #fbe2b0; }
.pill.planned { background: var(--raised); color: var(--muted); }
.pill.ready { background: #123a52; color: #bfe9ff; }

ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 14px; }
ol.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; background: var(--page); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
ol.steps li::before { content: counter(s); width: 44px; height: 44px; border-radius: 50%; background: var(--raised); color: var(--accent); font-weight: 700; display: flex; align-items: center; justify-content: center; }
ol.steps h3 { margin: 0 0 4px; font-size: 18px; }
ol.steps p { margin: 0; color: var(--muted); font-size: 16px; }

/* A phone screenshot in a frame */
.phone { width: 240px; flex-shrink: 0; border-radius: 32px; padding: 8px; background: #0b0918; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.phone img { display: block; width: 100%; height: auto; border-radius: 24px; }
.hero-art .phone { width: min(78%, 290px); position: relative; z-index: 1; }
.hero-art .aura { position: absolute; inset: 8% 6%; border-radius: 50%; background: radial-gradient(circle, rgba(92, 200, 255, 0.35), rgba(157, 123, 255, 0.18) 45%, transparent 70%); filter: blur(10px); }

/* Questions */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--page); border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--faint); font-size: 14px; }
footer.site .wrap { display: flex; gap: 12px 24px; justify-content: space-between; flex-wrap: wrap; }
footer.site a { color: var(--muted); }

/* The logo's gentle motion */
.halo { transform-box: fill-box; transform-origin: center; animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 0%,100% { opacity: .10; transform: scale(.94); } 50% { opacity: .30; transform: scale(1.06); } }
.spark { transform-box: fill-box; transform-origin: center; animation: spark 2.6s ease-in-out infinite; }
@keyframes spark { 0%,100% { opacity: .3; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.2); } }
.mote { animation: mote 5s linear infinite; opacity: 0; }
.m2 { animation-delay: 1.6s; } .m3 { animation-delay: 3.2s; }
@keyframes mote { 0% { opacity: 0; transform: translateY(0); } 20% { opacity: .9; } 100% { opacity: 0; transform: translateY(-70px); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } html { scroll-behavior: auto; } }
