*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #FAF7F2;
  --bg-alt:     #F3EDE4;
  --bg-card:    #FFFFFF;
  --border:     #E8DDD2;
  --border-2:   #F0E7DC;
  --text-1:     #1C1814;
  --text-2:     #6B5E52;
  --text-3:     #A89880;
  --accent:     #D4601A;
  --accent-bg:  #FEF0E8;
  --green:      #3D7A5C;
  --green-bg:   #EAF3EE;
  --radius:     14px;
  --shadow:     0 2px 12px rgba(28,24,20,0.08), 0 1px 3px rgba(28,24,20,0.06);
  --shadow-lg:  0 8px 32px rgba(28,24,20,0.12), 0 2px 8px rgba(28,24,20,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-1);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,247,242,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
  text-decoration: none;
  letter-spacing: -0.2px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  font-size: 14px;
  color: var(--text-2);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.nav-link:hover { background: var(--bg-alt); color: var(--text-1); }

.nav-cta {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--bg);
  background: var(--text-1);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 100px;
  transition: background 0.15s;
  letter-spacing: -0.1px;
}
.nav-cta:hover { background: #312B26; }

/* ── Hero ── */
.hero {
  padding: 80px 24px 64px;
  text-align: center;
}

.hero-inner {
  max-width: 680px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-bg);
  border: 1px solid #F5D5C0;
  padding: 5px 12px;
  border-radius: 100px;
  letter-spacing: 0.2px;
}

.hero-title {
  font-size: clamp(40px, 7vw, 68px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.05;
  color: var(--text-1);
}

.hero-sub {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 520px;
}

/* ── URL Box ── */
.url-box {
  width: 100%;
  max-width: 580px;
  background: white;
  border: 2px solid var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 16px;
  box-shadow: var(--shadow-lg);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.url-box:focus-within {
  border-color: var(--text-1);
  box-shadow: 0 0 0 4px rgba(28,24,20,0.07), var(--shadow-lg);
}

.url-icon { font-size: 18px; flex-shrink: 0; }

.url-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--text-1);
  background: transparent;
  font-family: inherit;
  min-width: 0;
}
.url-input::placeholder { color: var(--text-3); }

.url-btn {
  background: var(--text-1);
  color: var(--bg);
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
  flex-shrink: 0;
}
.url-btn:hover { background: #312B26; }
.url-btn:active { transform: scale(0.97); }
.url-btn:disabled { opacity: 0.5; cursor: default; }

.hero-hint {
  font-size: 13px;
  color: var(--text-3);
  margin-top: -6px;
}

.sample-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.sample-label {
  font-size: 12.5px;
  color: var(--text-3);
}

.sample-btn {
  font-size: 12.5px;
  color: var(--text-2);
  background: white;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 12px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.sample-btn:hover { background: var(--bg-alt); border-color: #D4C8BC; color: var(--text-1); }

/* ── Result ── */
.result-section {
  padding: 0 24px 64px;
  animation: fadeUp 0.3s ease;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.result-inner {
  max-width: 900px;
  margin: auto;
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.result-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--border);
}

.result-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--text-1);
  margin-bottom: 10px;
}

.result-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.r-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 10px;
  font-size: 12px;
}
.r-chip-label { color: var(--text-3); text-transform: capitalize; }
.r-chip-val { color: var(--text-1); font-weight: 550; }

.result-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

.result-action-btn {
  height: 32px;
  padding: 0 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: white;
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 550;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  white-space: nowrap;
}
.result-action-btn:hover { background: var(--bg-alt); color: var(--text-1); }
.result-close-btn { width: 32px; padding: 0; display: grid; place-items: center; }

.result-columns {
  display: grid;
  grid-template-columns: 240px 1fr;
}

.result-col { padding: 22px 24px; }

.col-ingredients {
  border-right: 1px solid var(--border);
}

.col-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ingredients-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ing-item {
  border-radius: 7px;
  transition: background 0.12s;
}
.ing-item:hover { background: var(--bg-alt); }
.ing-item.checked .ing-text { text-decoration: line-through; color: var(--text-3); }

.ing-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 8px;
  cursor: pointer;
}

