:root {
  color-scheme: light;
  --ez-paper: #fff8ea;
  --ez-cream: #f3ead8;
  --ez-ink: #173b33;
  --ez-green: #2e8f68;
  --ez-blue: #dbe7ee;
  --ez-coral: #cb6f5a;
  --ez-gold: #d6a64c;
  --ez-muted: #6d6255;
  --ez-line: rgba(23, 59, 51, 0.16);
  --ez-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(23, 59, 51, 0.04) 1px, transparent 1px) 0 0 /
      56px 56px,
    linear-gradient(rgba(23, 59, 51, 0.04) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--ez-paper);
  color: var(--ez-ink);
  font-family: "Readex Pro", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: rgba(46, 143, 104, 0.18);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(145deg, rgba(203, 111, 90, 0.12), transparent 34%),
    linear-gradient(315deg, rgba(46, 143, 104, 0.12), transparent 44%);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button,
a,
input {
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(46, 143, 104, 0.44);
  outline-offset: 4px;
}

section,
header {
  scroll-margin-top: 94px;
}

.ez-skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  transform: translateY(-140%);
  border: 1px solid var(--ez-ink);
  border-radius: 5px;
  padding: 0.72rem 1rem;
  background: var(--ez-paper);
  color: var(--ez-ink);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.24s var(--ez-ease);
}

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

.ez-wrap {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.ez-nav {
  position: sticky;
  top: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
  border-bottom: 1px solid var(--ez-line);
  padding: 0.9rem max(20px, calc((100vw - 1160px) / 2));
  background: rgba(255, 248, 234, 0.92);
  backdrop-filter: blur(18px);
}

.ez-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  color: var(--ez-ink);
  font-weight: 800;
  text-decoration: none;
}

.ez-brand span {
  color: var(--ez-green);
}

.ez-brand strong {
  color: var(--ez-coral);
}

.ez-links {
  display: flex;
  justify-content: flex-end;
  gap: 1.4rem;
}

.ez-links a,
.ez-link {
  color: var(--ez-muted);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration-color: transparent;
  text-underline-offset: 0.3rem;
  transition:
    color 0.22s var(--ez-ease),
    text-decoration-color 0.22s var(--ez-ease);
}

.ez-links a:hover,
.ez-link:hover {
  color: var(--ez-green);
  text-decoration-color: currentColor;
}

.ez-menu {
  display: none;
  width: 2.45rem;
  height: 2.45rem;
  border: 1px solid var(--ez-line);
  border-radius: 6px;
  background: var(--ez-paper);
  cursor: pointer;
}

.ez-menu span {
  display: block;
  width: 1rem;
  height: 2px;
  margin: 5px auto;
  background: var(--ez-ink);
  transition:
    transform 0.24s var(--ez-ease),
    opacity 0.24s var(--ez-ease);
}

.ez-hero {
  padding: 5.7rem 0 5rem;
}

.ez-hero-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(0, 0.82fr);
  gap: 4rem;
  align-items: center;
}

.ez-notebook {
  margin: 0;
}

.ez-notebook img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--ez-line);
  border-radius: 8px;
  box-shadow: 18px 18px 0 rgba(203, 111, 90, 0.14);
}

.ez-kicker {
  margin: 0 0 1rem;
  color: var(--ez-coral);
  font-family: "DM Mono", Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 500;
}

.ez-copy h1,
.ez-worksheet h2,
.ez-fit h2,
.ez-privacy h2,
.ez-answer-grid h2,
.ez-join h2 {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  line-height: 0.98;
  text-wrap: balance;
}

.ez-copy h1 {
  max-width: 10ch;
  font-size: 4.9rem;
}

.ez-copy p,
.ez-worksheet-copy p,
.ez-join p {
  max-width: 58ch;
  color: var(--ez-muted);
  font-size: 1.1rem;
  line-height: 1.72;
}

.ez-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.3rem;
  margin-top: 2rem;
}

