@font-face {
  font-family: "Yekan Bakh";
  src: url("../fonts/YekanBakhFaNum-VF.woff2") format("woff2");
  font-weight: 100 950;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f3f5f7;
  --surface: #ffffff;
  --blue: #1b3f8f;
  --blue-bright: #1547a8;
  --ink: #1c2430;
  --muted: #6e7785;
  --faint: #8b939e;
  --field: #f4f5f7;
  --brown: #964900;
  --line: rgba(20, 40, 70, 0.06);
  --shadow: 0 16px 48px rgba(22, 34, 51, 0.06);
  --radius: 28px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Yekan Bakh", Tahoma, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

img { max-width: 100%; }

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

button, input, textarea, select { font-family: inherit; }

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(243, 245, 247, 0.94);
  border-bottom: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-color: var(--line);
  box-shadow: 0 6px 20px rgba(22, 34, 51, 0.06);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-bright);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: clamp(8px, 2.5vw, 24px);
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 10px;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-nav a:hover {
  color: var(--blue-bright);
  background: rgba(27, 63, 143, 0.06);
}

.site-nav a.active {
  color: var(--blue);
  font-weight: 700;
  background: rgba(27, 63, 143, 0.08);
}

.header-cta {
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #16357a; }

.btn-sm { padding: 8px 14px; font-size: 13.5px; }

.btn-ghost {
  background: #fff;
  color: var(--blue);
  border-color: #c9d3e6;
}

.btn-ghost:hover {
  border-color: var(--blue);
  background: #f7f9fd;
}

.btn-brown {
  background: var(--brown);
  color: #fff;
  border: 0;
  min-width: 148px;
  padding: 11px 26px;
}

.btn-brown:hover { background: #7d3d00; }

.hero { padding: 16px 0 8px; }

.hero-card,
.why-card,
.form-card,
.contact-card,
.cta-card,
.feature,
.prose {
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.hero-card {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 18px;
  align-items: stretch;
  border-radius: var(--radius);
  padding: 16px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 12px 18px 8px;
}

.hero-title {
  margin: 0 0 12px;
  color: var(--blue-bright);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.35;
  font-weight: 700;
}

.lede {
  margin: 0;
  max-width: 460px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.95;
}

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

.frame {
  border-radius: 18px;
  overflow: hidden;
  min-height: 300px;
  background: #e7eef1;
}

.frame img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  display: block;
}

.section { padding: 54px 0 8px; }

section[id] { scroll-margin-top: 84px; }

.section-head { text-align: center; margin-bottom: 28px; }

.section-head h2,
.why-copy h2,
.form-card h2,
.cta-card h2,
.prose h1 {
  margin: 0 0 8px;
  color: var(--blue-bright);
  font-weight: 700;
}

.section-head h2 { font-size: 28px; }

.section-head p {
  margin: 0 auto;
  max-width: 640px;
  color: var(--muted);
  font-size: 14.5px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature {
  border-radius: 22px;
  padding: 32px 22px 28px;
  text-align: center;
}

.icon-badge {
  width: 52px;
  height: 52px;
  margin: 0 auto;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #eef3fb;
  color: var(--blue-bright);
}

.icon-badge.warm {
  background: #fff4e8;
  color: #e08a22;
}

.feature h3 {
  margin: 14px 0 8px;
  font-size: 17px;
  color: var(--blue-bright);
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.95;
}

.why-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  border-radius: var(--radius);
  padding: 18px;
}

.why-copy { padding: 12px 8px 12px 18px; }

.why-copy h2 { font-size: 28px; margin-bottom: 18px; }

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.checks strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-bright);
}

.checks p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.85;
}

.form-card {
  width: min(760px, 100%);
  margin: 8px auto 0;
  border-radius: var(--radius);
  padding: 36px 40px 32px;
}

.form-card h2,
.form-card .lead { text-align: center; }

.form-card h2 { font-size: 24px; }

.lead {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13.5px;
}

.contact-card {
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 36px);
  margin-top: 8px;
}

.contact-card h2 {
  margin: 0 0 8px;
  color: var(--blue-bright);
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 700;
  text-align: center;
}

.contact-card .lead {
  text-align: center;
  margin-bottom: 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(18px, 3vw, 28px);
  align-items: stretch;
}

.contact-details {
  display: grid;
  gap: 14px;
}

.contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--field);
}

.contact-item strong {
  display: block;
  font-size: 14px;
  color: var(--blue-bright);
  margin-bottom: 2px;
}

.contact-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.contact-item a {
  text-decoration: none;
  word-break: break-word;
}

.contact-item a:hover { text-decoration: underline; }

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #eef3fb;
  color: var(--blue-bright);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-grid .map-frame {
  min-height: 100%;
  align-self: stretch;
}

