:root {
  color-scheme: light;
  --paper: #f4f4f0;
  --paper-bright: #ffffff;
  --ink: #090909;
  --ink-soft: #202022;
  --muted: #68686d;
  --line: #d5d5d0;
  --line-dark: #3b3b3e;
  --green: #247653;
  --green-soft: #d8eade;
  --coral: #bd503d;
  --coral-soft: #f0d9d3;
  --gold: #b58a24;
  --page-gutter: 28px;
  --content-width: 1320px;
  --header-height: 72px;
  --shadow-phone: 0 24px 65px rgba(0, 0, 0, 0.2);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
  letter-spacing: 0;
}

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

h1,
h2,
h3,
p,
dl,
dd,
figure {
  margin: 0;
}

h1,
h2,
h3,
strong {
  letter-spacing: 0;
}

p {
  line-height: 1.55;
}

::selection {
  background: var(--ink);
  color: var(--paper-bright);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-150%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  height: var(--header-height);
  padding: 0 var(--page-gutter);
  background: rgba(244, 244, 240, 0.96);
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.98);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  font-size: 18px;
  font-weight: 750;
}

.site-brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.site-navigation {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-self: center;
}

.site-navigation a {
  position: relative;
  padding: 10px 0;
  color: #48484c;
  font-size: 14px;
  font-weight: 650;
}

.site-navigation a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.site-navigation a:hover,
.site-navigation a:focus-visible,
.site-navigation a.is-active {
  color: var(--ink);
}

.site-navigation a:hover::after,
.site-navigation a:focus-visible::after,
.site-navigation a.is-active::after {
  transform: scaleX(1);
}

.release-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-self: end;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-bright);
  font-size: 13px;
  font-weight: 700;
  transition: border-color 160ms ease, transform 160ms ease;
}

.release-link:hover,
.release-link:focus-visible {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(181, 138, 36, 0.15);
}

.menu-button {
  display: none;
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  width: 100%;
  height: min(900px, calc(100svh - 94px));
  min-height: 690px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background: var(--paper);
}

