:root {
  color-scheme: light;
  --black: #070707;
  --white: #ffffff;
  --canvas: #f8f8f8;
  --border: #e5e5e5;
  --mid: #4e4e4f;
  --soft: #918f8f;
  --blue: #1e88fe;
  --blue-dark: #086cd9;
  --blue-soft: #eaf4ff;
  --green: #05c168;
  --green-soft: #def2e6;
  --shadow: 0 18px 45px rgba(7, 7, 7, 0.06);
  --shadow-soft: 0 8px 24px rgba(7, 7, 7, 0.05);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--black);
  overflow-x: hidden;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.app-shell {
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 24px 0 64px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

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

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  letter-spacing: 0;
}

.brand small {
  margin-top: 2px;
  color: var(--soft);
  font-size: 0.86rem;
}

.site-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  min-width: 370px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.site-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 16px;
  color: var(--mid);
  font-size: 0.94rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--blue-dark);
  background: var(--blue-soft);
}

.site-nav a[aria-current="page"] {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 10px 22px rgba(30, 136, 254, 0.2);
}

main {
  display: grid;
  gap: 28px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--soft);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--mid);
  text-decoration: none;
}

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

.hero-summary {
  max-width: none;
  padding: 8px 0 0;
}

.hero-summary h1 {
  max-width: none;
  font-size: 3rem;
  line-height: 1;
}

.hero-summary .lede {
  max-width: 620px;
  margin-top: 10px;
  font-size: 1rem;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(360px, 1fr);
  gap: 24px;
  align-items: start;
}

.input-panel,
.result-panel,
.info-card,
.price-card,
.content-card,
.faq-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.panel-header,
.settings-grid,
.select-row,
.action-row {
  display: flex;
  align-items: center;
}

.panel-header {
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.panel-header.compact {
  margin-bottom: 24px;
}

.input-panel .panel-header {
  align-items: center;
  flex-direction: row;
}

.input-panel .segmented-control {
  flex-basis: auto;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--black);
  letter-spacing: 0;
}

h1 {
  max-width: 620px;
  font-size: 2.8rem;
  line-height: 1.02;
}

h2 {
  font-size: 1.45rem;
  line-height: 1.1;
}

h3 {
  font-size: 1rem;
  line-height: 1.2;
}

.lede {
  max-width: 560px;
  margin: 12px 0 0;
  color: var(--mid);
  font-size: 1rem;
  line-height: 1.45;
}

.panel-note {
  max-width: 360px;
  margin: 8px 0 0;
  color: var(--mid);
  line-height: 1.45;
}

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

.benefit-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--mid);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.benefit-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
  flex: 0 0 auto;
}

.segmented-control {
  flex: 0 0 166px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  min-height: 42px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--canvas);
}

.segmented-control button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--soft);
  font-weight: 800;
}

.segmented-control button[aria-selected="true"] {
  background: var(--white);
  color: var(--black);
  box-shadow: var(--shadow-soft);
}

.mode-panel {
  display: grid;
  gap: 14px;
}

.hidden {
  display: none !important;
}

label {
  color: var(--black);
  font-weight: 800;
}

textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  box-shadow: 0 1px 0 rgba(7, 7, 7, 0.02);
}

textarea {
  height: 150px;
  min-height: 130px;
  resize: vertical;
  padding: 14px 16px;
  line-height: 1.55;
}

textarea::placeholder {
  color: var(--soft);
}

select {
  min-height: 46px;
  padding: 0 14px;
}

textarea:focus,
select:focus,
.drop-zone:focus {
  outline: 4px solid var(--blue-soft);
  border-color: var(--blue);
}

.action-row {
  gap: 10px;
  flex-wrap: wrap;
}

.primary-button,
.ghost-button {
  min-height: 46px;
  border-radius: 999px;
  padding: 0 18px;
  border: 1px solid transparent;
  font-weight: 900;
}

.primary-button {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 10px 22px rgba(30, 136, 254, 0.22);
}

.primary-button:hover {
  background: var(--blue-dark);
}

.ghost-button {
  background: var(--white);
  color: var(--black);
  border-color: var(--border);
}

.ghost-button:hover {
  background: var(--canvas);
  border-color: #d6d6d6;
}

.disabled-pill {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 18px;
  background: var(--canvas);
  color: var(--soft);
  font-weight: 800;
}

.drop-zone {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 184px;
  padding: 30px;
  border: 1px dashed #cfcfcf;
  border-radius: 8px;
  background: var(--canvas);
  text-align: center;
  transition:
    background 160ms ease,
    border-color 160ms ease;
}

.drop-zone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.drop-zone strong {
  color: var(--black);
  font-size: 1rem;
}

.drop-zone span,
.muted {
  color: var(--mid);
}

.drop-zone.dragging {
  background: var(--blue-soft);
  border-color: var(--blue);
}

.settings-grid {
  display: block;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.select-row {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  gap: 10px 14px;
  align-items: center;
}

.select-row label {
  color: var(--mid);
  line-height: 1.15;
}

.field-help {
  grid-column: 2;
  margin: 0;
  color: var(--soft);
  font-size: 0.88rem;
  line-height: 1.45;
}

.counter {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--green-soft);
  color: #047640;
  font-size: 0.94rem;
  font-weight: 900;
  white-space: nowrap;
}

.result-box {
  margin-bottom: 18px;
}

.result-box textarea {
  background: #fcfcfc;
}

.table-wrap {
  overflow: auto;
  max-height: 480px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
}

