/* ===========================================================
   Poimora — marketing site
   =========================================================== */

:root {
  --ink: #1b2440;
  --ink-2: #2a3558;
  --stone: #5b6275;
  --line: #dfe3ea;
  --paper: #f7f8fa;
  --white: #ffffff;
  --pasture: #2f6b55;
  --pasture-dark: #245543;
  --meadow: #d6e8da;
  --meadow-soft: #eaf3ec;
  --lamp: #f2b84b;
  --lamp-soft: #fbecc9;
  --danger: #b3261e;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: 1.75rem;
  --step-4: clamp(2rem, 1.4rem + 2.4vw, 2.75rem);
  --step-5: clamp(2.5rem, 1.6rem + 4vw, 4.25rem);

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 650;
}

p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--lamp);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-s);
  z-index: 100;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: 600 var(--step-0) / 1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--pasture); color: var(--white); }
.btn-primary:hover { background: var(--pasture-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--meadow); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: var(--step--1); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 248, 250, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.brand svg { width: 30px; height: 34px; }

.main-nav { margin-left: auto; }
.main-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-s);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.main-nav a:hover { background: var(--meadow-soft); }
.main-nav .nav-trial { display: none; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-select { position: relative; }
.lang-select select {
  appearance: none;
  font: 600 var(--step--1) var(--font-body);
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  height: 40px;
  padding: 0 34px 0 38px;
  cursor: pointer;
}
.lang-select select:hover { border-color: var(--stone); }
.lang-select .globe,
.lang-select .chev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--stone);
}
.lang-select .globe { left: 13px; width: 17px; height: 17px; }
.lang-select .chev { right: 12px; width: 12px; height: 12px; }
.currency-select select { padding-left: 14px; }
.plans-currency { display: inline-block; vertical-align: middle; margin: 24px 0 0 8px; }
.plans-currency select { height: 48px; background: var(--white); border-color: var(--line); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0;
  background: transparent;
  border-radius: var(--radius-s);
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { width: 24px; height: 24px; margin: auto; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 24px;
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: 14px 8px; font-size: var(--step-1); }
  .header-actions { margin-left: auto; }
  .main-nav + .header-actions { margin-left: 0; }
  .header-actions .btn-trial-top { display: none; }
  .header-currency { display: none; }
  .main-nav .nav-trial { display: block; margin-top: 8px; }
  .main-nav .nav-trial a.btn { display: flex; padding: 0 22px; color: var(--white); background: var(--pasture); }
}
@media (max-width: 960px) {
  .header-inner { gap: 8px; }
  .main-nav { margin-left: 0; }
  .header-actions { margin-left: auto !important; }
}

/* ---------- Hero ---------- */

.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 112px); overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  font-size: var(--step-5);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: 14ch;
  text-wrap: balance;
}

.hero-lead {
  margin-top: 24px;
  font-size: var(--step-1);
  color: var(--stone);
  max-width: 52ch;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-note {
  margin-top: 18px;
  font-size: var(--step--1);
  color: var(--stone);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-note svg { width: 18px; height: 18px; color: var(--pasture); flex: none; }

/* The arch: the one bold element of the page */
.hero-stage {
  position: relative;
  padding: 120px 0 96px;
}
.hero-arch {
  position: absolute;
  inset: 0 -4% 0 -4%;
  border-radius: 999px 999px 28px 28px;
  background:
    radial-gradient(circle at 50% 18%, var(--lamp-soft) 0 16%, transparent 42%),
    linear-gradient(180deg, var(--meadow) 0%, #b9d5c0 100%);
}
.hero-arch::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: rgba(47, 107, 85, .18);
}
.hero-arch::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 999px 999px 18px 18px;
  border: 1.5px solid rgba(47, 107, 85, .18);
}

.app-window {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-m);
  box-shadow: 0 30px 60px -20px rgba(27, 36, 64, .35), 0 0 0 1px rgba(27, 36, 64, .06);
  overflow: hidden;
  display: grid;
  grid-template-columns: 150px 1fr;
  font-size: 12.5px;
  line-height: 1.4;
  min-height: 360px;
}
.app-side {
  background: var(--ink);
  color: #c9d0e3;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.app-tenant {
  background: var(--ink-2);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 10px;
  color: var(--white);
}
.app-tenant small { display: block; color: #9aa4c0; font-size: 10.5px; }
.app-tenant strong { font-weight: 600; font-size: 12px; }
.app-side span {
  padding: 6px 10px;
  border-radius: 6px;
}
.app-side span.is-active { background: rgba(255,255,255,.1); color: var(--white); }

.app-main { padding: 16px; display: grid; gap: 12px; align-content: start; }
.app-top { display: flex; justify-content: space-between; align-items: center; }
.app-top strong { font-family: var(--font-display); font-size: 15px; }
.app-chip {
  background: var(--meadow-soft);
  color: var(--pasture);
  border-radius: 999px;
  padding: 3px 10px;
  font-weight: 600;
  font-size: 11px;
}

.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.kpi {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
}
.kpi small { color: var(--stone); display: block; }
.kpi b { font-family: var(--font-display); font-size: 18px; font-weight: 650; letter-spacing: -0.02em; }
.kpi .up { color: var(--pasture); font-size: 11px; font-weight: 600; margin-left: 4px; }

.app-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
}
.panel-title { font-weight: 700; margin-bottom: 6px; display: block; }
.roster { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.roster li { display: flex; justify-content: space-between; gap: 8px; }
.roster li span:first-child { color: var(--stone); }
.bar {
  height: 8px;
  border-radius: 999px;
  background: var(--paper);
  overflow: hidden;
  margin: 8px 0 6px;
}
.bar i {
  display: block;
  height: 100%;
  width: var(--pct, 50%);
  background: var(--lamp);
  border-radius: inherit;
  transform-origin: left;
}
.panel .muted { color: var(--stone); }

.floating-card {
  position: absolute;
  left: -28px;
  bottom: 12px;
  background: var(--white);
  border-radius: var(--radius-m);
  padding: 12px 14px;
  box-shadow: 0 20px 40px -18px rgba(27, 36, 64, .4), 0 0 0 1px rgba(27, 36, 64, .06);
  font-size: 12.5px;
  width: 190px;
}
.floating-card strong { display: block; margin-bottom: 6px; font-size: 13px; }
.floating-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.floating-card li {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line);
}
.floating-card li.is-current { border-color: var(--pasture); background: var(--meadow-soft); }
.floating-card .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); flex: none; }
.floating-card li.is-current .dot { background: var(--pasture); }