.ing-check {
  appearance: none;
  -webkit-appearance: none;
  width: 15px; height: 15px; min-width: 15px;
  border: 1.5px solid #C8BAB0;
  border-radius: 4px;
  margin-top: 2px;
  cursor: pointer;
  transition: all 0.15s;
  background: white;
  position: relative;
}
.ing-check:checked { background: var(--green); border-color: var(--green); }
.ing-check:checked::after {
  content: '';
  position: absolute;
  top: 1px; left: 4px;
  width: 4px; height: 7px;
  border: 1.5px solid white;
  border-top: none; border-left: none;
  transform: rotate(45deg);
}

.ing-text { font-size: 13.5px; color: var(--text-1); line-height: 1.5; }

.steps-list { display: flex; flex-direction: column; gap: 20px; }

.step-item { display: flex; gap: 14px; align-items: flex-start; }

.step-num {
  width: 26px; height: 26px; min-width: 26px;
  background: var(--text-1); color: #FAF7F2;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11.5px; font-weight: 700;
  margin-top: 2px;
}

.step-body { flex: 1; }
.step-text { font-size: 14px; color: var(--text-1); line-height: 1.7; margin: 0 0 8px; }

.step-timer-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 10px;
  font-size: 11.5px;
  color: var(--text-2);
  font-weight: 550;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.13s;
}
.step-timer-btn:hover { background: #EAE0D4; }

.timer-display {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--text-1);
  color: #FAF7F2;
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
  transition: background 0.3s;
}
.timer-display.done { background: var(--green); }
.timer-cancel {
  background: none; border: none;
  color: #A89880; font-size: 11px;
  cursor: pointer; padding: 0 2px; font-family: inherit;
}

.result-footer {
  padding: 14px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.result-source-label { font-size: 12px; color: var(--text-3); }
.result-source-link {
  font-size: 12px;
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 1px dashed var(--border);
  transition: color 0.15s;
  word-break: break-all;
}
.result-source-link:hover { color: var(--text-1); }

/* ── Loading ── */
.loading-card {
  max-width: 900px;
  margin: 0 auto 64px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.loading-spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--text-1);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 14px; color: var(--text-2); }

/* ── Error Card ── */
.error-card {
  max-width: 900px;
  margin: 0 auto 64px;
  background: white;
  border: 1px solid #F5D5C0;
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow);
}
.error-icon { font-size: 28px; margin-bottom: 10px; }
.error-title { font-size: 16px; font-weight: 600; color: var(--text-1); margin-bottom: 6px; }
.error-desc { font-size: 13.5px; color: var(--text-2); }

/* ── Sections shared ── */
.section-inner { max-width: 900px; margin: auto; padding: 0 24px; }

.section-label {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-1);
  margin-bottom: 16px;
  line-height: 1.15;
}

/* ── How it works ── */
.how { padding: 80px 24px; background: var(--bg-alt); }
.how .section-title { margin-bottom: 48px; }

.how-steps {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.how-step {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.how-step-num {
  width: 40px; height: 40px;
  background: var(--text-1);
  color: #FAF7F2;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
}

.how-step-body h3 {
  font-size: 16px;
  font-weight: 650;
  color: var(--text-1);
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.how-step-body p { font-size: 14px; color: var(--text-2); line-height: 1.65; }

.how-step-arrow {
  font-size: 24px;
  color: var(--border);
  padding-top: 8px;
  flex-shrink: 0;
  align-self: center;
}

/* ── Features ── */
.features { padding: 80px 24px; }
.features .section-title { margin-bottom: 40px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.feature-icon {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--text-1);
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 650;
  color: var(--text-1);
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.feature-card p { font-size: 13.5px; color: var(--text-2); line-height: 1.6; }

/* ── Pricing ── */
.pricing { padding: 80px 24px; background: var(--bg-alt); }

.pricing-sub {
  font-size: 16px;
  color: var(--text-2);
  margin-bottom: 40px;
  max-width: 480px;
}

.pricing-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
}

.pricing-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-2);
}

.pricing-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.pricing-desc { font-size: 12.5px; color: var(--text-3); }

.pricing-amount {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  flex-shrink: 0;
}

.pricing-dollar {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-1);
  margin-top: 4px;
}

.pricing-price {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-1);
  line-height: 1;
  letter-spacing: -2px;
}

.pricing-once {
  font-size: 12px;
  color: var(--text-3);
  align-self: flex-end;
  margin-bottom: 4px;
  margin-left: 4px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 28px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
}

