@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Newsreader:opsz,wght@6..72,500;6..72,600&display=swap');

:root {
  --paper: #f4f0e8;
  --paper-deep: #e8e1d5;
  --card: #fffdf8;
  --ink: #21312e;
  --muted: #66716d;
  --line: #d6d0c5;
  --forest: #1f5b4d;
  --forest-dark: #15463b;
  --sage: #cfddd2;
  --apricot: #e9a477;
  --cream: #fff8ec;
  --shadow: 0 24px 70px rgba(44, 55, 50, 0.12);
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 8%, rgba(233, 164, 119, 0.16), transparent 24rem),
    linear-gradient(180deg, var(--paper) 0%, #f8f5ee 48%, var(--paper) 100%);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(31, 91, 77, 0.3);
  outline-offset: 4px;
}

.site-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

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

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

.brand-mark {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  border-radius: 11px 11px 11px 3px;
  background: var(--forest);
  color: white;
}

.brand-mark::after {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
}

.brand-mark svg {
  width: 21px;
  height: 21px;
}

.nav-links,
.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(255, 253, 248, 0.72);
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(380px, 0.97fr);
  gap: clamp(40px, 7vw, 92px);
  align-items: center;
  min-height: 680px;
  padding: 64px 0 92px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  color: var(--forest);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 1px;
  background: currentColor;
  content: "";
}

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

h1,
h2 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 10ch;
  margin-bottom: 26px;
  font-size: clamp(3.6rem, 7vw, 6.8rem);
  line-height: 0.91;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 4.8vw, 4.4rem);
  line-height: 0.98;
}

h3 {
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.35;
}

.hero-copy {
  max-width: 62ch;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--forest);
  color: white;
  box-shadow: 0 12px 28px rgba(31, 91, 77, 0.2);
}

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

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 253, 248, 0.55);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: #b6b0a5;
  background: var(--card);
}

.demo-stage {
  position: relative;
  min-height: 535px;
}

.demo-stage::before {
  position: absolute;
  inset: 7% 0 0 10%;
  border-radius: 45% 55% 46% 54%;
  background: var(--sage);
  content: "";
  transform: rotate(-5deg);
}

.input-card,
.output-card {
  position: absolute;
  border: 1px solid rgba(33, 49, 46, 0.1);
  background: var(--card);
  box-shadow: var(--shadow);
}

.input-card {
  top: 0;
  left: 0;
  width: 64%;
  padding: 23px;
  border-radius: 24px 24px 24px 6px;
  transform: rotate(-3deg);
}

.output-card {
  right: 0;
  bottom: 0;
  width: 78%;
  padding: 25px;
  border-radius: 26px 26px 7px 26px;
  transform: rotate(2deg);
}

.card-kicker {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.letter-lines {
  display: grid;
  gap: 9px;
}

.letter-lines span {
  display: block;
  height: 7px;
  border-radius: 99px;
  background: var(--paper-deep);
}

.letter-lines span:nth-child(2) { width: 83%; }
.letter-lines span:nth-child(3) { width: 92%; }
.letter-lines span:nth-child(4) { width: 68%; }
.letter-lines span:nth-child(5) { width: 76%; }

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.urgency {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 99px;
  background: #fae4d6;
  color: #8b4c29;
  font-size: 0.73rem;
  font-weight: 700;
}

.urgency::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--apricot);
  content: "";
}

.summary-text {
  margin-bottom: 20px;
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.23rem;
  line-height: 1.3;
}

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

.result-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.87rem;
}

.result-list li::before {
  display: grid;
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  background: var(--sage);
  color: var(--forest);
  content: "✓";
  font-size: 0.72rem;
  font-weight: 800;
}

.section {
  padding: 96px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.55fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 52px;
}

.section-heading h2 {
  max-width: 11ch;
  margin-bottom: 0;
}

.section-heading p {
  margin-bottom: 5px;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.feature-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.66);
}

.feature-card:first-child {
  grid-row: span 2;
  min-height: 478px;
  background: var(--forest);
  color: white;
}

.feature-card:first-child p {
  color: rgba(255, 255, 255, 0.7);
}

.feature-card p {
  max-width: 42ch;
  margin-bottom: 0;
  color: var(--muted);
}

.feature-number {
  display: block;
  margin-bottom: 50px;
  color: var(--apricot);
  font-family: "Newsreader", Georgia, serif;
  font-size: 3.6rem;
  line-height: 1;
}