@media (prefers-reduced-motion: no-preference) {
  .hero-stage .app-window { animation: rise .8s cubic-bezier(.2,.7,.2,1) .1s both; }
  .hero-stage .floating-card { animation: rise .8s cubic-bezier(.2,.7,.2,1) .45s both; }
  .hero-stage .bar i { animation: grow 1.2s cubic-bezier(.2,.7,.2,1) .7s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
}
@media (max-width: 560px) {
  .app-window { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .app-row { grid-template-columns: 1fr; }
  .hero-stage { padding: 72px 0 0; }
  .floating-card { position: relative; left: auto; bottom: auto; margin: -20px 12px 0 auto; }
  .hero-arch { inset: 0 -8px 64px -8px; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: var(--step-4); }
.section-head p { margin-top: 16px; font-size: var(--step-1); color: var(--stone); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-dark { background: var(--ink); color: #e6e9f2; }
.section-dark .section-head p { color: #aab2c8; }
.section-white { background: var(--white); }

/* ---------- Modules (tabs) ---------- */

.modules {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.tab-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 96px;
}
.tab {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  border-radius: var(--radius-s);
  font: 600 var(--step-0) var(--font-body);
  color: var(--stone);
  cursor: pointer;
}
.tab svg { width: 22px; height: 22px; flex: none; }
.tab:hover { color: var(--ink); background: var(--paper); }
.tab[aria-selected="true"] { background: var(--meadow-soft); color: var(--pasture-dark); }

.tab-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.tab-panel[hidden] { display: none; }
.tab-panel h3 { font-size: var(--step-3); }
.tab-panel .summary { margin-top: 12px; color: var(--stone); font-size: var(--step-1); }

.checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.checks li::before {
  content: "";
  width: 20px; height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--meadow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%232f6b55' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10.5l2.6 2.5L14 7.5'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.checks .soon {
  display: inline-block;
  margin-left: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #7a5710;
  background: var(--lamp-soft);
  padding: 1px 8px;
  border-radius: 999px;
  vertical-align: 1px;
}

.demo {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 20px;
  font-size: var(--step--1);
}
.demo-title { font-family: var(--font-display); font-weight: 650; font-size: var(--step-1); margin-bottom: 12px; }
.demo-rows { list-style: none; margin: 0; padding: 0; }
.demo-rows li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.demo-rows li:first-child { border-top: 0; }
.demo-rows li span:first-child { color: var(--stone); }
.demo-rows li span:last-child { font-weight: 600; text-align: right; }
.demo-foot { margin-top: 12px; color: var(--stone); }

@media (max-width: 960px) {
  .modules { grid-template-columns: 1fr; }
  .tab-list {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 4px;
  }
  .tab-list::-webkit-scrollbar { display: none; }
  .tab { width: auto; white-space: nowrap; }
  .tab-panel { grid-template-columns: 1fr; }
}

/* ---------- Journey (real sequence) ---------- */

.journey {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  counter-reset: step;
  position: relative;
}
.journey::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 22px;
  right: calc((100% - 64px) / 5 - 22px);
  height: 2px;
  background: var(--meadow);
}
.journey li { position: relative; counter-increment: step; }
.journey li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--pasture);
  color: var(--pasture);
  font: 700 var(--step-1) var(--font-display);
  position: relative;
  margin-bottom: 16px;
}
.journey li:last-child::before { background: var(--pasture); color: var(--white); }
.journey h3 { font-size: var(--step-1); }
.journey p { color: var(--stone); margin-top: 6px; font-size: var(--step--1); }

@media (max-width: 860px) {
  .journey { grid-template-columns: 1fr; gap: 24px; }
  .journey::before { top: 22px; bottom: 22px; left: 21px; right: auto; width: 2px; height: auto; }
  .journey li { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; }
  .journey li::before { margin: 0; grid-row: span 2; }
}

/* ---------- Scale (one church or many) ---------- */

.scale-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
}
.scale-item h3 { font-size: var(--step-2); margin-top: 18px; }
.scale-item p { color: var(--stone); margin-top: 8px; }
.scale-visual {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 16px;
  font-size: var(--step--1);
  min-height: 150px;
}
.url-bar {
  display: flex; align-items: center; gap: 8px;
  background: var(--paper);
  border-radius: 999px;
  padding: 8px 14px;
  margin-bottom: 8px;
  font-weight: 500;
}
.url-bar svg { width: 14px; height: 14px; color: var(--pasture); flex: none; }
.url-bar b { color: var(--pasture); font-weight: 700; }
.tree { list-style: none; margin: 0; padding: 0; }
.tree li { padding: 6px 0 6px 18px; position: relative; }
.tree li::before {
  content: ""; position: absolute; left: 4px; top: 0; bottom: 50%;
  width: 10px; border-left: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line);
  border-bottom-left-radius: 6px;
}
.tree li:first-child { padding-left: 0; font-weight: 700; }
.tree li:first-child::before { display: none; }
.locale-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.locale-grid div { background: var(--paper); border-radius: 10px; padding: 8px 10px; }
.locale-grid small { display: block; color: var(--stone); }
.locale-grid b { font-weight: 600; }

@media (max-width: 860px) { .scale-grid { grid-template-columns: 1fr; } }

/* ---------- Security ---------- */

.security-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.security-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.security-list li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.security-list svg { width: 26px; height: 26px; color: var(--lamp); margin-top: 2px; }
.security-list h3 { font-size: var(--step-1); color: var(--white); }
.security-list p { color: #aab2c8; margin-top: 4px; }

.audit {
  background: #141b31;
  border: 1px solid #2c3656;
  border-radius: var(--radius-m);
  overflow: hidden;
  font-size: var(--step--1);
  position: sticky;
  top: 100px;
}
.audit-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid #2c3656;
  color: var(--white);
  font-weight: 600;
}
.audit-head span:last-child { color: #8f99b5; font-weight: 500; }
.audit-entry { padding: 14px 18px; border-bottom: 1px solid #222b47; display: grid; gap: 4px; }
.audit-entry:last-child { border-bottom: 0; }
.audit-entry .who { color: #8f99b5; }
.audit-entry .what { color: var(--white); font-weight: 600; }
.audit-diff { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.audit-diff span { padding: 2px 8px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.audit-diff .before { background: rgba(179, 38, 30, .22); color: #f3b1ab; text-decoration: line-through; }
.audit-diff .after { background: rgba(47, 107, 85, .35); color: #b6e2c8; }
.audit-entry .locked { color: var(--lamp); }

@media (max-width: 860px) {
  .security-grid { grid-template-columns: 1fr; }
  .audit { position: static; }
}

/* ---------- Plans ---------- */

.billing-toggle {
  display: inline-flex;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  margin-top: 24px;
}
.billing-toggle button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 10px 18px;
  font: 600 var(--step--1) var(--font-body);
  color: var(--stone);
  cursor: pointer;
}
.billing-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.billing-toggle .save { color: var(--pasture); margin-left: 4px; }
.billing-toggle button[aria-pressed="true"] .save { color: var(--lamp); }

.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}
.plan {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan.is-featured {
  border: 2px solid var(--pasture);
  padding-top: 27px;
}
.plan-badge {
  position: absolute;
  top: -13px;
  left: 24px;
  background: var(--pasture);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}
.plan h3 { font-size: var(--step-2); }
.plan-desc { color: var(--stone); margin-top: 6px; min-height: 3.2em; font-size: var(--step--1); }
.plan-price { margin: 20px 0 4px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plan-price b { font-family: var(--font-display); font-size: 2.5rem; letter-spacing: -0.03em; font-weight: 700; line-height: 1; }
.plan-price span { color: var(--stone); font-size: var(--step--1); }
.plan-price b.is-custom { font-size: 1.9rem; }
.plan-billed { color: var(--stone); font-size: 13px; min-height: 2.8em; }
.plan .btn { margin: 16px 0 24px; line-height: 1.2; padding: 12px 18px; text-align: center; }
.plan .checks { margin-top: 0; gap: 10px; font-size: var(--step--1); }
.plan .checks li { grid-template-columns: 20px 1fr; }
.plan .checks li::before { width: 18px; height: 18px; background-size: 18px; }

.plans-note { margin-top: 24px; text-align: center; color: var(--stone); font-size: var(--step--1); }

@media (max-width: 1080px) { .plans { grid-template-columns: repeat(2, 1fr); row-gap: 28px; } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }

/* ---------- Trial ---------- */

.trial {
  background: var(--pasture);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.trial-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.trial h2 { font-size: var(--step-4); }
.trial-lead { margin-top: 16px; font-size: var(--step-1); color: #d7eadf; max-width: 46ch; }
.trial-points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.trial-points li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; }
.trial-points svg { width: 22px; height: 22px; color: var(--lamp); margin-top: 1px; }
.trial-days {
  margin-top: 36px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  max-width: 420px;
}
.trial-days i {
  width: 22px; height: 22px; border-radius: 6px;
  background: rgba(255,255,255,.16);
}
.trial-days i:first-child { background: var(--lamp); }
.trial-days-label { margin-top: 10px; color: #d7eadf; font-size: var(--step--1); }

/* ---------- Forms ---------- */

.form-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-l);
  padding: clamp(20px, 4vw, 36px);
  box-shadow: 0 30px 60px -30px rgba(10, 30, 20, .5);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: var(--step--1); }
.field label .opt { font-weight: 400; color: var(--stone); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: var(--step-0) var(--font-body);
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  min-height: 48px;
  padding: 10px 14px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%235b6275' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M3 4.5l3 3 3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 36px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #c3c9d4; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--pasture);
  box-shadow: 0 0 0 3px var(--meadow);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 13px; min-height: 0; }
.field-error:empty { display: none; }
.field-hint { color: var(--stone); font-size: 13px; }

.subdomain {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.subdomain:focus-within { border-color: var(--pasture); box-shadow: 0 0 0 3px var(--meadow); }
.field.has-error .subdomain { border-color: var(--danger); }
.subdomain input { border: 0; border-radius: 0; min-width: 0; }
.subdomain input:focus { box-shadow: none; }
.subdomain span {
  display: flex; align-items: center;
  padding: 0 14px;
  background: var(--paper);
  color: var(--stone);
  white-space: nowrap;
  border-left: 1.5px solid var(--line);
}

.check-field { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: var(--step--1); }
.check-field input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--pasture); }

.form-foot { margin-top: 20px; display: grid; gap: 12px; }
.form-small { color: var(--stone); font-size: 13px; text-align: center; }

.form-success {
  text-align: center;
  padding: 24px 8px;
}
.form-success svg { width: 56px; height: 56px; margin: 0 auto 16px; color: var(--pasture); }
.form-success h3 { font-size: var(--step-3); }
.form-success p { margin-top: 10px; color: var(--stone); }
.form-status { font-size: var(--step--1); color: var(--danger); text-align: center; }
.form-status:empty { display: none; }

@media (max-width: 960px) { .trial-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.contact-grid .form-card { box-shadow: none; border: 1px solid var(--line); }
.contact-ways { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 20px; }
.contact-ways li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; }
.contact-ways .ico {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--meadow-soft); color: var(--pasture);
  display: grid; place-items: center;
}
.contact-ways .ico svg { width: 20px; height: 20px; }
.contact-ways small { display: block; color: var(--stone); }
.contact-ways a, .contact-ways b { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-ways a:hover { color: var(--pasture); text-decoration: underline; }

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #aab2c8;
  padding: 56px 0 32px;
  font-size: var(--step--1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}
.site-footer .brand { color: var(--white); }
.footer-about { margin-top: 12px; max-width: 34ch; }
.site-footer h4 { color: var(--white); font-family: var(--font-body); font-size: var(--step-0); font-weight: 600; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #aab2c8; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #2c3656;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-langs { display: flex; gap: 14px; }
.footer-langs button {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: #aab2c8; font: inherit;
}
.footer-langs button[aria-current="true"] { color: var(--white); font-weight: 600; }
.footer-langs button:hover { color: var(--white); }

@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
