:root {
  color-scheme: light;
  --ink: #19201f;
  --muted: #5a6764;
  --paper: #f7f5ef;
  --panel: #ffffff;
  --line: #d7ded9;
  --green: #1f7a52;
  --blue: #1d5f91;
  --red: #a73b32;
  --shadow: 0 18px 50px rgba(28, 38, 34, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #eef6f0 0%, var(--paper) 46%, #f4f8fb 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  gap: 28px;
  align-items: start;
}

.intro {
  padding-top: 10px;
}

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

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.9rem);
  line-height: 0.97;
  letter-spacing: 0;
}

.lede {
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.tool {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.lookup {
  display: grid;
  gap: 16px;
}

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

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  background: #fff;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input {
  min-height: 48px;
  padding: 0 14px;
}

textarea {
  min-height: 360px;
  padding: 14px;
  line-height: 1.5;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(29, 95, 145, 0.12);
}

.address-combobox {
  position: relative;
}

.suggestions {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(28, 38, 34, 0.18);
}

.suggestion {
  width: 100%;
  min-height: 44px;
  display: flex;
  justify-content: flex-start;
  border: 0;
  border-radius: 0;
  padding: 10px 14px;
  color: var(--ink);
  background: #fff;
  font-weight: 700;
  text-align: left;
  white-space: normal;
}

.suggestion + .suggestion {
  border-top: 1px solid var(--line);
}

.suggestion:hover,
.suggestion[aria-selected="true"] {
  background: #eef6f0;
  color: var(--green);
}

button,
.primary-action,
.call-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

button[type="submit"],
.primary-action {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.call-action {
  border-color: var(--blue);
  color: var(--blue);
}

button:disabled {
  opacity: 0.62;
  cursor: progress;
}

.button-icon {
  font-size: 1.1rem;
}

.status {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.status[data-type="success"] {
  color: var(--green);
}

.status[data-type="error"] {
  color: var(--red);
}

.result {
  margin-top: 22px;
  display: grid;
  gap: 16px;
}

.rep-line,
.call-line {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.rep-line {
  min-height: 176px;
  padding-right: min(330px, 42%);
}

.rep-line h2 {
  margin: 0 0 8px;
  font-size: 1.55rem;
  letter-spacing: 0;
}

.call-line p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.call-line > div {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.call-line .call-action {
  margin-top: 6px;
  justify-self: center;
}

.rep-details {
  margin: 14px 0 0;
  display: grid;
  gap: 12px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-width: 24rem;
}

.detail-row {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.detail-row dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.detail-row dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.detail-row a {
  color: var(--blue);
  font-weight: 750;
  text-decoration: none;
}

.matched-address-row {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.rep-status,
.rep-corner {
  position: absolute;
  right: 0;
  width: min(310px, 38%);
  display: grid;
  justify-items: end;
}

.rep-status {
  top: 18px;
  gap: 6px;
}

.rep-corner {
  top: 58px;
  gap: 10px;
}

.support-badge {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(31, 122, 82, 0.24);
  padding: 0 12px;
  color: var(--green);
  background: rgba(31, 122, 82, 0.08);
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.support-badge[data-status="not-listed"] {
  border-color: rgba(167, 59, 50, 0.24);
  color: var(--red);
  background: rgba(167, 59, 50, 0.08);
}

.support-badge[data-status="likely-listed"] {
  border-color: rgba(29, 95, 145, 0.24);
  color: var(--blue);
  background: rgba(29, 95, 145, 0.08);
}

.support-checked {
  margin: -3px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  text-align: right;
  order: 0;
}

.matched-address-row {
  order: 1;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.desktop-email-options {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.provider-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.provider-link span {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1;
}

.provider-gmail {
  border-color: rgba(197, 34, 31, 0.28);
  color: #b3261e;
  background: #fff8f7;
}

.provider-gmail span {
  background: #c5221f;
}

.provider-outlook {
  border-color: rgba(0, 120, 212, 0.28);
  color: #0b5cab;
  background: #f4f9ff;
}

.provider-outlook span {
  background: #0078d4;
}

.provider-yahoo {
  border-color: rgba(96, 1, 210, 0.28);
  color: #5f01d1;
  background: #fbf7ff;
}

.provider-yahoo span {
  background: #6001d2;
}

.fine-print {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  white-space: nowrap;
}

.learn-more {
  display: grid;
  gap: 16px;
  padding: 18px 0 20px;
  border-top: 1px solid var(--line);
}

.learn-intro {
  max-width: 46rem;
}

.learn-intro .label {
  margin-bottom: 14px;
}

.learn-intro h3,
.faq-block h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
  letter-spacing: 0;
}

.learn-intro p,
.fact-list p,
.faq-intro,
.question-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.fact-list {
  display: grid;
  gap: 8px;
}

.fact-list strong {
  color: #3f4a47;
}

.faq-block {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.faq-block .question-list {
  margin-top: 8px;
}

.question-list {
  display: grid;
  gap: 8px;
}

.question-list details {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.question-list details:first-child {
  border-top: 0;
  padding-top: 0;
}

.question-list summary {
  color: var(--blue);
  font-weight: 850;
  cursor: pointer;
}

.question-list details[open] summary {
  margin-bottom: 12px;
}

.question-list a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 820px) {
  .shell {
    padding: 28px 0;
  }

  .tool {
    padding: 18px;
  }

  .desktop-email-options {
    display: none;
  }
}

@media (max-width: 600px) {
  .rep-line,
  .call-line {
    display: grid;
  }

  .rep-line {
    min-height: 0;
    padding-right: 0;
  }

  .rep-status,
  .rep-corner {
    position: static;
    width: 100%;
  }

  .rep-status {
    justify-items: start;
    margin: 2px 0 12px;
  }

  .rep-corner {
    justify-items: stretch;
  }

  .matched-address-row {
    order: 0;
  }

  .support-checked {
    order: 1;
    margin: -2px 0 0;
    text-align: right;
  }

  textarea {
    min-height: 310px;
  }

  .fine-print {
    white-space: normal;
  }
}