.map-frame img {
  min-height: 280px;
  object-position: 52% 48%;
  filter: saturate(0.9) contrast(0.97);
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

.field-full { grid-column: 1 / -1; }

.field span {
  display: block;
  margin-bottom: 6px;
  color: var(--faint);
  font-size: 12.5px;
}

input, textarea, select {
  width: 100%;
  border: 0;
  background: var(--field);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--ink);
  font-size: 15px;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #8b939e 50%), linear-gradient(135deg, #8b939e 50%, transparent 50%);
  background-position: left 16px center, left 22px center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder { color: #b0b6be; }

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #c5d4ef;
}

input.invalid,
textarea.invalid { outline: 2px solid #c2410c; }

.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.form-status {
  min-height: 1.4em;
  margin: 12px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}

.form-status.error { color: #9a3412; }

.cta-card {
  margin-top: 48px;
  border-radius: var(--radius);
  text-align: center;
  padding: 42px 24px 36px;
  background: linear-gradient(180deg, #ffffff 0%, #fbf8f4 100%);
}

.rocket {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #eef3fb;
}

.cta-card h2 { font-size: 28px; }

.cta-card p {
  margin: 0 auto;
  max-width: 560px;
  color: var(--muted);
  font-size: 14.5px;
}

.ticks {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.ticks span {
  height: 4px;
  border-radius: 99px;
  background: var(--brown);
}

.ticks span:nth-child(1) { width: 48px; }
.ticks span:nth-child(2) { width: 16px; background: rgba(150, 73, 0, 0.4); }
.ticks span:nth-child(3) { width: 8px; background: rgba(150, 73, 0, 0.2); }

.site-footer { padding: 36px 0 28px; }

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.fineprint {
  margin: 8px 0 0;
  color: #9aa1ab;
  font-size: 12.5px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding-top: 2px;
}

.footer-links a {
  color: #7b8490;
  text-decoration: none;
  font-size: 14px;
}

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

.prose {
  width: min(760px, calc(100% - 40px));
  margin: 12px auto 48px;
  border-radius: 24px;
  padding: 36px 40px 32px;
}

.prose.terms-doc {
  width: min(920px, calc(100% - 32px));
  padding: clamp(24px, 4vw, 40px) clamp(18px, 4vw, 40px);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-wordmark-link {
  display: block;
  line-height: 0;
  text-decoration: none;
}

.footer-wordmark {
  display: block;
  height: 44px;
  width: auto;
  max-width: min(200px, 72vw);
  object-fit: contain;
}

.doc-subtitle {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 15px;
}

.doc-meta {
  margin: 0 0 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
}

.doc-back {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.prose h1 { font-size: 28px; }

.prose.terms-doc h1 {
  font-size: clamp(24px, 4vw, 30px);
  color: var(--blue-bright);
}

.prose h2 {
  margin: 26px 0 8px;
  font-size: 16px;
  color: var(--ink);
}

.prose.terms-doc h2 {
  margin: 28px 0 12px;
  font-size: 17px;
  color: var(--blue-bright);
  line-height: 1.7;
}

.prose.terms-doc h3 {
  margin: 16px 0 8px;
  font-size: 15px;
  color: var(--ink);
}

.prose.terms-doc ol {
  padding-inline-start: 22px;
  margin: 0 0 12px;
}

.prose.terms-doc ul {
  margin: 0 0 12px;
}

.prose p,
.prose li {
  color: #3d4654;
  font-size: 14.5px;
  line-height: 2;
}

.prose ul { padding-inline-start: 18px; }

.prose a { text-decoration: none; }
.prose a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 2px;
}

@media (max-width: 860px) {
  .wrap {
    width: min(1120px, calc(100% - 24px));
  }

  .header-bar {
    flex-wrap: wrap;
    align-items: center;
    min-height: auto;
    padding: 12px 0 10px;
    gap: 10px 12px;
  }

  .site-nav {
    order: 3;
    flex: 1 1 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .site-nav a {
    text-align: center;
    font-size: 12.5px;
    padding: 10px 6px;
    line-height: 1.35;
    white-space: normal;
  }

  .header-cta {
    margin-inline-start: auto;
  }

  .hero-card,
  .why-card,
  .features,
  .fields,
  .contact-grid { grid-template-columns: 1fr; }

  .hero-visual { order: -1; }

  .hero-copy { padding: 8px 4px 12px; }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .form-card,
  .contact-card,
  .prose,
  .prose.terms-doc { padding: 24px 18px; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .section { padding: 40px 0 8px; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }

  .hero { padding-top: 20px; }
}

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