/* CSS Variables - Design Tokens */
:root {
  --color-background: #FFFAF5;
  --color-surface: #FFFFFF;
  --color-accent: #C4624A;
  --color-accent-hover: #A84F3A;
  --color-text-primary: #1A1210;
  --color-text-secondary: rgba(26, 18, 16, 0.65);
  --color-text-tertiary: rgba(26, 18, 16, 0.42);
  --color-border: rgba(0, 0, 0, 0.06);

  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 20px;
  --spacing-xxl: 24px;

  --radius-card: 12px;
  --radius-sm: 8px;

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  background-color: var(--color-background);
  color: var(--color-text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
}

.section {
  padding: 48px 0;
}

.section-alt {
  background-color: var(--color-surface);
}

.text-center {
  text-align: center;
}

/* ----------------------------------------
   NAV
   ---------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  padding: var(--spacing-md) 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--color-text-primary);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  text-decoration: none;
  color: var(--color-text-primary);
}

.nav-brand-text {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

/* ----------------------------------------
   BUTTONS
   ---------------------------------------- */
.btn {
  display: inline-block;
  padding: 14px var(--spacing-xxl);
  border-radius: var(--radius-card);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  transition: background-color 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-surface);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 14px;
  border-radius: var(--radius-sm);
}

/* ----------------------------------------
   HERO
   ---------------------------------------- */
