:root {
  --ink: #171717;
  --ink-soft: #575757;
  --paper: #ffffff;
  --mist: #f4f4f4;
  --line: #dedede;
  --teal: #51c3ca;
  --teal-dark: #299da5;
  --mint: #e4f7f8;
  --amber: #f9b401;
  --amber-soft: #fff6d9;
  --blue-soft: #e4f7f8;
  --danger: #b83245;
  --danger-soft: #fff0f1;
  --shadow: 0 22px 65px rgba(0, 0, 0, 0.12);
  --radius-lg: 24px;
  --radius-md: 15px;
  --shell: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--mist);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
textarea,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(81, 195, 202, 0.28);
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 5;
  background: var(--paper);
  border-bottom: 1px solid rgba(217, 229, 232, 0.8);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 18px;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand img {
  display: block;
  width: 94px;
  height: 46px;
  object-fit: contain;
}

.brand-divider {
  width: 1px;
  height: 29px;
  background: #d5d5d5;
}

.brand-product {
  color: #4f4f4f;
  font-size: 13px;
  font-weight: 650;
}

.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--teal-dark);
  background: var(--mint);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
}

.privacy-pill svg {
  width: 17px;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 68px 0 132px;
  color: var(--paper);
  background:
    radial-gradient(circle at 86% 0%, rgba(81, 195, 202, 0.28), transparent 34%),
    linear-gradient(118deg, #111111 0%, #242424 64%, #1d5558 100%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -130px;
  bottom: -260px;
  width: 580px;
  height: 580px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(255, 255, 255, 0.025),
    0 0 0 145px rgba(255, 255, 255, 0.018);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(340px, 0.8fr);
  align-items: center;
  gap: 78px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #9ee2db;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 29px;
  height: 2px;
  background: var(--amber);
}

.hero h1 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(42px, 5.5vw, 68px);
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero h1 em {
  color: var(--teal);
  font-weight: inherit;`n  font-style: normal;
}

.hero-lead {
  max-width: 620px;
  margin: 25px 0 0;
  color: #d8e7ee;
  font-size: 18px;
  line-height: 1.65;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 30px;
  color: #eef8f9;
  font-size: 14px;
  font-weight: 600;
}

.hero-points span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-points svg {
  width: 19px;
  padding: 3px;
  color: var(--teal-dark);
  background: var(--amber);
  border-radius: 50%;
  stroke-width: 2.5;
}

.how-card {
  padding: 30px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.18);
}

.how-label,
.step-label {
  display: block;
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.how-card h2 {
  margin: 0 0 22px;
  font-size: 27px;
  font-weight: 760;
}

.how-card ol {
  display: grid;
  gap: 17px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.how-card li {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 13px;
}

.how-card li > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--teal);
  background: var(--mint);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
}

.how-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.how-card strong {
  color: var(--ink);
}

.converter-section {
  position: relative;
  z-index: 2;
  margin-top: -72px;
  padding-bottom: 64px;
}

.converter-card,
.results {
  padding: clamp(24px, 4vw, 42px);
  background: var(--paper);
  border: 1px solid rgba(217, 229, 232, 0.8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.card-heading,
.results-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.card-heading h2,
.results-heading h2 {
  margin: 0;
  font-size: 31px;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.text-button {
  padding: 5px;
  color: var(--teal);
  background: none;
  border: 0;
  font-size: 13px;
  font-weight: 700;
}

form > label,
.select-field label {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.textarea-wrap {
  position: relative;
}

textarea {
  width: 100%;
  min-height: 145px;
  padding: 18px 50px 18px 18px;
  resize: vertical;
  color: var(--ink);
  background: #fbfdfd;
  border: 1px solid #c9d9dd;
  border-radius: var(--radius-md);
  line-height: 1.55;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

textarea::placeholder {
  color: #829ab1;
}

textarea:hover {
  border-color: #9db5bc;
}

textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(8, 127, 140, 0.1);
  outline: 0;
}

textarea.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(184, 50, 69, 0.08);
}

.clear-button {
  position: absolute;
  top: 13px;
  right: 13px;
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  color: var(--ink-soft);
  background: #edf3f4;
  border: 0;
  border-radius: 9px;
}

.clear-button svg {
  width: 17px;
}

.field-help {
  margin: 8px 0 0;
  color: #627d98;
  font-size: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: end;
  gap: 22px;
  margin-top: 24px;
}

.select-wrap {
  position: relative;
}

select {
  width: 100%;
  min-height: 51px;
  padding: 0 45px 0 15px;
  color: var(--ink);
  appearance: none;
  background: #fbfdfd;
  border: 1px solid #c9d9dd;
  border-radius: 12px;
}

.select-wrap svg {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 17px;
  pointer-events: none;
  transform: translateY(-50%);
}

.primary-button,
.secondary-button,
.copy-button,
.open-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 51px;
  padding: 0 21px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 750;
  transition:
    transform 120ms ease,
    background-color 120ms ease,
    border-color 120ms ease;
}

.primary-button {
  color: var(--paper);
  background: var(--teal);
  border: 1px solid var(--teal);
  box-shadow: 0 9px 22px rgba(8, 127, 140, 0.2);
}

.primary-button:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

.primary-button svg,
.secondary-button svg,
.copy-button svg,
.open-button svg {
  width: 19px;
}

.results {
  margin-top: 24px;
  box-shadow: 0 14px 40px rgba(16, 42, 67, 0.08);
}

.secondary-button {
  color: var(--teal);
  background: var(--paper);
  border: 1px solid #b9d1d5;
}

.secondary-button:hover,
.copy-button:hover {
  background: #f1f8f8;
  border-color: var(--teal);
}

.result-list {
  display: grid;
  gap: 12px;
}

.result-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 17px 18px;
  background: #f8fbfb;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.result-item--error {
  background: var(--danger-soft);
  border-color: #f2c4ca;
}

.result-meta {
  min-width: 0;
}

.result-type {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-type svg {
  width: 15px;
}

.result-item--error .result-type {
  color: var(--danger);
}

.result-url,
.result-error {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-error {
  color: #7d2431;
  font-family: inherit;
  white-space: normal;
}

.result-actions {
  display: flex;
  gap: 8px;
}

.copy-button,
.open-button {
  min-height: 40px;
  padding: 0 13px;
  color: var(--teal);
  background: var(--paper);
  border: 1px solid #c7dadd;
  border-radius: 10px;
}

.open-button {
  color: var(--ink-soft);
  text-decoration: none;
}

.open-button:hover {
  color: var(--ink);
  border-color: #9fb5bb;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 24px;
}

.note {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 21px;
  background: rgba(255, 255, 255, 0.73);
  border: 1px solid rgba(217, 229, 232, 0.92);
  border-radius: 16px;
}

.note-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
}

.note-icon svg {
  width: 22px;
}

.note-icon--green {
  color: #258a91;
  background: var(--mint);
}

.note-icon--amber {
  color: #a47700;
  background: var(--amber-soft);
}

.note-icon--blue {
  color: #258a91;
  background: var(--blue-soft);
}

.note h3 {
  margin: 1px 0 7px;
  font-size: 14px;
}

.note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
}

footer {
  padding: 24px 0;
  color: #627d98;
  background: var(--paper);
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner p {
  margin: 0;
}

.toast {
  position: fixed;
  z-index: 50;
  right: 22px;
  bottom: 22px;
  max-width: min(360px, calc(100% - 44px));
  padding: 13px 17px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 11px;
  box-shadow: 0 14px 35px rgba(16, 42, 67, 0.25);
  font-size: 13px;
  font-weight: 650;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 170ms ease,
    transform 170ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

[hidden] {
  display: none !important;
}

@media (max-width: 850px) {
  .hero {
    padding: 54px 0 118px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .how-card {
    max-width: 620px;
  }

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

@media (max-width: 620px) {
  .shell {
    width: min(calc(100% - 24px), var(--shell));
  }

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

  .privacy-pill {
    width: 38px;
    height: 38px;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    color: var(--teal);
    background: var(--mint);
    white-space: nowrap;
  }

  .privacy-pill svg {
    min-width: 18px;
  }

  .hero {
    padding-top: 46px;
  }

  .hero h1 {
    font-size: 43px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-points {
    display: grid;
    gap: 12px;
  }

  .how-card {
    padding: 24px;
  }

  .converter-section {
    margin-top: -68px;
  }

  .converter-card,
  .results {
    padding: 23px 18px;
    border-radius: 19px;
  }

  .card-heading,
  .results-heading {
    align-items: flex-start;
  }

  .card-heading h2,
  .results-heading h2 {
    font-size: 27px;
  }

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

  .primary-button {
    width: 100%;
  }

  .results-heading {
    display: grid;
  }

  .secondary-button {
    width: 100%;
  }

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

  .result-actions {
    width: 100%;
  }

  .copy-button,
  .open-button {
    flex: 1;
  }

  .footer-inner {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
