:root {
  color-scheme: light;
  --ink: #0b2147;
  --muted: #5f708b;
  --line: #d6e0ee;
  --panel: #ffffff;
  --page: #f3f7fc;
  --page-soft: #f4f9fc;
  --page-soft-alt: #e9f2fb;
  --page-softest: #fbfdff;
  --paper: #fffdf7;
  --backdrop-dark: #071a36;
  --text-on-dark: #f2f8ff;
  --text-on-dark-muted: rgba(242, 248, 255, 0.72);
  --text-on-dark-strong: rgba(242, 248, 255, 0.88);
  --white: #ffffff;
  --white-06: rgba(255, 255, 255, 0.06);
  --white-09: rgba(255, 255, 255, 0.09);
  --white-10: rgba(255, 255, 255, 0.1);
  --white-11: rgba(255, 255, 255, 0.11);
  --white-13: rgba(255, 255, 255, 0.13);
  --white-16: rgba(255, 255, 255, 0.16);
  --white-25: rgba(255, 255, 255, 0.25);
  --white-62: rgba(255, 255, 255, 0.62);
  --white-72: rgba(255, 255, 255, 0.72);
  --accent: #1bc7d6;
  --accent-dark: #0a5fa3;
  --accent-08: rgba(27, 199, 214, 0.08);
  --accent-24: rgba(27, 199, 214, 0.24);
  --button-primary-bg: linear-gradient(135deg, var(--accent-dark), var(--accent));
  --button-primary-border: var(--accent-dark);
  --button-primary-text: var(--white);
  --button-secondary-bg: var(--white);
  --button-secondary-border: var(--line);
  --button-secondary-text: var(--ink);
  --button-disabled-bg: var(--muted);
  --button-disabled-border: var(--muted);
  --button-disabled-text: var(--white);
  --control-bg: var(--white);
  --control-border: var(--line);
  --control-text: var(--ink);
  --control-placeholder: #8ba0bb;
  --control-focus-border: var(--accent-dark);
  --segmented-active-bg: var(--white);
  --segmented-active-text: var(--ink);
  --gold: #1bc7d6;
  --gold-15: rgba(27, 199, 214, 0.15);
  --gold-28: rgba(10, 95, 163, 0.28);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-pill: 999px;
  --control-height: 40px;
  --action-height: 42px;
  --panel-border: 1px solid var(--line);
  --shadow-soft: 0 4px 14px rgba(11, 33, 71, 0.1);
  --shadow: 0 18px 60px rgba(11, 33, 71, 0.12);
  --shadow-raised: 0 24px 46px rgba(11, 33, 71, 0.16);
  --shadow-float: 0 30px 80px rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf7ff;
  --muted: #a8b7c9;
  --line: #294260;
  --panel: #12243c;
  --page: #081728;
  --page-soft: #172d49;
  --page-soft-alt: #1e395a;
  --page-softest: #102036;
  --paper: #f8f1dd;
  --backdrop-dark: #050d19;
  --text-on-dark: #f2f8ff;
  --text-on-dark-muted: rgba(242, 248, 255, 0.74);
  --text-on-dark-strong: rgba(242, 248, 255, 0.9);
  --white: #f8fbff;
  --white-06: rgba(255, 255, 255, 0.08);
  --white-09: rgba(255, 255, 255, 0.1);
  --white-10: rgba(255, 255, 255, 0.12);
  --white-11: rgba(255, 255, 255, 0.14);
  --white-13: rgba(255, 255, 255, 0.16);
  --white-16: rgba(255, 255, 255, 0.2);
  --white-25: rgba(255, 255, 255, 0.28);
  --white-62: rgba(248, 251, 255, 0.72);
  --white-72: rgba(8, 23, 40, 0.72);
  --accent: #45dce7;
  --accent-dark: #73bfff;
  --accent-08: rgba(69, 220, 231, 0.12);
  --accent-24: rgba(69, 220, 231, 0.28);
  --button-primary-bg: linear-gradient(135deg, #8eeaf2, #73bfff);
  --button-primary-border: #8eeaf2;
  --button-primary-text: #04111f;
  --button-secondary-bg: #182f4b;
  --button-secondary-border: #416489;
  --button-secondary-text: #f2f8ff;
  --button-disabled-bg: #405979;
  --button-disabled-border: #4d698b;
  --button-disabled-text: #d5e1ef;
  --control-bg: #12243c;
  --control-border: #5d7899;
  --control-text: #f2f8ff;
  --control-placeholder: #b7c8dc;
  --control-focus-border: #8eeaf2;
  --segmented-active-bg: #d9efff;
  --segmented-active-text: #04111f;
  --gold: #45dce7;
  --gold-15: rgba(69, 220, 231, 0.16);
  --gold-28: rgba(69, 220, 231, 0.2);
  --panel-border: 1px solid var(--line);
  --shadow-soft: 0 4px 14px rgba(0, 0, 0, 0.22);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  --shadow-raised: 0 24px 46px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, var(--accent-08), transparent 42%),
    var(--page);
  overscroll-behavior-y: none;
}