.hero-copy {
  position: relative;
  z-index: 5;
  width: min(700px, 52%);
  margin-left: max(var(--page-gutter), calc((100vw - var(--content-width)) / 2));
  padding-bottom: 46px;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow-inverse {
  color: #79c59f;
}

.hero h1 {
  max-width: 680px;
  font-size: 116px;
  font-weight: 800;
  line-height: 0.84;
}

.hero-line {
  max-width: 650px;
  margin-top: 32px;
  font-size: 29px;
  font-weight: 680;
  line-height: 1.15;
}

.hero-detail {
  max-width: 580px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 750;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

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

.button-dark {
  background: var(--ink);
  color: #fff;
}

.button-dark:hover,
.button-dark:focus-visible {
  background: #29292c;
}

.button-light {
  border-color: var(--line);
  background: var(--paper-bright);
}

.button-light:hover,
.button-light:focus-visible {
  border-color: var(--ink);
}

.button-white {
  background: #fff;
  color: var(--ink);
}

.button-outline {
  border-color: #5a5a5d;
  color: #fff;
}

.button-outline:hover,
.button-outline:focus-visible {
  border-color: #fff;
}

.hero-facts {
  display: flex;
  gap: 0;
  width: fit-content;
  margin-top: 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-facts div {
  display: grid;
  gap: 3px;
  min-width: 118px;
  padding: 13px 18px 13px 0;
}

.hero-facts div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.hero-facts dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.hero-facts dd {
  font-size: 14px;
  font-weight: 760;
}

.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.phone-shot {
  position: absolute;
  overflow: hidden;
  margin: 0;
  border: 8px solid #111;
  border-radius: 42px;
  background: #000;
  box-shadow: var(--shadow-phone);
  transform: translate3d(0, var(--phone-shift, 0), 0) rotate(var(--phone-rotate, 0));
  transition: transform 150ms linear;
}

.phone-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 33px;
  pointer-events: none;
}

.phone-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-shot-home {
  right: max(62px, calc((100vw - var(--content-width)) / 2 + 35px));
  top: 67px;
  z-index: 3;
  width: 316px;
  aspect-ratio: 1290 / 2796;
  --phone-rotate: 2deg;
}

.phone-shot-calculator {
  right: max(330px, calc((100vw - var(--content-width)) / 2 + 300px));
  top: 165px;
  z-index: 2;
  width: 270px;
  aspect-ratio: 1290 / 2796;
  opacity: 0.76;
  --phone-rotate: -5deg;
}

.phone-shot-pepai {
  right: max(-112px, calc((100vw - var(--content-width)) / 2 - 128px));
  top: 206px;
  z-index: 1;
  width: 268px;
  aspect-ratio: 1290 / 2796;
  opacity: 0.6;
  --phone-rotate: 6deg;
}

.hero-stage-label {
  position: absolute;
  right: 24px;
  bottom: 22px;
  color: #828287;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 10px;
  font-weight: 700;
  writing-mode: vertical-rl;
}

.next-section {
  position: absolute;
  bottom: 18px;
  left: 50%;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  transform: translateX(-50%);
}

.next-section span {
  color: var(--ink);
  font-size: 18px;
}

.section-band {
  width: 100%;
  padding: 120px max(var(--page-gutter), calc((100vw - var(--content-width)) / 2));
}

.section-intro {
  max-width: 760px;
}

.section-intro-wide {
  max-width: 1000px;
}

.section-intro h2,
.pepai-copy h2,
.release-copy h2 {
  font-size: 62px;
  line-height: 0.98;
  font-weight: 790;
}

.section-intro > p:not(.eyebrow),
.pepai-copy > p:not(.eyebrow),
.release-copy > p:not(.eyebrow) {
  max-width: 700px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 18px;
}

.calculator-band {
  background: var(--paper-bright);
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(340px, 5fr);
  gap: 70px;
  align-items: start;
  margin-top: 64px;
}

.web-calculator {
  width: 100%;
  padding: 28px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: #f7f7f4;
}

.tool-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.tool-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--coral);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.tool-heading h3 {
  font-size: 26px;
}

.tool-status {
  flex: 0 0 auto;
  padding: 7px 9px;
  border: 1px solid #99b9a8;
  border-radius: 4px;
  color: var(--green);
  font-size: 11px;
  font-weight: 750;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.field {
  display: grid;
  gap: 9px;
}

.field > span:first-child,
.target-fieldset legend {
  font-size: 12px;
  font-weight: 760;
}

.field small {
  color: var(--muted);
  font-size: 11px;
}

.input-with-unit {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 54px;
  border: 1px solid var(--line);
  background: #fff;
}

.input-with-unit:focus-within {
  border-color: var(--ink);
  outline: 2px solid rgba(9, 9, 9, 0.08);
}

.input-with-unit input,
.target-row > input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 23px;
  font-weight: 740;
}

.input-with-unit input {
  height: 52px;
  padding: 0 14px;
}

.input-with-unit b {
  padding: 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.target-fieldset {
  margin: 22px 0 0;
  padding: 0;
  border: 0;
}

.target-fieldset legend {
  margin-bottom: 9px;
}

.target-row {
  display: grid;
  grid-template-columns: 1fr 178px;
  gap: 10px;
}

.target-row > input {
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.target-row > input:focus {
  border-color: var(--ink);
  outline: 2px solid rgba(9, 9, 9, 0.08);
}

.unit-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 54px;
  padding: 4px;
  border: 1px solid var(--line);
  background: #fff;
}

.unit-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 760;
}

.unit-switch button.is-active {
  background: var(--ink);
  color: #fff;
}

.calculator-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.calculator-results > div {
  display: grid;
  gap: 8px;
  min-height: 98px;
  padding: 18px;
  background: #fff;
}

.calculator-results span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.calculator-results strong {
  align-self: end;
  font-size: 21px;
}

.calculator-results .result-primary {
  background: var(--ink);
  color: #fff;
}

.calculator-results .result-primary span {
  color: #a7a7aa;
}

.tool-note {
  margin-top: 17px;
  color: var(--muted);
  font-size: 11px;
}

.tool-note.is-error {
  color: var(--coral);
}

.calculator-proof {
  position: relative;
  min-height: 720px;
}

.phone-shot-single {
  position: relative;
  inset: auto;
  width: 310px;
  aspect-ratio: 1290 / 2796;
  margin: 0 auto;
  transform: none;
}

.proof-caption {
  position: absolute;
  right: 0;
  bottom: 60px;
  width: 240px;
  padding: 16px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--paper-bright);
}

.proof-caption span {
  font-size: 12px;
  font-weight: 780;
}

.proof-caption p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.pepai-band {
  padding-top: 110px;
  padding-bottom: 110px;
  background: var(--ink);
  color: #fff;
}

.pepai-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(360px, 5fr);
  gap: 80px;
  align-items: center;
}