.hero {
  padding: 64px 0 48px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.hero-text {
  text-align: center;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 8.4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.15;
  text-wrap: balance;
  margin-bottom: var(--spacing-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title-main,
.hero-title-emphasis {
  display: block;
  white-space: nowrap;
}

.hero-title-main {
  color: var(--color-text-primary);
  font-style: normal;
}

.hero-title-emphasis {
  color: var(--color-accent);
  font-style: italic;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-visual {
  display: flex;
  justify-content: center;
  flex-shrink: 0;
  width: 100%;
  padding: 0 var(--spacing-sm);
}

.hero-phone-placeholder {
  width: 280px;
  height: 480px;
  border-radius: var(--radius-card);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-lg);
  color: var(--color-text-tertiary);
}

.hero-phone-placeholder svg {
  opacity: 0.5;
}

.hero-phone-placeholder span {
  font-size: 14px;
}

.phone-frame.hero-app-phone {
  position: relative;
  top: auto;
  flex: 0 0 auto;
  width: min(330px, calc(100vw - 64px));
  max-width: calc(100vw - 64px);
}

.hero-app-phone .phone-screen {
  height: clamp(560px, calc((100vw - 64px) * 1.82), 650px);
  min-height: 0;
  max-height: none;
}

.hero-app-phone .app-screen {
  padding: 14px 16px 82px;
}

.hero-app-phone .app-home-screen {
  padding: 0 0 82px;
}

.hero-app-phone .camera-view {
  height: 330px;
}

.hero-app-phone .loading-wrap {
  min-height: 440px;
}

.hero-app-phone .app-title {
  font-size: 28px;
}

.hero-app-phone .app-card {
  padding: var(--spacing-md);
}

.hero-app-phone .scan-card-large {
  padding: var(--spacing-lg);
}

.hero-app-phone .result-banner h2 {
  font-size: 24px;
}

@media (max-width: 420px) {
  .hero {
    overflow: hidden;
  }

  .hero-title {
    font-size: clamp(26px, 7.9vw, 32px);
  }

  .hero-title-main,
  .hero-title-emphasis {
    display: inline;
    white-space: normal;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .phone-frame.hero-app-phone {
    border-width: 8px;
    border-radius: 34px;
  }

  .hero-app-phone .phone-screen {
    border-radius: 25px;
  }
}

/* ----------------------------------------
   SECTION HEADING
   ---------------------------------------- */
.section-heading {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.3px;
  line-height: 1.2;
  margin-bottom: 36px;
}

/* ----------------------------------------
   DIFFERENTIATION
   ---------------------------------------- */
.section-intro {
  max-width: 720px;
  margin: 0 auto 36px;
}

.section-intro .section-heading {
  margin-bottom: var(--spacing-lg);
}

.section-intro p {
  color: var(--color-text-secondary);
  font-size: 17px;
  line-height: 1.65;
}

.education-section {
  background: var(--color-accent);
  color: var(--color-surface);
}

.education-section .section-heading {
  color: var(--color-surface);
}

.education-section .section-intro {
  max-width: none;
  margin-bottom: 0;
}

.education-section .section-intro p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.84);
}

.trust-content {
  max-width: 920px;
  margin: 0 auto;
}

.trust-content .section-heading {
  max-width: 760px;
  margin-bottom: var(--spacing-xl);
}

.trust-copy {
  display: grid;
  gap: var(--spacing-md);
  max-width: 760px;
}

.trust-copy p {
  color: var(--color-text-secondary);
  font-size: 17px;
  line-height: 1.7;
}

.differentiation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

.section-inline-cta {
  display: grid;
  justify-items: center;
  gap: var(--spacing-lg);
  margin-top: 40px;
  text-align: center;
}

.section-inline-cta p {
  color: var(--color-text-secondary);
  font-size: 17px;
  line-height: 1.6;
}

.differentiation-card {
  padding: var(--spacing-xl);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

.differentiation-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.differentiation-card p {
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* ----------------------------------------
   NO BARCODE SECTION
   ---------------------------------------- */
.barcode-section {
  background: var(--color-surface);
}

.barcode-comparison {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  max-width: 920px;
  margin: 0 auto;
}

.barcode-comparison-card {
  padding: var(--spacing-xxl);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  background: var(--color-background);
}

.barcode-comparison-card-accent {
  border-color: rgba(196, 98, 74, 0.24);
  background:
    radial-gradient(circle at 90% 0%, rgba(196, 98, 74, 0.12), transparent 34%),
    var(--color-background);
}

.barcode-mini-image {
  display: flex;
  align-items: stretch;
  gap: 4px;
  width: 118px;
  height: 54px;
  margin-bottom: var(--spacing-lg);
  padding: 10px 12px;
  border: 1px solid rgba(26, 18, 16, 0.08);
  border-radius: 14px;
  background: var(--color-surface);
  box-shadow: 0 10px 24px rgba(26, 18, 16, 0.06);
}

.barcode-mini-image span {
  display: block;
  width: 5px;
  border-radius: 999px;
  background: var(--color-text-primary);
  opacity: 0.78;
}

.barcode-mini-image span:nth-child(2),
.barcode-mini-image span:nth-child(5) {
  width: 10px;
}

.barcode-mini-image span:nth-child(3),
.barcode-mini-image span:nth-child(7) {
  height: 72%;
  align-self: center;
}

.label-scan-mini-image {
  position: relative;
  display: grid;
  gap: 6px;
  width: 118px;
  height: 54px;
  margin-bottom: var(--spacing-lg);
  padding: 10px 12px;
  border: 1px solid rgba(45, 122, 79, 0.16);
  border-radius: 14px;
  background: var(--color-surface);
  box-shadow: 0 10px 24px rgba(26, 18, 16, 0.06);
}

.label-scan-heading,
.label-scan-line {
  display: block;
  border-radius: 999px;
}

.label-scan-heading {
  width: 44%;
  height: 6px;
  background: var(--color-text-primary);
  opacity: 0.72;
}

.label-scan-line {
  width: 78%;
  height: 5px;
  background: rgba(26, 18, 16, 0.14);
}

.label-scan-line.wide {
  width: 100%;
}

.label-scan-line.accent {
  width: 66%;
  background: rgba(45, 122, 79, 0.34);
}

.label-scan-frame {
  position: absolute;
  inset: 7px;
  border: 2px solid rgba(45, 122, 79, 0.48);
  border-radius: 10px;
  pointer-events: none;
}

.barcode-comparison-card h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: var(--spacing-lg);
}

.barcode-comparison-card ul {
  display: grid;
  gap: var(--spacing-md);
  list-style: none;
}

.barcode-comparison-card li {
  position: relative;
  padding-left: 24px;
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.55;
}

.barcode-comparison-card li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
}

.barcode-comparison-card-muted li::before {
  content: '×';
  color: var(--color-accent);
}

.barcode-comparison-card-accent li::before {
  content: '✓';
  color: #2D7A4F;
}

@media (min-width: 760px) {
  .barcode-comparison {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ----------------------------------------
   HOW IT WORKS — STEPS
   ---------------------------------------- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.step {
  text-align: center;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: var(--color-surface);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.step-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.step-desc {
  font-size: 15px;
  color: var(--color-text-secondary);
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

/* ----------------------------------------
   KEY HIGHLIGHTS
   ---------------------------------------- */
.highlights {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.highlight {
  text-align: center;
}

.highlight-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-accent);
  margin-bottom: var(--spacing-md);
}

.highlight-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.highlight-desc {
  font-size: 15px;
  color: var(--color-text-secondary);
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

/* ----------------------------------------
   PRICING
   ---------------------------------------- */
#app-store {
  background-color: var(--color-background);
}

.pricing {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  max-width: 820px;
  margin: 0 auto;
}

.pricing-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--spacing-xxl);
  text-align: left;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card-featured {
  border-color: rgba(196, 98, 74, 0.36);
  background: var(--color-surface);
  box-shadow: 0 16px 44px rgba(26, 18, 16, 0.08);
}

.pricing-card:hover,
.pricing-card.fade-in.visible:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.pricing-plan {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin: var(--spacing-md) 0;
}

.pricing-amount {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.7px;
}

.pricing-currency {
  display: inline-block;
  margin-right: 1px;
  font-size: 0.52em;
  line-height: 1;
  vertical-align: super;
}

.pricing-period {
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 600;
}

.pricing-summary {
  min-height: 48px;
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.pricing-features {
  list-style: none;
  margin: var(--spacing-lg) 0 0;
  text-align: left;
}

.pricing-features li {
  padding: 6px 0;
  color: var(--color-text-secondary);
  font-size: 15px;
}

.pricing-features li::before {
  content: '\2713';
  margin-right: var(--spacing-sm);
  color: var(--color-accent);
  font-weight: 600;
}

.pricing-hint {
  margin-top: var(--spacing-md);
  font-size: 13px;
  color: var(--color-text-tertiary);
}

/* ----------------------------------------
   CTA SECTION
   ---------------------------------------- */
.cta-section {
  padding: 64px 0;
  background-color: var(--color-accent);
  color: var(--color-surface);
}

.cta-section .section-heading {
  margin-bottom: var(--spacing-xxl);
  color: var(--color-surface);
}

.cta-section .btn-primary {
  background-color: var(--color-surface);
  color: var(--color-accent);
}

.cta-section .btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.cta-copy {
  max-width: 560px;
  margin: -12px auto var(--spacing-xxl);
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.6;
}

/* ----------------------------------------
   APP STORE CTA
   ---------------------------------------- */
.store-cta {
  display: grid;
  gap: var(--spacing-sm);
  justify-items: center;
}

.store-cta-center {
  justify-items: center;
}

.app-store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 196px;
  min-height: 58px;
  padding: 7px 12px;
  border: 1.5px solid #A6A6A6;
  border-radius: 13px;
  background:
    linear-gradient(122deg, rgba(255, 255, 255, 0.08) 0 38%, transparent 38% 100%),
    #000000;
  color: #FFFFFF;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(26, 18, 16, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-store-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(26, 18, 16, 0.22);
}

.app-store-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 29px;
  height: 34px;
  color: #FFFFFF;
  line-height: 1;
}

.app-store-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.app-store-button small,
.app-store-button strong {
  display: block;
  color: #FFFFFF;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.app-store-button small {
  margin-bottom: 3px;
  font-size: 12.5px;
  font-weight: 400;
}

.app-store-button strong {
  font-size: 26px;
  font-weight: 600;
}

@media (max-width: 420px) {
  .app-store-button {
    gap: 9px;
    width: 172px;
    min-height: 51px;
    padding: 6px 10px;
    border-radius: 12px;
  }

  .app-store-icon {
    width: 25px;
    height: 30px;
  }

  .app-store-button small {
    margin-bottom: 2px;
    font-size: 11px;
  }

  .app-store-button strong {
    font-size: 23px;
  }
}

.store-note {
  color: var(--color-text-tertiary);
  font-size: 14px;
}

body.modal-open {
  overflow: hidden;
}

.download-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: var(--spacing-xl);
  background: rgba(26, 18, 16, 0.34);
  backdrop-filter: blur(10px);
}

.download-modal-overlay[hidden] {
  display: none;
}

.download-modal {
  position: relative;
  width: min(100%, 440px);
  padding: 32px 28px 28px;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  background: var(--color-background);
  box-shadow: 0 30px 90px rgba(26, 18, 16, 0.24);
  text-align: center;
}

.download-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.download-modal h2 {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.3px;
  line-height: 1.18;
  margin-bottom: var(--spacing-md);
}

.download-modal p {
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

.download-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-xl);
}

.download-modal-link,
.download-modal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.download-modal-link {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-primary);
}