.pf-check {
  width: 20px; height: 20px;
  background: var(--green-bg);
  color: var(--green);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.buy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--text-1);
  color: #FAF7F2;
  border-radius: 12px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.2px;
  transition: background 0.15s, transform 0.1s;
  margin-bottom: 12px;
}
.buy-btn:hover { background: #312B26; }
.buy-btn:active { transform: scale(0.98); }
.buy-btn-arrow { font-size: 18px; }

.pricing-guarantee {
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
}

/* ── Extension ── */
.extension-section { padding: 80px 24px; }

.ext-sub {
  font-size: 16px;
  color: var(--text-2);
  margin-bottom: 32px;
  max-width: 540px;
  line-height: 1.7;
}

.ext-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  max-width: 540px;
  box-shadow: var(--shadow);
}

.ext-status {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--green-bg);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--green);
  font-weight: 550;
  margin-bottom: 20px;
}

.ext-status-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61,122,92,0.4); }
  50%       { box-shadow: 0 0 0 5px rgba(61,122,92,0); }
}

.ext-note {
  font-size: 13.5px;
  color: var(--text-2);
  margin-bottom: 18px;
  line-height: 1.6;
}

.ext-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.ext-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.5;
}

.ext-step-num {
  width: 22px; height: 22px; min-width: 22px;
  background: var(--text-1);
  color: #FAF7F2;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
  margin-top: 1px;
}

.ext-step code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  background: var(--bg-alt);
  padding: 1px 5px;
  border-radius: 4px;
}

.ext-step strong { color: var(--text-1); font-weight: 600; }

.ext-note-small { font-size: 12px; color: var(--text-3); margin-bottom: 0; }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
}

.footer-inner {
  max-width: 900px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-brand { font-size: 14px; font-weight: 600; color: var(--text-1); }

.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13.5px; color: var(--text-2); text-decoration: none; }
.footer-links a:hover { color: var(--text-1); }

.footer-copy { font-size: 12.5px; color: var(--text-3); }

/* ── Paywall Modal ── */
.paywall-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(28,24,20,0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes slideUp { from { transform: translateY(16px); opacity: 0 } to { transform: none; opacity: 1 } }

.paywall-modal {
  background: var(--bg);
  border-radius: 20px;
  padding: 36px 32px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(28,24,20,0.2);
  animation: slideUp 0.25s cubic-bezier(0.22,1,0.36,1);
}

.paywall-icon { font-size: 36px; margin-bottom: 16px; }

.paywall-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.4px;
  margin-bottom: 10px;
}

.paywall-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 20px;
}

.paywall-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

.paywall-price {
  font-size: 42px;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -2px;
}

.paywall-price-label {
  font-size: 13px;
  color: var(--text-3);
}

.paywall-buy-btn {
  display: block;
  width: 100%;
  padding: 13px;
  background: var(--text-1);
  color: #FAF7F2;
  border-radius: 12px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 650;
  margin-bottom: 12px;
  transition: background 0.15s;
}
.paywall-buy-btn:hover { background: #312B26; }

.paywall-close {
  background: none;
  border: none;
  font-size: 13.5px;
  color: var(--text-3);
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s;
}
.paywall-close:hover { color: var(--text-1); }

.paywall-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-3);
  font-size: 12px;
  margin: 4px 0;
}
.paywall-divider::before,
.paywall-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.paywall-activate-label {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 8px;
  text-align: center;
}

.paywall-key-row {
  display: flex;
  gap: 8px;
}

.paywall-key-input {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-family: monospace;
  background: var(--bg);
  color: var(--text-1);
  outline: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: border-color 0.15s;
}
.paywall-key-input:focus { border-color: var(--text-2); }

.paywall-key-btn {
  padding: 9px 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 550;
  color: var(--text-1);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  white-space: nowrap;
}
.paywall-key-btn:hover:not(:disabled) { background: var(--border); }
.paywall-key-btn:disabled { opacity: 0.5; cursor: default; }

.paywall-key-error {
  font-size: 12px;
  color: #c0392b;
  margin-top: 6px;
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .nav-link { display: none; }
  .result-columns { grid-template-columns: 1fr; }
  .col-ingredients { border-right: none; border-bottom: 1px solid var(--border); }
  .how-step-arrow { display: none; }
  .how-step { min-width: 100%; }
  .result-header { flex-direction: column; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
