:root {
  --ink: #17211d;
  --muted: #5d6b64;
  --line: #dbe5df;
  --paper: #fbfcf8;
  --panel: #ffffff;
  --maple: #c72832;
  --maple-dark: #8f1721;
  --forest: #1e6b52;
  --teal: #168b9a;
  --gold: #d99b28;
  --shadow: 0 18px 48px rgba(24, 39, 33, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 252, 248, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: white;
  font-size: 0.8rem;
  letter-spacing: 0;
  background: var(--maple);
  border-radius: 8px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

nav a {
  padding: 9px 12px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
}

nav a:hover {
  color: var(--ink);
  background: #eef5f0;
}

nav a.active {
  color: white;
  background: var(--maple);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  color: var(--ink);
  background: #eef5f0;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0 0;
}

.hero {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: white;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 30, 24, 0.86) 0%, rgba(17, 30, 24, 0.56) 48%, rgba(17, 30, 24, 0.18) 100%),
    url("https://images.unsplash.com/photo-1517935706615-2717063c2225?auto=format&fit=crop&w=1800&q=82") center / cover;
}

.hero-content {
  position: relative;
  width: min(850px, 100%);
  padding: 110px clamp(20px, 6vw, 72px) 76px;
}

.kicker,
.eyebrow {
  margin: 0 0 10px;
  color: var(--maple);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .kicker {
  color: #ffccd0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p:not(.kicker) {
  max-width: 650px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.55;
}

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

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 16px;
  color: white;
  text-decoration: none;
  font-weight: 900;
  background: var(--maple);
  border-radius: 8px;
}

.ghost-hero {
  color: white;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

main {
  overflow: hidden;
}

.workspace,
.automation-band,
.results,
.guidance-grid,
.visa-section,
.premium-section,
.checkout-grid,
.member-section,
.account-grid,
.chat-section,
.links-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 18px;
  margin-top: -34px;
  position: relative;
  z-index: 2;
}

.automation-band {
  padding: 46px 0 0;
}

.panel,
.path-card,
.plan-card,
.visa-row,
.official-link,
.automation-card,
.member-section,
.chat-shell {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.profile-card,
.score-panel,
.guidance-grid .panel,
.checkout-panel,
.checklist-panel,
.account-panel,
.files-panel,
.premium-process,
.direct-answer {
  padding: clamp(18px, 3vw, 28px);
}

.panel-head,
.actions,
.path-head,
.link-head,
.plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.panel-head h2,
.section-title h2 {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.1;
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  background: #f7faf8;
  border: 1px solid #cfdcd5;
  border-radius: 8px;
}

input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(22, 139, 154, 0.28);
  outline-offset: 2px;
}

button {
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 18px;
}

.primary-btn {
  color: white;
  background: var(--maple);
}

.primary-btn:hover {
  background: var(--maple-dark);
}

.secondary-btn {
  color: white;
  background: var(--forest);
}

.ghost-btn {
  color: var(--muted);
  background: #eef5f0;
}

.score-panel {
  display: grid;
  align-content: start;
  gap: 20px;
}