.site-body {
  overscroll-behavior-y: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

.site-header,
.site-hero,
.site-section,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-brand,
.site-nav,
.site-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.site-brand {
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.site-brand img {
  border-radius: 8px;
}

.site-nav {
  gap: 22px;
}

.site-nav a,
.site-footer a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.site-login {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--accent-dark);
  border-radius: 999px;
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.site-hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
  min-height: min(760px, calc(100vh - 104px));
  min-height: min(760px, calc(100dvh - 104px));
  margin-top: 18px;
  overflow: hidden;
  padding: clamp(28px, 5vw, 64px);
  border-radius: 8px;
  color: var(--text-on-dark);
  background:
    linear-gradient(90deg, rgba(5, 13, 25, 0.9), rgba(5, 13, 25, 0.58) 46%, rgba(5, 13, 25, 0.2)),
    url("./images/HeroImage.avif") center / cover no-repeat,
    var(--backdrop-dark);
  box-shadow: var(--shadow-raised);
}

.site-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 20px;
  align-content: end;
  max-width: 690px;
}

.site-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--text-on-dark);
  font-size: clamp(2.7rem, 6.6vw, 5.6rem);
  line-height: 0.98;
}

.site-hero p {
  max-width: 640px;
  margin: 0;
  color: var(--text-on-dark-strong);
  font-size: 1.15rem;
  line-height: 1.65;
}

.site-privacy-proof {
  display: grid;
  gap: 5px;
  max-width: 640px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(5, 13, 25, 0.52);
  backdrop-filter: blur(14px);
}

.site-privacy-proof strong {
  color: var(--text-on-dark);
  font-size: 1rem;
}

.site-privacy-proof span {
  color: var(--text-on-dark-strong);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
}

.site-workflow-card {
  display: grid;
  gap: 14px;
  max-width: 640px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.site-workflow-card h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.08;
}

.site-workflow-card .site-steps {
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 0;
}

.site-workflow-card .site-steps li {
  grid-template-columns: 118px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--page-softest);
}

.site-workflow-card .site-step-image,
.site-workflow-card .site-step-app-mockup {
  height: 88px;
}

.site-step-image,
.site-step-app-mockup {
  display: block;
  width: 100%;
  height: clamp(140px, 22vw, 246px);
  aspect-ratio: 4 / 3;
  border-radius: 8px;
}

.site-step-image {
  object-fit: contain;
  background: var(--page-softest);
  box-shadow: 0 10px 24px rgba(11, 33, 71, 0.12);
}

.site-step-app-mockup {
  display: grid;
  gap: 7px;
  align-content: start;
  overflow: hidden;
  padding: 8px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, var(--white), var(--page-softest));
  box-shadow: 0 10px 24px rgba(11, 33, 71, 0.12);
}

.site-step-app-top {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 0.72rem;
}

.site-step-app-top img {
  border-radius: 5px;
}

.site-step-review-grid {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 7px;
  min-height: 0;
}

.site-step-receipt-slip {
  display: grid;
  gap: 4px;
  min-height: 78px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: #0b2147;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.5rem;
  text-align: center;
}

.site-step-receipt-slip span {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(11, 33, 71, 0.18);
}

.site-step-receipt-slip .short {
  width: 68%;
  justify-self: center;
}

.site-step-receipt-slip b {
  margin-top: 2px;
}

.site-step-fields,
.site-step-history {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.site-step-fields span,
.site-step-history div {
  display: grid;
  min-width: 0;
  padding: 5px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--muted);
  font-size: 0.49rem;
  font-weight: 800;
  line-height: 1.15;
}

.site-step-fields b,
.site-step-history strong {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-step-history div {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 6px;
}

.site-step-history span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-step-bars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 5px;
  height: 31px;
  margin-top: 1px;
  padding: 5px 6px 0;
  border-radius: 6px;
  background: var(--accent-08);
}

.site-step-bars span {
  display: block;
  height: var(--bar-height);
  min-height: 7px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
}

.site-step-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.site-workflow-card .site-steps p {
  font-size: 0.94rem;
}

.site-launch-countdown {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.7fr);
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  width: min(1120px, calc(100% - 32px));
  max-width: none;
  margin: 18px auto 0;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.site-launch-countdown:focus {
  outline: 3px solid var(--accent-24);
  outline-offset: 4px;
}

.site-launch-countdown[data-signup-prompted="true"] {
  border-color: var(--accent-dark);
  box-shadow: 0 20px 44px rgba(34, 126, 95, 0.18);
}

.site-launch-countdown h2 {
  margin: 4px 0 0;
  font-size: clamp(1.55rem, 4vw, 2.25rem);
  line-height: 1.06;
}

.site-launch-message {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.4;
}

.site-launch-countdown dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.site-launch-countdown dl div {
  display: grid;
  min-width: 0;
  min-height: 76px;
  place-items: center;
  padding: 10px 8px;
  border: 1px solid var(--accent-24);
  border-radius: 8px;
  background: var(--accent-08);
  text-align: center;
}

.site-launch-countdown dt {
  color: var(--accent-dark);
  font-size: clamp(1.45rem, 5vw, 2.1rem);
  font-weight: 900;
  line-height: 1;
}

.site-launch-countdown dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.login-launch-countdown {
  width: 100%;
  max-width: none;
  margin: 0;
}

.site-proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 640px;
}

.site-proof-strip span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.86rem;
  font-weight: 900;
  backdrop-filter: blur(14px);
}

.site-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.site-actions .primary-action,
.site-actions .secondary-action,
.site-section > .secondary-action {
  text-decoration: none;
}

.site-product-shot {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  width: min(100%, 460px);
  justify-self: end;
  padding: clamp(14px, 3vw, 22px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(27, 199, 214, 0.22), rgba(255, 255, 255, 0.08) 52%),
    rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-raised);
}

