:root {
  color-scheme: light;
  --accent: #2563eb;
  --accent-two: #06b6d4;
  --accent-three: #8b5cf6;
  --accent-soft: #dbeafe;
  --ink: #172554;
  --text: #172033;
  --muted: #667085;
  --line: #dfe4ec;
  --surface: #ffffff;
  --canvas: #f7f8fb;
  --shadow: 0 24px 70px rgba(26, 38, 61, 0.12);
  font-family: Outfit, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--canvas);
  color: var(--text);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 76% 4%, color-mix(in srgb, var(--accent-two) 13%, transparent), transparent 28rem),
    radial-gradient(circle at 12% 22%, color-mix(in srgb, var(--accent-three) 8%, transparent), transparent 24rem),
    linear-gradient(180deg, #fff 0, var(--canvas) 42rem);
}

button, textarea, a { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

a { color: inherit; }

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
  letter-spacing: -0.02em;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--accent), var(--accent-two));
  box-shadow: 0 9px 20px color-mix(in srgb, var(--accent) 28%, transparent);
}

.brand-mark svg { width: 22px; fill: none; stroke: white; stroke-width: 2; }
.brand-mark svg path:first-child { fill: rgba(255,255,255,.16); }
.brand-mark-cut { stroke-linecap: round; stroke-linejoin: round; }

.header-badge {
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, white);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-soft) 55%, white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

main, footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(440px, 1.12fr);
  gap: clamp(40px, 7vw, 92px);
  align-items: center;
  padding: 56px 0 88px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 690px;
  margin: 0;
  color: var(--ink);
  background: linear-gradient(110deg, var(--ink) 5%, var(--accent) 50%, var(--accent-two) 78%, var(--accent-three));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(42px, 6vw, 72px);
  line-height: .98;
  letter-spacing: -.055em;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

h3 { color: var(--ink); }

.hero-description {
  max-width: 620px;
  margin: 28px 0 24px;
  color: #526071;
  font-size: 18px;
  line-height: 1.65;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin: 0;
  padding: 0;
  color: #526071;
  font-size: 14px;
  list-style: none;
}

.trust-list span { color: var(--accent); font-weight: 900; }

.tool-card, .result-section {
  border: 1px solid rgba(216, 222, 232, .9);
  border-radius: 26px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.tool-card::before, .result-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 46%, transparent), transparent 35%, color-mix(in srgb, var(--accent-two) 30%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.tool-card { padding: clamp(20px, 3vw, 30px); }

.field-heading, .input-footer, .result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.field-heading { margin-bottom: 11px; }
.field-heading label { color: var(--ink); font-size: 14px; font-weight: 750; }
#word-count { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
#word-count.over-limit, .field-status.error { color: #b42318; }

textarea {
  display: block;
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  background: #fbfcfe;
  color: var(--text);
  padding: 18px;
  font-size: 16px;
  line-height: 1.65;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

textarea:focus {
  border-color: var(--accent);
  background: white;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
}

.input-footer { min-height: 45px; }
.field-status { color: var(--muted); font-size: 12px; text-align: right; }

.text-button, .secondary-button {
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}

.text-button { padding: 12px 0; }

.primary-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(110deg, var(--accent), var(--accent-two));
  box-shadow: 0 12px 25px color-mix(in srgb, var(--accent) 25%, transparent);
  color: white;
  cursor: pointer;
  font-weight: 780;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, opacity .2s;
}

.primary-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 15px 30px color-mix(in srgb, var(--accent) 32%, transparent); }
.primary-button:disabled { cursor: not-allowed; opacity: .44; box-shadow: none; }
.primary-button.compact { width: auto; min-width: 220px; padding: 0 20px; }

.limit-upsell {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, white);
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent-soft) 58%, white);
}

.limit-upsell p { margin: 5px 0 14px; color: var(--muted); font-size: 14px; }
.limit-upsell .primary-button { width: 100%; }

.result-section {
  scroll-margin-top: 20px;
  margin: 0 auto 100px;
  padding: clamp(24px, 4vw, 42px);
}

.result-heading { margin-bottom: 24px; }
.result-heading h2 { font-size: 34px; }

.secondary-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, white);
  border-radius: 12px;
  background: var(--accent-soft);
}

.information {
  max-width: 820px;
  padding: 90px 0 110px;
  border-top: 1px solid var(--line);
}

.information-copy, .article-reference { color: #526071; font-size: 17px; line-height: 1.7; }
.information-copy { margin: 24px 0 12px; }
.article-reference { margin-bottom: 32px; }
.article-reference a { color: var(--accent); font-weight: 750; }
.disclosure { padding: 18px; border-left: 3px solid var(--accent); background: var(--accent-soft); color: #526071; font-size: 14px; }

.faq-list { border-top: 1px solid var(--line); }
.information details { border-bottom: 1px solid var(--line); }
.information summary { cursor: pointer; padding: 23px 0; color: var(--ink); font-weight: 750; list-style-position: inside; }
.information details p { max-width: 760px; margin: -6px 0 24px; color: var(--muted); line-height: 1.65; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

footer p { margin: 0; }
footer strong { color: var(--ink); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 54px 0 76px; }
  .hero-copy { text-align: center; }
  .hero-description { margin-inline: auto; }
  .trust-list { justify-content: center; }
  .tool-card { width: min(680px, 100%); margin-inline: auto; }
}

@media (max-width: 600px) {
  .site-header, main, footer { width: min(100% - 24px, 1180px); }
  .site-header { padding: 16px 0; }
  .brand { max-width: calc(100% - 112px); font-size: 14px; }
  .brand > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .header-badge { font-size: 11px; padding: 7px 9px; }
  .hero { gap: 34px; padding-top: 38px; }
  h1 { font-size: clamp(38px, 13vw, 54px); }
  .hero-description { margin-top: 22px; font-size: 16px; }
  .trust-list { gap: 8px 14px; font-size: 12px; }
  .tool-card { padding: 16px; border-radius: 20px; }
  .tool-card textarea { min-height: 230px; resize: none; }
  textarea { padding: 14px; font-size: 16px; }
  .field-status { max-width: 180px; }
  .result-section { padding: 18px; border-radius: 20px; }
  .result-heading { align-items: flex-end; }
  .result-grid textarea { min-height: 230px; resize: none; }
  footer { align-items: stretch; flex-direction: column; }
  .primary-button.compact { width: 100%; }
  .information { padding-block: 70px; }
}

@media (max-width: 480px) {
  .site-header { gap: 10px; }
  .header-badge { white-space: nowrap; }
  .hero { padding-top: 28px; }
  h1 { font-size: clamp(38px, 13vw, 50px); }
  .field-heading { align-items: flex-start; }
  .input-footer { align-items: flex-start; flex-direction: column; gap: 0; padding: 6px 0 12px; }
  .field-status { max-width: none; text-align: left; }
  .text-button, .secondary-button, .primary-button { min-height: 48px; }
  .text-button { padding-block: 10px; }
  .result-heading { align-items: stretch; flex-direction: column; }
  .secondary-button { width: 100%; }
}

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