:root {
  --red: #e0141e;
  --red-dark: #b80f18;
  --ink: #1d1d1f;
  --muted: #6b6b73;
  --line: #e7e7ea;
  --bg: #f7f7f8;
  --card: #ffffff;
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red); }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }

header.site { padding: 32px 0 8px; text-align: center; }
header.site img { width: 88px; height: auto; }

.hero { text-align: center; padding: 16px 0 32px; }
.hero h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 8px; letter-spacing: -0.02em; }
.hero p { color: var(--muted); margin: 0 auto; max-width: 520px; }

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.plan {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
}
.plan.featured { border: 2px solid var(--red); box-shadow: 0 12px 32px rgba(224, 20, 30, 0.12); }

.badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan h2 { margin: 0; font-size: 1.15rem; }
.price { margin: 12px 0 2px; font-size: 2.6rem; font-weight: 700; letter-spacing: -0.03em; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.was { color: var(--muted); font-size: 0.95rem; }
.was s { margin-right: 6px; }
.save { color: var(--red); font-weight: 600; }
.note { color: var(--muted); font-size: 0.88rem; margin: 4px 0 18px; }

.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan li { padding: 6px 0 6px 28px; position: relative; }
.plan li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--red);
  border-bottom: 2.5px solid var(--red);
  transform: rotate(-45deg);
}

.plan form { margin: 0; }
.btn {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 14px 16px;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  background: var(--ink);
  color: #fff;
  transition: background 0.15s;
}
.btn:hover { background: #000; }
.featured .btn { background: var(--red); }
.featured .btn:hover { background: var(--red-dark); }
.btn:focus-visible { outline: 3px solid rgba(224, 20, 30, 0.35); outline-offset: 2px; }

.hint { text-align: center; color: var(--muted); font-size: 0.92rem; margin: 28px auto 0; max-width: 560px; }
.manage { text-align: center; margin: 12px 0 48px; }

.page { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 24px; margin: 16px 0 48px; }
.page h1 { margin-top: 0; letter-spacing: -0.01em; }
.page h2 { font-size: 1.1rem; margin-top: 28px; }
.center { text-align: center; }
.center .btn { display: inline-block; width: auto; padding: 12px 28px; text-decoration: none; margin-top: 12px; }

footer.site { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: 0.85rem; text-align: center; }
footer.site p { margin: 4px 0; }
footer.site nav a { color: var(--muted); margin: 0 8px; }