.download-modal-button {
  border: 1px solid var(--color-accent);
  background: var(--color-accent);
  color: var(--color-surface);
}

@media (max-width: 420px) {
  .download-modal {
    padding: 30px 22px 24px;
    border-radius: 20px;
  }

  .download-modal h2 {
    font-size: 26px;
  }
}

.store-cta-dark .store-note {
  color: rgba(255, 255, 255, 0.72);
}

.checker-hint {
  margin-top: var(--spacing-sm);
  font-size: 14px;
  color: var(--color-text-tertiary);
}

/* ----------------------------------------
   Story / Why
   ---------------------------------------- */
.story-block {
  max-width: 640px;
  margin: 0 auto;
}

.story-block p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
  color: var(--color-text-secondary);
}

.story-signature {
  font-family: var(--font-serif);
  font-size: 18px;
  font-style: italic;
  color: var(--color-text-primary);
  margin-top: var(--spacing-lg);
}

/* ----------------------------------------
   FAQ
   ---------------------------------------- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: var(--spacing-lg) 0;
}

.faq-question {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  text-align: left;
  line-height: 1.4;
  outline: none;
}

.faq-question::after {
  content: '';
  display: inline-block;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(196, 98, 74, 0.18);
  border-radius: 50%;
  background-color: rgba(196, 98, 74, 0.08);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23C4624A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.faq-item.open .faq-question::after {
  transform: rotate(180deg);
  background-color: var(--color-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  border-color: var(--color-accent);
}

.faq-answer-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer-wrap {
  max-height: 300px;
}

.faq-answer {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 640px;
  padding-top: var(--spacing-md);
}

/* ----------------------------------------
   FOOTER
   ---------------------------------------- */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.footer-brand-top {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.footer-brand-text {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  max-width: 360px;
}

.footer-links {
  display: grid;
  gap: var(--spacing-lg);
}

.footer-link-groups {
  display: grid;
  gap: var(--spacing-lg);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.footer-legal-nav {
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--color-border);
}

.footer-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--color-text-primary);
}

