/* TRCBeacon site. Mobile-first, system fonts only (no web fonts, no external origins). */
:root {
  --ink: #0b1f33;
  --ink-2: #3d5166;
  --bg: #ffffff;
  --bg-2: #f2f6f9;
  --line: #d5dee7;
  --accent: #2ee6a6;
  --link: #05663f;
  --radius: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font: 1rem/1.6 var(--font);
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 6vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

a { color: var(--link); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  padding: .6rem 1rem; background: var(--ink); color: #fff; border-radius: 8px;
}
.skip:focus { top: 1rem; }

/* Header */
.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.top-in { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; padding-top: .8rem; padding-bottom: .8rem; }
.logo { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; margin-right: auto; }
.mark { display: block; flex: none; }
.nav { display: none; gap: 1.25rem; }
.nav a { color: var(--ink); text-decoration: none; padding: .5rem 0; }
.nav a:hover { text-decoration: underline; }
.langs { display: flex; list-style: none; gap: .25rem; }
.langs a, .langs span { display: inline-block; min-width: 44px; min-height: 44px; padding: .55rem .6rem; text-align: center; border-radius: 8px; font-weight: 600; font-size: .9rem; }
.langs a { color: var(--ink); text-decoration: none; border: 1px solid var(--line); }
.langs a:hover { border-color: var(--ink); }
.langs span { background: var(--ink); color: #fff; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .75rem 1.4rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid var(--ink);
}
.btn-main { background: var(--ink); color: #fff; }
.btn-main:hover { background: #163a5c; }
.btn-alt { background: transparent; color: var(--ink); }
.btn-alt:hover { background: var(--bg-2); }
.cta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.beta { font-size: .85rem; color: var(--ink-2); }

/* Sections */
section { padding: 3rem 0; }
section:nth-of-type(even) { background: var(--bg-2); }
.hero { padding: 3.5rem 0 3rem; background: linear-gradient(180deg, #e8fbf3 0%, var(--bg) 100%); }
.hero h1 { max-width: 20ch; }
.eyebrow { font-weight: 700; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; color: var(--link); }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 40rem; }
.hero-note, .fine { font-size: .92rem; color: var(--ink-2); }
.section-lead { color: var(--ink-2); max-width: 44rem; }

.step-list { list-style: none; display: grid; gap: 1rem; counter-reset: step; }
.step-list li { counter-increment: step; position: relative; padding: 1.25rem 1.25rem 1rem 4rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.step-list li::before {
  content: counter(step); position: absolute; left: 1.25rem; top: 1.15rem;
  width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--ink); font-weight: 700;
}
.step-list p, .who-list p, .card p:last-child { margin-bottom: 0; }

.grid, .who-list, .plans { display: grid; gap: 1rem; }
.card { padding: 1.4rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.card-key { border: 2px solid var(--ink); }
.card ul { padding-left: 1.2rem; margin-bottom: 1em; }
.card li + li { margin-top: .3rem; }
.card .fine { margin-top: auto; }

.who-list { list-style: none; }
.who-list li { padding: 1.25rem; background: var(--bg); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; }

/* Pricing */
.group { margin-top: 2rem; }
.plans { margin-bottom: 1.5rem; }
.plan { padding: 1.4rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.price { font-size: 1.8rem; font-weight: 800; margin-bottom: 1rem; }
.price span { font-size: 1rem; font-weight: 600; color: var(--ink-2); margin-left: .15rem; }
.limits { display: grid; grid-template-columns: 1fr auto; gap: .4rem 1rem; margin: 0; font-size: .95rem; }
.limits dt { color: var(--ink-2); }
.limits dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

/* FAQ */
.faq dl { margin: 0; max-width: 48rem; }
.faq dt { font-weight: 700; font-size: 1.08rem; margin-top: 1.5rem; }
.faq dd { margin: .35rem 0 0; color: var(--ink-2); }

.final { text-align: center; }
.final .btn { margin-top: .5rem; }

/* Legal pages */
.legal { padding-top: 3rem; padding-bottom: 3rem; max-width: 48rem; }
.legal h2 { font-size: 1.4rem; margin-top: 2rem; }
.contacts dt { font-weight: 700; margin-top: 1rem; }
.contacts dd { margin: .25rem 0 0; }
.contacts address { font-style: normal; }
.legal h3 { font-size: 1.15rem; margin-top: 1.5rem; }
.legal table { display: block; overflow-x: auto; border-collapse: collapse; margin: 1rem 0; }
.legal th, .legal td { border: 1px solid var(--line); padding: .4rem .6rem; text-align: left; vertical-align: top; }

/* Footer */
.foot { background: var(--ink); color: #dbe5ee; padding: 2.5rem 0; font-size: .95rem; }
.foot a { color: #fff; }
.foot-brand { font-weight: 700; color: #fff; }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin-bottom: 1rem; }
.foot-links a { display: inline-block; padding: .55rem 0; }
.foot-contacts { font-style: normal; margin: 0 0 1rem; line-height: 1.8; }
.foot-contacts a { display: inline-block; padding: .25rem 0; }
.foot-note { margin: 0; color: #b9c7d4; }
.foot :focus-visible { outline-color: var(--accent); }

@media (min-width: 40rem) {
  .grid, .who-list { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .step-list { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 60rem) {
  .nav { display: flex; }
  .top-in { flex-wrap: nowrap; }
  section { padding: 4.5rem 0; }
  .hero { padding: 5.5rem 0 4.5rem; }
  .who-list { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
  .card { display: flex; flex-direction: column; }
}