.site-app-preview {
  display: grid;
  gap: 14px;
  min-height: 520px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text-on-dark);
  background:
    linear-gradient(165deg, rgba(27, 199, 214, 0.18), transparent 36%),
    var(--backdrop-dark);
  box-shadow: var(--shadow-soft);
}

.site-app-top,
.site-app-brand,
.site-app-status,
.site-history-preview > div,
.site-history-preview li {
  display: flex;
  align-items: center;
}

.site-app-top,
.site-history-preview > div,
.site-history-preview li {
  justify-content: space-between;
  gap: 12px;
}

.site-app-brand {
  min-width: 0;
  gap: 9px;
  font-size: 1.1rem;
}

.site-app-brand img {
  flex: 0 0 auto;
}

.site-app-brand strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.site-app-status {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(27, 199, 214, 0.45);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(27, 199, 214, 0.1);
  font-size: 0.78rem;
  font-weight: 900;
}

.site-app-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
}

.site-capture-preview,
.site-extraction-preview,
.site-history-preview {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--white-16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.site-receipt-paper-preview {
  display: grid;
  gap: 9px;
  min-height: 230px;
  padding: 16px;
  border-radius: 5px;
  color: #13213a;
  background: var(--paper);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.22);
}

.site-receipt-paper-preview span:not(.site-receipt-merchant) {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: #cfd8d4;
}

.site-receipt-paper-preview span.short {
  width: 68%;
}

.site-receipt-merchant {
  color: #13213a;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.site-receipt-paper-preview strong {
  align-self: end;
  justify-self: end;
  color: #13213a;
  font-size: 1.5rem;
}

.site-extraction-preview dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.site-extraction-preview dl div {
  display: grid;
  gap: 3px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--white-13);
}

.site-extraction-preview dl div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.site-extraction-preview dt,
.site-history-preview li span {
  color: var(--text-on-dark-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.site-extraction-preview dd {
  margin: 0;
  font-weight: 900;
}

.site-history-preview {
  align-content: start;
}

.site-history-preview > div strong {
  color: var(--accent);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.site-history-preview ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-history-preview li {
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--white-13);
  border-radius: 6px;
  background: rgba(3, 14, 30, 0.34);
}

.site-history-preview li strong {
  flex: 0 0 auto;
}

.site-receipt-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--page-softest);
}

.site-receipt-card strong {
  font-size: 1.5rem;
}

.site-card-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-receipt-card dl,
.site-metric-row {
  display: grid;
  gap: 10px;
}

.site-receipt-card dl {
  margin: 0;
}

.site-receipt-card dl div,
.site-metric-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-receipt-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.site-receipt-card dt,
.site-metric-row span {
  color: var(--muted);
}

.site-receipt-card dd {
  margin: 0;
  font-weight: 800;
}