.footer-copyright {
  font-size: 13px;
  color: var(--color-text-tertiary);
}

/* ----------------------------------------
   PRIVACY / LEGAL PAGES
   ---------------------------------------- */
.privacy-content {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 48px;
}

.privacy-section {
  margin-bottom: var(--spacing-xxl);
}

.privacy-section h2 {
  margin-bottom: var(--spacing-lg);
}

.privacy-section p {
  margin-bottom: var(--spacing-lg);
  color: var(--color-text-secondary);
}

.privacy-section ul {
  margin-left: var(--spacing-xxl);
  margin-bottom: var(--spacing-lg);
  color: var(--color-text-secondary);
}

.privacy-section ol {
  margin-left: var(--spacing-xxl);
  margin-bottom: var(--spacing-lg);
  color: var(--color-text-secondary);
}

.privacy-section li {
  margin-bottom: var(--spacing-sm);
}

.privacy-section strong {
  color: var(--color-text-primary);
}

.privacy-section a {
  color: var(--color-accent);
  text-decoration: none;
}

.privacy-section a:hover {
  text-decoration: underline;
}

/* ----------------------------------------
   SEO / ARTICLE PAGES
   ---------------------------------------- */
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  color: var(--color-text-tertiary);
  font-size: 14px;
  text-decoration: none;
}

.breadcrumb:hover {
  color: var(--color-accent);
}

.seo-hero {
  padding: 56px 0 40px;
}

.seo-title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: var(--spacing-lg);
  max-width: 760px;
}

.seo-subtitle {
  max-width: 700px;
  color: var(--color-text-secondary);
  font-size: 18px;
  line-height: 1.65;
}

.seo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

.seo-card,
.article-card,
.checker-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--spacing-xxl);
}

.section-alt .seo-card,
.section-alt .article-card,
.section-alt .checker-card {
  background-color: var(--color-background);
}

.seo-card h2,
.seo-card h3,
.article-card h2,
.article-card h3,
.checker-card h2,
.checker-card h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: var(--spacing-md);
}

.seo-card h2,
.article-card h2,
.checker-card h2 {
  font-size: 24px;
}

.seo-card h3,
.article-card h3,
.checker-card h3 {
  font-size: 20px;
}

.seo-card p,
.article-card p,
.checker-card p,
.article-card li,
.checker-card li {
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.7;
}

.article-card p,
.checker-card p {
  margin-bottom: var(--spacing-md);
}

.article-card ul,
.article-card ol,
.checker-card ul,
.checker-card ol {
  margin-left: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
}

.article-card li,
.checker-card li {
  margin-bottom: var(--spacing-sm);
}

.article-card a,
.checker-card a,
.seo-card a {
  color: var(--color-accent);
  text-decoration: none;
}

.article-card a:hover,
.checker-card a:hover,
.seo-card a:hover {
  text-decoration: underline;
}

.article-card a.btn-primary,
.checker-card a.btn-primary,
.seo-card a.btn-primary,
.article-card a.app-store-button,
.checker-card a.app-store-button,
.seo-card a.app-store-button {
  color: var(--color-surface);
}

