/* Vaylio website. Colours follow the app's palette (apps/mobile/lib/theme/theme.dart):
   #8A48EF is the app's AA violet, #A66CFF the brand, #B95AD8 the orchid of its gradients. */
:root {
  --bg: #F7F2FB;
  --surface: #FFFFFF;
  --elevated: #EFE8F6;
  --text: #242237;
  --muted: #565170;
  --faint: #6E6888;
  --border: #DDD3E8;
  --accent: #8A48EF;
  --accent-ink: #6F35CC;
  --btn: #8A48EF;
  --btn-hover: #793FD2;
  --todo-bg: #FFF1A8;
  --todo-text: #4A3B00;
  --notice-bg: #F6F0FF;
  --notice-border: #DBC4FF;
  --radius: 18px;
  --gutter: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17151F;
    --surface: #221F2E;
    --elevated: #2C2839;
    --text: #F4EFFA;
    --muted: #BDB5CC;
    --faint: #9D95AE;
    --border: #3B3650;
    --accent: #C4A0FF;
    --accent-ink: #DBC4FF;
    --btn: #8A48EF;
    --btn-hover: #9D62F3;
    --todo-bg: #5A4A00;
    --todo-text: #FFF1B8;
    --notice-bg: #2A2240;
    --notice-border: #4C3D73;
    color-scheme: dark;
  }
}

*, *::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-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: break-word;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-ink); }
.doc a { overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 800px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 21px; letter-spacing: -0.02em; margin-right: auto; }
.brand:hover { color: var(--text); }
.brand img { width: 32px; height: 32px; display: block; }
.site-nav { display: flex; flex-wrap: wrap; gap: 2px 4px; }
.site-nav a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 600; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.site-nav a:hover { color: var(--text); background: var(--elevated); }
.site-nav a[aria-current="page"] { color: var(--accent); background: var(--elevated); }
.lang { text-decoration: none; font-size: 14px; font-weight: 700; color: var(--text); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; white-space: nowrap; }
.lang:hover { background: var(--elevated); color: var(--text); }

main { padding: 32px 0 56px; }

/* Home */
.hero { border-radius: 28px; padding: 48px 36px; color: #fff; background: linear-gradient(135deg, #2D1756 0%, #8A48EF 55%, #B95AD8 100%); }
.hero h1 { margin: 0 0 10px; font-size: clamp(42px, 8vw, 64px); line-height: 1.05; letter-spacing: -0.03em; }
.hero p { margin: 0; max-width: 620px; font-size: clamp(17px, 2.4vw, 20px); color: rgba(255, 255, 255, 0.94); }
.hero .age { margin-top: 12px; font-size: 15px; color: rgba(255, 255, 255, 0.85); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store { display: inline-flex; flex-direction: column; justify-content: center; min-width: 190px; padding: 10px 20px; border-radius: 14px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.4); color: #fff; line-height: 1.3; cursor: default; }
.store small { font-size: 12px; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.9); }
.store strong { font-size: 18px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 28px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card h2 { margin: 0 0 6px; font-size: 18px; line-height: 1.35; }
.card p { margin: 0; color: var(--muted); }
.links-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pill { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; font-weight: 600; font-size: 15px; }

/* Documents */
.doc h1 { font-size: clamp(30px, 5vw, 40px); line-height: 1.15; margin: 0 0 6px; letter-spacing: -0.02em; }
.doc .lead { margin: 0 0 4px; color: var(--muted); }
.doc h2 { font-size: 21px; line-height: 1.3; margin: 36px 0 10px; padding-top: 8px; scroll-margin-top: 16px; }
.doc h3 { font-size: 17px; line-height: 1.4; margin: 22px 0 6px; }
.doc p { margin: 0 0 12px; }
.doc p.line { color: var(--muted); font-size: 15px; margin-bottom: 6px; }
.doc p.item { padding-left: 22px; margin-bottom: 8px; position: relative; }
.doc p.item.dot::before { content: ""; position: absolute; left: 7px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.doc ul.items, .doc ol.steps { margin: 0 0 14px; padding-left: 24px; }
.doc ul.items li, .doc ol.steps li { margin-bottom: 8px; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 20px; margin: 22px 0 6px; }
.toc summary { cursor: pointer; font-weight: 700; }
.toc ol { margin: 10px 0 2px; padding-left: 20px; columns: 2 260px; column-gap: 28px; }
.toc li { margin-bottom: 4px; font-size: 15px; break-inside: avoid; }
.doc-footer { margin-top: 32px; padding: 16px 20px; border-radius: var(--radius); background: var(--elevated); color: var(--muted); font-size: 15px; }
.doc-footer p { margin: 0 0 4px; }
.doc-footer p:last-child { margin-bottom: 0; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin: 16px 0; }
.panel > :last-child { margin-bottom: 0; }
.notice { background: var(--notice-bg); border: 1px solid var(--notice-border); border-radius: 14px; padding: 12px 16px; margin: 0 0 24px; font-size: 15px; }
.notice p { margin: 0; }
.btn { display: inline-block; padding: 10px 18px; border-radius: 999px; background: var(--btn); color: #fff; text-decoration: none; font-weight: 700; }
.btn:hover { background: var(--btn-hover); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 0 0 16px; }
.points { list-style: none; padding: 0; margin: 0 0 16px; }
.points li { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; margin-bottom: 10px; }
.points strong { display: block; }
.ui { font-weight: 700; }
.source-note { font-size: 14px; color: var(--faint); }

/* Placeholders copied as they are from the app's text: replace them in the app first, then rebuild. */
.todo { background: var(--todo-bg); color: var(--todo-text); padding: 0 5px; border-radius: 5px; font-weight: 700; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 15px; }
.site-footer .wrap { padding-top: 28px; padding-bottom: 32px; display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1.4fr 1fr; } }
.site-footer .company strong { color: var(--text); display: block; margin-bottom: 4px; }
.site-footer address { font-style: normal; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; align-content: start; }
.site-footer nav a { color: var(--muted); }
.site-footer .copy { grid-column: 1 / -1; font-size: 14px; color: var(--faint); margin: 0; }

@media (max-width: 560px) {
  main { padding: 20px 0 40px; }
  .hero { padding: 32px 22px; border-radius: 22px; }
  .store { min-width: 0; flex: 1 1 100%; }
  .site-nav { width: 100%; order: 3; }
  .site-nav a { padding: 5px 8px; font-size: 14px; }
}

/* operator sentence (staging-stripe-1130, 2026-12-01) */
.hero .operator { margin-top: 6px; font-size: 15px; color: rgba(255, 255, 255, 0.85); }
.site-footer .company .operator { margin: 0 0 4px; }
