:root {
  color-scheme: light;
  --paper: #f7f4ec;
  --paper-deep: #ede8dc;
  --journal-paper: #f7f4ec;
  --ink: #202733;
  --muted: #5c6470;
  --line: #d8d1c3;
  --accent: #2864dc;
  --accent-soft: #e8eefc;
  --reader-scale: 1;
  --safe-inline: max(1.2rem, env(safe-area-inset-left), env(safe-area-inset-right));
  --page-gutter: max(2.4rem, calc(var(--safe-inline) + var(--safe-inline)));
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
  font-weight: 400;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.25rem;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
}

button,
input,
select,
textarea {
  font: inherit;
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.2em;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 200;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

strong,
b {
  font-weight: 400;
}

h1 {
  max-width: 15ch;
  margin-bottom: 1.25rem;
  font-size: clamp(3rem, 4.35vw, 4.25rem);
}

h2 {
  max-width: 18ch;
  margin-bottom: 1.5rem;
  font-size: clamp(2.35rem, 3vw, 3.1rem);
}

[hidden] {
  display: none !important;
}

.metrika-noscript {
  position: absolute;
  left: -9999px;
}

.skip-link {
  position: fixed;
  z-index: 110;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}

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

.reading-progress {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  display: block;
  width: 100%;
  height: 2px;
  border: 0;
  appearance: none;
  color: var(--accent);
  background: transparent;
  pointer-events: none;
}

.reading-progress::-webkit-progress-bar {
  background: transparent;
}

.reading-progress::-webkit-progress-value {
  background: var(--accent);
}

.reading-progress::-moz-progress-bar {
  background: var(--accent);
}

.site-header {
  padding-block: clamp(1.25rem, 3vw, 3rem);
  padding-inline: max(var(--safe-inline), clamp(1.2rem, 4.8vw, 5.4rem));
}

.site-header-inner {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 3rem);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.8rem, 1.7vw, 1.5rem);
  text-decoration: none;
}

.brand-lockup img {
  width: clamp(5.4rem, 9.6vw, 8.4rem);
  height: clamp(5.4rem, 9.6vw, 8.4rem);
  flex: 0 0 auto;
  border-radius: 22%;
  object-fit: contain;
  filter: drop-shadow(0 0.75rem 1.5rem color-mix(in srgb, var(--accent) 12%, transparent));
}