.site-metric-row > div {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.site-metric-row strong {
  font-size: 1.75rem;
}

.site-section {
  padding: 74px 0;
}

.site-section h2 {
  max-width: 760px;
  margin: 0 0 22px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.04;
}

.site-section > p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.site-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.site-audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.site-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.site-feature-grid article {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.site-audience-grid article {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.site-plan-card {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 286px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.site-plan-card strong {
  color: var(--ink);
  font-size: 2.6rem;
  line-height: 1;
}

.site-plan-card strong span {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 900;
}

.site-plan-card p {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.site-plan-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
}

.site-plan-card li {
  position: relative;
  padding-left: 18px;
}

.site-plan-card li::before {
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

.site-feature-grid h3,
.site-feature-grid p,
.site-audience-grid h3,
.site-audience-grid p {
  margin: 0;
}

.site-feature-grid p,
.site-audience-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.site-band {
  width: 100%;
  max-width: none;
  padding-inline: max(16px, calc((100vw - 1120px) / 2));
  background: var(--page-soft-alt);
}

.site-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
  max-width: 1120px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.site-steps li {
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  gap: 14px;
  min-height: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.site-steps span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-24);
  color: var(--accent-dark);
  font-weight: 900;
}

.site-steps p {
  align-self: start;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 34px 0 44px;
  color: var(--muted);
  font-weight: 700;
}

.site-footer-links {
  display: inline-flex;
  gap: 18px;
}

.public-privacy {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.public-privacy .workspace {
  padding-right: 0;
  padding-left: 0;
}

.public-privacy .topbar {
  margin-top: 26px;
}

.public-privacy .privacy-policy {
  box-shadow: var(--shadow-soft);
}

.login-shell {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}

.login-visual {
  position: relative;
  display: grid;
  min-height: 260px;
  padding: clamp(22px, 4vw, 42px);
  align-content: space-between;
  color: var(--text-on-dark);
  background:
    linear-gradient(155deg, var(--gold-28), transparent 42%),
    var(--backdrop-dark);
  overflow: hidden;
}

.login-visual::after {
  position: absolute;
  right: -8%;
  bottom: -16%;
  width: 54%;
  aspect-ratio: 1;
  border: 1px solid rgba(246, 251, 248, 0.13);
  border-radius: 50%;
  content: "";
}

.login-brand {
  position: relative;
  z-index: 1;
}

.login-logo {
  position: relative;
  z-index: 1;
  display: none;
  width: min(420px, 84%);
  height: auto;
  justify-self: center;
  filter: drop-shadow(0 22px 36px rgba(4, 18, 44, 0.32));
}

.login-panel {
  display: grid;
  min-height: auto;
  padding: clamp(22px, 5vw, 64px);
  padding-bottom: max(clamp(32px, 6vw, 72px), calc(env(safe-area-inset-bottom) + 32px));
  place-items: start stretch;
}

.login-form {
  display: grid;
  width: min(420px, 100%);
  gap: 18px;
  justify-self: center;
}

.login-form h1 {
  margin-bottom: 10px;
}

.auth-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--control-border);
  border-radius: 8px;
  background: var(--page-soft);
}

.auth-mode label {
  display: grid;
  min-height: 38px;
  place-items: center;
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 800;
}

.auth-mode input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auth-mode label:has(input:checked) {
  color: var(--segmented-active-text);
  background: var(--segmented-active-bg);
  box-shadow: 0 8px 18px rgba(8, 28, 64, 0.08);
}

.login-submit {
  width: 100%;
  margin-top: 2px;
}

.login-remember {
  margin-top: -4px;
}

.link-action {
  justify-self: center;
  border: 0;
  color: var(--accent-dark);
  background: transparent;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.otp-login {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--page-soft);
}

.otp-login .secondary-action {
  width: 100%;
}

.signup-plan-field {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.signup-plan-field legend {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 700;
}

.signup-plan-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--control-border);
  border-radius: var(--radius-md);
  background: var(--page-soft);
  cursor: pointer;
}

.signup-plan-option:has(input:checked) {
  border-color: var(--accent-dark);
  background: var(--accent-08);
}

.signup-plan-option input {
  margin-top: 3px;
  accent-color: var(--accent);
}

.signup-plan-option span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.signup-plan-option strong,
.signup-plan-option small,
.signup-plan-option em,
.signup-plan-option li {
  overflow-wrap: anywhere;
}

.signup-plan-option small {
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 900;
}

.signup-plan-option em {
  color: var(--muted);
  font-size: 0.84rem;
  font-style: normal;
  font-weight: 700;
}

.signup-plan-option ul {
  display: grid;
  gap: 3px;
  margin: 4px 0 0;
  padding: 0;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  list-style: none;
}

.signup-plan-option li::before {
  color: var(--accent-dark);
  content: "+ ";
  font-weight: 900;
}

.login-biometric {
  margin-top: -10px;
}

.biometric-unlock {
  width: 100%;
}

.checkbox-field {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.form-message {
  min-height: 22px;
  color: #9b2525;
  font-size: 0.9rem;
  font-weight: 700;
}

.app-shell {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  min-height: 100vh;
  min-height: 100dvh;
}

.sidebar {
  position: relative;
  display: block;
  align-self: start;
  padding: max(12px, env(safe-area-inset-top)) 12px 12px;
  color: var(--text-on-dark);
  background: var(--backdrop-dark);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 700;
}

.brand-logo {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-name {
  color: var(--text-on-dark);
}

.nav-toggle {
  display: inline-grid;
  gap: 4px;
  min-width: 46px;
  min-height: 46px;
  padding: 10px;
  place-items: center;
  border: 1px solid var(--white-16);
  border-radius: var(--radius-md);
  background: var(--white-06);
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--white);
}

.sidebar-panel {
  position: absolute;
  top: calc(100% - 6px);
  right: 12px;
  left: 12px;
  display: none;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--white-16);
  border-radius: var(--radius-md);
  background: var(--backdrop-dark);
  box-shadow: var(--shadow-raised);
  z-index: 10;
}

.sidebar-panel.open {
  display: grid;
}

.nav-list {
  display: flex;
  gap: 8px;
  margin-top: 0;
  flex-direction: column;
}

.nav-item {
  min-height: var(--control-height);
  padding: 10px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--text-on-dark-muted);
  background: transparent;
  text-align: left;
  text-decoration: none;
}

.nav-item.active,
.nav-item:hover {
  color: var(--white);
  background: var(--white-10);
}

.app-content {
  display: grid;
  min-width: 0;
  min-height: 0;
}

.app-footer {
  align-self: end;
  padding: 18px clamp(18px, 4vw, 52px) max(18px, env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.sign-out {
  width: 100%;
  min-height: var(--control-height);
  margin-top: 0;
  border: 1px solid var(--white-16);
  border-radius: var(--radius-sm);
  color: var(--text-on-dark-strong);
  background: var(--white-06);
  font-weight: 800;
}

.sign-out:hover {
  color: var(--white);
  background: var(--white-11);
}

.workspace {
  position: relative;
  padding: 22px max(16px, env(safe-area-inset-right))
    max(24px, calc(env(safe-area-inset-bottom) + 24px))
    max(16px, env(safe-area-inset-left));
}

.analytics-workspace {
  display: grid;
  gap: 22px;
}

.topbar,
.panel-header,
.footer-actions,
.receipt-row,
.summary-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar,
.panel-header,
.footer-actions {
  align-items: stretch;
  flex-direction: column;
}

.topbar {
  margin-bottom: 28px;
}

.topbar > div:first-child {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1;
}

h2 {
  font-size: 1.18rem;
}

h3 {
  font-size: 1rem;
}

.status-pill {
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--accent-24);
  border-radius: var(--radius-pill);
  color: var(--accent-dark);
  background: var(--accent-08);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: normal;
}

.scan-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 15;
  display: grid;
  place-items: center;
  padding: 24px;
  background: color-mix(in srgb, var(--page) 72%, transparent);
  backdrop-filter: blur(3px);
}

.scan-loading-overlay.hidden {
  display: none;
}

.loading-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(100%, 340px);
  padding: 22px;
  border: var(--panel-border);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: var(--panel);
  box-shadow: var(--shadow);
  text-align: center;
}

