/* App pages in the PrintProof look of the home page (public/home/assets/css/styles.css): Inter, purple
   gradients on a warm off-white, white cards, dark footer. Light only, like the home page. */
:root {
  --bg: #f5f3ef;
  --card: #ffffff;
  --ink: #1a0a2e;
  --text: #4f4659;
  --muted: #6f6579;
  --line: #e4dde9;
  --field: #faf9fc;
  --field-edge: #ddd5e5;
  --accent: #7b2fff;
  --accent-dark: #6722ce;
  --accent-soft: #f2edff;
  --accent-edge: #daccf0;
  --accent-ring: #7b2fff26;
  --cyan: #00d4ff;
  --grad: linear-gradient(115deg, #7629ed, #4e30d2 62%, #126aaa);
  --grad-text: linear-gradient(110deg, #7829ed 12%, #146ea7 85%);
  --gold: #946023;
  --ok: #1d7b48;
  --ok-soft: #eaf6ee;
  --bad: #b8231c;
  --bad-soft: #fff0ed;
  --off-bg: #f1eef4;
  --off-ink: #9a90a5;
  --off-edge: #d6cee0;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font);
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
a { color: var(--accent-dark); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #085fb9; outline-offset: 4px; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Containers: .frame matches the home page width; .wrap is the centred column of most app pages. */
.frame { width: min(1280px, calc(100% - 96px)); margin-inline: auto; }
.wrap { max-width: 920px; margin: 0 auto; padding: 40px 16px 72px; width: 100%; }
.wrap.wide { max-width: 1280px; }

/* Header and footer (same as the home page). */
.site-nav { position: sticky; top: 0; z-index: 50; background: #f5f3eff2; backdrop-filter: blur(18px); border-bottom: 1px solid #1a0a2e0c; }
.nav-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { text-decoration: none; display: flex; align-items: center; gap: 11px; color: var(--ink); }
.brand-icon { background: var(--accent); width: 35px; height: 35px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.brand-icon .icon { width: 21px; height: 21px; }
.wordmark strong { display: block; font-weight: 800; font-size: 1.45rem; line-height: 1; letter-spacing: -0.06em; }
.wordmark small { display: block; font-size: 0.75rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links > a:not(.button) { text-decoration: none; font-weight: 500; font-size: 0.875rem; color: #5b5065; }
.nav-links > a:not(.button):hover { color: var(--accent); }
.site-footer { background: #160a24; color: #fff; padding: 33px 0; }
.footer-top { display: flex; justify-content: space-between; gap: 25px; align-items: center; }
.footer-brand { font-weight: 700; font-size: 1.125rem; letter-spacing: -0.04em; color: #fff; text-decoration: none; }
.footer-brand span { color: #ae82fa; }
.footer-nav { display: flex; gap: 25px; flex-wrap: wrap; }
.footer-nav a { font-size: 0.8125rem; color: #c4b4d0; text-decoration: none; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { font-size: 0.75rem; color: #9f90ac; border-top: 1px solid #ffffff18; padding-top: 23px; margin-top: 25px; display: flex; justify-content: space-between; gap: 25px; }
.footer-bottom p { margin: 0; max-width: 620px; }

/* Type */
h1, h2, h3 { color: var(--ink); letter-spacing: -0.035em; line-height: 1.12; }
h1 { font-size: 2.1rem; font-weight: 800; margin: 0.15em 0 0.4em; }
h2 { font-size: 1.3rem; font-weight: 800; margin: 0 0 0.6em; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { color: var(--text); }
.eyebrow { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--accent-dark); margin-bottom: 8px; }
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.1rem; color: var(--text); }
.muted { color: var(--muted); font-size: 0.9rem; }
.price { font-weight: 600; color: var(--gold); }
.steps li { margin-bottom: 0.5em; }
.center { text-align: center; }

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 22px;
  box-shadow: 0 15px 45px #29103c08;
}
.card.narrow { position: relative; overflow: hidden; }
.card.narrow::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--accent), var(--cyan)); }
.narrow { max-width: 500px; margin-left: auto; margin-right: auto; }
.logo { border-radius: 50%; object-fit: cover; border: 1px solid var(--accent-edge); box-shadow: inset 0 0 0 4px #ffffff85; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 20px;
  border-radius: 9px; border: 1px solid #cbc3d3; background: transparent; color: var(--ink);
  font: inherit; font-size: 0.9375rem; font-weight: 700; line-height: 1.3; text-decoration: none; text-align: center;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.button:hover { transform: translateY(-2px); border-color: var(--accent); background: #fff; }
.button.primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 18px #7b2fff20; }
.button.primary:hover { box-shadow: 0 12px 24px #7b2fff30; }
.button.big { min-height: 52px; padding: 15px 26px; }
.button.small { min-height: 42px; padding: 9px 17px; font-size: 0.875rem; }
.button.patreon { background: #ff424d; border-color: #ff424d; color: #fff; width: 100%; box-shadow: 0 6px 18px #ff424d26; }
.button.patreon:hover { background: #f0323e; }
.link { background: none; border: 0; color: var(--accent-dark); font: inherit; font-weight: 600; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.link.danger { color: var(--bad); }

/* Forms */
.stack { display: grid; gap: 16px; text-align: left; }
label { display: grid; gap: 7px; font-weight: 600; font-size: 0.9375rem; color: var(--ink); }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.actions input[type=file] { width: auto; }
label.check { display: flex; gap: 10px; align-items: center; font-weight: 400; }
input, textarea, select {
  font: inherit; font-weight: 400;
  padding: 11px 13px;
  border: 1px solid var(--field-edge);
  border-radius: 9px;
  background: var(--field);
  color: var(--ink);
  width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
select { width: auto; }
input:focus, textarea:focus, select:focus { outline: 2px solid #a274ec; outline-offset: 2px; border-color: var(--accent); background: #fff; }
label.check input { width: auto; accent-color: var(--accent); }
input[type=file] { background: transparent; border-style: dashed; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 8px; }
legend { font-weight: 600; padding: 0 6px; }
.copy { font-family: ui-monospace, Menlo, monospace; font-size: 0.9rem; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); margin: 22px 0; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* Notices and badges */
.notice { padding: 14px 16px; border-radius: 10px; border: 1px solid #e1d4f1; background: #f6f1fc; color: #4b3a5c; text-align: left; }
.notice.error { border-color: #f3cfc8; background: var(--bad-soft); color: #8f1d16; }
.notice.success { border-color: #bfe3cc; background: var(--ok-soft); color: #17633a; }
.badge { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; border: 1px solid currentColor; }
.badge.ok { color: var(--ok); background: var(--ok-soft); }
.badge.bad { color: var(--bad); background: var(--bad-soft); }
.badge.warn { color: var(--gold); background: #fff4e7; }
.badge.muted-badge { color: var(--muted); }

/* Dashboard and admin */
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; gap: 16px; flex-wrap: wrap; }
.topbar h1 { margin: 0; font-size: 2rem; }
.topbar .eyebrow { margin-bottom: 4px; }
.topbar .actions a, .topbar .actions .link { font-weight: 600; text-decoration: none; }
.stack > .button { justify-self: start; }
.brand { display: flex; gap: 16px; align-items: center; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 22px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.tile-value { font-size: 1.8rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.03em; }
.tile-label { font-weight: 600; margin-top: 2px; }
.tile-link { color: inherit; text-decoration: none; display: grid; }
.tile-link:hover .tile { border-color: var(--accent); }
.filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; }
.filters label { min-width: 200px; }
.meter { height: 8px; background: var(--off-bg); border-radius: 999px; overflow: hidden; max-width: 360px; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--cyan)); }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 14px 0 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* Verify page (matches the home page's verification demo) */
.status { font-size: 2rem; font-weight: 800; letter-spacing: 0.015em; margin: 0.4em 0 0.1em; }
.status.ok { color: var(--ok); }
.status.bad { color: var(--bad); }
.details { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; text-align: left; margin: 22px 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

/* Plan cards with the Monthly/Yearly switch: two hidden radios drive which set is shown (no script). */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 8px; }
.plan { border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: grid; gap: 8px; align-content: start; background: #fff; position: relative; overflow: hidden; }
.plan::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #7b2fff, #ba92ff); }
.plan:nth-child(2)::before { background: linear-gradient(90deg, #00d4ff, #087d9c); }
.plan h3 { margin: 0; font-size: 1.25rem; }
.plan p { margin: 0; }
.plan .amount { font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; color: var(--ink); }
.plan .amount span { font-size: 0.875rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .amount s { font-size: 0.875rem; font-weight: 500; margin-left: 4px; }
.plan .small { font-size: 0.8125rem; }
.plan .save-note { font-size: 0.8125rem; font-weight: 700; color: var(--accent-dark); }
.plan.is-current { border-color: var(--ok); }
.save { font-size: 0.8rem; font-weight: 600; opacity: 0.85; margin-left: 4px; }
.plan-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 42px; padding: 0 14px; margin-top: 6px;
  border-radius: 9px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 0.875rem; line-height: 1; white-space: nowrap;
  cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.plan-btn.go { background: var(--grad); color: #fff; box-shadow: 0 6px 18px #7b2fff20; }
.plan-btn.go:hover { transform: translateY(-2px); box-shadow: 0 12px 24px #7b2fff30, 0 0 0 3px var(--accent-ring); }
.plan-btn:active { transform: translateY(0); }
.plan-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.plan-btn.current { background: var(--ok-soft); color: var(--ok); border-color: var(--ok); cursor: default; }
.plan-btn.unavailable { background: var(--off-bg); color: var(--off-ink); border: 1px dashed var(--off-edge); cursor: not-allowed; }
.picker { margin-top: 14px; }
.period-radio { position: absolute; opacity: 0; pointer-events: none; }
.period-toggle {
  display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 16px;
  background: var(--accent-soft); border: 1px solid var(--accent-edge); border-radius: 999px;
}
.period-toggle label {
  display: inline-flex; align-items: center; white-space: nowrap; line-height: 1.2;
  padding: 7px 17px; border-radius: 999px; font-size: 0.875rem; font-weight: 700;
  color: var(--accent-dark); cursor: pointer; transition: background .2s, color .2s;
}
#period-month:checked ~ .period-toggle label[for="period-month"],
#period-year:checked ~ .period-toggle label[for="period-year"] { background: var(--grad); color: #fff; }
#period-month:disabled ~ .period-toggle label[for="period-month"] { opacity: .4; cursor: not-allowed; }
#period-month:focus-visible ~ .period-toggle label[for="period-month"],
#period-year:focus-visible ~ .period-toggle label[for="period-year"] { outline: 3px solid var(--accent); outline-offset: 2px; }
.save-tag { font-size: 0.72rem; font-weight: 700; margin-left: 4px; opacity: .85; }
.picker .plans { display: none; margin-top: 0; }
#period-month:checked ~ .plans.period-month,
#period-year:checked ~ .plans.period-year { display: grid; }

/* Privacy Policy and Terms */
.legal { padding: 44px 48px; }
.legal h1 { font-size: 2.6rem; margin-bottom: 4px; }
.legal h2 { font-size: 1.35rem; margin: 40px 0 12px; scroll-margin-top: 100px; }
.legal h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.legal p, .legal li { line-height: 1.75; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 8px; color: var(--text); }
.legal .notice { margin: 22px 0; }
.legal-toc { background: var(--accent-soft); border: 1px solid var(--accent-edge); border-radius: 12px; padding: 16px 22px; margin: 26px 0 8px; }
.legal-toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 32px; }
.legal-toc li { margin-bottom: 4px; break-inside: avoid; }
.legal-toc a { text-decoration: none; font-weight: 500; }
@media (max-width: 780px) { .legal { padding: 28px 20px; } .legal h1 { font-size: 2rem; } .legal-toc ol { columns: 1; } }

/* /start: full-width bands like the home page */
.band { padding-block: 96px; }
.band.white { background: #fff; }
.band.dark { background: var(--ink); color: #fff; }
.band.dark h2, .band.dark h3 { color: #fff; }
.band.dark .eyebrow { color: #8edfff; }
.band h2 { font-size: clamp(2.1rem, 3.6vw, 3.4rem); margin-bottom: 0; }
.start-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; padding-block: 84px 80px; }
.start-hero h1 { font-size: clamp(2.7rem, 4.8vw, 4.6rem); line-height: 1.06; letter-spacing: -0.045em; margin: 14px 0 0; }
.start-hero h1 .grad { display: block; margin-top: 8px; }
.hero-lead { font-size: 1.125rem; line-height: 1.7; max-width: 540px; margin: 24px 0 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-note { font-size: 0.8125rem; margin-top: 16px; color: #69616e; }
.hero-note strong { color: var(--ink); font-weight: 600; }
.included { padding: 32px; margin: 0; position: relative; overflow: hidden; transform: rotate(-1.2deg); box-shadow: 0 26px 70px #2c124017, 0 4px 8px #2c124006; }
.included::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--accent), var(--cyan)); }
.included h2 { font-size: 1.4rem; }
.checklist { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.checklist .icon { color: var(--ok); background: var(--ok-soft); border-radius: 50%; padding: 4px; width: 26px; height: 26px; }
.step-grid { list-style: none; padding: 0; margin: 52px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.step-grid li { border-top: 1px solid #ffffff30; padding-top: 24px; }
.step-num { font-size: 2.6rem; font-weight: 600; line-height: 1; color: #ae85ff; display: block; margin-bottom: 22px; letter-spacing: -0.04em; }
.step-grid li:nth-child(2) .step-num { color: #52c5e5; }
.step-grid li:nth-child(3) .step-num { color: #c9a84c; }
.step-grid li:nth-child(4) .step-num { color: #7ee0b0; }
.step-grid h3 { font-size: 1.3rem; margin: 0; }
.step-grid p { color: #c3b9cb; font-size: 0.9375rem; line-height: 1.75; margin: 14px 0 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split-text { font-size: 1.0625rem; line-height: 1.8; margin: 0; }
/* Follows the hero on the same background: a divider instead of a second full top padding. */
.band.after-hero { padding-top: 0; }
.after-hero .split { border-top: 1px solid var(--line); padding-top: 64px; }
.pricing > .muted { font-size: 1rem; margin: 18px 0 8px; }
.pricing .plans { max-width: 820px; }

@media (max-width: 960px) {
  .nav-links > a:not(.button) { display: none; }
  .step-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  .frame { width: calc(100% - 32px); }
  .nav-inner { min-height: 70px; }
  .wordmark strong { font-size: 1.25rem; }
  .brand-icon { width: 32px; height: 32px; }
  .wrap { padding-top: 28px; }
  .card { padding: 22px 18px; }
  .band { padding-block: 64px; }
  .start-hero { grid-template-columns: 1fr; gap: 36px; padding-block: 44px 56px; }
  .included { transform: none; }
  .step-grid { grid-template-columns: 1fr; gap: 26px; margin-top: 36px; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .topbar h1 { font-size: 1.6rem; }
}
@media (max-width: 480px) {
  .nav-links .button { display: none; }
  .hero-actions { flex-direction: column; }
  .details { grid-template-columns: 1fr; gap: 2px; }
  .details dd { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .button:hover, .plan-btn:hover { transform: none; }
}
