:root {
  --bg: #ffffff;
  --soft: #f6f7f9;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #ff3d57;
  --accent-dk: #e02a45;
  --ok: #16a34a;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(17, 24, 39, .08);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: var(--accent); }
img { max-width: 100%; }
kbd { font: 600 13px/1 inherit; font-family: inherit; padding: 3px 7px; border-radius: 6px; background: var(--soft); border: 1px solid var(--line); border-bottom-width: 2px; color: var(--text); white-space: nowrap; }
code { font: 600 14px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--soft); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
.copyable { cursor: pointer; }
.copyable:hover { border-color: var(--accent); }
.muted { color: var(--muted); }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px max(16px, calc((100% - 1120px) / 2)); background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; font-size: 18px; }
.brand img { width: 30px; height: 30px; }
.brand b { color: var(--accent); }
.nav nav { display: flex; align-items: center; gap: 18px; font-size: 15px; font-weight: 600; }
.nav nav a { color: var(--text); text-decoration: none; }
.nav nav a.muted { color: var(--muted); }
.pill { background: var(--accent); color: #fff !important; padding: 8px 16px; border-radius: 999px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 12px; padding: 12px 20px; font-family: inherit; font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer; }
.btn.main { background: var(--accent); color: #fff; }
.btn.main:hover { background: var(--accent-dk); }
.btn.ghost { background: #fff; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { background: var(--soft); }
.btn.big { padding: 16px 26px; font-size: 17px; }
.btn.google { width: 100%; background: #fff; color: #1f2937; border-color: #d1d5db; }
.btn.google:hover { background: #f9fafb; }
.btn.google svg { width: 20px; height: 20px; }

/* hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #ffe3e8 0%, transparent 60%), linear-gradient(#fff, #fff7f8); border-bottom: 1px solid var(--line); }
.hero-in { max-width: 1120px; margin: 0 auto; padding: 64px 16px 72px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; margin: 0 0 14px; padding: 5px 12px; border-radius: 999px; background: #ffe3e8; color: var(--accent-dk); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 18px; }
h1 span { color: var(--accent); }
.lead { font-size: 19px; color: #374151; margin: 0 0 20px; }
.ticks { list-style: none; padding: 0; margin: 0 0 26px; }
.ticks li { position: relative; padding-left: 30px; margin: 9px 0; font-weight: 500; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 21px; height: 21px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.hero-shot img { border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); }

/* signup */
.signup { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: 0 24px 60px rgba(255, 61, 87, .14), var(--shadow); }
.signup h3 { margin: 0; font-size: 24px; }
.signup .sub { margin: 4px 0 18px; color: var(--muted); }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 16px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.email-form { display: flex; flex-direction: column; gap: 10px; }
.email-form input { width: 100%; padding: 13px 14px; border: 1px solid #d1d5db; border-radius: 11px; font: inherit; }
.email-form input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.fine { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }
.err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; padding: 10px 12px; border-radius: 10px; font-size: 14px; }

/* features */
.band { max-width: 1120px; margin: 0 auto; padding: 72px 16px 40px; text-align: center; }
.band h2, .showcase h2, .install h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.01em; margin: 0 0 30px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: left; }
.feat { background: var(--soft); border-radius: 16px; padding: 22px; }
.feat .ic { font-size: 28px; }
.feat h4 { margin: 8px 0 6px; font-size: 18px; }
.feat p { margin: 0; color: #4b5563; }

.showcase { max-width: 1120px; margin: 0 auto; padding: 30px 16px 40px; }
.show-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; margin: 30px 0 50px; }
.show-in.rev { grid-template-columns: 1.2fr .8fr; }
.show-in.rev > div { order: 2; }
.show-in h2 { margin-bottom: 12px; }
.show-in p { color: #4b5563; font-size: 17px; }
.show-in img { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.cta { max-width: 480px; margin: 0 auto; padding: 10px 16px 80px; }

/* thank-you */
.ty-hero { max-width: 900px; margin: 0 auto; padding: 56px 16px 20px; text-align: center; }
.tools { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.tool-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: var(--shadow); color: var(--text); text-decoration: none; }
.main-tool { border: 2px solid var(--accent); }
.tool-top { display: flex; gap: 16px; align-items: center; }
.tool-top h2 { margin: 0 0 4px; font-size: 24px; }
.tool-top p { margin: 0; color: var(--muted); }
.tool-ic { width: 64px; height: 64px; flex: none; }
.tool-ic.emoji { font-size: 40px; display: flex; align-items: center; justify-content: center; background: var(--soft); border-radius: 16px; }
.ext-status { display: flex; align-items: center; gap: 10px; margin: 18px 0; padding: 12px 14px; border-radius: 12px; background: #fff7ed; color: #9a3412; font-weight: 600; font-size: 15px; }
.ext-status .dot { width: 10px; height: 10px; border-radius: 50%; background: #f59e0b; flex: none; }
.ext-status[data-state="ok"] { background: #f0fdf4; color: #166534; }
.ext-status[data-state="ok"] .dot { background: var(--ok); }
.ext-status[data-state="installed"] { background: #eff6ff; color: #1e40af; }
.ext-status[data-state="installed"] .dot { background: #2563eb; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.keys { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 20px; margin-top: 20px; font-size: 15px; color: #374151; }
.keys kbd { margin-right: 6px; }
.tool-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.tool-card.small { display: flex; gap: 16px; transition: transform .12s, box-shadow .12s; }
.tool-card.small:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(17,24,39,.12); }
.tool-card.small h3 { margin: 2px 0 4px; font-size: 19px; }
.tool-card.small p { margin: 0 0 8px; color: var(--muted); font-size: 15px; }
.go { color: var(--accent); font-weight: 700; font-size: 15px; }

.install { max-width: 960px; margin: 0 auto; padding: 64px 16px 80px; }
.install h2 { margin-bottom: 6px; text-align: center; }
.install .sub { text-align: center; color: var(--muted); margin: 0 0 30px; }
.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 22px; }
.step { background: var(--soft); border-radius: 18px; padding: 22px; }
.step-txt { display: flex; gap: 14px; margin-bottom: 14px; }
.num { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.step h3 { margin: 4px 0 4px; font-size: 20px; }
.step p { margin: 0; color: #374151; }
.step img { display: block; width: 100%; border-radius: 12px; border: 1px solid var(--line); background: #fff; }

/* links */
.links-wrap { max-width: 1000px; margin: 0 auto; padding: 40px 16px 80px; }
.links-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.links-head h1 { font-size: 32px; margin: 0; }
.links-head p { margin: 4px 0 0; }
.links-head input { padding: 11px 14px; border: 1px solid var(--line); border-radius: 11px; font: inherit; min-width: 260px; }
.day { margin: 26px 0; }
.day-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 10px; }
.day-head h2 { font-size: 18px; margin: 0; }
.day-head button { font-size: 14px; padding: 8px 14px; }
.lk { display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; align-items: center; padding: 8px 0; border-bottom: 1px solid #f3f4f6; }
.lk img { width: 96px; height: 60px; object-fit: cover; object-position: top; border-radius: 8px; border: 1px solid var(--line); background: var(--soft); }
.lk .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk .u { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk .acts { display: flex; gap: 6px; }
.lk .acts button, .lk .acts a { font-size: 13px; padding: 7px 11px; border-radius: 9px; }
.empty { text-align: center; padding: 60px 0; }
.big-ic { font-size: 54px; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: #111827; color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; transition: .18s; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* admin */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
.stats div { background: var(--soft); border-radius: 14px; padding: 16px; }
.stats b { display: block; font-size: 28px; }
.stats span { color: var(--muted); font-size: 14px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); }
.tbl th { color: var(--muted); font-weight: 600; }

.narrow { max-width: 620px; margin: 0 auto; padding: 80px 16px; }
.center { text-align: center; }

/* footer */
.foot { background: #0f1115; color: #d1d5db; padding: 36px 16px 22px; }
.foot-in { max-width: 1120px; margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot-brand { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.foot-brand img { width: 36px; height: 36px; }
.foot-brand b { color: #fff; font-size: 16px; }
.legal { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.legal a { color: #d1d5db; text-decoration: none; }
.legal a:hover { color: #fff; text-decoration: underline; }
.copy { max-width: 1120px; margin: 22px auto 0; font-size: 12px; color: #6b7280; }

@media (max-width: 860px) {
  .hero-in, .show-in, .show-in.rev { grid-template-columns: 1fr; gap: 28px; }
  .show-in.rev > div { order: 0; }
  .grid3 { grid-template-columns: 1fr; }
  .tool-row { grid-template-columns: 1fr; }
  .keys { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .lk { grid-template-columns: 70px 1fr; }
  .lk .acts { grid-column: 1 / -1; }
  .nav nav { gap: 12px; font-size: 14px; }
  .tbl { display: block; overflow-x: auto; }
}