.loading-card strong {
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.loading-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid var(--accent-24);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: scan-loading-spin 0.85s linear infinite;
}

@keyframes scan-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
  min-width: 0;
}

.landing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  min-width: 0;
}

.scan-panel,
.review-panel,
.landing-panel {
  min-width: 0;
  border: var(--panel-border);
  border-radius: var(--radius-md);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.scan-panel {
  padding: clamp(20px, 3vw, 32px);
}

.review-panel {
  padding: 22px;
}

.landing-panel {
  padding: clamp(20px, 3vw, 30px);
}

.landing-panel-wide {
  grid-column: 1 / -1;
}

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

.metric-row div {
  display: grid;
  align-content: space-between;
  gap: 14px;
  min-height: 118px;
  padding: 20px;
  border: var(--panel-border);
  border-radius: var(--radius-md);
  background: var(--page-soft);
}

.receipt-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.receipt-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
  padding: 16px;
  border: var(--panel-border);
  border-radius: var(--radius-md);
  background: var(--page-soft);
}

.receipt-card h3,
.receipt-card p {
  margin: 0;
}

.receipt-card p,
.receipt-card span,
.empty-state {
  color: var(--muted);
}

.receipt-card-meta {
  display: grid;
  gap: 6px;
  justify-items: end;
  text-align: right;
}

.receipt-card-meta strong {
  font-size: 1.05rem;
}

.receipt-card-meta span {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: capitalize;
}

.receipt-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 280px;
}

.receipt-actions .text-action {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--button-secondary-border);
  border-radius: var(--radius-sm);
  color: var(--button-secondary-text);
  background: var(--button-secondary-bg);
  text-decoration: none;
  white-space: nowrap;
}

.receipt-actions .danger-action {
  border-color: #d92d20;
  color: #b42318;
}

:root[data-theme="dark"] .receipt-actions .danger-action {
  border-color: #f97066;
  color: #ffb4ab;
}

.analytics-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 18px;
}

.receipt-controls,
.analytics-filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  width: 100%;
}

.field.needs-review > span::after {
  color: var(--accent-dark);
  content: " / review";
  font-weight: 900;
}

.field.needs-review input,
.field.needs-review select,
.field.needs-review textarea {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-24);
}

.pagination-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.pagination-controls:empty {
  display: none;
}

.pagination-controls .secondary-action {
  min-height: 36px;
  padding-inline: 12px;
}

.compact-field {
  margin-top: 0;
}

.analytics-generated {
  margin-top: 28px;
  font-weight: 800;
}

.analytics-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.3rem 1rem;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.65rem 1rem;
  overflow: hidden;
}

.analytics-row::before {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  width: var(--bar-width, 0%);
  height: 4px;
  border-radius: 999px;
  background: var(--accent-24);
  content: "";
}

.analytics-row.interactive {
  cursor: pointer;
}

.analytics-row.interactive:hover,
.analytics-row.interactive:focus-visible,
.analytics-row.interactive.selected {
  background: var(--accent-08);
  outline: 2px solid var(--accent-24);
  outline-offset: 0;
}

.analytics-row span {
  position: relative;
  color: var(--muted);
}

.analytics-row strong {
  position: relative;
  color: var(--ink);
  font-size: 0.95rem;
  text-align: right;
}

.analytics-row small {
  position: relative;
  grid-column: 1 / -1;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.insight-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--page-soft);
}

.insight-row.warning {
  border-color: #d97706;
  background: color-mix(in srgb, #d97706 12%, var(--panel));
}

.insight-row span,
.insight-row strong,
.insight-row small {
  min-width: 0;
}

.insight-row span {
  font-weight: 900;
}

.insight-row strong {
  text-align: right;
  text-transform: capitalize;
}

.insight-row small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.4;
}

.analytics-drilldown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.analytics-drilldown-header .eyebrow {
  margin-bottom: 6px;
}

.analytics-drilldown-empty {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--muted);
  background: var(--page-soft);
}

.analytics-drilldown-empty strong {
  color: var(--ink);
}

.analytics-drilldown-receipt {
  background: var(--page-softest);
}

.admin-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-action-row h2 {
  margin: 0.2rem 0;
  font-size: 1.25rem;
}

.panel-copy {
  margin: 0;
  color: var(--muted);
}