.pepai-copy > p:not(.eyebrow) {
  color: #aaaab0;
}

.evidence-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
}

.evidence-selector button {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  background: transparent;
  color: #aaaab0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 720;
}

.evidence-selector button:hover,
.evidence-selector button:focus-visible,
.evidence-selector button.is-active {
  border-color: #fff;
  color: #fff;
}

.evidence-selector button.is-active {
  background: #fff;
  color: var(--ink);
}

.evidence-detail {
  min-height: 210px;
  margin-top: 14px;
  padding: 22px;
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  background: #151517;
}

.evidence-marker {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 8px;
  border-radius: 3px;
  background: var(--green-soft);
  color: #174c36;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.evidence-marker-trial,
.evidence-marker-registered {
  background: #e7dfc7;
  color: #6d5112;
}

.evidence-marker-community {
  background: var(--coral-soft);
  color: #743024;
}

.evidence-detail h3 {
  margin-top: 17px;
  font-size: 24px;
}

.evidence-detail p {
  max-width: 620px;
  margin-top: 10px;
  color: #a7a7ad;
  font-size: 14px;
}

.pepai-proof {
  position: relative;
  min-height: 735px;
}

.phone-shot-ai {
  width: 320px;
  border-color: #2b2b2e;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.source-ticket {
  position: absolute;
  right: -8px;
  bottom: 44px;
  width: 250px;
  padding: 18px;
  border: 1px solid #5b5b60;
  border-radius: 6px;
  background: #f4f4f0;
  color: var(--ink);
}

.source-ticket > span {
  display: block;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--coral);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.source-ticket strong {
  display: block;
  margin-top: 14px;
  font-size: 11px;
}

.source-ticket p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.source-ticket a {
  display: inline-flex;
  margin-top: 17px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 780;
}

.planning-band {
  background: #e8e8e3;
}

.planning-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 60px;
  border-top: 1px solid #bdbdb8;
  border-left: 1px solid #bdbdb8;
}

.feature-card {
  min-height: 300px;
  padding: 24px;
  border-right: 1px solid #bdbdb8;
  border-bottom: 1px solid #bdbdb8;
  background: transparent;
}

.feature-index {
  color: var(--coral);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px;
  font-weight: 750;
}

.feature-card h3 {
  max-width: 220px;
  margin-top: 110px;
  font-size: 23px;
  line-height: 1.05;
}

.feature-card p {
  margin-top: 13px;
  color: var(--muted);
  font-size: 13px;
}

.learn-band {
  background: var(--paper-bright);
}

.learn-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 80px;
  align-items: start;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 760;
}

.article-list {
  border-top: 1px solid var(--ink);
}

.article-row {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 20px;
  align-items: center;
  min-height: 110px;
  border-bottom: 1px solid var(--line);
  transition: background-color 160ms ease, padding 160ms ease;
}

.article-row:hover,
.article-row:focus-visible {
  padding-right: 12px;
  padding-left: 12px;
  background: #f0f0ec;
}

.article-row span,
.article-row small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.article-row strong {
  font-size: 18px;
  line-height: 1.2;
}

.release-band {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(360px, 5fr);
  gap: 100px;
  align-items: start;
  background: #171719;
  color: #fff;
}

.release-copy > p:not(.eyebrow) {
  color: #aaaab0;
}

.release-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #4a4a4e;
}

.release-steps li {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 92px;
  border-bottom: 1px solid #4a4a4e;
  color: #707075;
}

.release-steps li > span {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px;
}

.release-steps div {
  display: grid;
  gap: 5px;
}

.release-steps strong {
  font-size: 15px;
}

.release-steps small {
  font-size: 11px;
}

.release-steps .is-complete,
.release-steps .is-current {
  color: #fff;
}

.release-steps .is-complete > span {
  color: #79c59f;
}