.article-card a.btn-primary:hover,
.checker-card a.btn-primary:hover,
.seo-card a.btn-primary:hover,
.article-card a.app-store-button:hover,
.checker-card a.app-store-button:hover,
.seo-card a.app-store-button:hover {
  color: var(--color-surface);
  text-decoration: none;
}

.article-section {
  padding: 48px 0;
}

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

.content-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xxl);
}

.article-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.sidebar-card {
  align-self: start;
  position: sticky;
  top: 88px;
}

.callout,
.article-callout {
  background-color: rgba(196, 98, 74, 0.08);
}

.article-callout {
  margin: var(--spacing-lg) 0;
  padding: var(--spacing-lg);
  border-radius: var(--radius-card);
}

.warning-callout {
  background-color: rgba(212, 146, 10, 0.1);
}

.inline-cta {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  align-items: flex-start;
  margin-top: var(--spacing-md);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  background-color: rgba(26, 18, 16, 0.06);
  color: var(--color-text-secondary);
}

.badge-danger {
  background-color: rgba(196, 58, 58, 0.1);
  color: #9f2f2f;
}

.badge-caution {
  background-color: rgba(212, 146, 10, 0.13);
  color: #8a5e06;
}

.badge-neutral {
  background-color: rgba(45, 122, 79, 0.1);
  color: #2D7A4F;
}

.checker-textarea {
  width: 100%;
  min-height: 180px;
  padding: var(--spacing-lg);
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: var(--radius-card);
  background-color: var(--color-surface);
  color: var(--color-text-primary);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  resize: vertical;
  outline: none;
}

.checker-textarea:focus {
  border-color: var(--color-accent);
}

.checker-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin: var(--spacing-md) 0;
}

.checker-results {
  display: grid;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.result-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--spacing-lg);
  background-color: var(--color-background);
}

.result-card strong {
  color: var(--color-text-primary);
}

.result-card mark {
  border-radius: 4px;
  padding: 0 3px;
  background-color: rgba(212, 146, 10, 0.22);
  color: inherit;
}

.source-list {
  display: grid;
  gap: var(--spacing-sm);
  list-style: none;
  margin-left: 0 !important;
}

.source-list li {
  margin-bottom: 0;
}

.related-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-sm);
}

.related-links a {
  display: block;
  padding: var(--spacing-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-background);
}

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

.search-hero .seo-subtitle strong {
  color: var(--color-text-primary);
}

.ingredient-search-card {
  width: 100%;
  margin-top: var(--spacing-xxl);
  padding: var(--spacing-xl);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background-color: var(--color-surface);
}

.search-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.search-input {
  width: 100%;
  min-height: 52px;
  padding: 0 var(--spacing-lg);
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: var(--radius-card);
  background-color: var(--color-surface);
  color: var(--color-text-primary);
  font: inherit;
  font-size: 16px;
  outline: none;
}

.search-input:focus {
  border-color: var(--color-accent);
}

.hero-search-form {
  max-width: 720px;
  margin-top: var(--spacing-xxl);
}

.search-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.search-chip {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background-color: var(--color-background);
  color: var(--color-text-secondary);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.search-chip:hover {
  color: var(--color-text-primary);
  border-color: rgba(196, 98, 74, 0.35);
}

.status-panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.status-panel-label {
  color: var(--color-text-tertiary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-note {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-tertiary) !important;
}

.app-cta-card {
  background-color: rgba(196, 98, 74, 0.08);
}

.search-cta-card {
  margin-top: var(--spacing-lg);
}

.inline-cta .btn:not(.btn-primary),
.search-result-card .btn:not(.btn-primary) {
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  color: var(--color-text-primary);
}

.related-checks a,
.popular-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  color: var(--color-text-primary);
}

.related-checks a span:first-child,
.popular-grid a span:first-child {
  min-width: 0;
}

.sidebar-note {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-tertiary);
  font-size: 14px;
}

.sidebar-note p {
  margin-bottom: var(--spacing-sm);
  color: inherit;
  font-size: inherit;
  line-height: 1.5;
}

.status-key {
  display: grid;
  gap: var(--spacing-md);
}

.status-key > div {
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--color-border);
}

.status-key > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.status-key p {
  margin: var(--spacing-sm) 0 0;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.popular-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.popular-grid a {
  padding: var(--spacing-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-background);
  text-decoration: none;
}

.ingredient-index-layout {
  display: grid;
  gap: 32px;
}

.ingredient-index-section h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-lg);
}

