/* Yakata public site: legal, help, account deletion. Brand tokens match the app and admin. */
:root {
  --blue: #1D4ED8; --blue-600: #1E40AF; --blue-50: #EFF4FF; --blue-100: #DBE6FE;
  --navy: #172554; --ink: #0B1530; --sun: #FACC15; --sun-200: #FEF08A;
  --canvas: #F7F7F4; --surface: #FFFFFF; --border: #E3E3DE;
  --text: #0B1530; --muted: #5B6478;
  --ok: #15803D; --ok-bg: #DCFCE7; --bad: #B91C1C; --bad-bg: #FEE2E2; --warn-bg: #FEF3C7; --warn-ink: #854D0E;
  --font: "Google Sans", sans-serif;
  --r: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--text); background: var(--canvas); }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-600); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }
img { max-width: 100%; }
.wrap { width: 100%; max-width: 920px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sun); color: var(--ink); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.top { background: var(--navy); color: #fff; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 19px; }
.brand:hover { color: #fff; }
.top-nav { display: flex; gap: 4px; }
.top-nav a { color: #DBE6FE; text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 500; font-size: 15px; }
.top-nav a:hover, .top-nav a[aria-current] { color: #fff; background: rgba(255,255,255,.1); }

/* Page header band */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--blue) 100%); color: #fff; padding: 40px 0 44px; }
.hero h1 { margin: 0 0 8px; font-size: clamp(28px, 5vw, 40px); line-height: 1.15; letter-spacing: -.01em; }
.hero p { margin: 0; color: #DBE6FE; font-size: 17px; max-width: 640px; }
.hero .eyebrow { display: inline-block; background: var(--sun); color: var(--ink); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.hero em { font-style: normal; color: var(--sun); }

/* Content */
.doc { padding: 32px 0 56px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 28px clamp(20px, 4vw, 40px); }
.card + .card { margin-top: 16px; }
.doc h2 { font-size: 21px; line-height: 1.3; margin: 32px 0 8px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 17px; margin: 22px 0 6px; }
.doc p, .doc li { color: #26304A; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 4px 0; }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.toc { background: var(--blue-50); border-radius: 12px; padding: 14px 18px; margin: 0 0 24px; }
.toc strong { font-size: 14px; }
.toc ol { margin: 6px 0 0; columns: 2 220px; font-size: 15px; }
.note { background: var(--blue-50); border-left: 4px solid var(--blue); border-radius: 10px; padding: 12px 16px; margin: 16px 0; }
.note.warn { background: var(--warn-bg); border-color: #CA8A04; }
.note.warn, .note.warn p { color: var(--warn-ink); }
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--canvas); font-weight: 600; }
.table-scroll { overflow-x: auto; }

/* Home */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tile { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 18px 20px; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--blue); transform: translateY(-1px); color: var(--text); }
.tile strong { display: block; font-size: 17px; margin-bottom: 2px; }
.tile span { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 0 0 28px; padding: 0; list-style: none; counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 18px; counter-increment: s; margin: 0; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sun); color: var(--ink); font-weight: 700; margin-bottom: 8px; }
.steps strong { display: block; }
.section-title { font-size: 20px; margin: 0 0 12px; }

/* Forms */
.form { display: grid; gap: 16px; max-width: 480px; }
label { font-weight: 600; font-size: 15px; display: block; margin-bottom: 6px; }
.hint { color: var(--muted); font-size: 14px; margin-top: 4px; }
input[type=email], input[type=text], textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: #fff;
  border: 1.5px solid var(--border); border-radius: 12px; padding: 12px 14px; min-height: 48px;
}
input:focus, textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px var(--blue-100); }
input.code { letter-spacing: .4em; font-size: 22px; font-weight: 600; max-width: 220px; }
textarea { min-height: 88px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--blue); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 26px; border-radius: 999px; border: 0; font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; text-decoration: none; background: var(--blue); color: #fff; }
.btn:hover { background: var(--blue-600); color: #fff; }
.btn.danger { background: #B91C1C; }
.btn.danger:hover { background: #991B1B; }
.btn.ghost { background: transparent; color: var(--blue); border: 1.5px solid var(--border); }
.btn.ghost:hover { border-color: var(--blue); color: var(--blue-600); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.alert { border-radius: 12px; padding: 12px 16px; font-weight: 500; }
.alert.error { background: var(--bad-bg); color: var(--bad); }
.alert.ok { background: var(--ok-bg); color: var(--ok); }
.stepper { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 22px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.stepper li { display: flex; align-items: center; gap: 6px; margin: 0; }
.stepper li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.stepper li[aria-current]::before, .stepper li.done::before { background: var(--blue); }
.stepper li[aria-current] { color: var(--text); font-weight: 600; }

/* Footer */
.foot { background: var(--navy); color: #C7D2FE; padding: 36px 0 28px; }
.foot-in { display: grid; gap: 20px; }
.foot-brand { display: flex; gap: 12px; align-items: center; }
.foot-brand strong { color: #fff; font-size: 17px; }
.foot-brand p { margin: 0; color: #C7D2FE; font-size: 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { color: #E0E7FF; text-decoration: none; font-size: 14.5px; }
.foot a:hover, .foot a[aria-current] { color: var(--sun); text-decoration: underline; }
.foot-copy { margin: 0; font-size: 13.5px; color: #A5B4FC; border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; }

@media (max-width: 560px) {
  .top-nav a { padding: 8px; font-size: 14px; }
  .brand span { display: none; }
  .card { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Yakata wordmark (has its own white outline, reads on the blue header). */
.brand img.wm { width: auto; height: 38px; display: block; }
.foot img.wm, footer img.wm { width: auto; height: 32px; }
@media (max-width: 640px) { .brand img.wm { height: 32px; } }

/* Small secondary text (Help page install card). */
.muted { color: var(--muted, #5B6478); font-size: 14px; }
#install .btn { margin-right: 10px; }
