:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #62615f;
  --line: #dedbd4;
  --paper: #fffdf8;
  --panel: #ffffff;
  --brand: #ff5a3d;
  --brand-dark: #b72d1a;
  --teal: #087f7b;
  --green: #147a45;
  --yellow: #a86400;
  --red: #b42318;
  --shadow: 0 22px 70px rgba(23, 23, 23, 0.10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(255, 90, 61, 0.10), transparent 34%),
    linear-gradient(220deg, rgba(8, 127, 123, 0.10), transparent 36%),
    var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 24px;
}

.brand-block {
  min-width: 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.logo-mark {
  position: relative;
  display: block;
  width: clamp(42px, 7vw, 66px);
  height: clamp(42px, 7vw, 66px);
  flex: 0 0 auto;
  border: 2px solid rgba(183, 45, 26, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 90, 61, 0.16), rgba(8, 127, 123, 0.10)),
    #fff;
  box-shadow: 0 14px 34px rgba(23, 23, 23, 0.10);
}

.logo-beam,
.logo-stem,
.logo-base,
.logo-pan {
  position: absolute;
  display: block;
  background: var(--brand-dark);
}

.logo-beam {
  left: 19%;
  top: 31%;
  width: 62%;
  height: 3px;
  border-radius: 99px;
}

.logo-stem {
  left: calc(50% - 2px);
  top: 19%;
  width: 4px;
  height: 56%;
  border-radius: 99px;
}

.logo-base {
  left: 29%;
  bottom: 17%;
  width: 42%;
  height: 5px;
  border-radius: 99px;
}

.logo-pan {
  top: 48%;
  width: 23%;
  height: 11%;
  border-radius: 0 0 99px 99px;
}

.logo-pan::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 1px;
  height: 15px;
  background: var(--brand-dark);
  transform: translateX(-50%);
}

.logo-pan-left {
  left: 17%;
}

.logo-pan-right {
  right: 17%;
  background: var(--teal);
}

.logo-pan-right::before {
  background: var(--teal);
}

.brand-mark {
  margin: 0;
  color: var(--brand-dark);
  font-size: clamp(28px, 5vw, 54px);
  font-weight: 950;
  line-height: 0.95;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 16px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
}

.auth-panel {
  display: grid;
  width: min(360px, 100%);
  gap: 8px;
  justify-self: end;
}

@media (max-width: 1180px) {
  .topbar {
    display: grid;
  }

  .auth-panel {
    width: 100%;
    justify-self: stretch;
  }
}

.auth-status {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 10px 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.auth-help {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.plan-status {
  border: 1px solid #ffdca9;
  border-radius: 8px;
  background: #fff8ec;
  padding: 10px 12px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 900;
}

.login-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  width: 100%;
}

.login-form input {
  width: 100%;
  min-height: 58px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  font: inherit;
  font-size: 16px;
  outline: none;
}

.login-form button {
  width: 100%;
}

.login-form input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 90, 61, 0.16);
}