.ingredient-index-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

.ingredient-index-card {
  display: grid;
  gap: var(--spacing-sm);
  padding: var(--spacing-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background-color: var(--color-surface);
  color: var(--color-text-primary);
  text-decoration: none;
}

.ingredient-index-card:hover {
  border-color: rgba(196, 98, 74, 0.35);
}

.ingredient-index-card strong {
  font-size: 17px;
  line-height: 1.35;
}

.ingredient-index-card > span:last-child {
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

@media (min-width: 768px) {
  .seo-title {
    font-size: 44px;
  }

  .seo-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .content-layout {
    grid-template-columns: minmax(0, 2fr) minmax(260px, 0.8fr);
  }

  .checker-actions {
    flex-direction: row;
    align-items: center;
  }

  .inline-cta {
    flex-direction: row;
    align-items: center;
  }

  .search-form {
    flex-direction: row;
    align-items: stretch;
  }

  .search-form .btn {
    flex: 0 0 auto;
  }

  .popular-grid,
  .ingredient-index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .ingredient-index-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ----------------------------------------
   ACCESSIBILITY
   ---------------------------------------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ----------------------------------------
   TEXT SELECTION
   ---------------------------------------- */
::selection {
  background-color: var(--color-accent);
  color: #FFFFFF;
}

/* ----------------------------------------
   BUTTON PRESS FEEDBACK
   ---------------------------------------- */
.btn:active {
  transform: scale(0.97);
}

/* ----------------------------------------
   SCROLL FADE-IN
   ---------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------------------
   SUBTLE GRAIN TEXTURE
   ---------------------------------------- */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ----------------------------------------
   RESPONSIVE — TABLET+
   ---------------------------------------- */
@media (min-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .hero {
    padding: 80px 0 64px;
  }

  .hero-inner {
    flex-direction: row;
    justify-content: space-between;
    gap: 48px;
  }

  .hero-text {
    text-align: left;
    flex: 1;
  }

  .hero-title {
    font-size: 44px;
    margin-left: 0;
    margin-right: 0;
  }

  .hero-visual {
    width: auto;
    padding: 0;
  }

  .phone-frame.hero-app-phone {
    width: 360px;
    max-width: 360px;
  }

  .hero-app-phone .phone-screen {
    height: 650px;
  }

  .hero-subtitle {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-text .store-cta {
    justify-items: start;
  }

  .section-heading {
    font-size: 32px;
    margin-bottom: 44px;
  }

  .differentiation-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Steps — horizontal */
  .steps {
    flex-direction: row;
    gap: 32px;
  }

  .step {
    flex: 1;
  }

  /* Highlights — horizontal */
  .highlights {
    flex-direction: row;
    gap: 40px;
  }

  .highlight {
    flex: 1;
  }

  /* Pricing — 2 columns */
  .pricing {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer — side by side */
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer-link-groups {
    grid-template-columns: repeat(2, max-content);
    gap: 40px;
  }

  .footer-legal-nav {
    padding-top: 0;
    border-top: 0;
  }

  /* CTA */
  .cta-section {
    padding: 80px 0;
  }
}

/* ----------------------------------------
   RESPONSIVE — DESKTOP
   ---------------------------------------- */
@media (min-width: 1024px) {
  .hero {
    padding: 96px 0 72px;
  }

  .hero-title {
    font-size: 48px;
    max-width: 560px;
  }

  .differentiation-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}


/* ----------------------------------------
   MOBILE APP EMBED
   ---------------------------------------- */

.phone-frame {
  position: sticky;
  top: 84px;
  width: 390px;
  max-width: 100%;
  border: 10px solid #1A1210;
  border-radius: 38px;
  background: #1A1210;
  box-shadow: 0 28px 80px rgba(26, 18, 16, 0.22);
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 760px;
  max-height: calc(100vh - 130px);
  min-height: 640px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--color-background);
}

.phone-status {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 29px;
  padding: 10px 20px 7px;
  color: var(--color-text-primary);
  font-size: 12px;
  font-weight: 700;
}

.phone-status-icons {
  letter-spacing: -1px;
}

.app-screen {
  position: absolute;
  top: 29px;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  height: auto;
  padding: 16px 18px 86px;
  overflow-y: auto;
}

.app-screen.active {
  display: block;
}

.app-home-screen {
  padding: 0 0 86px;
  overflow: hidden;
}

.app-home-top {
  display: grid;
  place-items: center;
  height: 32%;
  min-height: 188px;
  background: var(--color-accent);
}

.app-label-illustration {
  position: relative;
  display: grid;
  align-content: center;
  gap: 8px;
  width: 132px;
  height: 160px;
  padding: 22px 18px;
  border-radius: 22px;
  background: var(--color-surface);
  box-shadow: 0 12px 28px rgba(26, 18, 16, 0.14);
}

.app-label-header,
.app-label-line {
  display: block;
  border-radius: 999px;
}

.app-label-header {
  width: 48px;
  height: 24px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: rgba(196, 98, 74, 0.12);
}

.app-label-line {
  width: 78%;
  height: 9px;
  background: rgba(26, 18, 16, 0.10);
}

.app-label-line.wide {
  width: 100%;
  background: rgba(26, 18, 16, 0.13);
}

.app-label-line.short {
  width: 58%;
  background: rgba(26, 18, 16, 0.08);
}

.app-label-camera {
  position: absolute;
  right: -14px;
  bottom: -14px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 4px solid var(--color-surface);
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-surface);
}

.app-label-camera svg {
  width: 24px;
  height: 24px;
}

.app-home-curve {
  height: 42px;
  margin-top: -1px;
  background: var(--color-accent);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

.app-home-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(68% - 42px);
  padding: 8px 18px 22px;
  text-align: center;
}

.app-home-bottom p {
  max-width: 270px;
  margin: 8px 0 0;
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.45;
}

.app-settings-screen {
  padding: 0 0 86px;
}

.settings-preview-header {
  display: flex;
  align-items: center;
  padding: 18px 18px 14px;
  background: transparent;
}

.settings-preview-header h2 {
  flex: 1;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.settings-preview-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: 24px;
  cursor: pointer;
}

.settings-preview-content {
  padding-bottom: var(--spacing-lg);
}

.settings-section-title {
  padding: 0 18px;
  margin: 22px 0 8px;
  color: var(--color-text-tertiary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-row-group {
  padding: 0 18px;
}

.settings-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  color: var(--color-text-primary);
  font-size: 15px;
}

.settings-row span {
  width: 24px;
  color: var(--color-text-secondary);
  text-align: center;
}

.settings-row strong {
  flex: 1;
  font-weight: 500;
}

.settings-row em {
  color: var(--color-text-tertiary);
  font-size: 13px;
  font-style: normal;
}

.settings-row.destructive,
.settings-row.destructive span {
  color: #EF4444;
}

.settings-separator {
  height: 1px;
  background: var(--color-border);
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-lg);
}

.app-kicker {
  color: var(--color-text-tertiary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-title {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.4px;
  line-height: 1.08;
  margin-top: 3px;
}

.app-icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  color: var(--color-text-primary);
  cursor: pointer;
}

.settings-open-button {
  border: 0;
  background: transparent;
  color: var(--color-text-secondary);
}

.settings-open-button svg {
  width: 22px;
  height: 22px;
}

.app-card {
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-lg);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: var(--color-surface);
  box-shadow: 0 1px 0 rgba(26, 18, 16, 0.02);
}

.app-card h3,
.app-card h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 6px;
}

.app-card p,
.app-card li {
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.app-card ul {
  margin-left: var(--spacing-lg);
}

.app-primary-action,
.app-secondary-action,
.app-tertiary-action {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 15px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.app-primary-action {
  background: var(--color-accent);
  color: var(--color-surface);
}

.app-secondary-action {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-primary);
}

.app-tertiary-action {
  min-height: auto;
  padding: 10px 12px;
  background: transparent;
  color: var(--color-accent);
}

.app-action-stack {
  display: grid;
  gap: var(--spacing-sm);
}

.app-home-actions {
  width: 100%;
  max-width: 240px;
  margin-top: 32px;
}

.quota-pill,
.prototype-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(196, 98, 74, 0.08);
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 700;
}

.prototype-pill.neutral {
  background: rgba(26, 18, 16, 0.06);
  color: var(--color-text-secondary);
}

.prototype-pill.green {
  background: rgba(45, 122, 79, 0.12);
  color: #2D7A4F;
}

.prototype-pill.yellow {
  background: rgba(212, 146, 10, 0.13);
  color: #8a5e06;
}

.prototype-pill.red {
  background: rgba(196, 58, 58, 0.11);
  color: #9f2f2f;
}

.scan-card-large {
  padding: 22px;
  background: linear-gradient(160deg, rgba(196, 98, 74, 0.12), rgba(255, 255, 255, 0.96) 42%);
}

.scan-card-large .app-primary-action {
  margin-top: var(--spacing-lg);
}

.recent-item,
.history-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  width: 100%;
  padding: var(--spacing-md);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-surface);
  text-align: left;
  cursor: pointer;
}