.ez-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.05rem;
  border: 1px solid var(--ez-ink);
  border-radius: 6px;
  padding: 0.84rem 1.05rem;
  background: var(--ez-green);
  color: #fffdf7;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(46, 143, 104, 0.2);
  transition:
    transform 0.24s var(--ez-ease),
    background-color 0.24s var(--ez-ease),
    box-shadow 0.24s var(--ez-ease);
}

.ez-button:hover {
  transform: translateY(-2px);
  background: #247d59;
  box-shadow: 0 22px 42px rgba(46, 143, 104, 0.24);
}

.ez-button:active {
  transform: translateY(0) scale(0.985);
}

.ez-worksheet {
  padding: 6rem 0;
  background: #173b33;
  color: var(--ez-paper);
}

.ez-worksheet-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.66fr) minmax(450px, 1.08fr);
  gap: 3.5rem;
  align-items: start;
}

.ez-worksheet .ez-kicker {
  color: #f0b791;
}

.ez-worksheet h2,
.ez-fit h2,
.ez-privacy h2,
.ez-answer-grid h2,
.ez-join h2 {
  font-size: 3.25rem;
}

.ez-worksheet-copy p {
  color: #d9e6df;
}

.ez-scenarios {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.ez-scenarios button {
  border: 1px solid rgba(255, 248, 234, 0.26);
  border-radius: 6px;
  padding: 0.85rem 0.95rem;
  background: rgba(255, 248, 234, 0.08);
  color: var(--ez-paper);
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.22s var(--ez-ease),
    transform 0.22s var(--ez-ease),
    background-color 0.22s var(--ez-ease);
}

.ez-scenarios button:hover,
.ez-scenarios button.is-active {
  border-color: #f0b791;
  background: rgba(240, 183, 145, 0.16);
  transform: translateX(4px);
}

.ez-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 1rem;
}

.ez-transcript,
.ez-checklist {
  border: 1px solid rgba(255, 248, 234, 0.22);
  border-radius: 8px;
  background: rgba(255, 248, 234, 0.08);
}

.ez-transcript {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  min-height: 24rem;
  padding: 1rem;
}

.ez-transcript p {
  margin: 0;
  border-radius: 8px;
  padding: 0.85rem;
  background: var(--ez-paper);
  color: var(--ez-ink);
  line-height: 1.55;
}

.ez-transcript p:nth-child(even) {
  margin-left: 2.2rem;
  background: var(--ez-blue);
}

.ez-transcript strong {
  color: var(--ez-green);
}

.ez-checklist {
  align-self: stretch;
  padding: 1rem;
}

.ez-checklist span {
  color: #f0b791;
  font-family: "DM Mono", Consolas, monospace;
  font-size: 0.78rem;
}

.ez-checklist ul {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.ez-checklist li {
  border-bottom: 1px solid rgba(255, 248, 234, 0.18);
  padding-bottom: 0.7rem;
  line-height: 1.45;
}

.ez-checklist p {
  margin: 0;
  color: #d9e6df;
  line-height: 1.5;
}

.ez-fit {
  padding: 6rem 0;
  background: var(--ez-paper);
}

.ez-fit-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(0, 1fr);
  gap: 3.5rem;
}

.ez-fit-lines {
  display: grid;
  gap: 1px;
  background: var(--ez-line);
}

.ez-fit-lines article {
  display: grid;
  grid-template-columns: 0.45fr 1fr;
  gap: 1rem;
  padding: 1.2rem 0;
  background: var(--ez-paper);
}

.ez-fit-lines strong {
  color: var(--ez-green);
  font-size: 1.15rem;
}

.ez-fit-lines p {
  margin: 0;
  color: var(--ez-muted);
  line-height: 1.55;
}

.ez-privacy {
  padding: 6rem 0;
  background: var(--ez-blue);
}

.ez-privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.05fr);
  gap: 3rem;
}

.ez-privacy dl {
  display: grid;
  gap: 1px;
  margin: 0;
  background: rgba(23, 59, 51, 0.18);
}

.ez-privacy dl div {
  display: grid;
  grid-template-columns: 0.46fr 1fr;
  gap: 1rem;
  padding: 1rem 0;
  background: var(--ez-blue);
}