.text-action {
  min-height: 0;
  padding: 0;
  border: 0;
  color: var(--accent-dark);
  background: transparent;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.receipt-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: start center;
  padding: 22px max(16px, env(safe-area-inset-right))
    max(28px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
  background: rgb(20 24 31 / 72%);
  overflow: auto;
}

.receipt-modal-panel {
  position: relative;
  display: grid;
  gap: 18px;
  width: min(1120px, 100%);
  max-height: none;
  margin: 10px 0 34px;
  padding: clamp(16px, 2vw, 24px);
  border-radius: var(--radius-md);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.security-key-modal {
  place-items: center;
}

.security-key-modal-panel {
  width: min(480px, 100%);
}

.security-key-modal-panel h2,
.security-key-modal-panel p {
  margin: 0;
}

.modal-close {
  position: sticky;
  top: 0;
  z-index: 2;
  justify-self: end;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--button-secondary-border);
  border-radius: var(--radius-sm);
  color: var(--button-secondary-text);
  background: var(--button-secondary-bg);
  font-weight: 800;
}

.receipt-image-full {
  display: block;
  width: 100%;
  max-height: min(72vh, 680px);
  object-fit: contain;
  border-radius: var(--radius-md);
  background: var(--page-soft);
}

.receipt-detail-grid {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.receipt-detail-panel {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.receipt-detail-panel h2,
.summary-list dd {
  overflow-wrap: anywhere;
}

.line-item-list {
  display: grid;
  gap: 10px;
}

.line-item-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.line-item-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
}

.receipt-detail-status {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--page-soft);
}

.receipt-detail-status.warning {
  border-color: #d97706;
  background: color-mix(in srgb, #d97706 14%, var(--panel));
}

.receipt-detail-status span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.danger-action {
  color: #b42318;
}

.receipt-correction-form {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--page-soft);
}

.receipt-correction-form label,
.correction-line-item {
  display: grid;
  gap: 8px;
}

.receipt-correction-form span,
.correction-line-item legend {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.correction-line-items {
  display: grid;
  gap: 12px;
}

.correction-line-item {
  grid-template-columns: 1fr;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.correction-line-item legend {
  padding: 0 4px;
}

.receipt-correction-form input,
.receipt-correction-form select,
.receipt-correction-form textarea {
  width: 100%;
  min-width: 0;
  min-height: var(--action-height);
  border: 1px solid var(--control-border);
  border-radius: var(--radius-md);
  padding: 9px 10px;
  color: var(--control-text);
  background: var(--control-bg);
}

.receipt-correction-form input::placeholder,
.receipt-correction-form textarea::placeholder {
  color: var(--control-placeholder);
  opacity: 1;
}

.receipt-correction-form input:focus,
.receipt-correction-form select:focus,
.receipt-correction-form textarea:focus {
  border-color: var(--control-focus-border);
  outline: 2px solid var(--accent-24);
  outline-offset: 2px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

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

.empty-state {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.metric-value,
.metric-label {
  display: block;
}

.metric-value {
  overflow-wrap: anywhere;
  font-size: clamp(1.45rem, 6vw, 2.4rem);
  font-weight: 900;
  line-height: 1.05;
}

.metric-label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.compact-list {
  margin-top: 18px;
}

.landing-actions {
  display: flex;
  margin-top: 18px;
}

.panel-header {
  margin-bottom: 24px;
}

.panel-header.compact {
  margin-bottom: 18px;
}

.segmented {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  padding: 3px;
  border: var(--panel-border);
  border-radius: var(--radius-md);
  background: var(--page-soft);
}

.segment {
  min-width: 0;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
}

.segment.active {
  color: var(--segmented-active-text);
  background: var(--segmented-active-bg);
  box-shadow: var(--shadow-soft);
}

.drop-zone {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 360px;
  padding: clamp(22px, 4vw, 38px);
  place-items: center;
  border: 1px dashed #a9b5af;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at top left, var(--gold-15), transparent 34%),
    linear-gradient(135deg, var(--page-softest), var(--page-soft));
  text-align: center;
}

.drop-zone.dragging {
  border-color: var(--accent);
  background: var(--accent-08);
}

.drop-zone.has-image {
  background:
    linear-gradient(var(--white-72), var(--white-72)),
    var(--preview-image) center / contain no-repeat,
    var(--page-soft);
}

.file-input {
  display: none;
}

.receipt-preview {
  width: min(240px, 70%);
  aspect-ratio: 3 / 4;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--white-62);
  box-shadow: var(--shadow-raised);
}

.receipt-paper {
  height: 100%;
  padding: 20px;
  border-radius: 4px;
  background: var(--paper);
}

.receipt-line,
.receipt-row span,
.receipt-total {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: #dce3df;
}

.receipt-line.wide {
  width: 72%;
  margin: 0 auto 12px;
  background: var(--accent);
}

.receipt-line.medium {
  width: 52%;
  margin: 0 auto 28px;
}

.receipt-row {
  margin-bottom: 16px;
}

.receipt-row span:first-child {
  width: 54%;
}

.receipt-row span:last-child {
  width: 25%;
  background: #cfd8d4;
}

.receipt-row.short span:first-child {
  width: 40%;
}

.receipt-total {
  width: 82%;
  height: 14px;
  margin: 28px auto 0;
  background: var(--gold);
}

.camera-frame {
  position: relative;
  width: min(380px, 100%);
  max-width: 100%;
  aspect-ratio: 9 / 16;
  border: 3px solid var(--accent);
  border-radius: 8px;
  background: var(--backdrop-dark);
  box-shadow: var(--shadow-raised);
  overflow: hidden;
}

.camera-preview {
  display: block;
  width: 100%;
  height: 100%;
  filter: brightness(0.82) contrast(1.08) saturate(0.96);
  object-fit: cover;
  image-rendering: auto;
}

.camera-actions {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  gap: 10px;
  padding: 44px 12px 12px;
  background: linear-gradient(transparent, rgb(7 26 54 / 82%));
}

.camera-actions .primary-action,
.camera-actions .secondary-action {
  flex: 1;
  min-width: 0;
  box-shadow: 0 10px 26px rgb(0 0 0 / 24%);
}

.receipt-guide {
  position: absolute;
  inset: 5% 8%;
  border: 2px solid color-mix(in srgb, var(--paper) 92%, transparent);
  border-radius: 8px;
  box-shadow:
    0 0 0 999px rgb(20 24 31 / 28%),
    inset 0 0 0 1px rgb(20 24 31 / 16%);
  pointer-events: none;
}

.receipt-guide span {
  position: absolute;
  width: 34px;
  height: 34px;
  border-color: var(--gold);
}

.receipt-guide span:nth-child(1) {
  top: -2px;
  left: -2px;
  border-top: 4px solid;
  border-left: 4px solid;
}

.receipt-guide span:nth-child(2) {
  top: -2px;
  right: -2px;
  border-top: 4px solid;
  border-right: 4px solid;
}

.receipt-guide span:nth-child(3) {
  right: -2px;
  bottom: -2px;
  border-right: 4px solid;
  border-bottom: 4px solid;
}

.receipt-guide span:nth-child(4) {
  bottom: -2px;
  left: -2px;
  border-bottom: 4px solid;
  border-left: 4px solid;
}

.hidden {
  display: none !important;
}

.drop-copy {
  margin-top: 22px;
}

.drop-copy p {
  margin-top: 6px;
  color: var(--muted);
}

.drop-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.panorama-count {
  margin-top: 12px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: var(--action-height);
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

.primary-action {
  padding: 0 18px;
  border: 1px solid var(--button-primary-border);
  color: var(--button-primary-text);
  background: var(--button-primary-bg);
}

.primary-action:disabled {
  border-color: var(--button-disabled-border);
  color: var(--button-disabled-text);
  background: var(--button-disabled-bg);
}

.secondary-action {
  padding: 0 16px;
  border: 1px solid var(--button-secondary-border);
  color: var(--button-secondary-text);
  background: var(--button-secondary-bg);
}

.secondary-action:disabled {
  border-color: var(--button-disabled-border);
  color: var(--button-disabled-text);
  background: var(--button-disabled-bg);
}

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

.field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 700;
}

.compact-field {
  margin-top: 0;
}

.field-wide {
  grid-column: 1 / -1;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--control-border);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  color: var(--control-text);
  background: var(--control-bg);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--control-placeholder);
  opacity: 1;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--control-focus-border);
  outline: 2px solid var(--accent-24);
  outline-offset: 2px;
}

.field textarea {
  resize: vertical;
}

.summary-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.summary-list div {
  min-height: var(--action-height);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.summary-list dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.summary-list dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
  min-width: 0;
}

.local-note {
  margin: 24px 0;
  padding: 14px;
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  color: var(--muted);
  background: var(--page-softest);
  font-size: 0.9rem;
  line-height: 1.45;
}

.footer-actions {
  align-items: stretch;
  gap: 12px;
  margin-top: 16px;
  padding-bottom: max(24px, calc(env(safe-area-inset-bottom) + 20px));
}

.footer-actions .primary-action,
.footer-actions .secondary-action {
  flex: 1;
}

.styless-list {
  list-style: none;
}

.mt-10 {
  margin-top: 10px;
}

.subtext {
  font-size: 0.72em;
  color: var(--muted);
}

.divider {
  height: 1px;
  background-color: var(--line);
  width: 100%;
  margin: 10px 0;
}

.privacy-policy {
  display: grid;
  gap: 28px;
  min-width: 0;
}

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

.privacy-meta {
  display: grid;
  gap: 8px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.privacy-toc {
  padding: 20px;
  border: var(--panel-border);
  border-radius: var(--radius-md);
  background: var(--page-soft);
}

.privacy-toc ol {
  margin: 12px 0 0;
  padding-left: 20px;
}

.privacy-toc li + li {
  margin-top: 8px;
}

.privacy-toc a {
  color: var(--accent-dark);
  font-weight: 700;
}

.privacy-toc a:hover,
.privacy-toc a:focus-visible {
  color: var(--accent);
}

.privacy-backtotop {
  margin-top: 18px;
}

.privacy-backtotop a {
  color: var(--accent-dark);
  font-weight: 500;
}

.privacy-backtotop a:hover,
.privacy-backtotop a:focus-visible {
  color: var(--accent);
}

.privacy-backtotop::after {
  content: "\2191";
  display: inline-block;
  margin-left: 6px;
  font-size: 0.86rem;
}

.privacy-sections {
  display: grid;
  gap: 30px;
  margin: 0;
  min-width: 0;
}

.privacy-sections > section {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 18px;
}

.privacy-sections > section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.privacy-sections h2,
.privacy-sections h3,
.privacy-sections p,
.privacy-sections ul {
  margin-top: 12px;
}

.privacy-sections h2:first-child {
  margin-top: 0;
}

.privacy-sections ul {
  padding-left: 20px;
  color: var(--ink);
}

.privacy-sections ul li + li {
  margin-top: 8px;
}

.privacy-sections p,
.privacy-sections li,
.privacy-address {
  line-height: 1.6;
}

.privacy-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  margin-top: 14px;
  -webkit-overflow-scrolling: touch;
}

.privacy-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  border: var(--panel-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--page-softest);
  table-layout: fixed;
}