.recent-thumb,
.history-thumb {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(196, 98, 74, 0.12), rgba(212, 146, 10, 0.18));
  border: 1px solid var(--color-border);
}

.recent-meta,
.history-meta {
  flex: 1;
  min-width: 0;
}

.recent-meta strong,
.history-meta strong {
  display: block;
  color: var(--color-text-primary);
  font-size: 14px;
}

.recent-meta span,
.history-meta span {
  color: var(--color-text-tertiary);
  font-size: 12px;
}

.camera-view {
  position: relative;
  display: grid;
  place-items: center;
  height: 460px;
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(rgba(26,18,16,0.38), rgba(26,18,16,0.38)),
    repeating-linear-gradient(0deg, #d9c4ae 0 12px, #ead8c3 12px 24px);
  color: white;
}

.camera-frame-box {
  width: 82%;
  height: 250px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.18);
}

.camera-tip {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: var(--spacing-md);
  border-radius: 14px;
  background: rgba(26, 18, 16, 0.72);
  font-size: 13px;
  line-height: 1.4;
}

.loading-wrap {
  display: grid;
  place-items: center;
  min-height: 500px;
  text-align: center;
}

.loading-spinner {
  width: 58px;
  height: 58px;
  margin-bottom: var(--spacing-lg);
  border: 5px solid rgba(196, 98, 74, 0.16);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: prototype-spin 1s linear infinite;
}

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

