:root {
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e5e7eb;
  --bg: #f7f7f8;
}
* { box-sizing: border-box; }
h1, h2, h3, h4, strong, b, th, label { font-weight: 500; }
html, body {
  margin: 0;
  min-height: 100dvh;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.025em;
  color-scheme: light;
}
body {
  padding: 20px 16px 48px;
  display: flex;
  flex-direction: column;
}
.nav {
  max-width: 720px;
  width: 100%;
  margin: 0 auto 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}
.nav img { height: 32px; width: auto; }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 14px;
  font-size: 13px;
  font-weight: 500;
}
a { color: inherit; text-decoration: none; }
.nav-links a:hover, .foot a:hover { color: #e1306c; }
main {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  min-width: 0;
}
h1 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 6vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.05;
  overflow-wrap: break-word;
}
.lead { color: var(--muted); font-size: 16px; line-height: 1.5; margin: 0 0 24px; }
h2 { margin: 28px 0 10px; font-size: 18px; color: var(--ink); }
p, li { color: var(--muted); line-height: 1.6; overflow-wrap: break-word; }
ul { padding-left: 1.2em; }
code, pre {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.92em;
  overflow-wrap: anywhere;
}
pre {
  overflow-x: auto;
  max-width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: #0f172a;
  color: #e2e8f0;
  white-space: pre-wrap;
  word-break: break-word;
}
.foot { margin-top: auto; padding-top: 36px; font-size: 13px; color: var(--muted); }
.foot a { text-decoration: underline; }
form, .card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}
label { display: grid; gap: 6px; margin-bottom: 16px; font-size: 13px; font-weight: 500; color: var(--muted); }
label.row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  line-height: 1.4;
}
input[type="email"], input[type="text"], input[type="password"] {
  width: 100%;
  font: inherit;
  font-weight: 500;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
input:focus { outline: 2px solid #0f172a; outline-offset: 2px; }
button {
  border: 0;
  border-radius: 999px;
  padding: 14px 28px;
  font: inherit;
  font-weight: 500;
  color: #fff;
  background: #0f172a;
  cursor: pointer;
}
button:disabled { opacity: 0.6; cursor: wait; }
.status { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.plans {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
  margin: 0 0 28px;
}
.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.plan h2 { margin: 0 0 6px; font-size: 16px; }
.plan p { margin: 0; font-size: 13px; line-height: 1.45; }
@media (max-width: 640px) {
  body { padding: 14px 14px 32px; }
  .nav {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 28px;
  }
  .nav-links {
    justify-content: flex-start;
    width: 100%;
    gap: 10px 12px;
  }
  .plans { grid-template-columns: 1fr; }
}