@media (max-width: 960px) {
  .topbar {
    display: grid;
  }

  .auth-panel {
    width: 100%;
    justify-self: stretch;
  }

  .login-form {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .login-form input,
  .login-form button,
  .auth-status,
  .auth-help,
  .plan-status,
  .secondary-button,
  .account-link {
    width: 100%;
  }

  .login-form input {
    min-height: 64px;
    font-size: 18px;
  }

  .site-footer {
    display: grid;
  }
}

.secondary-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.secondary-button:hover {
  background: #f8f6f1;
}

.account-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.account-link:hover {
  background: #f8f6f1;
  color: var(--ink);
  text-decoration: none;
}

.checker,
.result,
.payment {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.checker {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 30px;
  padding: 26px;
}

.intro h2 {
  margin-bottom: 12px;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: 0;
}

.intro p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.form {
  min-width: 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
  border: 0;
  padding: 0;
}

.category-grid legend,
.field-label {
  grid-column: 1 / -1;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.category-grid label {
  cursor: pointer;
}

.category-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.category-grid span {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f6f1;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.category-grid input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.field-label {
  display: block;
}

.field-help {
  margin: -2px 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

textarea {
  width: 100%;
  resize: vertical;
  min-height: 172px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  outline: none;
}

textarea:focus,
.upload:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 90, 61, 0.16);
}

.upload-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, auto);
  gap: 12px;
  margin-top: 14px;
}

.upload {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f8f6f1;
  padding: 14px;
}

.upload-title {
  color: var(--ink);
}

.upload.drag-over {
  border-color: var(--brand);
  background: #fff2ea;
  box-shadow: 0 0 0 4px rgba(255, 90, 61, 0.16);
}

.upload input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.upload-meta {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

button {
  min-height: 58px;
  min-width: 0;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  padding: 0 22px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 950;
}

#submit-button {
  width: 100%;
  min-width: 230px;
  white-space: nowrap;
}

button:hover {
  background: var(--brand-dark);
}

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

.result {
  margin-top: 18px;
  overflow: hidden;
}

.hidden {
  display: none !important;
}

.result-head {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 22px;
}

.score {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-size: 34px;
  font-weight: 950;
}

.score.green {
  background: var(--green);
}

.score.yellow {
  background: var(--yellow);
}

.score.red {
  background: var(--red);
}

.verdict-label {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.result h2 {
  margin-bottom: 8px;
  font-size: 34px;
  line-height: 1.08;
}

.one-liner {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.result-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 22px;
}

.summary,
.share {
  grid-column: 1 / -1;
}

.block h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.block p,
.block li {
  color: var(--muted);
  line-height: 1.55;
}

.block ul {
  margin: 0;
  padding-left: 20px;
}

.share-box {
  border-left: 4px solid var(--brand);
  background: #fff5ef;
  padding: 14px 16px;
}

.deal-prices {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

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

.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.price-row strong {
  display: block;
  margin-bottom: 4px;
}

.price-row span {
  color: var(--muted);
  font-size: 14px;
}

.price-row a {
  border-radius: 8px;
  background: var(--ink);
  padding: 10px 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.history {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  padding: 20px;
  box-shadow: var(--shadow);
}

.partner-ads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.partner-ad {
  display: grid;
  min-height: 0;
  align-content: start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  padding: 0 0 22px;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.partner-ad:hover {
  border-color: #b5dfc8;
  box-shadow: 0 26px 76px rgba(23, 23, 23, 0.14);
  transform: translateY(-2px);
}

.partner-ad img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.partner-ad .eyebrow,
.partner-ad h2,
.partner-ad p:not(.eyebrow),
.partner-ad-cta {
  margin-left: 22px;
  margin-right: 22px;
}

.partner-ad .eyebrow {
  margin-top: 18px;
}

.partner-ad h2 {
  margin-bottom: 10px;
  font-size: 30px;
  line-height: 1.05;
}

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

.partner-ad-cta {
  align-self: end;
  justify-self: start;
  margin-top: 18px;
  border-radius: 8px;
  background: var(--ink);
  padding: 12px 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.history-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.history h2 {
  margin-bottom: 0;
  font-size: 28px;
}

.history-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.history-more {
  width: 100%;
  margin-top: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.history-more:hover {
  background: #f8f6f1;
}

.history-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.history-score {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 950;
}

.history-title {
  font-weight: 950;
}

.history-meta {
  color: var(--muted);
  font-size: 13px;
}

.error {
  border-color: #f1b5ae;
  background: #fff5f3;
  color: var(--red);
  padding: 18px;
}

.upgrade-nudge {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  border-color: #ffc9b8;
  background: linear-gradient(135deg, #fff5ef, #fffdf8);
  padding: 22px;
}

.upgrade-nudge h2 {
  margin-bottom: 8px;
  font-size: 30px;
  line-height: 1.05;
}

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

.upgrade-nudge a {
  border-radius: 8px;
  background: var(--brand);
  padding: 15px 18px;
  color: #fff;
  font-size: 15px;
  font-weight: 950;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.upgrade-nudge a:hover {
  background: var(--brand-dark);
}

.payment {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: stretch;
  margin-top: 18px;
  padding: 24px;
}

.payment-info-card,
.payment-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: stretch;
  min-height: 228px;
}

.payment-info-card {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0;
}

.payment h2 {
  margin-bottom: 10px;
  font-size: 30px;
  line-height: 1.05;
}

.payment p {
  color: var(--muted);
  line-height: 1.6;
}

.free-note {
  display: grid;
  gap: 4px;
  align-content: start;
  align-self: stretch;
  min-height: 0;
  margin-top: 16px;
  border: 1px solid #b5dfc8;
  border-radius: 8px;
  background: #f1fbf6;
  padding: 13px 14px;
}

.pro-note {
  display: grid;
  gap: 4px;
  align-content: start;
  align-self: stretch;
  min-height: 0;
  margin-top: 16px;
  border: 1px solid #b5dfc8;
  border-radius: 8px;
  background: #f1fbf6;
  padding: 13px 14px;
}

.account-note {
  display: grid;
  gap: 4px;
  align-content: start;
  align-self: stretch;
  margin-top: 16px;
  border: 1px solid #b5dfc8;
  border-radius: 8px;
  background: #f1fbf6;
  padding: 13px 14px;
}

.payment > div:nth-child(2) > p:not(.eyebrow) {
  display: block;
  margin-top: 16px;
  border: 1px solid #b5dfc8;
  border-radius: 8px;
  background: #f1fbf6;
  padding: 13px 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.free-note strong,
.pro-note strong,
.account-note strong {
  color: var(--green);
  font-size: 15px;
  font-weight: 950;
}

.free-note span,
.pro-note span,
.account-note span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.account-card .paypal-status,
.account-card #paypal-buttons {
  margin-top: 12px;
}

.payment-card,
.account-card.pro-active {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f6f1;
  padding: 18px;
}

.account-card.pro-active {
  border-color: #b5dfc8;
  background: #f1fbf6;
}

.price {
  margin-bottom: 8px;
  font-size: 34px;
  font-weight: 950;
}

.payment-copy {
  margin-bottom: 14px;
}

.payment-hint {
  border: 1px solid #ffdca9;
  border-radius: 8px;
  background: #fff8ec;
  padding: 10px 12px;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 800;
}

.paypal-status {
  min-height: 0;
}

.payment-hint.hidden {
  display: none;
}

.paypal-status {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 11px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.paypal-status.success {
  border-color: #b5dfc8;
  background: #edf9f2;
  color: var(--green);
}

.paypal-status.error {
  border-color: #f1b5ae;
  background: #fff5f3;
  color: var(--red);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding: 18px 2px 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
  font-weight: 800;
}

.footer-links {
  display: flex;
  gap: 14px;
}

.footer-links a {
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--brand-dark);
}

.legal-shell {
  width: min(880px, calc(100% - 32px));
}

.legal-header {
  margin-bottom: 18px;
}

.legal-header h1 {
  margin-bottom: 0;
  font-size: clamp(42px, 7vw, 76px);
}

.legal-back {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--teal);
  font-weight: 900;
  text-decoration: none;
}

.legal-back:hover {
  color: var(--brand-dark);
}

.legal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  padding: 26px;
  box-shadow: var(--shadow);
}

.legal-card h2 {
  margin: 28px 0 8px;
  font-size: 22px;
}

.legal-card p {
  color: var(--muted);
  line-height: 1.65;
}

.legal-card a {
  color: var(--teal);
  font-weight: 800;
}

@media (max-width: 780px) {
  .shell {
    width: min(100% - 24px, 1120px);
    padding-top: 18px;
  }

  .topbar {
    gap: 16px;
  }

  .brand-lockup {
    gap: 10px;
  }

  .checker,
  .result-body,
  .result-head,
  .payment,
  .partner-ads,
  .upgrade-nudge,
  .price-row,
  .history-item {
    grid-template-columns: 1fr;
  }

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

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

  .legal-card {
    padding: 20px;
  }

  #submit-button {
    min-width: 0;
  }

  h1 {
    font-size: 44px;
  }

}