.feature-card:not(:first-child) .feature-number {
  margin-bottom: 26px;
  color: var(--forest);
  font-size: 2.4rem;
}

.feature-card h3 {
  max-width: 14ch;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.feature-card:first-child h3 {
  margin-top: 95px;
  font-size: clamp(2rem, 3vw, 3rem);
}

.format-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 30px;
  border-block: 1px solid var(--line);
}

.format-strip span {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.48);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.closing-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  margin: 72px 0 96px;
  padding: clamp(34px, 6vw, 68px);
  border-radius: var(--radius-lg) var(--radius-lg) 8px var(--radius-lg);
  background: var(--cream);
  box-shadow: inset 0 0 0 1px var(--line);
}

.closing-panel h2 {
  max-width: 13ch;
  margin-bottom: 12px;
}

.closing-panel p {
  max-width: 54ch;
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 32px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

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

.page-main {
  padding: 70px 0 110px;
}

.page-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 0.45fr);
  gap: 70px;
  align-items: end;
  padding: 54px 0 70px;
  border-bottom: 1px solid var(--line);
}

.page-intro h1 {
  max-width: 9ch;
  margin-bottom: 0;
}

.page-intro p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 1.06rem;
}

.support-layout,
.policy-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 0.82fr);
  gap: clamp(50px, 9vw, 120px);
  padding-top: 70px;
}

.contact-card {
  position: sticky;
  top: 30px;
  align-self: start;
  padding: 27px;
  border-radius: var(--radius-md) var(--radius-md) 5px var(--radius-md);
  background: var(--forest);
  color: white;
}

.contact-card p {
  color: rgba(255, 255, 255, 0.7);
}

.contact-card a {
  display: inline-block;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.help-list,
.policy-content {
  display: grid;
  gap: 0;
}

.help-item,
.policy-section {
  padding: 0 0 34px;
  border-bottom: 1px solid var(--line);
}

.help-item + .help-item,
.policy-section + .policy-section {
  padding-top: 34px;
}

.help-item h2,
.policy-section h2 {
  margin-bottom: 10px;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.1;
}

.help-item p,
.policy-section p,
.policy-section li {
  color: var(--muted);
}

.help-item p:last-child,
.policy-section p:last-child,
.policy-section ul:last-child {
  margin-bottom: 0;
}

.text-link {
  color: var(--forest);
  font-weight: 700;
  text-underline-offset: 3px;
}

.policy-meta {
  color: var(--muted);
  font-size: 0.84rem;
}

.policy-nav {
  display: grid;
  gap: 9px;
}

.policy-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.policy-nav a:hover {
  color: var(--forest);
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content,
.demo-stage,
.page-intro > * {
  animation: rise-in 600ms ease both;
}

.demo-stage,
.page-intro > :last-child {
  animation-delay: 100ms;
}

@media (max-width: 860px) {
  .hero,
  .section-heading,
  .page-intro,
  .support-layout,
  .policy-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 32px;
    padding-top: 46px;
  }

  .demo-stage {
    width: min(100%, 560px);
    margin: 0 auto;
  }

  .section-heading,
  .page-intro {
    gap: 18px;
  }

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

  .feature-card:first-child {
    grid-row: auto;
    min-height: 350px;
  }

  .feature-card:first-child h3 {
    margin-top: 30px;
  }

  .closing-panel {
    grid-template-columns: 1fr;
  }

  .contact-card {
    position: static;
  }
}

@media (max-width: 600px) {
  .site-shell {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    min-height: 76px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .nav-links {
    gap: 0;
  }

  .nav-links a {
    padding: 8px 9px;
    font-size: 0.82rem;
  }

  .hero {
    min-height: auto;
    padding: 58px 0 76px;
  }

  h1 {
    font-size: clamp(3.2rem, 18vw, 5rem);
  }

  .demo-stage {
    min-height: 450px;
  }

  .input-card {
    width: 72%;
  }

  .output-card {
    width: 88%;
  }

  .section {
    padding: 72px 0;
  }

  .feature-card,
  .feature-card:first-child {
    min-height: auto;
    padding: 25px;
  }

  .feature-number {
    margin-bottom: 30px;
  }

  .closing-panel {
    margin: 56px 0 72px;
  }

  .site-footer {
    display: grid;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .page-main {
    padding-top: 30px;
  }

  .page-intro {
    padding: 40px 0 54px;
  }
}

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