/* ShellPhone website. Colours are the app's own theme tokens (core-ui Color.kt). */
:root {
  --bg: #0d1117;
  --surface: #161b22;
  --line: #30363d;
  --text: #ffffff;
  --muted: #8b949e;
  --accent: #00e676;
  --accent-ink: #0d1117;
  --amber: #ffb000;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, "Noto Sans Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", sans-serif;
  --radius: 12px;
  --max: 68rem;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8fa;
    --surface: #eaeef2;
    --line: #d0d7de;
    --text: #1f2328;
    --muted: #59636e;
    --accent: #00733a;
    --accent-ink: #ffffff;
    --amber: #8a5a00;
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 var(--sans);
  overflow-x: hidden;
}
[lang="hi"] body, body:lang(hi) { line-height: 1.75; }
a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img, svg { max-width: 100%; }
code, kbd, pre, .mono { font-family: var(--mono); }
code {
  font-size: 0.92em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.05em 0.35em;
  overflow-wrap: anywhere;
}
.muted { color: var(--muted); }

.skip { position: absolute; left: -999px; top: 0; padding: 0.5rem 1rem; background: var(--accent); color: var(--accent-ink); z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
.top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1rem 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--text); text-decoration: none; font: 700 1.1rem var(--mono); }
.logo { display: block; flex: none; }
.top nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; font-family: var(--mono); font-size: 0.95rem; }
.top nav a { color: var(--muted); text-decoration: none; padding: 0.35rem 0; }
.top nav a:hover, .top nav a[aria-current] { color: var(--accent); }
.top nav .lang { color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.75rem; line-height: 1; align-self: center; }

main { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
section { padding: 3rem 0; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { font: 700 clamp(2rem, 6vw, 3.4rem)/1.1 var(--mono); margin: 0 0 1rem; }
h2 { font: 700 clamp(1.4rem, 3.5vw, 1.9rem)/1.2 var(--mono); margin: 0 0 1rem; }
h2::before { content: "# "; color: var(--accent); }
h3 { font: 700 1.1rem var(--mono); margin: 1.5rem 0 0.4rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }

/* Buttons */
.btn {
  display: inline-block;
  font: 700 1rem var(--mono);
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
}
.btn:hover { filter: brightness(1.1); }
.btn-off { background: transparent; color: var(--accent); border: 1px dashed var(--accent); cursor: default; }
.soon { margin: 1.5rem 0 0; }
.soon .muted { display: inline-block; margin-top: 0.6rem; font-size: 0.95rem; }

/* Hero */
.hero { display: grid; gap: 2.5rem; align-items: center; padding-top: 2rem; }
@media (min-width: 52rem) { .hero { grid-template-columns: 1.15fr 0.85fr; padding-top: 3.5rem; } }
.hero h1 .accent { color: var(--accent); }

/* The phone illustration: a drawing of the real Home screen, in HTML. */
.phone {
  width: min(100%, 20rem);
  margin: 0 auto;
  aspect-ratio: 9 / 18;
  background: #0d1117;
  color: #ffffff;
  border: 10px solid #000;
  outline: 1px solid var(--line);
  border-radius: 2.2rem;
  padding: 2.2rem 1.3rem 1.3rem;
  font-family: var(--mono);
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px -30px rgba(0, 230, 118, 0.35);
}
.phone .clock { font-size: 2.6rem; font-weight: 700; line-height: 1; }
.phone .date { color: #8b949e; font-size: 0.85rem; margin: 0.35rem 0 1.6rem; }
.phone ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; font-size: 1.05rem; }
.phone li::before { content: "› "; color: #00e676; }
.phone .spacer { flex: 1; }
.phone .hint { color: #8b949e; font-size: 0.8rem; margin-bottom: 0.5rem; }
.phone .prompt { border-top: 1px solid #30363d; padding-top: 0.8rem; font-size: 1.05rem; white-space: nowrap; overflow: hidden; }
.phone .prompt .gt { color: #00e676; }
.typed {
  display: inline-block;
  vertical-align: bottom;
  overflow: hidden;
  white-space: nowrap;
  width: 10ch;
  animation: type 4s steps(10, end) 0.6s infinite;
}
.cursor { display: inline-block; width: 0.6ch; background: #00e676; animation: blink 1s steps(1) infinite; }
@keyframes type {
  0% { width: 0; }
  45%, 85% { width: 10ch; }
  100% { width: 0; }
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .typed, .cursor { animation: none; }
}

/* Features */
.grid { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.3rem; }
.card h3 { margin-top: 0; }
.card p { margin: 0.4rem 0 0; color: var(--muted); }
.card .cmd { display: block; margin-top: 0.8rem; font-family: var(--mono); color: var(--accent); font-size: 0.95rem; }

.private { border: 1px solid var(--accent); border-radius: var(--radius); padding: 1.5rem; }
.private ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }

/* Pricing */
.price { font: 700 2.4rem var(--mono); color: var(--accent); margin: 0.5rem 0; }

/* Text pages: privacy, support */
.prose main { max-width: 46rem; }
.prose main h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin-top: 2rem; }
.prose main h2 { margin-top: 2.5rem; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--line); min-width: 8rem; }
.prose th { color: var(--muted); font-weight: 600; }
.prose li { margin: 0.3rem 0; }

dl.cmds { display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; gap: 0.5rem 1.2rem; }
dl.cmds dt { font-family: var(--mono); color: var(--accent); }
dl.cmds dd { margin: 0; }
@media (max-width: 30rem) { dl.cmds { grid-template-columns: 1fr; } dl.cmds dd { margin-bottom: 0.6rem; } }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 2.2rem; margin: 0.7rem 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0.1rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); font: 700 0.85rem/1.6rem var(--mono); text-align: center; color: var(--accent); }

/* 404 */
.notfound { padding: 5rem 0; font-family: var(--mono); }
.notfound .err { color: #ff5252; }

/* Footer */
.foot { max-width: var(--max); margin: 3rem auto 0; padding: 2rem 1rem 3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.foot p { margin: 0.4rem 0; }

/* Devanagari in a monospace fallback gets wide, uneven gaps: Hindi pages set
   headings, nav and buttons in the sans stack. Commands and the phone stay mono. */
html[lang="hi"] :is(h1, h2, h3, .top nav a, .btn, p.mono, dl.cmds dt:not([lang="en"])) { font-family: var(--sans); letter-spacing: 0; }
html[lang="hi"] h1 { line-height: 1.3; }
html[lang="hi"] .phone :is(.date, .hint) { font-family: var(--sans); }