.score-ring {
  width: min(220px, 70vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  justify-self: center;
  border-radius: 50%;
  background: conic-gradient(var(--forest) var(--score, 0%), #edf3ef 0);
  position: relative;
}

.score-ring::after {
  content: "";
  position: absolute;
  inset: 18px;
  background: white;
  border-radius: inherit;
}

.score-ring span,
.score-ring small {
  position: relative;
  z-index: 1;
}

.score-ring span {
  align-self: end;
  font-size: 4rem;
  font-weight: 900;
  line-height: 0.9;
}

.score-ring small {
  align-self: start;
  color: var(--muted);
  font-weight: 800;
}

.summary {
  color: var(--muted);
  line-height: 1.55;
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mini-metrics div {
  padding: 12px 8px;
  text-align: center;
  background: #f4f8f5;
  border-radius: 8px;
}

.mini-metrics strong,
.mini-metrics span {
  display: block;
}

.mini-metrics strong {
  font-size: 1.35rem;
}

.mini-metrics span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.results,
.guidance-grid,
.visa-section,
.premium-section,
.checkout-grid,
.chat-section,
.links-section {
  padding: 64px 0 0;
}

.section-title {
  margin-bottom: 20px;
}

.direct-answer {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  box-shadow: none;
}

.direct-answer h3 {
  margin-bottom: 0;
  font-size: clamp(1.25rem, 3vw, 2rem);
}

.direct-answer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.direct-answer .answer-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.direct-answer strong {
  color: var(--ink);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.path-card,
.plan-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  box-shadow: none;
}

.path-head {
  align-items: flex-start;
}

.path-card h3 {
  margin-bottom: 6px;
  font-size: 1.12rem;
}

.fit-badge {
  flex: 0 0 auto;
  padding: 7px 9px;
  color: white;
  font-size: 0.78rem;
  font-weight: 850;
  background: var(--forest);
  border-radius: 999px;
}

.path-card p,
.plan-card p,
.guide p,
.visa-row p,
.official-link p,
.step-list li {
  color: var(--muted);
  line-height: 1.52;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tag-list li {
  padding: 7px 9px;
  color: #29473c;
  font-size: 0.78rem;
  font-weight: 800;
  background: #eef6f0;
  border-radius: 999px;
}

.path-card a,
.plan-card a,
.official-link a,
.guide a {
  color: var(--maple-dark);
  font-weight: 850;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.automation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.automation-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 18px;
  box-shadow: none;
}

.automation-card span {
  color: var(--maple-dark);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.automation-card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
}

.automation-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
}

.premium-process {
  margin-top: 18px;
  box-shadow: none;
}

.plan-card {
  align-content: start;
  position: relative;
  overflow: hidden;
}

.plan-card.featured {
  border-color: rgba(30, 107, 82, 0.45);
}

.plan-card.featured::before {
  content: "Most requested";
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 8px;
  color: white;
  font-size: 0.72rem;
  font-weight: 900;
  background: var(--forest);
  border-radius: 999px;
}

.plan-price {
  display: flex;
  align-items: end;
  gap: 6px;
  margin: 4px 0;
}

.plan-price strong {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.plan-price span {
  color: var(--muted);
  font-weight: 800;
}

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

.feature-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.45;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 3px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
}

.payment-method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.secure-pill {
  flex: 0 0 auto;
  padding: 8px 10px;
  color: #245746;
  font-size: 0.78rem;
  font-weight: 900;
  background: #e7f4ed;
  border-radius: 999px;
}

.checkout-form,
.member-form,
.chat-form {
  display: grid;
  gap: 14px;
}

fieldset {
  display: grid;
  gap: 8px;
  padding: 14px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
}

legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
}

.choice-row {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 750;
}

.choice-row input {
  width: 18px;
  min-height: 18px;
}

.fine-print {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.member-section {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 22px;
  align-items: center;
  margin-top: 64px;
  padding: clamp(20px, 4vw, 34px);
  box-shadow: none;
}

.member-content p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.member-form {
  grid-template-columns: 1fr 0.9fr auto;
  align-items: end;
}

.chat-shell {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 3vw, 24px);
  box-shadow: none;
}

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

.file-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.login-actions {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: end;
}

.document-solution {
  margin-top: 14px;
  padding: 14px;
  color: #29473c;
  line-height: 1.5;
  background: #eef6f0;
  border: 1px solid #cfe2d8;
  border-radius: 8px;
}

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

.saved-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  color: var(--muted);
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.saved-list button {
  min-height: 32px;
  padding: 6px 9px;
  color: var(--maple-dark);
  background: #ffecef;
}

.subscribe-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(16, 26, 22, 0.58);
}

.subscribe-modal[hidden] {
  display: none;
}

.modal-card {
  position: relative;
  width: min(520px, 100%);
  padding: clamp(22px, 4vw, 34px);
  background: white;
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.modal-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  color: var(--muted);
  background: #eef5f0;
}

.modal-form {
  display: grid;
  gap: 12px;
}

.chat-window {
  height: 330px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: #f6faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.bot-message,
.user-message {
  max-width: min(78%, 720px);
  padding: 11px 13px;
  line-height: 1.45;
  border-radius: 8px;
}

.bot-message {
  align-self: flex-start;
  color: #29473c;
  background: white;
  border: 1px solid var(--line);
}

.bot-message.thinking {
  color: var(--muted);
  font-style: italic;
}

.user-message {
  align-self: flex-end;
  color: white;
  background: var(--maple);
}

.chat-form {
  grid-template-columns: 1fr auto;
}

.quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-prompts button {
  min-height: 38px;
  color: #29473c;
  background: #eef6f0;
}

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

.step-list {
  display: grid;
  gap: 12px;
  padding-left: 22px;
  margin: 0;
}

.step-list li::marker {
  color: var(--maple);
  font-weight: 900;
}

.guide {
  display: grid;
  gap: 14px;
}

.guide-step {
  padding: 14px;
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.guide-step strong {
  display: block;
  margin-bottom: 5px;
}

.visa-table {
  display: grid;
  gap: 10px;
}

.visa-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  box-shadow: none;
}

.visa-row h3,
.visa-row p {
  margin: 0;
}

.visa-row .time {
  color: var(--forest);
  font-weight: 900;
}

.small-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  color: white;
  text-decoration: none;
  font-weight: 850;
  background: var(--teal);
  border-radius: 8px;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.official-link {
  display: grid;
  gap: 10px;
  padding: 18px;
  box-shadow: none;
}

.official-link p {
  margin: 0;
}

.notice {
  margin: 24px 0 0;
  padding: 16px 18px;
  color: #55421d;
  line-height: 1.55;
  background: #fff7e7;
  border: 1px solid #efd294;
  border-radius: 8px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 70px;
  padding: 24px clamp(18px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
}

@media (max-width: 960px) {
  .workspace,
  .guidance-grid,
  .checkout-grid,
  .member-section,
  .account-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

@media (max-width: 680px) {
  .topbar {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    justify-content: flex-start;
    padding-top: 6px;
  }

  .nav-open nav {
    display: flex;
  }

  nav a {
    flex: 1 1 calc(50% - 6px);
    min-width: 128px;
    text-align: center;
    padding-inline: 9px;
  }

  .hero {
    min-height: 560px;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(17, 30, 24, 0.74) 0%, rgba(17, 30, 24, 0.86) 100%),
      url("https://images.unsplash.com/photo-1517935706615-2717063c2225?auto=format&fit=crop&w=1000&q=78") center / cover;
  }

  .form-grid,
  .cards,
  .plan-grid,
  .automation-grid,
  .link-grid,
  .visa-row,
  .chat-form,
  .file-form,
  .login-actions,
  .direct-answer .answer-row {
    grid-template-columns: 1fr;
  }

  .panel-head {
    align-items: flex-start;
  }

  .visa-row .small-btn {
    width: 100%;
  }

  .bot-message,
  .user-message {
    max-width: 100%;
  }

  footer {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .page-shell,
  .workspace,
  .automation-band,
  .results,
  .guidance-grid,
  .visa-section,
  .premium-section,
  .checkout-grid,
  .member-section,
  .account-grid,
  .chat-section,
  .links-section {
    width: min(100% - 20px, 1180px);
  }

  h1 {
    font-size: 2.2rem;
  }

  .hero-content {
    padding-inline: 16px;
  }

  .hero-btn,
  .actions button,
  .quick-prompts button {
    width: 100%;
  }

  .score-ring {
    width: min(190px, 74vw);
  }
}