.brand-lockup span {
  font-weight: 200;
  font-size: clamp(2.15rem, 4.2vw, 4.6rem);
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.header-journal-link {
  display: inline-flex;
  min-height: 3.15rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0.72rem 1.05rem;
  border: 1px solid color-mix(in srgb, white 68%, #e5bd40);
  border-radius: 1.05rem;
  background:
    linear-gradient(110deg, transparent 38%, color-mix(in srgb, white 56%, transparent) 48%, transparent 58%),
    radial-gradient(circle at 18% 0%, color-mix(in srgb, white 76%, transparent), transparent 44%),
    linear-gradient(135deg, #fff5bd, #f4d970);
  background-position: 160% 0, 0 0, 0 0;
  background-repeat: no-repeat;
  background-size: 240% 100%, auto, auto;
  box-shadow: 0 0.7rem 1.8rem color-mix(in srgb, #c89c20 18%, transparent), inset 0 1px 0 color-mix(in srgb, white 84%, transparent), inset 0 -1px 0 color-mix(in srgb, #b2871b 16%, transparent);
  backdrop-filter: blur(16px) saturate(145%);
  color: #171717;
  font-size: 1rem;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  animation: header-journal-sheen 7s ease-in-out infinite;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.header-journal-link:hover {
  box-shadow: 0 0.9rem 2.2rem color-mix(in srgb, #c89c20 25%, transparent), inset 0 1px 0 white, inset 0 -1px 0 color-mix(in srgb, #b2871b 18%, transparent);
  filter: saturate(108%);
  transform: translateY(-2px);
}

@keyframes header-journal-sheen {
  0%, 68% {
    background-position: 160% 0, 0 0, 0 0;
  }

  86%, 100% {
    background-position: -60% 0, 0 0, 0 0;
  }
}

.wordmark {
  width: max-content;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.hero,
.tasks,
.pricing,
.faq {
  width: min(calc(100% - var(--page-gutter)), 87rem);
  margin-inline: auto;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-block: clamp(3rem, 6vh, 4.5rem) clamp(4rem, 8vh, 6rem);
  border-radius: clamp(1.5rem, 3vw, 3rem);
  background:
    radial-gradient(circle at 50% 22%, color-mix(in srgb, var(--accent-soft) 84%, transparent), transparent 54%),
    color-mix(in srgb, white 22%, transparent);
  text-align: center;
}

.hero-copy {
  width: min(100%, 74rem);
}

.hero h1 {
  max-width: 24ch;
  margin-inline: auto;
  font-weight: 200;
  font-size: clamp(4rem, 5.6vw, 6.25rem);
  line-height: 0.98;
}

.hero h1 span {
  color: var(--accent);
}

.hero-lede {
  width: min(100%, 52rem);
  margin: 1.5rem auto 0;
  color: var(--muted);
  font-size: clamp(1.125rem, 1.6vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  justify-content: center;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 1.25rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: white;
  text-decoration: none;
}

.price-line {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.tasks,
.pricing,
.faq {
  padding-block: clamp(3.75rem, 5vw, 4.75rem);
  border-top: 1px solid var(--line);
}

.tasks {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 2.5vw, 2.5rem);
}

.tasks-heading {
  display: block;
  max-width: 64rem;
}

.tasks-heading h2 {
  max-width: 23ch;
  margin-bottom: 0;
}

.tasks-heading p {
  max-width: 68ch;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.125rem;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.category-tab,
.case-option,
.accordion-trigger,
.text-size button {
  min-height: 2.75rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.category-tab {
  padding: 0.58rem 0.8rem;
  border-radius: 999px;
  font-size: 1rem;
}

.category-tab[aria-selected="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.case-list {
  display: grid;
  gap: 0.45rem;
}

.case-option {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 3.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: color-mix(in srgb, white 22%, transparent);
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.case-option[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  background: var(--accent-soft);
  box-shadow: inset 3px 0 0 var(--accent);
}

.case-option:hover {
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
  transform: translateX(2px);
}

.mobile-case-picker {
  display: none;
}

.case-detail {
  align-self: stretch;
  padding: clamp(1.25rem, 2vw, 1.7rem);
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: color-mix(in srgb, white 38%, transparent);
}

.case-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.case-detail-label,
.case-difficulty,
.case-detail dt {
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.case-detail h3 {
  max-width: 17ch;
  margin: 0;
  font-size: clamp(1.7rem, 2.5vw, 2.35rem);
}

.case-difficulty {
  flex: 0 0 auto;
  padding-top: 0.15rem;
}

.case-summary {
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.case-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.case-detail dl {
  margin: 0;
}

.case-detail dl div {
  padding-block: 0.55rem;
  border-top: 1px solid var(--line);
}

.case-detail dd {
  margin: 0.3rem 0 0;
  font-size: 1rem;
  line-height: 1.42;
}

.case-detail ul {
  margin: 0.45rem 0 0;
  padding-left: 1.1rem;
  font-size: 1rem;
  line-height: 1.35;
}

.maker-literacy {
  display: block;
  margin-top: 0;
  padding: clamp(1.5rem, 3vw, 2.5rem) 1rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.maker-literacy > div {
  width: min(100%, 48rem);
  margin-inline: auto;
}

.maker-literacy h3 {
  max-width: 30ch;
  margin: 0 auto 0.65rem;
  font-size: clamp(1.6rem, 2vw, 2rem);
}

.maker-literacy p {
  max-width: 58ch;
  margin-inline: auto;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.contact-entry {
  position: relative;
  display: block;
  scroll-margin-top: 5.25rem;
  width: min(100%, 64rem);
  margin: 0 auto;
  padding: clamp(1.2rem, 2.2vw, 2rem);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, white 72%, var(--accent));
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 35%),
    linear-gradient(135deg, color-mix(in srgb, white 74%, transparent), color-mix(in srgb, var(--accent-soft) 74%, transparent));
  box-shadow: 0 1.25rem 4rem color-mix(in srgb, var(--accent) 13%, transparent), inset 0 1px 0 color-mix(in srgb, white 88%, transparent);
  backdrop-filter: blur(24px) saturate(140%);
}

.contact-entry::after {
  position: absolute;
  width: 13rem;
  height: 13rem;
  right: -5rem;
  bottom: -7rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  filter: blur(8px);
  content: "";
  pointer-events: none;
}

.contact-entry-copy {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 50rem);
  flex-direction: column;
  align-items: center;
  margin-inline: auto;
  margin-bottom: clamp(1.1rem, 2vw, 1.5rem);
  text-align: center;
}

.contact-entry h3 {
  max-width: 28ch;
  margin: 0 auto 0.6rem;
  font-size: clamp(1.65rem, 2.2vw, 2.25rem);
}

.contact-entry-copy > p {
  max-width: 52ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1rem;
}

.telegram-button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem;
  border: 1px solid color-mix(in srgb, white 76%, var(--accent));
  border-radius: 999px;
  background: color-mix(in srgb, white 66%, transparent);
  box-shadow: 0 0.6rem 1.8rem color-mix(in srgb, var(--accent) 12%, transparent), inset 0 1px 0 white;
  color: var(--accent);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  margin-top: 1rem;
}

.telegram-button:hover {
  background: color-mix(in srgb, white 86%, transparent);
  box-shadow: 0 0.8rem 2rem color-mix(in srgb, var(--accent) 18%, transparent), inset 0 1px 0 white;
  transform: translateY(-1px);
}

.lead-form {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 54rem);
  margin-inline: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem 0.8rem;
}

.contact-method,
.form-field-wide,
.form-submit,
.form-note {
  grid-column: 1 / -1;
}

.contact-method {
  display: grid;
  grid-template-columns: repeat(3, minmax(8rem, 9.25rem));
  gap: 0.6rem;
  justify-content: center;
  margin: 0;
}

.contact-method > p {
  grid-column: 1 / -1;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  text-align: center;
}

.contact-channel {
  position: relative;
  cursor: pointer;
}

.contact-method input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.channel-pill {
  position: relative;
  display: flex;
  min-height: 3.15rem;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  padding: 0.55rem 0.72rem;
  border: 1px solid color-mix(in srgb, var(--channel-color) 66%, white);
  border-radius: 1rem;
  background: linear-gradient(145deg, color-mix(in srgb, white 86%, var(--channel-color)), color-mix(in srgb, white 94%, var(--channel-color)));
  box-shadow: 0 0.35rem 1rem color-mix(in srgb, var(--channel-color) 10%, transparent), inset 0 1px 0 white;
  color: var(--channel-active);
  opacity: 0.86;
  transition: transform 160ms ease, box-shadow 160ms ease, color 160ms ease, background 160ms ease, opacity 160ms ease;
}

.channel-pill::after {
  position: absolute;
  top: 0.3rem;
  right: 0.38rem;
  display: grid;
  width: 1.15rem;
  height: 1.15rem;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, white 88%, transparent);
  color: var(--channel-active);
  content: "✓";
  font-size: 1rem;
  line-height: 1;
  opacity: 0;
  transform: scale(0.65);
  transition: opacity 160ms ease, transform 160ms ease;
}

.channel-icon {
  width: 1.8rem;
  height: 1.8rem;
  flex: 0 0 auto;
  padding: 0.32rem;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 0.62rem;
  background: color-mix(in srgb, white 58%, transparent);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.channel-telegram {
  --channel-color: #229ed9;
  --channel-active: #087cad;
}

.channel-whatsapp {
  --channel-color: #25d366;
  --channel-active: #128c7e;
}

.channel-sms {
  --channel-color: #ff9f0a;
  --channel-active: #a85d00;
}

.contact-method input:checked + .channel-pill {
  border-color: var(--channel-color);
  background: var(--channel-active);
  background: linear-gradient(135deg, color-mix(in srgb, var(--channel-color) 76%, #10213f), var(--channel-active));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--channel-color) 24%, white), 0 0.7rem 1.5rem color-mix(in srgb, var(--channel-active) 24%, transparent), inset 0 1px 0 color-mix(in srgb, white 38%, transparent);
  color: white;
  opacity: 1;
  transform: translateY(-2px);
}

.contact-method input:checked + .channel-pill::after {
  opacity: 1;
  transform: scale(1);
}

.contact-method input:checked + .channel-pill .channel-icon {
  border-color: color-mix(in srgb, white 32%, transparent);
  background: color-mix(in srgb, white 16%, transparent);
}

.contact-method input:focus-visible + .channel-pill {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.form-field > span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 1rem;
}

.form-field small {
  font-size: inherit;
}

.form-field input,
.form-field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid color-mix(in srgb, white 68%, var(--line));
  border-radius: 0.9rem;
  outline: none;
  background: color-mix(in srgb, white 72%, transparent);
  box-shadow: inset 0 1px 0 white, 0 0.35rem 1rem color-mix(in srgb, var(--ink) 5%, transparent);
  color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.form-field textarea {
  min-height: 4.35rem;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: color-mix(in srgb, var(--accent) 70%, white);
  background: color-mix(in srgb, white 90%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent), inset 0 1px 0 white;
}

.form-field input[aria-invalid="true"] {
  border-color: #a02d2d;
  box-shadow: 0 0 0 3px color-mix(in srgb, #a02d2d 14%, transparent), inset 0 1px 0 white;
}

.form-field > .field-error {
  margin: 0.35rem 0 0;
  color: #a02d2d;
  line-height: 1.35;
}

.form-submit {
  position: relative;
  width: clamp(14rem, 22vw, 18rem);
  min-height: 3.4rem;
  justify-self: center;
  overflow: hidden;
  border-color: color-mix(in srgb, white 64%, var(--accent));
  border-radius: 1.1rem;
  background:
    linear-gradient(110deg, transparent 38%, color-mix(in srgb, white 42%, transparent) 48%, transparent 58%),
    radial-gradient(circle at 18% 0%, color-mix(in srgb, white 38%, transparent), transparent 42%),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 82%, #78a7ff), color-mix(in srgb, var(--accent) 88%, #10213f));
  background-position: 160% 0, 0 0, 0 0;
  background-repeat: no-repeat;
  background-size: 240% 100%, auto, auto;
  box-shadow: 0 0.9rem 2.1rem color-mix(in srgb, var(--accent) 24%, transparent), inset 0 1px 0 color-mix(in srgb, white 48%, transparent), inset 0 -1px 0 color-mix(in srgb, #10213f 24%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  isolation: isolate;
  animation: liquid-sheen 5.5s ease-in-out infinite;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.form-submit:hover {
  box-shadow: 0 1rem 2.5rem color-mix(in srgb, var(--accent) 32%, transparent), inset 0 1px 0 color-mix(in srgb, white 58%, transparent), inset 0 -1px 0 color-mix(in srgb, #10213f 24%, transparent);
  filter: saturate(112%);
  transform: translateY(-2px);
}

@keyframes liquid-sheen {
  0%, 62% {
    background-position: 160% 0, 0 0, 0 0;
  }

  82%, 100% {
    background-position: -60% 0, 0 0, 0 0;
  }
}

.form-submit:disabled {
  cursor: default;
  opacity: 0.72;
}

.form-note {
  min-height: 1.2rem;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.form-note[data-state="error"] {
  color: #a02d2d;
}

.form-note[data-state="success"] {
  color: #12623f;
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.journal {
  padding-block: clamp(3rem, 6vw, 5rem);
  background: var(--journal-paper);
}

.journal-intro,
.mobile-month-picker {
  width: min(64ch, calc(100% - var(--page-gutter)));
  margin-inline: auto;
}

.journal-intro h2 {
  max-width: none;
}

.journal-layout {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) minmax(0, 64ch) minmax(8rem, 1fr);
  gap: 2.5rem;
  width: min(calc(100% - var(--page-gutter)), 87rem);
  margin-inline: auto;
}

.journal-rail {
  grid-column: 1;
}

.journal-rail nav {
  position: sticky;
  top: 5.5rem;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 5rem;
}

.journal-rail a {
  color: var(--muted);
  font-size: 1rem;
  text-decoration: none;
}

.journal-rail a[data-year-link] {
  margin-top: 0.65rem;
  color: var(--ink);
}

.journal-rail a[aria-current="true"] {
  color: var(--accent);
}

.journal-content {
  grid-column: 2;
  min-width: 0;
}

.mobile-month-picker {
  display: none;
}

.journal-year {
  scroll-margin-top: 5.5rem;
}

.year-heading {
  padding-top: 2rem;
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: 0.12em;
}

.journal-month {
  scroll-margin-top: 5.5rem;
  padding-top: 1.75rem;
}

.month-header {
  display: flex;
  align-items: baseline;
  margin-bottom: 1.25rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--ink);
}

.month-header h4 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5.2rem);
  text-transform: capitalize;
}

.diary-entry {
  scroll-margin-top: 6rem;
  padding-bottom: clamp(1rem, 1.5vw, 1.25rem);
}

.diary-entry + .diary-entry {
  padding-top: clamp(1rem, 1.5vw, 1.25rem);
  border-top: 1px solid var(--line);
}

.entry-meta {
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 300;
  line-height: 1.25;
}

.entry-body {
  font-size: calc(clamp(1.1875rem, 1.4vw, 1.3125rem) * var(--reader-scale));
  font-weight: 400;
  font-kerning: normal;
  font-optical-sizing: auto;
  line-height: 1.68;
  letter-spacing: 0.002em;
  text-align: left;
  text-wrap: pretty;
  hyphens: auto;
  overflow-wrap: anywhere;
}

.entry-body p {
  margin: 0;
}

.entry-body p + p {
  margin-top: 0.5em;
}

.entry-body a {
  color: var(--accent);
  overflow-wrap: anywhere;
}

.pricing > p,
.faq details {
  max-width: 64ch;
  font-size: 1.05rem;
  line-height: 1.6;
}

.price-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-block: 2.5rem;
}

.price-steps article {
  padding: clamp(1.4rem, 3vw, 2.6rem);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: color-mix(in srgb, white 30%, transparent);
}

.price-steps article > p:first-child {
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.price-steps h3 {
  min-height: 2.15em;
  font-size: clamp(2rem, 3.5vw, 3.35rem);
}

.pricing .button {
  margin-top: 1rem;
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  min-height: 3.5rem;
  padding-block: 1.15rem;
  cursor: pointer;
}

.faq details p {
  padding-bottom: 1.2rem;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  padding-block: 2rem;
  padding-inline: max(var(--safe-inline), clamp(1.2rem, 3.6vw, 3.6rem));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 1rem;
}

.site-footer nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  justify-self: end;
}

.agent-page {
  width: min(calc(100% - var(--page-gutter)), 64rem);
  margin-inline: auto;
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.agent-intro {
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.agent-intro h1 {
  max-width: 14ch;
  font-size: clamp(3rem, 6vw, 5.5rem);
}

.agent-intro p {
  max-width: 48ch;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
}

.agent-page section {
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}

.agent-page section h2 {
  max-width: 18ch;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.agent-page section p,
.agent-page section li {
  max-width: 64ch;
  font-size: 1.05rem;
  line-height: 1.65;
}

.agent-page section ul {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0;
  padding-left: 1.2rem;
}

.inline-code {
  padding: 0.1rem 0.3rem;
  border-radius: 0.35rem;
  background: var(--paper-deep);
}

.agent-resources {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.agent-resources a {
  display: flex;
  min-height: 7.5rem;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: color-mix(in srgb, white 30%, transparent);
  text-decoration: none;
}

.agent-resources a span {
  color: var(--accent);
  font-size: 1.15rem;
}

.agent-resources small {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 1020px) {
  .journal-layout {
    grid-template-columns: 9rem minmax(0, 64ch);
    justify-content: center;
  }
}

@media (min-width: 801px) {
  .tasks {
    padding-block: 1.75rem;
  }

  .case-detail ul {
    font-size: 1rem;
  }

  .desktop-case-picker .case-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-detail-grid ul {
    columns: 2;
    column-gap: 1.25rem;
  }

  .case-detail-grid li {
    break-inside: avoid;
  }
}

@media (max-width: 800px) {
  html {
    scroll-padding-top: 4.8rem;
  }

  .hero {
    min-height: auto;
    padding-block: 3rem 4rem;
  }

  .hero h1 {
    max-width: 22ch;
    font-size: clamp(2.75rem, 7vw, 3.5rem);
  }

  .tasks {
    display: block;
  }

  .tasks > * + * {
    margin-top: 1.5rem;
  }

  .section-heading h2 {
    max-width: 17ch;
  }

  .desktop-case-picker {
    display: none;
  }

  .mobile-case-picker {
    display: block;
    border-top: 1px solid var(--line);
  }

  .accordion-item {
    border-bottom: 1px solid var(--line);
  }

  .accordion-trigger {
    display: flex;
    width: 100%;
    min-height: 3.4rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border: 0;
    text-align: left;
  }

  .accordion-trigger::after {
    content: "+";
    color: var(--muted);
    font-size: 1.25rem;
  }

  .accordion-trigger[aria-expanded="true"]::after {
    content: "−";
  }

  .accordion-panel {
    padding-bottom: 1rem;
  }

  .case-detail {
    margin-top: 1.25rem;
  }

  .contact-entry {
    display: block;
    margin: 0 auto;
  }

  .telegram-button {
    margin-top: 1rem;
  }

  .journal-rail {
    display: none;
  }

  .journal-layout {
    display: block;
    width: min(calc(100% - var(--page-gutter)), 64ch);
  }

  .mobile-month-picker {
    display: block;
    margin-top: 1rem;
    border-bottom: 1px solid var(--line);
  }

  .mobile-month-picker summary {
    min-height: 3rem;
    padding-block: 0.7rem;
    cursor: pointer;
  }

  .mobile-month-picker nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.2rem;
    padding-bottom: 0.8rem;
  }

  .mobile-month-picker a {
    min-height: 2.75rem;
    padding: 0.65rem;
    color: var(--muted);
    text-decoration: none;
  }

  .price-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  h1 {
    max-width: 13ch;
    font-size: clamp(2.3rem, 10vw, 2.7rem);
  }

  h2 {
    font-size: clamp(2.2rem, 10.5vw, 3.1rem);
  }

  .site-header {
    padding-block: 1rem;
  }

  .site-header-inner {
    display: grid;
    gap: 0.8rem;
    justify-items: start;
  }

  .brand-lockup {
    gap: 0.65rem;
  }

  .brand-lockup img {
    width: 4.8rem;
    height: 4.8rem;
  }

  .brand-lockup span {
    max-width: none;
    font-size: clamp(1.45rem, 6.5vw, 1.9rem);
    white-space: nowrap;
  }

  .header-journal-link {
    min-height: 3rem;
    margin-left: 5.45rem;
    padding-inline: 0.9rem;
  }

  .hero h1 {
    max-width: 17ch;
    font-size: 2.2rem;
    line-height: 1.02;
  }

  .hero-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .hero .price-line {
    margin-top: 0.5rem;
  }

  .button {
    width: min(20rem, calc(100% - 2rem));
    align-self: center;
  }

  .wordmark,
  .site-footer a {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
  }

  .case-detail-grid {
    grid-template-columns: 1fr;
  }

  .lead-form {
    grid-template-columns: 1fr;
  }

  .lead-form > * {
    grid-column: 1;
  }

  .lead-form > .form-submit {
    width: min(17rem, calc(100% - 2rem));
    justify-self: center;
  }

  .contact-method {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .channel-pill {
    min-height: 4rem;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.4rem 0.25rem;
  }

  .channel-icon {
    width: 1.85rem;
    height: 1.85rem;
  }

  .case-detail-header {
    display: block;
  }

  .case-difficulty {
    display: inline-block;
    margin-top: 0.8rem;
  }

  .entry-body {
    font-size: calc(1.1875rem * var(--reader-scale));
    line-height: 1.68;
  }

  .site-footer {
    display: flex;
    align-items: flex-start;
  }

  .site-footer nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
    justify-self: auto;
  }

  .agent-resources {
    grid-template-columns: 1fr;
  }
}

@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;
  }
}