.loading-steps {
  display: grid;
  gap: var(--spacing-sm);
  width: 100%;
  margin-top: var(--spacing-lg);
}

.loading-steps span {
  display: block;
  padding: var(--spacing-md);
  border-radius: 12px;
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-size: 13px;
}

.result-banner {
  padding: 20px;
  border-radius: 20px;
  margin-bottom: var(--spacing-md);
}

.result-banner.red {
  background: rgba(196, 58, 58, 0.11);
}

.result-banner.yellow {
  background: rgba(212, 146, 10, 0.13);
}

.result-banner.green {
  background: rgba(45, 122, 79, 0.12);
}

.result-banner h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1.12;
  margin: 10px 0 8px;
}

.result-variant-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: var(--spacing-md);
}

.result-variant-row button {
  padding: 9px 6px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.result-variant-row button.active {
  border-color: rgba(196, 98, 74, 0.35);
  background: rgba(196, 98, 74, 0.09);
  color: var(--color-accent);
}

.flagged-term {
  display: flex;
  justify-content: space-between;
  gap: var(--spacing-md);
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--color-border);
}

.flagged-term:last-child {
  border-bottom: 0;
}

.flagged-term strong {
  color: var(--color-text-primary);
  font-size: 14px;
}

.flagged-term span {
  color: var(--color-text-secondary);
  font-size: 13px;
  text-align: right;
}

.disclaimer-mini {
  display: flex;
  gap: var(--spacing-sm);
  align-items: flex-start;
  padding: var(--spacing-md);
  border-radius: 14px;
  background: rgba(212, 146, 10, 0.1);
  color: var(--color-text-secondary);
  font-size: 12px;
  line-height: 1.45;
}

.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 12px;
  padding: 8px 18px 14px;
  border-top: 1px solid var(--color-border);
  background: rgba(255, 250, 245, 0.94);
  backdrop-filter: blur(12px);
}

.bottom-nav button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.bottom-nav-item {
  flex: 1;
  display: grid;
  gap: 3px;
  place-items: center;
  min-height: 48px;
  background: transparent;
  color: var(--color-text-tertiary);
  font-size: 11px;
  font-weight: 700;
}

.bottom-nav-item svg {
  width: 24px;
  height: 24px;
}

.bottom-nav-item.active {
  color: var(--color-accent);
}

.bottom-camera-button {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-surface);
  box-shadow: 0 8px 20px rgba(196, 98, 74, 0.25);
}

.bottom-camera-button svg {
  width: 24px;
  height: 24px;
  color: var(--color-surface);
}

.bottom-camera-button.active {
  background: var(--color-accent-hover);
}


@media (max-width: 420px) {
  .phone-frame {
    border-width: 6px;
    border-radius: 30px;
  }

  .phone-screen {
    border-radius: 24px;
    min-height: 610px;
  }

  .app-title {
    font-size: 26px;
  }
}

/* ----------------------------------------
   PRINT
   ---------------------------------------- */
@media print {
  body {
    background-color: white;
  }

  .nav,
  .btn {
    display: none;
  }
}
