:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-blue: #f5f9ff;
  --text: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --warn-bg: #fffaf2;
  --warn-line: #f3d7a4;
  --radius: 18px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--blue-hover);
}

.site-header {
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.page,
.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 178px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 9px 11px;
  border-radius: 10px;
  color: #475569;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--surface);
  color: var(--text);
}

.site-nav .nav-primary {
  margin-left: 5px;
  background: var(--text);
  color: #fff;
  padding-inline: 15px;
}

.site-nav .nav-primary:hover {
  background: #000;
  color: #fff;
}

.page {
  padding-top: 74px;
  padding-bottom: 84px;
}

.hero {
  max-width: 820px;
  margin-bottom: 54px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
}

h1,
h2,
h3 {
  color: var(--text);
  letter-spacing: -.025em;
}

h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.02;
  font-weight: 650;
}

.lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
}

.content {
  max-width: 820px;
}

.section {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.section:first-child {
  border-top: 0;
  padding-top: 0;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(25px, 3vw, 32px);
  line-height: 1.18;
  font-weight: 650;
}

h3 {
  margin: 25px 0 9px;
  font-size: 19px;
  line-height: 1.3;
}

p {
  margin: 0 0 15px;
}

ul,
ol {
  margin: 12px 0 0;
  padding-left: 1.35rem;
}

li {
  margin: 8px 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.box,
.step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 20px;
}

.box strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.step {
  position: relative;
  padding-left: 62px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 17px;
  left: 18px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.notice {
  margin: 22px 0 0;
  padding: 18px 20px;
  border: 1px solid #dbe7f7;
  border-radius: var(--radius);
  background: var(--surface-blue);
}

.notice.warn {
  border-color: var(--warn-line);
  background: var(--warn-bg);
}

.notice h2,
.notice h3 {
  margin-top: 0;
}

.text-link {
  font-weight: 650;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

@media (max-width: 820px) {
  .header-inner {
    padding: 15px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .brand img {
    width: 165px;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .site-nav a {
    padding: 7px 9px;
  }

  .site-nav .nav-primary {
    margin-left: 0;
  }

  .page {
    padding-top: 52px;
  }
}

@media (max-width: 620px) {
  .header-inner,
  .page,
  .footer-inner {
    width: min(100% - 28px, 1120px);
  }

  .site-nav {
    gap: 2px;
  }

  .site-nav a {
    font-size: 13px;
  }

  .page {
    padding-top: 44px;
    padding-bottom: 64px;
  }

  .hero {
    margin-bottom: 42px;
  }

  h1 {
    font-size: clamp(38px, 12vw, 52px);
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .box,
  .step {
    padding: 17px;
  }

  .step {
    padding-left: 56px;
  }

  .footer-inner {
    padding: 25px 0;
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Planesta public layout refinement */
@media (min-width: 821px) {
  .header-inner,
  .page,
  .footer-inner {
    width: min(1180px, calc(100% - 64px));
  }

  .header-inner {
    min-height: 88px;
  }

  .brand img {
    width: 205px;
  }

  .site-nav {
    gap: 8px;
  }

  .site-nav a {
    font-size: 15px;
    padding: 10px 12px;
  }

  .page {
    padding-top: 66px;
  }

  .hero {
    max-width: 900px;
    margin-bottom: 44px;
  }

  .content {
    max-width: 940px;
  }

  .section {
    padding: 38px 0;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