.release-steps .is-current > span {
  color: #e0b854;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
  padding: 46px max(var(--page-gutter), calc((100vw - var(--content-width)) / 2));
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.footer-brand img {
  border-radius: 50%;
}

.footer-brand div {
  display: grid;
  gap: 3px;
}

.footer-brand strong {
  font-size: 15px;
}

.footer-brand span {
  color: var(--muted);
  font-size: 11px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-end;
}

.site-footer nav a {
  font-size: 12px;
  font-weight: 700;
}

.site-footer nav a:hover,
.site-footer nav a:focus-visible {
  text-decoration: underline;
}

.site-footer > p {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

[data-reveal] {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal].reveal-pending {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms ease;
}

[data-reveal].reveal-pending.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Editorial and legal pages */
.page-main {
  min-height: 70svh;
}

.page-hero {
  padding: 110px max(var(--page-gutter), calc((100vw - var(--content-width)) / 2)) 72px;
  border-bottom: 1px solid var(--line);
}

.page-hero.compact {
  padding-top: 84px;
  padding-bottom: 54px;
}

.page-hero h1 {
  max-width: 1040px;
  font-size: 76px;
  font-weight: 800;
  line-height: 0.95;
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 18px;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.journal-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px max(var(--page-gutter), calc((100vw - var(--content-width)) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--paper-bright);
}

.journal-search {
  display: grid;
  grid-template-columns: auto minmax(180px, 420px);
  gap: 12px;
  align-items: center;
}

.journal-search label {
  font-size: 12px;
  font-weight: 760;
}

.journal-search input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  outline: 0;
}

.journal-search input:focus {
  border-color: var(--ink);
}

.journal-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.journal-filters button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 720;
}

.journal-filters button.is-active,
.journal-filters button:hover,
.journal-filters button:focus-visible {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  padding: 72px max(var(--page-gutter), calc((100vw - var(--content-width)) / 2)) 120px;
}

.journal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  grid-column: span 4;
  min-height: 390px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-bright);
  transition: transform 180ms ease, border-color 180ms ease;
}

.journal-card:first-child {
  grid-column: span 8;
  min-height: 500px;
  background: var(--ink);
  color: #fff;
}

.journal-card:nth-child(2) {
  min-height: 500px;
  background: var(--green-soft);
}

.journal-card:hover,
.journal-card:focus-within {
  border-color: var(--ink);
  transform: translateY(-4px);
}

.journal-card.is-hidden {
  display: none;
}

.journal-card-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
  text-transform: uppercase;
}

.journal-card:first-child .journal-card-label {
  color: #a7a7ad;
}

.journal-card h2 {
  max-width: 720px;
  margin-top: auto;
  font-size: 33px;
  line-height: 1.03;
}

.journal-card:first-child h2 {
  font-size: 58px;
}

.journal-card p {
  max-width: 640px;
  margin-top: 15px;
  color: var(--muted);
  font-size: 13px;
}

.journal-card:first-child p {
  color: #b8b8bc;
}

.journal-card a {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.journal-empty {
  display: none;
  grid-column: 1 / -1;
  padding: 60px 0;
  color: var(--muted);
  font-size: 16px;
  text-align: center;
}

.journal-empty.is-visible {
  display: block;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 760px) 240px;
  gap: 86px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 78px var(--page-gutter) 130px;
}

.article-body {
  min-width: 0;
}

.article-body .article-lead {
  margin-bottom: 44px;
  padding: 22px 0 22px 24px;
  border-left: 3px solid var(--coral);
  color: #333338;
  font-size: 20px;
  line-height: 1.5;
}

.article-body h2 {
  margin-top: 52px;
  font-size: 34px;
  line-height: 1.08;
}

.article-body h3 {
  margin-top: 32px;
  font-size: 22px;
}

.article-body p,
.article-body li {
  color: #35353a;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.72;
}

.article-body p {
  margin-top: 20px;
}

.article-body ul,
.article-body ol {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding-left: 25px;
}

.article-body a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-note {
  margin-top: 34px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-bright);
}

.article-note strong {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
}

.article-note p {
  margin-top: 8px;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.55;
}

.article-table {
  width: 100%;
  margin-top: 24px;
  border-collapse: collapse;
  font-size: 14px;
}

.article-table th,
.article-table td {
  padding: 14px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-table th {
  background: #e8e8e3;
  font-size: 11px;
  text-transform: uppercase;
}

.article-aside {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  align-self: start;
  padding-top: 12px;
  border-top: 1px solid var(--ink);
}

.article-aside strong {
  font-size: 11px;
  text-transform: uppercase;
}

.article-aside nav {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.article-aside nav a {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.article-aside nav a:hover,
.article-aside nav a:focus-visible {
  color: var(--ink);
}

.legal-layout,
.support-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 760px);
  gap: 90px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px var(--page-gutter) 130px;
}

.legal-nav {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  align-self: start;
  display: grid;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--ink);
}

.legal-nav a {
  color: var(--muted);
  font-size: 12px;
}

.legal-nav a:hover,
.legal-nav a:focus-visible {
  color: var(--ink);
}

.legal-copy h2,
.support-copy h2 {
  margin-top: 48px;
  font-size: 31px;
}

