:root {
  color-scheme: dark;
  --canvas: #08111f;
  --canvas-deep: #050b14;
  --canvas-soft: #0c1728;
  --panel: #101c2e;
  --panel-strong: #142238;
  --panel-glass: rgba(10, 22, 38, 0.82);
  --paper: #f6f1e6;
  --paper-bright: #fffaf0;
  --paper-muted: #d9d4c9;
  --ink: #15202b;
  --ink-soft: #56606a;
  --text: #f4f7f6;
  --text-soft: #a9b6c5;
  --line: rgba(194, 213, 224, 0.16);
  --line-strong: rgba(194, 213, 224, 0.28);
  --paper-line: rgba(21, 32, 43, 0.13);
  --green: #45d466;
  --green-deep: #238652;
  --cyan: #18c9e6;
  --coral: #ff716b;
  --yellow: #ffd24a;
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.38);
  --paper-shadow: 0 36px 90px rgba(0, 0, 0, 0.32), 0 3px 0 rgba(255, 255, 255, 0.1);
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
  --shell: min(1180px, calc(100vw - 48px));
}

html[data-theme="light"] {
  color-scheme: light;
  --canvas: #e9eeeb;
  --canvas-deep: #dce5e1;
  --canvas-soft: #f1f5f2;
  --panel: #f8fbf9;
  --panel-strong: #ffffff;
  --panel-glass: rgba(241, 247, 244, 0.84);
  --paper: #fffaf0;
  --paper-bright: #fffdf8;
  --paper-muted: #746f66;
  --ink: #14231c;
  --ink-soft: #53615a;
  --text: #102119;
  --text-soft: #5d6d65;
  --line: rgba(22, 56, 40, 0.14);
  --line-strong: rgba(22, 56, 40, 0.24);
  --paper-line: rgba(21, 32, 43, 0.13);
  --shadow: 0 30px 80px rgba(42, 67, 54, 0.14);
  --paper-shadow: 0 32px 78px rgba(42, 67, 54, 0.18), 0 3px 0 rgba(255, 255, 255, 0.8);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 9% 9%, rgba(69, 212, 102, 0.12), transparent 27rem),
    radial-gradient(circle at 91% 24%, rgba(24, 201, 230, 0.1), transparent 31rem),
    linear-gradient(180deg, var(--canvas) 0%, var(--canvas-deep) 100%);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -3;
  inset: 0;
  background:
    linear-gradient(rgba(180, 207, 220, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 207, 220, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 84%);
  pointer-events: none;
}

body::after {
  position: fixed;
  z-index: -2;
  top: 15vh;
  left: 50%;
  width: min(980px, 84vw);
  height: 390px;
  border: 1px dashed rgba(69, 212, 102, 0.08);
  border-radius: 24px;
  content: "";
  pointer-events: none;
  transform: translateX(-50%) rotate(-1deg);
}

::selection {
  background: var(--green);
  color: #07110b;
}

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

img {
  max-width: 100%;
}

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

button,
input {
  font: inherit;
}

.page-grid {
  position: fixed;
  z-index: -4;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.page-grid::before,
.page-grid::after {
  position: absolute;
  border: 1px solid var(--line);
  content: "";
}

.page-grid::before {
  top: 210px;
  left: max(24px, calc((100vw - 1180px) / 2));
  width: 104px;
  height: 104px;
  border-right: 0;
  border-bottom: 0;
}

.page-grid::after {
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 180px;
  width: 104px;
  height: 104px;
  border-top: 0;
  border-left: 0;
}

.scan-beam {
  position: fixed;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(24, 201, 230, 0.55), transparent);
  box-shadow: 0 0 18px rgba(24, 201, 230, 0.26);
  opacity: 0.34;
  pointer-events: none;
  animation: scan-page 12s linear infinite;
}