table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
  background: var(--white);
  table-layout: fixed;
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  font-size: 0.92rem;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--canvas);
  color: var(--black);
  font-weight: 900;
}

td {
  color: var(--mid);
  overflow-wrap: anywhere;
}

th:nth-child(1),
td:nth-child(1),
th:nth-child(2),
td:nth-child(2) {
  width: 50%;
}

.empty-state {
  height: 130px;
  text-align: center;
  color: var(--soft);
  vertical-align: middle;
}

.progress-area {
  margin: 0 0 16px;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--border);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transition: width 180ms ease;
}

.seo-grid,
.comparison-grid {
  display: grid;
  gap: 24px;
}

.seo-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
}

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

.info-card,
.content-card,
.faq-section {
  display: grid;
  gap: 16px;
}

.info-card p,
.price-card p,
.content-card p,
.faq-section p {
  margin: 0;
  color: var(--mid);
  line-height: 1.6;
}

.wide-card h2 {
  max-width: 820px;
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
  line-height: 1.08;
}

.price-card {
  display: grid;
  align-content: start;
  gap: 14px;
  background: var(--blue-soft);
}

.price-card strong {
  color: var(--black);
  font-size: clamp(3rem, 6vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

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

.tick-list li {
  position: relative;
  min-height: 24px;
  padding-left: 28px;
  color: var(--mid);
  line-height: 1.45;
}

.tick-list li::before {
  content: "";
  position: absolute;
  top: 0.38em;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 5px var(--green-soft);
}

.compact-list {
  gap: 8px;
}

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

.steps-grid article {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--canvas);
}

.steps-grid span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--canvas);
}

.faq-list summary {
  cursor: pointer;
  padding: 16px;
  color: var(--black);
  font-weight: 900;
}

.faq-list details p {
  padding: 0 16px 16px;
}

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

.trust-row div {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.trust-row strong {
  color: var(--black);
}

.trust-row span {
  color: var(--mid);
}

.validation-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 26px 28px;
  border: 1px solid #d7e9ff;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--white) 0%, var(--blue-soft) 100%);
  box-shadow: var(--shadow-soft);
}

.validation-card p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--mid);
  line-height: 1.55;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 178px;
  text-decoration: none;
}

.country-hero {
  display: grid;
  gap: 14px;
  padding: 8px 0 4px;
}

.country-hero h1 {
  max-width: 940px;
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  line-height: 0.96;
}

.country-hero .lede {
  max-width: 760px;
}

.country-tool-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.95fr) minmax(340px, 1.05fr);
  gap: 24px;
  align-items: stretch;
}

.country-format-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.format-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: format-step;
}

.format-list li {
  counter-increment: format-step;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--canvas);
}

.format-list li::before {
  content: counter(format-step);
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-weight: 900;
}

.format-list li > div {
  min-width: 0;
}

.format-list strong,
.format-list span {
  display: block;
}

.format-list span {
  margin-top: 4px;
  color: var(--mid);
  line-height: 1.45;
}

.example-grid,
.guide-link-grid {
  display: grid;
  gap: 14px;
}

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

.example-grid article {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--canvas);
}

.example-grid pre {
  margin: 0;
  white-space: pre-wrap;
  color: var(--mid);
  font: inherit;
  line-height: 1.55;
}

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

.guide-link-grid a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--canvas);
  color: var(--black);
  font-weight: 800;
  text-decoration: none;
}

.guide-link-grid a:hover {
  border-color: #c9dfff;
  background: var(--blue-soft);
  color: var(--blue-dark);
}

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

.source-list a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--mid);
  font-weight: 800;
  text-decoration: none;
}

.source-list a:hover {
  color: var(--blue-dark);
  border-color: #c9dfff;
}

.slim-card {
  padding: 28px;
}

.compact-content .info-card {
  min-height: 0;
}

@media (min-width: 980px) {
  .hero-summary h1 {
    white-space: nowrap;
  }
}

@media (max-width: 980px) {
  .workspace,
  .seo-grid,
  .comparison-grid,
  .trust-row,
  .validation-card,
  .country-tool-grid,
  .example-grid,
  .guide-link-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .app-shell {
    width: min(100vw - 24px, 680px);
    padding-top: 18px;
  }

  .topbar,
  .panel-header {
    align-items: stretch;
  }

  .topbar {
    flex-direction: column;
    gap: 14px;
  }

  .panel-header {
    flex-direction: column;
  }

  .input-panel .panel-header {
    align-items: stretch;
    flex-direction: column;
  }

  .segmented-control {
    flex-basis: auto;
    width: 100%;
  }

  .brand {
    align-self: flex-start;
  }

  .site-nav {
    width: 100%;
    min-width: 0;
  }

  h1 {
    font-size: 2.25rem;
  }

  .hero-summary h1 {
    font-size: 2.55rem;
  }

  .benefit-list li {
    white-space: normal;
  }

  .wide-card h2 {
    font-size: 1.65rem;
  }
}

@media (max-width: 560px) {
  .app-shell {
    width: min(100vw - 24px, 680px);
  }

  .input-panel,
  .result-panel,
  .info-card,
  .content-card,
  .faq-section,
  .slim-card {
    padding: 18px;
  }

  .action-row,
  .settings-grid,
  .select-row {
    align-items: stretch;
    flex-direction: column;
  }

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

  .field-help {
    grid-column: auto;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .site-nav a {
    min-height: 44px;
    padding: 0 10px;
    white-space: normal;
  }

  .validation-card {
    padding: 18px;
  }
}
