/* ===== Svercheck — design tokens ===== */
:root {
  --bg: #F7F8F5;
  --surface: #FFFFFF;
  --text: #171A17;
  --text-secondary: #686D68;
  --text-tertiary: #9AA09A;
  --primary: #35C46A;
  --primary-dark: #299A54;
  --primary-light: #EAF8EF;
  --border: #E5E8E3;
  --warning: #F4B740;
  --warning-bg: #FDF1DA;
  --warning-text: #A9660A;
  --danger: #E5484D;
  --danger-bg: #FBEAEA;
  --danger-text: #C93A34;

  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgba(23, 26, 23, 0.04), 0 12px 28px -12px rgba(23, 26, 23, 0.08);
  --shadow-card-hover: 0 2px 4px rgba(23, 26, 23, 0.05), 0 20px 40px -16px rgba(23, 26, 23, 0.12);

  --container: 1220px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }

.section {
  padding: 64px 0;
}
@media (max-width: 720px) {
  .section { padding: 44px 0; }
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 36px;
}
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  max-width: 560px;
}
.section-head .section-note {
  color: var(--text-secondary);
  max-width: 320px;
  font-size: 15px;
  text-align: right;
}
@media (max-width: 800px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section-head .section-note { text-align: left; max-width: none; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 22px;
  border: 1px solid transparent;
  transition: transform 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(23,26,23,0.05), 0 8px 20px -8px rgba(53, 196, 106, 0.55);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: #c9cec6; background: #fcfdfb; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  padding: 10px 16px;
}
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px 0;
  transition: background-color 0.25s var(--ease), box-shadow 0.25s var(--ease), padding 0.25s var(--ease);
}
.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(247, 248, 245, 0.7);
  backdrop-filter: blur(0px);
  border-radius: var(--radius-lg);
  padding: 10px 10px 10px 20px;
  transition: background-color 0.25s var(--ease), box-shadow 0.25s var(--ease), backdrop-filter 0.25s var(--ease);
}
.site-header.scrolled .header-inner {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.logo .logo-check {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.logo .logo-check svg { width: 12px; height: 12px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s var(--ease);
}
.nav-links a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 20px; }

.nav-toggle { display: none; }

@media (max-width: 840px) {
  .nav-links { display: none; }
}

/* ===== Hero ===== */
.hero {
  padding: 40px 0 72px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: center;
}
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
}