@keyframes scan-page {
  from {
    transform: translateY(14vh);
  }

  to {
    transform: translateY(86vh);
  }
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 15px;
  border-radius: 8px;
  background: var(--paper-bright);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.subpage-shell {
  width: var(--shell);
  margin-inline: auto;
}

.subpage-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid transparent;
  background: rgba(8, 17, 31, 0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

html[data-theme="light"] .subpage-header {
  background: rgba(233, 238, 235, 0.78);
}

.subpage-header.is-scrolled {
  border-color: var(--line);
  background: var(--panel-glass);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.subpage-nav {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.subpage-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  width: 108px;
  aspect-ratio: 402 / 251;
  overflow: hidden;
}

.brand-logo img {
  display: block;
  width: 124.38%;
  max-width: none;
  height: auto;
  filter: brightness(1.28) saturate(1.08) drop-shadow(0 0 10px rgba(69, 212, 102, 0.12));
  transform: translate(-7%, -18.4%);
}

html[data-theme="light"] .brand-logo img {
  filter: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.subpage-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

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

.back-link,
.theme-toggle {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.back-link {
  gap: 9px;
  padding: 0 16px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.back-link svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.theme-toggle {
  position: relative;
  width: 44px;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
}

.theme-toggle .icon {
  position: absolute;
  width: 18px;
  height: 18px;
  fill: none;
  opacity: 0;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: opacity 180ms ease, transform 180ms ease;
}

.theme-toggle .moon {
  opacity: 1;
}

html[data-theme="light"] .theme-toggle .moon {
  opacity: 0;
  transform: rotate(-25deg);
}

html[data-theme="light"] .theme-toggle .sun {
  opacity: 1;
}

.back-link:hover,
.theme-toggle:hover {
  border-color: rgba(69, 212, 102, 0.5);
  background: rgba(69, 212, 102, 0.1);
  color: var(--green);
  transform: translateY(-2px);
}

.back-link:focus-visible,
.theme-toggle:focus-visible,
.subpage-brand:focus-visible,
.document-nav a:focus-visible,
.content a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.secondary-main {
  position: relative;
}

.subpage-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 10vw, 126px) 0 clamp(54px, 7vw, 88px);
}

.subpage-hero::before {
  position: absolute;
  top: 24%;
  right: max(20px, calc((100vw - 1180px) / 2));
  width: 210px;
  height: 74px;
  border-top: 1px solid rgba(24, 201, 230, 0.34);
  border-right: 1px solid rgba(24, 201, 230, 0.34);
  content: "";
  opacity: 0.8;
  pointer-events: none;
}

.subpage-hero::after {
  position: absolute;
  right: max(26px, calc((100vw - 1168px) / 2));
  bottom: 38px;
  width: 156px;
  height: 28px;
  background: repeating-linear-gradient(
    90deg,
    var(--text-soft) 0 2px,
    transparent 2px 5px,
    var(--text-soft) 5px 6px,
    transparent 6px 10px
  );
  content: "";
  opacity: 0.16;
  pointer-events: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.38fr);
  align-items: end;
  gap: clamp(40px, 8vw, 110px);
}

.hero-content {
  max-width: 780px;
}

.eyebrow {
  display: flex;
  margin: 0 0 18px;
  align-items: center;
  gap: 12px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

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

.subpage-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 6.9rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.92;
  text-wrap: balance;
}

.help-hero h1 {
  max-width: 940px;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
}

.hero-summary,
.legal-date,
.hero-content > p:not(.eyebrow) {
  max-width: 650px;
  margin: 26px 0 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.hero-status {
  position: relative;
  min-height: 138px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 4px 24px 4px 24px;
  background:
    linear-gradient(135deg, rgba(69, 212, 102, 0.08), transparent 55%),
    var(--panel);
  box-shadow: var(--shadow);
}

.hero-status::before {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 20px rgba(69, 212, 102, 0.85);
  content: "";
}

.hero-status span,
.hero-status small {
  display: block;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-status strong {
  display: block;
  margin-top: 30px;
  font-size: 1.05rem;
  line-height: 1.3;
}

.document-layout {
  display: grid;
  grid-template-columns: minmax(190px, 244px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(30px, 5vw, 68px);
  padding-bottom: clamp(80px, 10vw, 140px);
}

.document-nav {
  position: sticky;
  top: 112px;
  padding: 22px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.document-nav > strong,
.document-nav h2,
.document-nav .nav-title,
.document-nav-label {
  display: block;
  margin: 0 0 16px;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.document-nav ol,
.document-nav ul,
.document-nav nav {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 2px;
  list-style: none;
}

.document-nav a {
  position: relative;
  display: block;
  padding: 8px 12px;
  border-radius: 7px;
  color: var(--text-soft);
  font-size: 0.76rem;
  line-height: 1.35;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.document-nav a::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 3px;
  height: 0;
  border-radius: 4px;
  background: var(--green);
  content: "";
  transform: translateY(-50%);
  transition: height 160ms ease;
}

.document-nav a:hover,
.document-nav a.is-active {
  background: rgba(69, 212, 102, 0.08);
  color: var(--text);
  transform: translateX(3px);
}

.document-nav a:hover::before,
.document-nav a.is-active::before {
  height: 20px;
}

.paper-sheet {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 3px 3px 14px 14px;
  background:
    linear-gradient(90deg, transparent 0 45px, rgba(255, 113, 107, 0.1) 45px 46px, transparent 46px),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(21, 32, 43, 0.027) 31px 32px),
    linear-gradient(145deg, var(--paper-bright), var(--paper));
  box-shadow: var(--paper-shadow);
  color: var(--ink);
}

.paper-sheet::before {
  position: absolute;
  z-index: -1;
  top: -11px;
  right: -1px;
  left: -1px;
  height: 12px;
  background:
    linear-gradient(135deg, transparent 8px, var(--paper-bright) 0) 0 0 / 16px 12px repeat-x,
    linear-gradient(225deg, transparent 8px, var(--paper-bright) 0) 8px 0 / 16px 12px repeat-x;
  content: "";
}

.paper-sheet::after {
  position: absolute;
  z-index: -1;
  right: 18px;
  bottom: -18px;
  left: 18px;
  height: 28px;
  background: rgba(0, 0, 0, 0.22);
  content: "";
  filter: blur(18px);
}

.legal-document {
  min-width: 0;
  padding: clamp(30px, 5vw, 72px);
}

.paper-meta {
  display: flex;
  margin-bottom: clamp(30px, 5vw, 54px);
  padding-bottom: 15px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px dashed var(--paper-line);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.paper-meta span:last-child {
  text-align: right;
}

.legal-document .content {
  counter-reset: legal-section;
}

.legal-document .content > p:first-child {
  margin-top: 0;
  padding: 0 0 30px;
  border-bottom: 1px dashed var(--paper-line);
  color: var(--ink);
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  font-weight: 600;
  line-height: 1.75;
}

.content h3 {
  position: relative;
  margin: clamp(44px, 7vw, 70px) 0 20px;
  padding: 20px 0 0 25px;
  border-top: 1px solid var(--paper-line);
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.2;
  scroll-margin-top: 120px;
}

.content h3::before {
  position: absolute;
  top: 26px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--green-deep);
  content: "";
  box-shadow: 12px 0 0 rgba(35, 134, 82, 0.2);
}

.content h4 {
  margin: 30px 0 12px;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.content p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.82;
  text-align: left;
}

.content strong {
  color: var(--ink);
  font-weight: 800;
}

.content a {
  color: #08788a;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(8, 120, 138, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.content a:hover {
  text-decoration-color: currentColor;
}

.content ul {
  display: grid;
  margin: 20px 0 26px;
  padding: 0;
  gap: 10px;
  list-style: none;
}

.content li {
  position: relative;
  padding-left: 25px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.7;
}

.content li::before {
  position: absolute;
  top: 0.72em;
  left: 2px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--green-deep);
  border-radius: 50%;
  content: "";
}

.content hr {
  height: 1px;
  margin: 46px 0 26px;
  border: 0;
  background: repeating-linear-gradient(
    90deg,
    var(--paper-line) 0 7px,
    transparent 7px 13px
  );
}

.deletion-steps {
  display: grid;
  margin: 24px 0 8px;
  padding: 0;
  gap: 10px;
  counter-reset: deletion-step;
  list-style: none;
}

.content .deletion-steps li {
  position: relative;
  min-height: 80px;
  padding: 18px 20px 18px 76px;
  overflow: hidden;
  border: 1px solid var(--paper-line);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(35, 134, 82, 0.08), transparent 38%),
    rgba(255, 255, 255, 0.26);
  color: var(--ink-soft);
  counter-increment: deletion-step;
}

.content .deletion-steps li::before {
  position: absolute;
  top: 50%;
  left: 19px;
  display: grid;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(35, 134, 82, 0.36);
  border-radius: 50%;
  background: rgba(35, 134, 82, 0.08);
  color: var(--green-deep);
  content: counter(deletion-step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  place-items: center;
  transform: translateY(-50%);
}

.content .deletion-steps li::after {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, var(--paper-line), transparent);
  content: "";
}

.content .deletion-steps strong {
  color: var(--ink);
}

.deletion-warning {
  position: relative;
  margin-top: clamp(44px, 7vw, 70px);
  padding: clamp(22px, 4vw, 34px);
  overflow: hidden;
  border: 1px solid rgba(190, 59, 54, 0.26);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 113, 107, 0.12), transparent 58%),
    rgba(255, 255, 255, 0.25);
}

.deletion-warning::after {
  position: absolute;
  top: -44px;
  right: -36px;
  width: 126px;
  height: 126px;
  border: 1px solid rgba(190, 59, 54, 0.16);
  border-radius: 18px;
  content: "";
  transform: rotate(19deg);
}

.content .deletion-warning h3 {
  margin: 0 0 20px;
  padding: 0 0 18px 42px;
  border-top: 0;
  border-bottom: 1px dashed rgba(190, 59, 54, 0.24);
  color: #7d2926;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.content .deletion-warning h3::before {
  top: 2px;
  display: grid;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #c74c47;
  box-shadow: none;
  color: #fff;
  content: "!";
  font-family: var(--font-mono);
  font-size: 0.8rem;
  place-items: center;
}

.deletion-warning ul {
  margin-bottom: 0;
}

.deletion-warning li::before {
  border-color: #c74c47;
}

.delete-support {
  position: relative;
  margin-top: 28px;
  padding: 24px 26px;
  border: 1px dashed rgba(35, 134, 82, 0.3);
  border-radius: 10px;
  background: rgba(35, 134, 82, 0.06);
  scroll-margin-top: 120px;
}

.delete-support::before {
  display: block;
  margin-bottom: 14px;
  color: var(--green-deep);
  content: "SUPPORT / POLICY LINKS";
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.15em;
}

.delete-support p:last-child {
  margin-bottom: 0;
}

.help-layout {
  padding-bottom: clamp(80px, 10vw, 140px);
}

.camera-help .secondary-main {
  padding-bottom: clamp(80px, 10vw, 140px);
}

.guide-sheet,
.receipt-examples {
  padding: clamp(26px, 5vw, 58px);
}

.guide-heading,
.main-title,
.examples-heading {
  position: relative;
  margin: 0 0 30px;
  padding-bottom: 19px;
  border-bottom: 1px dashed var(--paper-line);
}

.guide-heading::after,
.main-title::after,
.examples-heading::after {
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 74px;
  height: 7px;
  border-radius: 10px;
  background: var(--green-deep);
  content: "";
}

.guide-heading h2,
.main-title h2,
.examples-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.main-title .accent {
  display: none;
}

.guide-copy {
  display: grid;
  counter-reset: guide-step;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.guide-copy > p {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 58px 20px 22px;
  border: 1px solid var(--paper-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.24);
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.72;
  counter-increment: guide-step;
}

.guide-copy > p::before {
  position: absolute;
  top: 17px;
  left: 19px;
  color: var(--green-deep);
  content: "0" counter(guide-step);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.guide-copy > p::after {
  position: absolute;
  top: 25px;
  right: 18px;
  left: 52px;
  height: 1px;
  background: linear-gradient(90deg, var(--paper-line), transparent);
  content: "";
}

.guide-sheet > .content > br,
.guide-copy > br,
.guide-copy + br,
.comparison-section + br {
  display: none;
}

.examples-title,
.guide-sheet .content > h2,
.examples-block > h2 {
  margin: clamp(46px, 7vw, 70px) 0 20px;
  color: var(--ink);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.comparison-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
  align-items: stretch;
  gap: 18px;
}

.good-example,
.bad-examples,
.receipt-card {
  position: relative;
  min-width: 0;
  padding: clamp(18px, 3vw, 28px);
  overflow: hidden;
  border: 1px solid var(--paper-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.31);
}

.good-example::before,
.bad-examples::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  content: "";
}

.good-example::before {
  background: var(--green-deep);
}

.bad-examples::before {
  background: var(--coral);
}

.good-example h2,
.bad-examples h2,
.receipt-card h3 {
  display: flex;
  margin: 0 0 17px;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.good-example h2::before,
.bad-examples h2::before {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border-radius: 50%;
  color: white;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  place-items: center;
}

.good-example h2::before {
  background: var(--green-deep);
  content: "✓";
}

.bad-examples h2::before {
  background: #d6534e;
  content: "×";
}

.good-example img,
.bad-examples img {
  display: block;
  width: 100%;
  border: 1px solid var(--paper-line);
  border-radius: 9px;
  background: #d8d4cb;
  object-fit: cover;
}

.good-example img {
  aspect-ratio: 2 / 1;
}

.bad-examples .images-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.bad-examples img {
  aspect-ratio: 2 / 1;
}

.good-example p,
.bad-examples p,
.receipt-card p,
.receipt-card figcaption,
.examples-heading p {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.7;
}

.examples-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.examples-heading p {
  max-width: 520px;
  margin: 0;
  text-align: right;
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.receipt-card {
  display: flex;
  flex-direction: column;
}

.receipt-card::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 90px;
  height: 90px;
  border-top: 1px solid rgba(35, 134, 82, 0.2);
  border-right: 1px solid rgba(35, 134, 82, 0.2);
  content: "";
}

.receipt-card p {
  margin: 0 0 19px;
}

.receipt-card figure {
  margin: auto 0 0;
  overflow: hidden;
  border: 1px solid var(--paper-line);
  border-radius: 10px;
  background: #e8e3d9;
}

.receipt-card img {
  display: block;
  width: 100%;
  height: auto;
}

.receipt-card figcaption {
  margin: 0;
  padding: 12px 14px;
  border-top: 1px dashed var(--paper-line);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}

.subpage-footer,
.secondary-footer {
  border-top: 1px solid var(--line);
  background: rgba(5, 11, 20, 0.42);
}

html[data-theme="light"] .subpage-footer,
html[data-theme="light"] .secondary-footer {
  background: rgba(220, 229, 225, 0.52);
}

.subpage-footer-inner,
.secondary-footer-inner {
  display: flex;
  min-height: 132px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
}

.footer-brand .brand-logo {
  width: 120px;
}

.subpage-footer p,
.secondary-footer p,
.footer-copy {
  margin: 0;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 0.67rem;
  letter-spacing: 0.06em;
  text-align: right;
  text-transform: uppercase;
}

.footer-document-link {
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 0.67rem;
  letter-spacing: 0.06em;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  text-transform: uppercase;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.footer-document-link:hover {
  color: var(--green);
  text-decoration-color: currentColor;
}

@media (max-width: 1000px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 36px;
  }

  .document-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 28px;
  }

  .legal-document {
    padding: 42px;
  }

  .guide-copy {
    grid-template-columns: 1fr;
  }

  .guide-copy > p {
    min-height: 0;
  }
}

@media (max-width: 780px) {
  :root {
    --shell: min(100% - 32px, 720px);
  }

  html {
    scroll-padding-top: 90px;
  }

  .subpage-nav {
    min-height: 72px;
  }

  .brand-logo {
    width: 92px;
  }

  .back-link {
    width: 44px;
    padding: 0;
  }

  .back-link span,
  .back-link .back-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .subpage-hero {
    padding: 64px 0 58px;
  }

  .subpage-hero::before {
    display: none;
  }

  .subpage-hero::after {
    right: 18px;
    bottom: 22px;
    width: 96px;
  }

  .hero-layout {
    display: block;
  }

  .hero-status {
    display: none;
  }

  .subpage-hero h1,
  .help-hero h1 {
    font-size: clamp(2.55rem, 13vw, 4.7rem);
    letter-spacing: -0.065em;
  }

  .document-layout {
    display: block;
    width: 100%;
  }

  .document-nav {
    position: relative;
    top: auto;
    display: flex;
    width: var(--shell);
    margin: 0 auto 34px;
    padding: 12px 0;
    overflow-x: auto;
    border-top: 1px solid var(--line);
    scrollbar-width: none;
  }

  .document-nav::-webkit-scrollbar {
    display: none;
  }

  .document-nav > strong,
  .document-nav h2,
  .document-nav .nav-title,
  .document-nav-label {
    display: none;
  }

  .document-nav ol,
  .document-nav ul,
  .document-nav nav {
    display: flex;
    padding: 0 16px;
    gap: 6px;
  }

  .document-nav a {
    min-width: max-content;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.7rem;
  }

  .document-nav a::before {
    display: none;
  }

  .document-nav a:hover,
  .document-nav a.is-active {
    border-color: rgba(69, 212, 102, 0.5);
    transform: none;
  }

  .legal-document,
  .guide-sheet,
  .receipt-examples {
    width: var(--shell);
    margin-inline: auto;
  }

  .comparison-section,
  .examples-grid {
    grid-template-columns: 1fr;
  }

  .examples-heading {
    display: block;
  }

  .examples-heading p {
    margin-top: 12px;
    text-align: left;
  }
}

@media (max-width: 520px) {
  :root {
    --shell: min(100% - 24px, 480px);
  }

  body {
    font-size: 15px;
  }

  body::before {
    background-size: 36px 36px;
  }

  .subpage-nav {
    gap: 12px;
  }

  .nav-actions {
    gap: 7px;
  }

  .subpage-actions {
    gap: 7px;
  }

  .back-link,
  .theme-toggle {
    width: 40px;
    min-height: 40px;
  }

  .brand-logo {
    width: 82px;
  }

  .subpage-hero {
    padding: 52px 0 48px;
  }

  .eyebrow {
    margin-bottom: 14px;
    font-size: 0.62rem;
    letter-spacing: 0.13em;
  }

  .subpage-hero h1,
  .help-hero h1 {
    font-size: clamp(2.35rem, 14vw, 3.55rem);
  }

  .hero-summary,
  .hero-content > p:not(.eyebrow) {
    margin-top: 20px;
    font-size: 0.95rem;
  }

  .legal-document,
  .guide-sheet,
  .receipt-examples {
    padding: 28px 20px 34px;
  }

  .paper-sheet {
    background:
      repeating-linear-gradient(0deg, transparent 0 31px, rgba(21, 32, 43, 0.027) 31px 32px),
      linear-gradient(145deg, var(--paper-bright), var(--paper));
  }

  .paper-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .paper-meta span:last-child {
    text-align: left;
  }

  .content h3 {
    padding-left: 20px;
    font-size: 1.38rem;
  }

  .content h3::before {
    width: 7px;
    height: 7px;
    box-shadow: none;
  }

  .content p,
  .content li {
    font-size: 0.91rem;
  }

  .content .deletion-steps li {
    padding: 68px 17px 19px;
  }

  .content .deletion-steps li::before {
    top: 17px;
    left: 17px;
    transform: none;
  }

  .content .deletion-steps li::after {
    top: 36px;
    right: 17px;
    left: 68px;
    width: auto;
  }

  .deletion-warning {
    padding: 22px 18px;
  }

  .delete-support {
    padding: 21px 18px;
  }

  .guide-copy > p {
    padding: 54px 17px 19px;
    font-size: 0.86rem;
  }

  .bad-examples .images-row {
    grid-template-columns: 1fr;
  }

  .bad-examples img {
    aspect-ratio: 2 / 1;
  }

  .subpage-footer-inner,
  .secondary-footer-inner {
    min-height: 150px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
  }

  .subpage-footer p,
  .secondary-footer p,
  .footer-copy,
  .footer-document-link {
    text-align: left;
  }
}

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

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

  .scan-beam {
    display: none;
  }
}

@media print {
  :root,
  html[data-theme="dark"],
  html[data-theme="light"] {
    color-scheme: light;
  }

  body {
    background: white;
    color: black;
  }

  body::before,
  body::after,
  .page-grid,
  .scan-beam,
  .subpage-header,
  .document-nav,
  .subpage-footer,
  .secondary-footer,
  .subpage-hero::before,
  .subpage-hero::after {
    display: none !important;
  }

  .subpage-hero {
    padding: 20px 0 32px;
  }

  .subpage-hero h1 {
    color: black;
    font-size: 42px;
  }

  .eyebrow,
  .hero-summary {
    color: #333;
  }

  .document-layout {
    display: block;
    padding-bottom: 0;
  }

  .paper-sheet {
    border: 0;
    box-shadow: none;
  }

  .paper-sheet::before,
  .paper-sheet::after {
    display: none;
  }

  .legal-document {
    padding: 0;
  }
}
