/* HostRedirect site. One stylesheet, no external resources. Colours from the app icon. */
:root {
  --bg: #EAF1F4;
  --text: #0F5F66;
  --muted: #3D666B;
  --accent: #0F5F66;
  --link: #0F5F66;
  --on-accent: #FFFFFF;
  --surface: #FFFFFF;
  --border: rgba(15, 95, 102, 0.15);
  --icon-bg: #EAF1F4;
  --icon-glyph: #0F5F66;
  --ghost: 0.34;
  --ghost-end: 0.2;
  --todo-bg: #FFF6E0;
  --todo-text: #7A4B00;
  --todo-border: #C98A00;
  --radius: 14px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #093A40;
    --text: #EAF1F4;
    --muted: #B5CDD1;
    --accent: #3FA3AC;
    --link: #7CCAD1;
    --on-accent: #062A2E;
    --surface: #0C474E;
    --border: rgba(234, 241, 244, 0.12);
    --icon-bg: #093A40;
    --icon-glyph: #EAF1F4;
    --ghost: 0.30;
    --ghost-end: 0.2;
    --todo-bg: #3A2A00;
    --todo-text: #FFD58A;
    --todo-border: #E0A526;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (min-width: 768px) { body { font-size: 18px; } }

a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
code, .mono { font-family: var(--mono); font-size: 0.95em; overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.9rem, 6vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.45rem, 4vw, 2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li + li { margin-top: 0.3em; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 824px; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 10px 14px; z-index: 10; }

/* Header */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 1.1rem; min-height: 44px; }
.brand svg { width: 13px; height: 30px; flex: none; }
.glyph-ghost { opacity: var(--ghost); }
.lang { display: flex; align-items: center; gap: 2px; font-weight: 600; font-size: 1rem; }
.lang a, .lang span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 8px; border-radius: 8px; }
.lang a { color: var(--muted); text-decoration: none; }
.lang a:hover { color: var(--text); text-decoration: underline; }
.lang [aria-current] { color: var(--text); }
.lang .sep { min-width: 0; padding: 0; color: var(--muted); }

/* Sections */
main section { padding: 48px 0; }
@media (min-width: 768px) { main section { padding: 72px 0; } }
main section + section { border-top: 1px solid var(--border); }
.lead { font-size: 1.12em; color: var(--muted); max-width: 40em; }
.small { font-size: 1rem; color: var(--muted); }

/* Hero */
.hero { text-align: center; padding-top: 32px; }
.hero h1 { max-width: 16em; margin: 28px auto 16px; }
.hero .lead { margin: 0 auto 28px; }
.hero-icon { display: block; width: 160px; height: 160px; margin: 0 auto; border-radius: 22.5%; }
@media (min-width: 768px) { .hero-icon { width: 220px; height: 220px; } }
.hero-icon .icon-bg { fill: var(--icon-bg); }
.hero-icon path { fill: none; stroke: var(--icon-glyph); stroke-width: 102; stroke-linecap: round; stroke-linejoin: round; }
.hero-icon .ghost { opacity: var(--ghost); }
@media (prefers-color-scheme: dark) { .hero-icon { box-shadow: 0 0 0 1px rgba(234, 241, 244, 0.18); } }
/* The live track draws itself once: up from the bottom, then off to the right. */
.hero-icon .track { stroke-dasharray: 1 1.1; stroke-dashoffset: 1.05; animation: draw 1.2s ease-in-out 0.3s forwards; }
.hero-icon .ghost { animation: fade 0.3s ease-in-out 1.2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: var(--ghost-end); } }
@media (prefers-reduced-motion: reduce) {
  .hero-icon .track { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
  .hero-icon .ghost { animation: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px; border-radius: 12px;
  font-weight: 600; font-size: 1.05rem; text-decoration: none; text-align: center;
  background: var(--accent); color: var(--on-accent); border: 2px solid var(--accent);
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.btn-secondary { background: transparent; color: var(--link); border-color: var(--border); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 16px; }
.btn-row.start { justify-content: flex-start; }

/* How it works */
.example {
  font-family: var(--mono); font-size: 1rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px; margin: 0 0 28px; overflow-wrap: anywhere;
}
.example .arrow { padding: 0 0.4em; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { margin: 0; counter-increment: step; }
.steps li::before {
  content: counter(step); display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--on-accent);
  font-weight: 700; margin-bottom: 10px;
}

/* Cards */
.cards { display: grid; gap: 16px; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(3, 1fr); } .cards.two { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.card > :last-child { margin-bottom: 0; }
.card h3 { margin-bottom: 0.4em; }
.plan h3 { font-size: 1.3rem; }
.plan ul { margin-bottom: 0; }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 16px; min-height: 44px; list-style-position: inside; }
.faq details > div { padding: 0 16px 4px; }

/* Text pages */
.page { padding-top: 32px; padding-bottom: 56px; }
.page h2 { margin-top: 1.6em; font-size: 1.35rem; }
.page h3 { margin-top: 1.4em; }
.meta { color: var(--muted); }
.todo { border: 2px dashed var(--todo-border); background: var(--todo-bg); color: var(--todo-text); padding: 0 6px; border-radius: 4px; font-weight: 600; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 20px; margin: 24px 0; }
.panel > :last-child { margin-bottom: 0; }
[hidden] { display: none !important; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 40px; font-size: 1rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer p { margin: 0; }

/* Keep each address of the example on one line when it fits */
.example > span:not(.arrow) { display: inline-block; }
.cards + .small { margin-top: 16px; }
