:root {
  --ink: #071527;
  --ink-soft: #1d3348;
  --muted: #46586a;
  --line: #dbe7ee;
  --surface: #ffffff;
  --surface-soft: #f4f9fb;
  --surface-tint: #e9fbf8;
  --cyan: #11b9c4;
  --cyan-dark: #06616d;
  --green: #137333;
  --green-soft: #dff8e8;
  --amber: #f59e0b;
  --coral: #f9735b;
  --shadow: 0 22px 70px rgba(7, 21, 39, 0.15);
  --radius: 8px;
  --radius-lg: 18px;
  --header-height: 72px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  line-height: 1.6;
}

body::selection {
  background: #bff4ee;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

button,
input,
textarea {
  font: inherit;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px max(16px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid rgba(219, 231, 238, 0.82);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.brand,
.nav-actions,
.hero-actions,
.benefit-badges,
.dashboard-top,
.chart-head,
.category-list li,
.demo-tabs,
.parsed-list li,
.confirm-row,
.footer-inner,
.final-cta-inner {
  display: flex;
  align-items: center;
}

.brand {
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand > span:last-child {
  line-height: 1.25;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: block;
  flex: 0 0 38px;
  overflow: hidden;
  border-radius: 10px;
  background: #071527;
  object-fit: cover;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-actions {
  gap: 8px;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-weight: 800;
  line-height: 1.15;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #0f766e, #06707d);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(8, 121, 135, 0.28);
}

.btn-secondary {
  background: #ffffff;
  border-color: rgba(17, 185, 196, 0.4);
  color: var(--cyan-dark);
}

.btn-ghost {
  display: none;
  color: var(--ink-soft);
  background: transparent;
  border-color: var(--line);
}

.btn-link {
  background: transparent;
  color: #dffdf8;
  border-color: rgba(223, 253, 248, 0.25);
}

.btn-large {
  min-height: 50px;
  padding: 13px 18px;
}

.section {
  padding: 72px 0;
}

.section-band {
  background:
    linear-gradient(180deg, #f8fcfd 0%, #eef8f7 100%);
}

.hero {
  padding: 46px 0 72px;
  background:
    radial-gradient(circle at 10% 20%, rgba(20, 184, 166, 0.18), transparent 26%),
    linear-gradient(145deg, #071527 0%, #0b2f49 52%, #0f766e 100%);
  color: #ffffff;
}

.page-hero {
  padding: 64px 0 56px;
  background: linear-gradient(145deg, #071527 0%, #0b2f49 56%, #0f766e 100%);
  color: #ffffff;
}

.page-hero .eyebrow {
  color: #e0fff3;
}

.page-hero p {
  max-width: 760px;
  color: #eef7f8;
  font-size: 18px;
}

.hero-grid,
.two-column,
.analysis-grid {
  display: grid;
  gap: 32px;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #e0fff3;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(42px, 9vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  max-width: 720px;
  color: #eef7f8;
  font-size: 18px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 20px;
}

.benefit-badges {
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.benefit-badges li {
  border: 1px solid rgba(223, 253, 248, 0.22);
  border-radius: 999px;
  padding: 7px 12px;
  color: #eafffb;
  background: rgba(7, 21, 39, 0.42);
  font-size: 13px;
  font-weight: 800;
}

.dashboard-shell {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  padding: 18px;
  background: rgba(7, 21, 39, 0.42);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.dashboard-top {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.dashboard-top strong {
  display: block;
  font-size: 28px;
  line-height: 1.1;
}

.muted,
.metric-card span,
.chart-head span,
.ai-card span,
.advice-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.hero .dashboard-top .muted {
  color: #eafffb;
}

.hero .metric-card,
.hero .chart-card,
.hero .split-panel {
  color: var(--ink);
}

.hero .metric-card span,
.hero .chart-head span,
.hero .ai-card span {
  color: var(--cyan-dark);
}

.status-chip {
  border-radius: 999px;
  padding: 8px 12px;
  background: #dcfce7;
  color: #166534;
  font-size: 13px;
  font-weight: 900;
}

.metric-grid,
.feature-grid,
.three-blocks {
  display: grid;
  gap: 14px;
}

.metric-card,
.chart-card,
.split-panel,
.demo-card,
.receipt-phone,
.feature-card,
.three-blocks article,
.advice-card,
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.metric-card {
  padding: 16px;
}

.metric-card strong {
  display: block;
  margin: 6px 0 2px;
  font-size: 23px;
  color: var(--ink);
}

.metric-card small {
  color: var(--muted);
}

.accent-cyan {
  background: linear-gradient(145deg, #effeff, #ffffff);
}

.accent-green {
  background: linear-gradient(145deg, var(--green-soft), #ffffff);
}

.chart-card,
.split-panel {
  margin-top: 14px;
  padding: 16px;
}

.bars {
  height: 154px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 9px;
  padding-top: 18px;
}

.bars span {
  min-height: 34px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, var(--cyan), var(--green));
}

.bar-38 {
  height: 38%;
}

.bar-42 {
  height: 42%;
}

.bar-44 {
  height: 44%;
}

.bar-48 {
  height: 48%;
}

.bar-55 {
  height: 55%;
}

.bar-62 {
  height: 62%;
}

.bar-70 {
  height: 70%;
}

.split-panel {
  display: grid;
  gap: 16px;
}

.split-panel h2 {
  font-size: 18px;
}

.dashboard-card-title {
  display: block;
  margin-bottom: 14px;
  font-size: 18px;
  line-height: 1.08;
  color: var(--ink);
}

.category-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.category-list li {
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 14px;
}

.ai-card {
  border-radius: var(--radius);
  padding: 14px;
  background: #fff8eb;
  color: var(--ink);
}

.ai-card p,
.advice-card p {
  margin: 6px 0 0;
  font-weight: 800;
  line-height: 1.45;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.content-columns,
.comparison-grid,
.guide-grid {
  display: grid;
  gap: 18px;
}

.content-columns p:last-child {
  margin-bottom: 0;
}

.jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.jump-links a {
  border: 1px solid rgba(17, 185, 196, 0.28);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--surface-tint);
  color: var(--cyan-dark);
  font-size: 14px;
  font-weight: 900;
}

.comparison-grid article,
.guide-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.comparison-grid article {
  padding: 22px;
}

.comparison-grid p {
  color: var(--muted);
}

.guide-card {
  display: grid;
  gap: 8px;
  padding: 20px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.guide-card:hover {
  border-color: rgba(17, 185, 196, 0.5);
  box-shadow: 0 14px 34px rgba(7, 21, 39, 0.08);
  transform: translateY(-1px);
}

.guide-card span {
  color: var(--muted);
}

.article-layout {
  display: grid;
  gap: 32px;
  align-items: start;
}

.article-content {
  max-width: 820px;
}

.article-content h2 {
  margin-top: 38px;
}

.article-content h3 {
  margin-top: 28px;
}

.article-content p,
.article-content li {
  color: var(--ink-soft);
}

.article-content a:not(.btn) {
  color: var(--cyan-dark);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-content ul,
.article-content ol {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}

.article-note,
.related-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--surface-soft);
}

.related-box {
  display: grid;
  gap: 10px;
}

.related-box a {
  color: var(--cyan-dark);
  font-weight: 900;
}

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

.feature-card,
.three-blocks article {
  padding: 22px;
}

.feature-card p,
.three-blocks p,
.two-column p,
.analysis-list span,
.faq-panel p,
.fine-copy,
.site-footer p {
  color: var(--muted);
}

.icon-pill {
  width: 40px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--surface-tint);
  color: var(--cyan-dark);
  font-size: 13px;
  font-weight: 900;
}

.two-column {
  align-items: center;
}

.demo-card {
  padding: 16px;
  box-shadow: 0 18px 60px rgba(7, 21, 39, 0.1);
}

.demo-tabs {
  gap: 8px;
  margin-bottom: 16px;
}

.demo-tabs button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 12px;
  background: #ffffff;
  color: var(--ink-soft);
  cursor: pointer;
  font-weight: 900;
}

.demo-tabs button.is-active {
  border-color: transparent;
  background: var(--ink);
  color: #ffffff;
}

.input-preview {
  border: 1px solid #b9e7e4;
  border-radius: var(--radius);
  padding: 16px;
  background: #f3fffd;
  color: var(--ink);
  font-weight: 800;
}

.parsed-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}

.parsed-list li {
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.parsed-list span,
.parsed-list small,
.parsed-list strong {
  min-width: 0;
}

.parsed-list small {
  flex: 1;
  color: var(--muted);
}

.parsed-list .total {
  border-bottom: 0;
  color: var(--green);
}

.receipt-preview,
.insight-preview {
  display: grid;
  gap: 10px;
  border-radius: var(--radius);
  padding: 18px;
  background: var(--surface-soft);
  color: var(--ink-soft);
}

.receipt-preview strong {
  color: var(--green);
}

.receipt-phone {
  position: relative;
  min-height: 460px;
  padding: 24px;
  overflow: hidden;
  background: linear-gradient(155deg, var(--ink), #0c4a6e 62%, #0f766e);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.phone-top {
  width: 82px;
  height: 7px;
  margin: 0 auto 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.receipt-paper {
  display: grid;
  gap: 14px;
  max-width: 270px;
  margin: 0 auto;
  border-radius: 6px;
  padding: 26px 20px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 16px 40px rgba(7, 21, 39, 0.22);
}

.receipt-paper span {
  border-bottom: 1px dashed var(--line);
  padding-bottom: 8px;
}

.scan-line {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 164px;
  height: 3px;
  background: var(--amber);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.8);
}

.confirm-row {
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 255, 255, 0.12);
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-soft);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: inset 0 0 0 4px #dff8e8;
}

.three-blocks {
  grid-template-columns: 1fr;
}

.analysis-grid {
  align-items: stretch;
}

.analysis-list {
  display: grid;
  gap: 12px;
}

.analysis-list div {
  display: grid;
  gap: 4px;
  border-left: 4px solid var(--cyan);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 16px;
  background: var(--surface-soft);
}

.advice-card {
  padding: 24px;
  background: linear-gradient(145deg, #fffaf0, #effdf9);
  box-shadow: 0 18px 55px rgba(7, 21, 39, 0.1);
}

.advice-card small {
  display: block;
  margin-top: 14px;
  color: var(--muted);
}

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

.steps li {
  counter-increment: step;
  display: grid;
  gap: 4px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 18px 68px;
  background: #ffffff;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #ffffff;
  font-weight: 900;
}

.steps span {
  color: var(--muted);
}

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

.faq-button {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  border-radius: var(--radius);
  padding: 16px 18px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  font-weight: 900;
}

.faq-button::after {
  content: "+";
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--surface-tint);
  color: var(--cyan-dark);
}

.faq-button[aria-expanded="true"]::after {
  content: "-";
}

.faq-panel {
  padding: 0 18px 18px;
}

.faq-panel p {
  margin-bottom: 0;
}

.final-cta {
  padding: 56px 0;
  background: linear-gradient(135deg, var(--ink), #0e7490 58%, #15803d);
  color: #ffffff;
}

.final-cta-inner {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.final-cta h2 {
  max-width: 620px;
  margin: 0;
}

.site-footer {
  padding: 32px 0;
  background: var(--ink);
  color: #eafffb;
}

.footer-inner {
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 6px 0 0;
  color: #b8d1d3;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #d7f7f4;
  font-weight: 700;
}

@media (max-width: 520px) {
  .site-header {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .brand {
    flex: 1 0 100%;
  }

  .nav-actions {
    width: 100%;
  }

  .nav-actions .btn {
    flex: 1;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .parsed-list li {
    display: grid;
    align-items: start;
  }
}

@media (max-width: 719px) {
  .site-header {
    background: #ffffff;
    backdrop-filter: none;
  }

  .hero {
    padding: 36px 0 56px;
    background: linear-gradient(145deg, #071527 0%, #0b2f49 55%, #0f766e 100%);
  }

  .dashboard-shell {
    background: rgba(7, 21, 39, 0.38);
    box-shadow: none;
    backdrop-filter: none;
  }

  .dashboard-top strong {
    font-size: 25px;
  }

  .bars {
    height: 122px;
  }

  .demo-card,
  .receipt-phone,
  .advice-card {
    box-shadow: none;
  }
}

@media (min-width: 720px) {
  .nav-links {
    display: flex;
  }

  .btn-ghost {
    display: inline-flex;
  }

  .metric-grid,
  .feature-grid,
  .three-blocks,
  .content-columns,
  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-panel {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .hero-grid,
  .two-column,
  .analysis-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  }

  .hero-grid {
    align-items: center;
  }

  .reverse {
    grid-template-columns: minmax(360px, 0.85fr) minmax(0, 1fr);
  }

  .feature-grid,
  .three-blocks,
  .comparison-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section {
    padding: 96px 0;
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