.legal-copy h2:first-child,
.support-copy h2:first-child {
  margin-top: 0;
}

.legal-copy h3,
.support-copy h3 {
  margin-top: 26px;
  font-size: 18px;
}

.legal-copy p,
.legal-copy li,
.support-copy p,
.support-copy li {
  color: #444449;
  font-size: 15px;
  line-height: 1.65;
}

.legal-copy p,
.support-copy p {
  margin-top: 14px;
}

.legal-copy ul,
.legal-copy ol,
.support-copy ul,
.support-copy ol {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-left: 22px;
}

.legal-copy a,
.support-copy a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.support-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 42px;
}

.support-contact a,
.support-contact div {
  min-height: 130px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-bright);
  text-decoration: none;
}

.support-contact span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 740;
  text-transform: uppercase;
}

.support-contact strong {
  display: block;
  margin-top: 28px;
  font-size: 17px;
}

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

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

.faq-item button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  font-weight: 740;
  text-align: left;
}

.faq-item button span:last-child {
  font-size: 22px;
  font-weight: 400;
  transition: transform 160ms ease;
}

.faq-item button[aria-expanded="true"] span:last-child {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 40px 24px 0;
}

.faq-answer.is-open {
  display: block;
}

.not-found {
  display: grid;
  place-items: center;
  min-height: calc(100svh - var(--header-height));
  padding: 60px var(--page-gutter);
  text-align: center;
}

.not-found h1 {
  font-size: 88px;
}

.not-found p {
  max-width: 520px;
  margin-top: 16px;
  color: var(--muted);
}

.not-found .button {
  margin-top: 26px;
}

@media (max-width: 1180px) {
  :root {
    --page-gutter: 24px;
  }

  .hero-copy {
    width: 57%;
  }

  .hero h1 {
    font-size: 92px;
  }

  .hero-line {
    font-size: 25px;
  }

  .phone-shot-home {
    right: 28px;
    width: 284px;
  }

  .phone-shot-calculator {
    right: 250px;
    width: 240px;
  }

  .phone-shot-pepai {
    display: none;
  }

  .section-intro h2,
  .pepai-copy h2,
  .release-copy h2 {
    font-size: 52px;
  }

  .calculator-layout,
  .pepai-layout {
    gap: 42px;
  }

  .release-band {
    gap: 60px;
  }
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .release-link {
    display: none;
  }

  .menu-button {
    display: grid;
    gap: 6px;
    justify-self: end;
    width: 44px;
    height: 44px;
    padding: 12px 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-button > span:not(.sr-only) {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--ink);
    transition: transform 160ms ease;
  }

  .menu-button[aria-expanded="true"] > span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] > span:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
  }

  .site-navigation {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    align-content: start;
    align-items: stretch;
    gap: 0;
    padding: 30px var(--page-gutter);
    background: var(--paper);
  }

  .site-navigation.is-open {
    display: grid;
  }

  .site-navigation a {
    display: flex;
    align-items: center;
    min-height: 68px;
    border-bottom: 1px solid var(--line);
    font-size: 25px;
  }

  .site-navigation a::after {
    display: none;
  }

  .hero {
    height: auto;
    min-height: 850px;
    align-items: flex-start;
  }

  .hero-copy {
    width: calc(100% - (2 * var(--page-gutter)));
    margin: 0 var(--page-gutter);
    padding-top: 90px;
  }

  .hero h1 {
    font-size: 78px;
  }

  .hero-detail {
    max-width: 500px;
  }

  .phone-shot-home {
    right: 24px;
    top: 390px;
    width: 246px;
    opacity: 0.95;
  }

  .phone-shot-calculator {
    right: 210px;
    top: 470px;
    width: 210px;
    opacity: 0.5;
  }

  .hero-stage-label {
    display: none;
  }

  .calculator-layout,
  .pepai-layout,
  .learn-layout,
  .release-band {
    grid-template-columns: 1fr;
  }

  .calculator-proof,
  .pepai-proof {
    min-height: 700px;
  }

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

  .feature-card {
    min-height: 250px;
  }

  .feature-card h3 {
    margin-top: 76px;
  }

  .release-steps {
    margin-top: 18px;
  }

  .journal-toolbar {
    grid-template-columns: 1fr;
  }

  .journal-filters {
    justify-content: flex-start;
  }

  .journal-card,
  .journal-card:first-child,
  .journal-card:nth-child(2) {
    grid-column: span 6;
    min-height: 380px;
  }

  .journal-card:first-child h2 {
    font-size: 42px;
  }

  .article-shell {
    grid-template-columns: 1fr;
  }

  .article-aside {
    position: static;
    order: -1;
  }
}