.ez-privacy dt {
  color: var(--ez-ink);
  font-weight: 800;
}

.ez-privacy dd {
  margin: 0;
  color: var(--ez-muted);
  line-height: 1.55;
}

.ez-answers {
  padding: 6rem 0;
  background: var(--ez-cream);
}

.ez-answer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr);
  gap: 3rem;
}

.ez-answer-grid details {
  border-top: 1px solid rgba(23, 59, 51, 0.22);
  padding: 1rem 0;
}

.ez-answer-grid details:last-child {
  border-bottom: 1px solid rgba(23, 59, 51, 0.22);
}

.ez-answer-grid summary {
  cursor: pointer;
  font-weight: 800;
}

.ez-answer-grid p {
  max-width: 62ch;
  color: var(--ez-muted);
  line-height: 1.6;
}

.ez-join {
  padding: 6rem 0;
  background: var(--ez-paper);
}

.ez-join-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 0.7fr);
  gap: 3rem;
  align-items: start;
}

.ez-form {
  display: grid;
  gap: 0.8rem;
  border: 1px solid var(--ez-ink);
  border-radius: 8px;
  padding: 1rem;
  background: #fffdf7;
  box-shadow: 12px 12px 0 rgba(203, 111, 90, 0.14);
}

.ez-form label {
  color: var(--ez-muted);
  font-weight: 800;
}

.ez-form input {
  min-width: 0;
  border: 1px solid rgba(23, 59, 51, 0.22);
  border-radius: 5px;
  padding: 0.9rem 1rem;
  background: #fffdf8;
  color: var(--ez-ink);
  transition:
    border-color 0.22s var(--ez-ease),
    box-shadow 0.22s var(--ez-ease);
}

.ez-form input:focus-visible {
  border-color: var(--ez-green);
  box-shadow: 0 0 0 4px rgba(46, 143, 104, 0.14);
}

.ez-error {
  min-height: 1.4rem;
  margin: 0.1rem 0;
  color: #9c473b;
  font-weight: 800;
}

.ez-footer {
  border-top: 1px solid var(--ez-line);
  padding: 1.4rem 0 2rem;
  background: var(--ez-ink);
  color: var(--ez-paper);
}

.ez-footer .ez-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
}

.ez-footer p {
  margin: 0;
  color: #dbe7df;
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .ez-nav {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .ez-menu {
    display: inline-grid;
    place-items: center;
  }

  .ez-links {
    position: absolute;
    top: calc(100% + 1px);
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    border: 1px solid var(--ez-line);
    border-radius: 8px;
    padding: 1rem;
    background: var(--ez-paper);
  }

  .ez-links.is-open {
    display: flex;
  }

  .ez-hero-grid,
  .ez-worksheet-grid,
  .ez-fit-grid,
  .ez-privacy-grid,
  .ez-answer-grid,
  .ez-join-grid {
    grid-template-columns: 1fr;
  }

  .ez-notebook {
    max-width: 680px;
  }
}

@media (max-width: 720px) {
  .ez-wrap {
    width: min(100% - 28px, 1160px);
  }

  .ez-hero,
  .ez-worksheet,
  .ez-fit,
  .ez-privacy,
  .ez-answers,
  .ez-join {
    padding: 4rem 0;
  }

  .ez-copy h1 {
    font-size: 3.15rem;
  }

  .ez-worksheet h2,
  .ez-fit h2,
  .ez-privacy h2,
  .ez-answer-grid h2,
  .ez-join h2 {
    font-size: 2.35rem;
  }

  .ez-workbench,
  .ez-fit-lines article,
  .ez-privacy dl div,
  .ez-footer .ez-wrap {
    grid-template-columns: 1fr;
  }

  .ez-transcript p:nth-child(even) {
    margin-left: 0;
  }

  .ez-notebook img,
  .ez-form {
    box-shadow: none;
  }

  .ez-footer .ez-wrap {
    display: grid;
  }
}

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