.hero h1 {
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.08;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.hero-hint {
  font-size: 13.5px;
  color: var(--text-tertiary);
  margin-bottom: 28px;
}

.trust-row {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 190px;
}
.trust-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 2px;
}
.trust-item span {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ===== Hero preview mock ===== */
.hero-preview {
  position: relative;
  min-height: 480px;
}

.receipt-photo {
  position: absolute;
  top: 6%;
  right: -4%;
  width: 172px;
  transform: rotate(9deg);
  background: #fff;
  padding: 18px 16px 22px;
  font-family: "SF Mono", "JetBrains Mono", Menlo, monospace;
  font-size: 9.5px;
  color: #3a3d3a;
  box-shadow: var(--shadow-card);
  clip-path: polygon(
    0% 0%, 100% 0%, 100% 96%,
    92% 100%, 84% 96%, 76% 100%, 68% 96%, 60% 100%,
    52% 96%, 44% 100%, 36% 96%, 28% 100%, 20% 96%,
    12% 100%, 4% 96%, 0% 100%
  );
  z-index: 1;
}
.receipt-photo .r-store {
  font-weight: 700;
  font-size: 11px;
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.receipt-photo .r-line {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  border-bottom: 1px dashed #dcded9;
  padding: 4px 0;
  opacity: 0.85;
}
.receipt-photo .r-qr {
  margin: 14px auto 0;
  width: 46px;
  height: 46px;
  background:
    linear-gradient(90deg, #22251f 0 20%, transparent 0 40%, #22251f 0 60%, transparent 0 80%, #22251f 0 100%) 0 0/100% 20%,
    linear-gradient(90deg, transparent 0 20%, #22251f 0 40%, transparent 0 60%, #22251f 0 80%, transparent 0 100%) 0 20%/100% 20%,
    linear-gradient(90deg, #22251f 0 20%, transparent 0 40%, #22251f 0 60%, transparent 0 80%, #22251f 0 100%) 0 40%/100% 20%,
    linear-gradient(90deg, transparent 0 20%, #22251f 0 40%, transparent 0 60%, #22251f 0 80%, transparent 0 100%) 0 60%/100% 20%,
    linear-gradient(90deg, #22251f 0 20%, transparent 0 40%, #22251f 0 60%, transparent 0 80%, #22251f 0 100%) 0 80%/100% 20%;
  background-repeat: no-repeat;
}

.receipt-annotation {
  position: absolute;
  top: -2%;
  right: 26%;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  transform: rotate(-6deg);
}
.receipt-annotation svg { width: 34px; height: 34px; color: var(--text-tertiary); }
.receipt-annotation span {
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 500;
  max-width: 90px;
  margin-top: 6px;
}

.result-card {
  position: relative;
  z-index: 2;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card-hover);
  padding: 22px;
  max-width: 420px;
  margin-top: 60px;
}
.result-card-label {
  font-size: 12.5px;
  color: var(--text-tertiary);
  margin: 0 0 10px 4px;
  font-weight: 500;
}
.result-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.store-badge {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.store-badge svg { width: 18px; height: 18px; }
.result-card-head .store-meta { flex: 1; }
.result-card-head .store-name { font-weight: 600; font-size: 15px; }
.result-card-head .store-date { font-size: 12.5px; color: var(--text-tertiary); }
.result-card-head .more-dots { color: var(--text-tertiary); }
.more-dots svg { width: 18px; height: 18px; }

.item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #F0F1EE;
}
.item-row:last-of-type { border-bottom: none; }
.item-name {
  flex: 1.3;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.3;
}
.item-prices {
  flex: 1;
  display: flex;
  gap: 14px;
}
.item-prices div { font-size: 12px; }
.item-prices .label { color: var(--text-tertiary); margin-bottom: 2px; }
.item-prices .value { font-weight: 600; font-size: 13px; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.badge-warning { background: var(--warning-bg); color: var(--warning-text); }
.badge-ok { background: var(--primary-light); color: var(--primary-dark); }
.badge-danger { background: var(--danger-bg); color: var(--danger-text); }
.badge-neutral { background: #F0F1EE; color: var(--text-secondary); }

.result-summary {
  margin-top: 16px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.result-summary .sum-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-dark);
  flex-shrink: 0;
}
.result-summary .sum-icon svg { width: 18px; height: 18px; }
.result-summary .sum-text { flex: 1; }
.result-summary .sum-label { font-size: 12px; color: var(--primary-dark); opacity: 0.85; }
.result-summary .sum-amount { font-size: 20px; font-weight: 700; line-height: 1.2; }
.result-summary .sum-note { font-size: 12px; color: var(--primary-dark); opacity: 0.7; }
.result-summary .btn { flex-shrink: 0; }

@media (max-width: 1024px) {
  .hero-preview { max-width: 460px; margin: 0 auto; }
}
@media (max-width: 480px) {
  .receipt-photo { display: none; }
  .receipt-annotation { display: none; }
  .result-card { margin-top: 0; max-width: 100%; }
  .result-summary { flex-wrap: wrap; }
  .result-summary .btn { width: 100%; margin-top: 6px; }
}

/* ===== Steps ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .steps-grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }

.step-card .step-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--primary-light);
  width: 34px; height: 34px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.step-card h3 { font-size: 18px; margin-bottom: 8px; }
.step-card p { color: var(--text-secondary); font-size: 14.5px; margin: 0 0 22px; min-height: 44px; }

.step-visual {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  min-height: 96px;
  display: flex;
  align-items: center;
}
.upload-illustration {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px -8px rgba(53,196,106,0.6);
}
.upload-illustration svg { width: 24px; height: 24px; }

.micro-list { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.micro-list .micro-item {
  display: flex; align-items: center; justify-content: space-between;
  background: #FAFBF9;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 13px;
}
.micro-item .status { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-size: 12px; }
.micro-item .status.found { color: var(--primary-dark); }
.micro-item .status.pending { color: var(--text-tertiary); }
.micro-item .status svg { width: 13px; height: 13px; }

.mini-item-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FAFBF9;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.mini-item-card .thumb {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mini-item-card .thumb svg { width: 18px; height: 18px; }
.mini-item-card .info { flex: 1; min-width: 0; }
.mini-item-card .info .name { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.mini-item-card .info .prices { display: flex; gap: 10px; font-size: 11.5px; color: var(--text-tertiary); }
.mini-item-card .info .prices b { color: var(--text); font-weight: 600; }

/* ===== Comparison states ===== */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .compare-grid { grid-template-columns: 1fr; }
}
.compare-card { display: flex; flex-direction: column; }
.compare-card.is-attention { border-color: #F3D2CF; }
.compare-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.compare-icon svg { width: 20px; height: 20px; }
.compare-icon.ok { background: var(--primary-light); color: var(--primary-dark); }
.compare-icon.warn { background: var(--warning-bg); color: var(--warning-text); }
.compare-icon.attn { background: var(--danger-bg); color: var(--danger-text); }
.compare-card h4 { font-size: 17px; margin-bottom: 6px; }
.compare-card p { font-size: 14px; color: var(--text-secondary); margin: 0 0 22px; }
.compare-prices {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-top: auto;
}
.compare-prices .price-col .label { font-size: 12px; color: var(--text-tertiary); margin-bottom: 4px; }
.compare-prices .price-col .value { font-size: 18px; font-weight: 700; }
.compare-prices .price-col.online .value.is-diff { text-decoration: none; }

/* ===== Confidence ===== */
.confidence-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 1024px) {
  .confidence-layout { grid-template-columns: 1fr; gap: 40px; }
}
.confidence-list { display: flex; flex-direction: column; gap: 16px; }
.confidence-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.confidence-item .c-dot {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.confidence-item .c-dot svg { width: 16px; height: 16px; }
.c-dot.high { background: var(--primary-light); color: var(--primary-dark); }
.c-dot.mid { background: var(--warning-bg); color: var(--warning-text); }
.c-dot.low { background: #EDEEEC; color: var(--text-secondary); }
.confidence-item h4 { font-size: 15.5px; margin-bottom: 4px; }
.confidence-item p { font-size: 13.5px; color: var(--text-secondary); margin: 0; }

.confidence-mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 26px;
}
.confidence-mock .mock-head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 15px;
}
.confidence-mock .mock-head .thumb {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--primary-light); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
}
.confidence-mock .mock-head .thumb svg { width: 18px; height: 18px; }
.mock-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #F0F1EE;
  font-size: 13.5px;
}
.mock-row:last-child { border-bottom: none; }
.mock-row .k { color: var(--text-tertiary); }
.mock-row .v { font-weight: 600; }
.mock-row .v.link { color: var(--primary-dark); display: inline-flex; align-items: center; gap: 4px; }
.mock-row .v.link svg { width: 13px; height: 13px; }

/* ===== Transparency ===== */
.transparency {
  background: var(--primary-light);
  border-radius: 28px;
  padding: 44px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.transparency .t-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: #fff;
  color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.transparency .t-icon svg { width: 26px; height: 26px; }
.transparency .t-body { flex: 1; min-width: 260px; }
.transparency h3 { font-size: 21px; margin-bottom: 10px; }
.transparency p { color: #2c3a2f; font-size: 14.5px; max-width: 620px; margin: 0; opacity: 0.85; }
.transparency .btn { flex-shrink: 0; }

@media (max-width: 640px) {
  .transparency { padding: 28px; border-radius: 22px; }
  .transparency .btn { width: 100%; }
}

/* ===== Final CTA ===== */
.final-cta { text-align: left; }
.final-cta .section-head { display: block; margin-bottom: 32px; }
.final-cta h2 { font-size: clamp(26px, 3.2vw, 34px); max-width: 520px; }
.final-cta .eyebrow { display: inline-flex; }

.dropzone {
  background: var(--surface);
  border: 1.5px dashed #c9cec6;
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
  cursor: pointer;
}
.dropzone:hover, .dropzone.drag-over {
  border-color: var(--primary);
  background: var(--primary-light);
}
.dropzone .dz-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dropzone .dz-icon svg { width: 30px; height: 30px; }
.dropzone .dz-text { font-size: 17px; font-weight: 600; }
.dropzone .dz-text .link { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 2px; }
.dropzone .dz-sub { font-size: 13px; color: var(--text-tertiary); margin-top: 4px; }
.final-note { margin-top: 16px; font-size: 13px; color: var(--text-tertiary); }

@media (max-width: 640px) {
  .dropzone { flex-direction: column; text-align: center; padding: 36px 20px; }
}

/* ===== FAQ ===== */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: none;
  padding: 22px 4px;
  text-align: left;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text);
}
.faq-q .chev { transition: transform 0.25s var(--ease); color: var(--text-tertiary); flex-shrink: 0; }
.faq-q .chev svg { width: 18px; height: 18px; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); color: var(--primary-dark); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease);
}
.faq-a p {
  margin: 0 4px 22px;
  color: var(--text-secondary);
  font-size: 14.5px;
  max-width: 640px;
}
.faq-item.open .faq-a { max-height: 220px; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: var(--text-secondary); }
.footer-links a:hover { color: var(--text); }
.footer-disclaimer {
  font-size: 12.5px;
  color: var(--text-tertiary);
  max-width: 900px;
  line-height: 1.6;
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