@media (max-width: 680px) {
  :root {
    --page-gutter: 18px;
    --header-height: 64px;
  }

  .site-header {
    height: var(--header-height);
  }

  .site-brand img {
    width: 34px;
    height: 34px;
  }

  .site-brand {
    font-size: 16px;
  }

  .hero {
    min-height: 700px;
  }

  .hero-copy {
    padding-top: 58px;
    padding-bottom: 0;
  }

  .hero h1 {
    font-size: 58px;
  }

  .hero-line {
    max-width: 340px;
    margin-top: 23px;
    font-size: 22px;
  }

  .hero-detail {
    max-width: 350px;
    font-size: 15px;
  }

  .hero-facts {
    width: 100%;
  }

  .hero-facts div {
    flex: 1;
    min-width: 0;
    padding-right: 10px;
  }

  .hero-facts div + div {
    padding-left: 10px;
  }

  .phone-shot-home {
    top: 570px;
    right: -12px;
    width: 210px;
  }

  .phone-shot-calculator {
    top: 605px;
    right: 150px;
    width: 180px;
  }

  .next-section {
    display: none;
  }

  .section-band {
    padding-top: 82px;
    padding-bottom: 82px;
  }

  .calculator-band {
    padding-top: 42px;
  }

  .section-intro h2,
  .pepai-copy h2,
  .release-copy h2 {
    font-size: 41px;
  }

  .section-intro > p:not(.eyebrow),
  .pepai-copy > p:not(.eyebrow),
  .release-copy > p:not(.eyebrow) {
    font-size: 16px;
  }

  .calculator-layout {
    margin-top: 40px;
  }

  .web-calculator {
    padding: 18px;
  }

  .tool-heading {
    align-items: flex-start;
  }

  .tool-status {
    max-width: 100px;
    text-align: center;
  }

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

  .target-row {
    grid-template-columns: 1fr 128px;
  }

  .calculator-results {
    grid-template-columns: 1fr;
  }

  .calculator-proof,
  .pepai-proof {
    min-height: 590px;
  }

  .phone-shot-single {
    width: 245px;
  }

  .proof-caption,
  .source-ticket {
    right: 0;
    bottom: 24px;
    width: 210px;
  }

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

  .feature-card {
    min-height: 220px;
  }

  .feature-card h3 {
    margin-top: 58px;
  }

  .article-row {
    grid-template-columns: 1fr auto;
    gap: 8px 14px;
    min-height: 120px;
    padding: 18px 0;
  }

  .article-row span {
    grid-column: 1 / -1;
  }

  .article-row strong {
    font-size: 16px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .page-hero {
    padding-top: 78px;
  }

  .page-hero h1 {
    font-size: 50px;
  }

  .page-hero p:not(.eyebrow) {
    font-size: 16px;
  }

  .journal-search {
    grid-template-columns: 1fr;
  }

  .journal-grid {
    padding-top: 42px;
  }

  .journal-card,
  .journal-card:first-child,
  .journal-card:nth-child(2) {
    grid-column: 1 / -1;
    min-height: 330px;
  }

  .journal-card:first-child h2,
  .journal-card h2 {
    font-size: 31px;
  }

  .article-shell {
    padding-top: 50px;
  }

  .article-body .article-lead {
    font-size: 18px;
  }

  .article-body h2 {
    font-size: 29px;
  }

  .article-body p,
  .article-body li {
    font-size: 17px;
  }

  .article-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .legal-layout,
  .support-layout {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-top: 50px;
  }

  .legal-nav {
    position: static;
  }

  .support-contact {
    grid-template-columns: 1fr;
  }

  .not-found h1 {
    font-size: 64px;
  }
}

@media (max-width: 680px) and (max-height: 720px) {
  .hero {
    min-height: 530px;
  }

  .hero-copy {
    padding-top: 34px;
  }

  .hero-detail,
  .hero-facts {
    display: none;
  }

  .button-row {
    margin-top: 20px;
  }

  .phone-shot-home {
    top: 410px;
  }

  .phone-shot-calculator {
    top: 430px;
  }
}

@media (max-width: 390px) {
  .hero h1 {
    font-size: 50px;
  }

  .button-row .button {
    width: 100%;
  }

  .hero-facts dd {
    font-size: 12px;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
