@import url("./tokens.css");
/* Fixed light docdocs identity; shared roles come from the cabinet brand pack. */
:root {
  color-scheme: light;
  --line: rgba(var(--action-rgb), 0.2);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--canvas);
  color: var(--text);
  font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 4px; }
::selection { background: var(--action); color: var(--on-action); }
.page {
  width: min(100% - 40px, 520px);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 32px 0 24px;
}
.topbar { display: flex; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--action); text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.wordmark { font-weight: 700; font-size: 24px; letter-spacing: -0.02em; }
.hero { margin: auto 0; padding: 56px 0 32px; }
.hero h1 {
  font-weight: 700;
  font-size: clamp(32px, 7vw, 46px);
  line-height: 1.16;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  text-wrap: balance;
}
.hero > p { max-width: 42ch; margin: 0 0 32px; color: var(--text-2); font-size: 17px; }
.invite { display: none; margin: 0 0 24px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--island); color: var(--action-text); font-size: 14px; }
.invite.has-ref { display: block; }
.choices { display: grid; gap: 12px; }
.choices--bottom { margin-top: 36px; }
.choice {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 80px;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.choice svg { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.choice svg.fill { fill: currentColor; stroke: none; }
.choice b { display: block; font-weight: 600; font-size: 16px; }
.choice small { display: block; margin-top: 3px; font-size: 13px; }
.choice--primary { background: var(--action); color: var(--on-action); border-color: var(--action); }
.choice--primary:hover { background: var(--action-hover); border-color: var(--action-hover); }
.choice--primary:active { background: var(--action-press); border-color: var(--action-press); }
.choice--secondary { background: var(--island); color: var(--action-text); }
.choice--secondary small { color: var(--text-2); }
.choice--secondary:hover { background: var(--action-soft); border-color: var(--action); }
.choice--secondary:active { border-color: var(--action-press); }
.points { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 20px; }
.points li { padding-left: 20px; position: relative; }
.points li::before { content: ''; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--action); }
.points b { display: block; margin-bottom: 4px; font-weight: 600; font-size: 16px; }
.points span { display: block; color: var(--text-2); font-size: 14px; }
footer { display: flex; align-items: center; gap: 0 18px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px; color: var(--text-2); font-size: 12px; }
footer a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
footer a:hover { color: var(--action-text); text-decoration: underline; }
footer span { flex-basis: 100%; margin-top: 8px; }
.tariffs { margin-top: 40px; }
.tariffs h2 { margin: 0 0 16px; font-size: 24px; line-height: 1.3; font-weight: 700; }
[data-tariff-catalog] { display: grid; gap: 16px; }
.tariff-row { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--island); overflow-wrap: anywhere; }
.tariff-row h3 { margin: 0; font-size: 20px; line-height: 1.4; font-weight: 700; }
.tariff-description { margin: 12px 0 0; white-space: pre-line; color: var(--text-2); font-size: 14px; }
.tariff-periods { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.tariff-periods li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; }
.tariff-periods span { color: var(--text-2); }
.tariff-periods strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.tariff-notice { margin: 16px 0 0; font-size: 14px; color: var(--text-2); }
@media (max-width: 380px) { .tariff-row { padding: 20px; } }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
@media (max-width: 380px) {
  .page { width: calc(100% - 32px); padding-top: 20px; }
  .hero { padding-top: 40px; }
  .choice { padding: 16px; gap: 12px; }
  .choice b { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
