:root {
  color-scheme: light;
  --ink: #202039;
  --muted: #56566d;
  --purple: #6549ce;
  --purple-dark: #5038ab;
  --mint: #e2f3e9;
  --line: #e7e3ed;
  --surface: #faf9f6;
  --paper: #fff;
  font-family: "Aptos", "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
  background: var(--surface);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover, .text-button:hover { text-decoration: underline; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }
.wrap { width: min(1160px, calc(100% - 96px)); margin-inline: auto; }
.masthead, .footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.masthead { min-height: 84px; border-bottom: 1px solid var(--line); }
.brand, .mini-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; letter-spacing: -.045em; }
.brand { font-size: 1.26rem; }
.mark { position: relative; display: inline-block; width: 30px; height: 30px; border-radius: 9px; background: var(--purple); flex: none; }
.mark::before, .mark::after { content: ""; position: absolute; width: 49%; height: 28%; border: 1.5px solid #fff; border-radius: 2px; left: 25%; transform: rotate(-17deg); }
.mark::before { top: 31%; }
.mark::after { top: 46%; background: var(--purple); }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(16px, 3vw, 32px); font-size: .92rem; font-weight: 600; }
.nav-login { padding: 10px 15px; border: 1px solid #ddd7eb; border-radius: 9px; }
.nav-login span { margin-left: 4px; color: var(--purple); }
.hero { display: grid; grid-template-columns: 1fr 1.12fr; align-items: center; gap: 40px; padding-block: 88px 100px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--purple-dark); text-transform: uppercase; letter-spacing: .11em; font-size: .72rem; font-weight: 800; }
.dot { display: inline-block; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--purple); }
h1, h2 { line-height: 1.055; font-weight: 750; letter-spacing: -.065em; }
.hero h1 { font-size: clamp(2.9rem, 5vw, 4.55rem); margin-block: 17px 20px; text-wrap: balance; }
.accent { color: var(--purple); }
.intro { max-width: 390px; color: var(--muted); font-size: clamp(1.04rem, 1.43vw, 1.18rem); line-height: 1.68; margin-bottom: 24px; }
.button { border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border-radius: 9px; padding: 12px 17px; font-weight: 720; }
.button span { font-size: 1.12em; }
.primary { background: var(--purple); color: #fff; box-shadow: 0 3px 7px #4f38a527; }
.primary:hover { background: var(--purple-dark); }
.secondary { background: var(--paper); border-color: #ddd7eb; color: var(--purple-dark); }
.secondary:hover { background: #f1ecff; }
.micro { color: var(--muted); margin-top: 11px; font-size: .83rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.hero-link { color: var(--purple-dark); font-weight: 675; min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: .19em; }
.showcase { min-width: 0; background: linear-gradient(140deg, #e6f4eb 8%, #f2f7ed 76%, #f8f6ea); border: 1px solid #daebdf; border-radius: 24px; min-height: 400px; position: relative; padding: clamp(22px, 4vw, 55px) clamp(19px, 3.5vw, 46px) 61px; isolation: isolate; }
.showcase::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background-image: radial-gradient(#7795854a 1px, transparent 1px); background-size: 16px 16px; mask-image: linear-gradient(135deg, transparent 55%, #000); }
.preview { background: #fff; border: 1px solid #dedfe6; border-radius: 15px; overflow: hidden; box-shadow: 0 16px 30px #3f5d4d22; }
.preview-bar { padding: 12px 15px; display: flex; gap: 8px; align-items: center; justify-content: space-between; border-bottom: 1px solid #eceaf1; background: #faf9fd; }
.mini-brand { font-size: .87rem; gap: 6px; }
.mini-brand .mark { width: 19px; height: 19px; border-radius: 5px; }
.sample { background: #eee9fe; color: var(--purple-dark); padding: 2px 8px; border-radius: 20px; font-weight: 700; font-size: .66rem; white-space: nowrap; }
.preview-body { padding: 17px 16px 22px; }
.breadcrumb { color: var(--muted); font-size: .74rem; margin-bottom: 9px; }
.breadcrumb span { margin-inline: 3px; }
.preview-title { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.preview-title h2 { font-size: clamp(1.18rem, 2vw, 1.68rem); letter-spacing: -.05em; }
.preview-title p { margin-top: 4px; font-size: .73rem; color: var(--muted); }
.status { display: inline-block; background: #f5eddc; color: #674714; font-weight: 700; font-size: .72rem; border-radius: 15px; padding: 4px 8px; }
.status:empty { display: none; }
.preview-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-block: 14px 9px; }
.preview-stats div { background: #f5f3fa; border-radius: 7px; padding: 8px 9px; font-size: .7rem; color: var(--muted); }
.preview-stats .due { background: var(--mint); color: #275c44; }
.preview-stats strong { display: block; color: var(--ink); line-height: 1.2; margin-top: 2px; font-size: 1.29rem; letter-spacing: -.06em; }
.preview-table, .receipt-table { width: 100%; border-collapse: collapse; text-align: left; }
.preview-table { font-size: clamp(.63rem, 1vw, .76rem); }
.preview-table th, .preview-table td { border-bottom: 1px solid #eceaf1; padding: 7px 3px 6px; }
.preview-table tbody th { font-weight: 650; }
.preview-table thead th { color: var(--muted); font-weight: 600; }
.preview-table :is(th, td):not(:first-child) { text-align: right; }
.preview-table tbody td:last-child { color: #275c44; font-weight: 800; }
.receipt-preview { position: absolute; right: clamp(12px, 2vw, 28px); bottom: 23px; display: flex; gap: 9px; align-items: center; background: #fff; border: 1px solid #e5e1ed; box-shadow: 0 5px 16px #3f5d4d26; border-radius: 10px; padding: 8px 12px 8px 8px; font-size: .78rem; line-height: 1.35; }
.receipt-preview small { display: block; color: var(--muted); font-size: .67rem; }
.receipt-icon, .step-icon { display: inline-grid; place-items: center; color: var(--purple-dark); background: #eee9fe; border-radius: 8px; font-weight: 700; }
.receipt-icon { width: 30px; height: 30px; font-size: 1rem; }
.workflow { background: #f2eff8; border-block: 1px solid #eae4f2; padding-block: 67px 74px; }
.section-heading h2 { font-size: clamp(2.35rem, 4.3vw, 3.7rem); margin-top: 13px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(23px, 4vw, 52px); margin-top: 35px; }
.steps article { border-top: 1px solid #dcd4ed; padding-top: 20px; }
.step-icon { width: 40px; height: 40px; font-size: 1.27rem; background: #e9e0ff; margin-bottom: 11px; }
.steps h3 { letter-spacing: -.03em; font-size: 1.23rem; }
.steps p, .closing p { margin-top: 6px; color: var(--muted); }
.closing { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding-block: 62px; }
.closing h2 { font-size: clamp(1.92rem, 3.4vw, 2.85rem); }
.closing form { flex: none; }
.fit { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 48px; border-bottom: 1px solid var(--line); }
.fit h2 { font-size: clamp(1.7rem, 3vw, 2.55rem); }
.fit p { max-width: 610px; margin-top: 9px; color: var(--muted); }
.fit .button { flex: none; }
.footer { min-height: 86px; border-top: 1px solid var(--line); }
.footer .brand { font-size: 1.02rem; }
.footer .mark { width: 23px; height: 23px; border-radius: 7px; }
.footer nav { color: var(--muted); }
.entry { min-height: 100vh; display: flex; flex-direction: column; }
.entry .masthead > a:last-child { font-size: .9rem; color: var(--muted); }
.entry-main { display: grid; place-items: center; flex: 1; padding-block: 38px; }
.entry-card { width: min(100%, 450px); margin-inline: auto; padding: clamp(22px, 5vw, 42px); background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 12px 32px #30274a0d; }
.entry-card h1 { margin-block: 13px 24px; font-size: clamp(2.25rem, 6vw, 3.2rem); }
.entry-card form label { display: block; margin-bottom: 5px; font-weight: 650; font-size: .91rem; }
.entry-card input { color: var(--ink); background: #fcfbfd; width: 100%; border: 1px solid #d6d2df; border-radius: 8px; padding: 9px 11px; margin-bottom: 14px; }
.entry-card .primary { width: 100%; margin-top: 6px; }
.entry-secondary { text-align: center; margin-top: 16px; }
.simple-page { width: min(660px, calc(100% - 38px)); margin: 55px auto; }
.simple-brand { color: var(--purple-dark); font-weight: 750; display: inline-block; margin-bottom: 20px; }
.simple-page h1 { font-size: clamp(2.4rem, 7vw, 4rem); margin-bottom: 20px; }
.simple-page p { margin-block: 14px; }
.simple-page input { display: block; margin-top: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 10px; width: min(100%, 400px); }
.text-button { color: var(--purple-dark); font-weight: 650; font-size: .9rem; border: 0; padding: 5px; background: none; }
.error { color: #9e2b39; margin-block: 0 6px; font-size: .88rem; }
.paper-width { width: min(860px, calc(100% - 48px)); margin-inline: auto; }
.receipt-page { padding-bottom: 36px; }
.receipt-page .masthead { border: 0; }
.receipt-paper { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 6vw, 53px); box-shadow: 0 14px 38px #3529480f; overflow-wrap: anywhere; }
.receipt-sample { margin-bottom: 18px; border-radius: 8px; padding: 10px 13px; background: var(--mint); color: #275c44; font-size: .9rem; }
.receipt-heading h1 { font-size: clamp(2.35rem, 7vw, 4rem); margin-top: 12px; }
.receipt-heading .from { color: var(--muted); margin-top: 5px; }
.receipt-metadata { display: flex; flex-wrap: wrap; gap: 14px 30px; margin-block: 25px; border-block: 1px solid var(--line); padding-block: 16px; }
.receipt-metadata dt { color: var(--muted); font-size: .78rem; font-weight: 650; }
.receipt-metadata dd { margin-inline: 0; font-weight: 650; margin-top: 4px; }
.receipt-summary { margin-bottom: 11px; font-weight: 650; }
.table-scroll { overflow: auto; }
.receipt-table { min-width: 430px; }
.receipt-table thead { background: #f4f1fa; }
.receipt-table th, .receipt-table td { border-bottom: 1px solid var(--line); padding: 9px 8px; font-size: .875rem; }
.receipt-table tr > :not(:first-child) { text-align: right; }
.return-history { margin-block: 32px 21px; }
.return-history h2 { font-size: 1.5rem; letter-spacing: -.04em; margin-bottom: 12px; }
.return-rows { color: var(--muted); font-size: .9rem; }
.receipt-event { padding: 10px 0; border-bottom: 1px solid var(--line); }
.receipt-event strong { color: var(--ink); }
.receipt-event ul { margin-block: 4px 0; padding-left: 20px; }
.receipt-footer { color: var(--muted); font-size: .79rem; }
@media (max-width: 920px) {
  .wrap { width: calc(100% - 64px); }
  .hero { gap: 26px; padding-block: 65px 82px; }
  .large-only { display: none; }
}
@media (max-width: 730px) {
  .wrap { width: calc(100% - 38px); }
  .masthead { min-height: 66px; }
  .hero { grid-template-columns: 1fr; gap: 31px; padding-block: 47px 53px; }
  .hero h1 { margin-block: 11px 15px; font-size: clamp(2.74rem, 9.4vw, 4.3rem); }
  .hero-copy, .showcase { max-width: 540px; }
  .showcase { min-height: 0; }
  .workflow { padding-block: 48px; }
  .steps { margin-top: 26px; }
  .closing { padding-block: 44px; }
}
@media (max-width: 500px) {
  .nav-workflow { display: none; }
  .steps { grid-template-columns: 1fr; gap: 19px; }
  .steps article { padding-top: 13px; }
  .closing { align-items: start; flex-direction: column; }
  .fit { align-items: start; flex-direction: column; }
  .footer { flex-wrap: wrap; }
  .footer nav { padding-block: 6px; }
  .paper-width { width: calc(100% - 25px); }
  .receipt-page .masthead { gap: 8px; }
  .receipt-page .print-button { padding: 7px 9px; font-size: .85rem; }
  .receipt-table { min-width: 0; table-layout: fixed; }
  .receipt-table th, .receipt-table td { padding: 7px 3px; font-size: .8rem; }
  .receipt-table th:first-child { width: 30%; }
}
@media print {
  :root, body { background: white; }
  body { padding: 0; }
  .receipt-page .masthead { display: none; }
  .paper-width { width: 100%; }
  .receipt-paper { padding: 0; box-shadow: none; border: 0; }
  .table-scroll { overflow: visible; }
  .receipt-table { min-width: 0; }
  .receipt-event, .receipt-heading, .receipt-metadata { break-inside: avoid; }
}