.privacy-table caption {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: left;
}

.privacy-table th,
.privacy-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.privacy-table th {
  background: var(--page-soft-alt);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.privacy-table tbody tr:last-child td,
.privacy-table tbody tr:last-child th {
  border-bottom: 0;
}

.privacy-address {
  font-style: normal;
}

.settings-workspace {
  display: grid;
  gap: 22px;
}

.settings-panel {
  max-width: 860px;
}

.settings-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.settings-form,
.settings-summary {
  display: grid;
  gap: 16px;
}

.settings-summary div {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: var(--panel-border);
  border-radius: var(--radius-md);
  background: var(--page-soft);
}

.settings-summary span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.settings-summary strong {
  overflow-wrap: anywhere;
}

.upgrade-callout {
  display: grid;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  padding: 14px;
  border: 1px solid var(--accent-dark);
  border-radius: var(--radius-md);
  background: var(--accent-08);
  color: var(--ink);
}

.upgrade-callout.compact {
  margin-top: 14px;
}

.upgrade-callout span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

:root[data-theme="dark"] .local-note,
:root[data-theme="dark"] .upgrade-callout span {
  color: var(--text-on-dark-strong);
}

.upgrade-callout .secondary-action {
  justify-self: start;
}

.subscription-plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 18px;
}

