:root {
  --bg: #ffffff; --bg-soft: #f8fafc; --ink: #1e293b; --ink-soft: #64748b;
  --accent: #2563eb; --line: #e2e8f0; --err: #dc2626;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
       color: var(--ink); background: var(--bg); line-height: 1.6; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; }

.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 10; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font-weight: 700; color: var(--ink); font-size: 18px; }
.brand span { color: var(--accent); }
.nav nav a { color: var(--ink-soft); margin-left: 20px; font-weight: 500; }

.hero { background: var(--bg-soft); padding: 72px 0; border-bottom: 1px solid var(--line); }
.hero h1 { font-size: 40px; margin: 0 0 12px; max-width: 680px; }
.hero p { max-width: 680px; color: var(--ink-soft); font-size: 18px; }
.hero-cta { margin-top: 24px; }
.hero-cta .btn { margin-right: 10px; }

.btn { display: inline-block; background: var(--accent); color: #fff; padding: 10px 20px;
       border-radius: 8px; font-weight: 600; border: 0; cursor: pointer; font-size: 16px; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-small { padding: 5px 12px; font-size: 14px; }

section { padding: 48px 0; }
section h2 { font-size: 26px; margin: 0 0 16px; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: 10px; padding: 16px; background: #fff;
        display: flex; flex-direction: column; gap: 6px; }
.card h3 { margin: 0; font-size: 17px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 14px; flex: 1; }
.card .cardfoot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }

.pill { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 10px; }
.pill-live { background: #dcfce7; color: #166534; }
.pill-beta { background: #fef9c3; color: #854d0e; }
.pill-in-development { background: #f1f5f9; color: #475569; }
.pill-needs-update { background: #ffedd5; color: #9a3412; }
.badge-paid { display: inline-block; font-size: 12px; font-weight: 700; color: #fff;
              background: var(--accent); border-radius: 999px; padding: 2px 10px; }

.updates { list-style: none; margin: 0; padding: 0; }
.updates li { border-bottom: 1px solid var(--line); padding: 12px 0; }
.updates .u-meta { color: var(--ink-soft); font-size: 13px; }
.updates .u-title { font-weight: 600; }
.u-type { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-right: 8px; }
.u-type-release { color: #166534; } .u-type-fix { color: #1d4ed8; }
.u-type-notice { color: #64748b; } .u-type-incident { color: #b91c1c; }

form label { display: block; margin: 12px 0 0; font-weight: 600; font-size: 14px; }
input, select, textarea { width: 100%; padding: 10px; border: 1px solid var(--line);
                          border-radius: 8px; font: inherit; margin-top: 4px; background: #fff; }
form .btn { margin-top: 16px; }
.hp { display: none; }
.notice { border-radius: 8px; padding: 10px 14px; font-weight: 600; }
.notice.ok { background: #dcfce7; color: #166534; }
.notice.err { background: #fee2e2; color: #991b1b; }
.contact-card { border: 1px solid var(--line); border-radius: 10px; padding: 24px; max-width: 560px; background: #fff; }

.legal { max-width: 760px; }
.legal h2 { margin-top: 32px; font-size: 22px; }

.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tier { border: 1px solid var(--line); border-radius: 10px; padding: 24px; background: #fff; }
.phone-big { font-size: 28px; font-weight: 700; }

.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft);
               padding: 32px 0 16px; color: var(--ink-soft); font-size: 14px; margin-top: 48px; }
.footgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.copyright { margin-top: 16px; font-size: 13px; }

table.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.admin-table th, table.admin-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr.unread { font-weight: 700; }
.admin main { padding: 24px 0; }
.inline-form { display: inline; }

@media (max-width: 640px) {
  .hero h1 { font-size: 30px; }
  .nav nav a { margin-left: 12px; }
  .footgrid, .tiers { grid-template-columns: 1fr; }
}