.subscription-plan-card {
  display: grid;
  gap: 16px;
  align-content: space-between;
  min-height: 300px;
  padding: 18px;
  border: var(--panel-border);
  border-radius: var(--radius-md);
  background: var(--page-soft);
}

.subscription-plan-card.current {
  border-color: var(--accent-dark);
  background: var(--accent-08);
}

.subscription-plan-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.subscription-plan-title span {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid var(--accent-24);
  border-radius: var(--radius-pill);
  color: var(--accent-dark);
  background: var(--panel);
  font-size: 0.74rem;
  font-weight: 900;
}

.subscription-plan-card strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.subscription-plan-card strong span {
  color: var(--muted);
  font-size: 0.9rem;
}

.subscription-plan-card p {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.subscription-plan-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.subscription-plan-card li {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.subscription-plan-card li::before {
  color: var(--accent-dark);
  content: "+ ";
  font-weight: 900;
}

.subscription-plan-card button {
  width: 100%;
}

.subscription-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.locked-action,
.locked-action:hover {
  border-color: var(--line);
  background: var(--page-soft);
  color: var(--muted);
  filter: grayscale(0.45);
  cursor: not-allowed;
}

.app-toast {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 80;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  border: 1px solid var(--accent-dark);
  border-radius: var(--radius-md);
  background: var(--accent);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 900;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.98);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.app-toast[data-variant="success"] {
  border-color: #047857;
  background: #d1fae5;
  color: #064e3b;
}

.app-toast[data-variant="error"] {
  border-color: #b42318;
  background: #fee4e2;
  color: #7a271a;
}

.app-toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.tier-discovery-pop {
  animation: tier-discovery-pop 520ms ease;
}

@keyframes tier-discovery-pop {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 52%, transparent);
    transform: translateY(0);
  }

  45% {
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 18%, transparent);
    transform: translateY(-1px);
  }

  100% {
    box-shadow: 0 0 0 0 transparent;
    transform: translateY(0);
  }
}

.theme-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: var(--panel-border);
  border-radius: var(--radius-md);
  background: var(--page-soft);
  cursor: pointer;
}

.theme-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-08);
}

.theme-option input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent-dark);
}

.theme-option span {
  display: grid;
  gap: 6px;
}

.theme-option strong {
  color: var(--ink);
}

.theme-option small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.4;
}

@media (max-width: 720px) {
  input,
  select,
  textarea {
    font-size: 16px;
  }

  .login-panel {
    padding-bottom: max(96px, calc(env(safe-area-inset-bottom) + 72px));
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .site-login {
    width: 100%;
  }

  .site-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    margin-top: 10px;
    padding: 24px 16px;
  }

  .site-hero h1 {
    font-size: clamp(2.45rem, 13vw, 3.4rem);
  }

  .site-hero p {
    font-size: 1rem;
    line-height: 1.55;
  }

  .site-launch-countdown {
    grid-template-columns: 1fr;
    margin-top: 12px;
  }

  .site-launch-countdown dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-product-shot {
    width: 100%;
    justify-self: stretch;
    padding: 16px;
  }

  .site-app-preview {
    min-height: auto;
    padding: 14px;
  }

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

  .site-receipt-paper-preview {
    min-height: 190px;
  }

  .site-feature-grid,
  .site-audience-grid,
  .site-plan-grid,
  .site-steps,
  .site-metric-row {
    grid-template-columns: 1fr;
  }

  .site-section {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
  }

  .workspace {
    padding-top: 18px;
    padding-bottom: max(88px, calc(env(safe-area-inset-bottom) + 72px));
  }

  .scan-panel,
  .review-panel {
    padding: 16px;
  }

  .scan-panel .panel-header {
    gap: 12px;
  }

  .drop-zone {
    min-height: min(560px, calc(100dvh - 220px));
    padding: 14px;
    overflow: hidden;
  }

  .camera-frame {
    width: min(100%, 360px);
    max-height: min(62dvh, 560px);
  }

  .camera-actions {
    padding: 40px 10px 10px;
  }

  .drop-copy {
    margin-top: 14px;
  }

  .drop-actions {
    width: 100%;
    margin-top: 16px;
  }

  .drop-actions .primary-action,
  .drop-actions .secondary-action {
    flex: 1 1 min(150px, 100%);
  }

  .footer-actions {
    padding-bottom: max(40px, calc(env(safe-area-inset-bottom) + 32px));
  }

  .analytics-workspace .topbar {
    margin-bottom: 8px;
  }

  .admin-action-row {
    align-items: stretch;
    flex-direction: column;
  }

  .receipt-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .receipt-card-meta {
    justify-items: start;
    width: 100%;
    text-align: left;
  }

  .receipt-actions {
    justify-content: flex-start;
    max-width: 100%;
  }

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

  .metric-row div {
    min-height: 96px;
  }
}
