@charset "UTF-8";

:root {
  --cream: #f6f2e9;
  --paper: #fffdf8;
  --ink: #26322e;
  --muted: #78817a;
  --line: #e6e4da;
  --mint: #c9e8d8;
  --mint-deep: #5c9e7d;
  --coral: #ef775e;
  --coral-dark: #c95b47;
  --yellow: #f8cd67;
  --lavender: #dfd8ee;
  --shadow: 0 18px 60px rgba(48, 58, 50, .10);
  --small-shadow: 0 8px 24px rgba(48, 58, 50, .08);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 15px;
  --radius-sm: 10px;
  --sans: 'Plus Jakarta Sans', 'Montserrat', system-ui, sans-serif;
  --display: 'Bebas Neue', 'Arial Narrow', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  left: -240px;
  top: 180px;
  background: rgba(201, 232, 216, .36);
  filter: blur(10px);
}
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  right: -200px;
  bottom: 80px;
  background: rgba(239, 119, 94, .10);
  filter: blur(12px);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.section-pad {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}
.site-header {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 10;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--ink);
  background: var(--mint);
  transform: rotate(-4deg);
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-copy { display: flex; gap: 4px; align-items: baseline; font-size: 16px; letter-spacing: -.06em; }
.brand-copy em { color: var(--coral); font-style: normal; font-size: 13px; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  padding: 10px 13px;
  color: #6d786f;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  transition: .2s ease;
}
.site-nav a:hover, .site-nav a.active { color: var(--ink); background: rgba(255, 253, 248, .8); }
.site-nav .nav-account {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, .55);
  margin-left: 6px;
}
.nav-avatar { color: var(--coral); font-size: 17px; margin-right: 4px; }
.menu-toggle { display: none; border: 0; background: transparent; padding: 10px; }
.menu-toggle span { width: 23px; height: 2px; display: block; background: var(--ink); margin: 4px; border-radius: 2px; }

.hero {
  min-height: 630px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 36px;
  padding-top: 60px;
  padding-bottom: 60px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mint-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow.coral { color: var(--coral-dark); }
.eyebrow.mint { color: var(--mint-deep); }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.hero h1, .page-hero h1 {
  max-width: 650px;
  margin: 18px 0 20px;
  color: var(--ink);
  font-size: clamp(3.7rem, 7vw, 6.7rem);
  font-family: var(--display);
  font-weight: 400;
  line-height: .88;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.hero h1 span, .page-hero h1 span { color: var(--coral); }
.hero-lead { max-width: 520px; margin: 0; color: #66736a; font-size: 16px; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 30px; }
.button {
  min-height: 45px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: var(--small-shadow); }
.button:active { transform: translateY(0); }
.button:disabled { cursor: not-allowed; opacity: .54; transform: none; box-shadow: none; }
.button-primary { color: #fffdf8; background: var(--coral); box-shadow: 0 8px 18px rgba(239, 119, 94, .22); }
.button-primary:hover { background: var(--coral-dark); }
.button-ghost { color: var(--ink); border-color: var(--line); background: rgba(255, 253, 248, .8); }
.button-ink { color: var(--paper); background: var(--ink); }
.button-small { min-height: 37px; padding: 8px 13px; font-size: 11px; }
.full-button { width: 100%; margin-top: 9px; }
.text-link { color: var(--ink); font-size: 12px; font-weight: 800; border-bottom: 1px solid var(--coral); padding-bottom: 3px; }
.trust-line { display: flex; align-items: center; gap: 10px; margin-top: 38px; color: #909890; font-size: 10px; font-weight: 700; }
.trust-avatars { display: inline-flex; }
.trust-avatars i { width: 23px; height: 23px; display: grid; place-items: center; margin-right: -5px; border: 2px solid var(--cream); border-radius: 50%; color: var(--ink); background: var(--yellow); font-size: 10px; font-style: normal; }
.trust-avatars i:nth-child(2) { background: var(--coral); color: white; }
.trust-avatars i:nth-child(3) { background: var(--mint); }

.hero-visual { min-height: 500px; position: relative; display: grid; place-items: center; }
.hero-blob {
  width: min(530px, 90%);
  aspect-ratio: 1 / .82;
  position: absolute;
  border-radius: 47% 53% 55% 45% / 40% 42% 58% 60%;
  background: var(--mint);
  transform: rotate(-6deg);
}
.hero-visual > img:not(.ingredient-art) {
  width: min(510px, 89%);
  aspect-ratio: 1.15;
  object-fit: cover;
  border-radius: 38% 62% 44% 56% / 48% 38% 62% 52%;
  position: relative;
  box-shadow: 20px 24px 0 rgba(255, 253, 248, .7), 0 22px 45px rgba(47, 62, 52, .17);
  transform: rotate(3deg);
}
.ingredient-art { width: 220px; position: absolute; bottom: -10px; left: 4%; filter: drop-shadow(0 12px 8px rgba(48, 58, 50, .1)); transform: rotate(-7deg); }
.floating-note {
  position: absolute;
  z-index: 2;
  min-width: 125px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 29px 1fr;
  column-gap: 8px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 14px;
  background: rgba(255, 253, 248, .92);
  box-shadow: var(--small-shadow);
  transform: rotate(-4deg);
}
.floating-note strong { font-size: 15px; line-height: 1.1; }
.floating-note small { grid-column: 2; color: var(--muted); font-size: 9px; }
.mini-icon { grid-row: span 2; width: 29px; height: 29px; display: grid; place-items: center; border-radius: 10px; color: var(--ink); background: var(--yellow); font-size: 14px; }
.coin-icon { color: #735318; }
.note-time { top: 14%; left: 2%; }
.note-save { right: 0; bottom: 20%; transform: rotate(6deg); }
.note-save .mini-icon { background: var(--coral); color: white; }

.stats-strip {
  min-height: 135px;
  padding: 24px 31px;
  display: flex;
  align-items: center;
  gap: 30px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #fffdf8;
  box-shadow: var(--shadow);
}
.stat-main { min-width: 260px; display: grid; gap: 2px; }
.stat-kicker { color: #95a89e; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.stat-main strong, .list-toolbar strong { color: var(--yellow); font-size: 34px; line-height: 1.08; letter-spacing: -.06em; }
.stat-main span:last-child { color: #b2beb7; font-size: 10px; }
.stat-divider { width: 1px; height: 56px; background: rgba(255,255,255,.18); }
.stat-item { display: grid; gap: 2px; min-width: 120px; }
.stat-item strong { font-size: 27px; letter-spacing: -.05em; }
.stat-item strong span { color: var(--coral); font-size: 12px; letter-spacing: 0; }
.stat-item span { color: #aebbb3; font-size: 10px; }
.savings-art { width: 140px; position: absolute; right: 34px; bottom: -37px; opacity: .85; transform: rotate(7deg); }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading h2, .shared-heading h2 {
  max-width: 620px;
  margin: 8px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -.06em;
}
.section-number { padding-bottom: 7px; color: #a6aea7; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.capture-section, .analysis-section, .results-section, .how-section { padding-top: 105px; }
.capture-layout { display: grid; grid-template-columns: 1.6fr .8fr; gap: 20px; }
.capture-card, .analysis-card, .lookup-card, .account-card, .account-aside, .empty-card {
  border: 1px solid rgba(255,255,255,.85);
  border-radius: var(--radius-xl);
  background: rgba(255, 253, 248, .78);
  box-shadow: var(--shadow);
}
.capture-card { padding: 25px; }
.source-switch { display: inline-flex; padding: 4px; border-radius: 999px; background: #eceee8; }
.source-button { border: 0; border-radius: 999px; padding: 9px 14px; color: #89928b; background: transparent; font-size: 11px; font-weight: 800; }
.source-button.active { color: var(--ink); background: var(--paper); box-shadow: 0 3px 10px rgba(48,58,50,.08); }
.source-button span { color: var(--coral); margin-right: 5px; }
.dropzone {
  min-height: 230px;
  margin-top: 20px;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1.5px dashed #cbd4cc;
  border-radius: var(--radius-lg);
  background: rgba(201, 232, 216, .22);
  outline: none;
  transition: .2s ease;
}
.dropzone:hover, .dropzone:focus, .dropzone.dragging { border-color: var(--mint-deep); background: rgba(201,232,216,.42); }
.dropzone-icon { width: 45px; height: 45px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 15px; color: var(--mint-deep); background: var(--mint); font-size: 29px; font-weight: 300; line-height: 1; }
.dropzone strong { font-size: 15px; }
.dropzone p { max-width: 340px; margin: 5px 0 18px; color: var(--muted); font-size: 11px; }
.capture-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.capture-footer { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 12px; }
.privacy-note { color: #99a29b; font-size: 9px; }
.file-state { margin-top: 14px; padding: 13px 14px; border-radius: var(--radius-md); background: #f0f3ec; }
.file-state-top { display: flex; align-items: center; gap: 10px; }
.file-state-top > div { min-width: 0; flex: 1; display: grid; }
.file-state-top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.file-state-top small { color: var(--muted); font-size: 10px; }
.file-badge { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: var(--coral-dark); background: #ffe1d8; font-size: 8px; font-weight: 900; }
.icon-button, .dialog-close { width: 31px; height: 31px; display: grid; place-items: center; border: 0; border-radius: 50%; color: var(--muted); background: #e4e9e2; font-size: 20px; line-height: 1; }
.upload-track { height: 5px; overflow: hidden; margin-top: 12px; border-radius: 10px; background: #dce4dc; }
.upload-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--mint-deep); transition: width .4s ease; }
.upload-track.uploading span { width: 72%; animation: uploadpulse 1.1s infinite alternate; }
.upload-track.uploaded span { width: 100%; background: var(--mint-deep); }
.inline-status { min-height: 19px; margin: 7px 0 0; color: var(--muted); font-size: 10px; }
.retry-button { margin-top: 3px; }
.tip-card { min-height: 300px; padding: 30px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; border-radius: var(--radius-xl); background: var(--lavender); position: relative; }
.tip-card::after { content: ""; width: 180px; height: 180px; position: absolute; right: -55px; bottom: -65px; border-radius: 50%; background: rgba(255,253,248,.45); }
.tip-label { color: #71668b; font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.tip-card h3 { max-width: 230px; margin: 13px 0 8px; font-size: 24px; line-height: 1.05; letter-spacing: -.06em; }
.tip-card p { max-width: 260px; margin: 0; color: #766f82; font-size: 12px; }
.tip-illustration { display: flex; align-items: center; gap: 5px; margin-top: 28px; font-size: 34px; transform: rotate(-5deg); }
.tip-illustration span:nth-child(2) { transform: translateY(-9px); }
.tip-illustration span:nth-child(3) { transform: translateY(5px); }
.tip-illustration span:nth-child(4) { transform: translateY(-3px); }

.analysis-card { padding: 25px; }
.analysis-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.analysis-status { display: flex; align-items: center; gap: 9px; color: #76847b; font-size: 11px; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint-deep); box-shadow: 0 0 0 5px rgba(92,158,125,.13); }
.ingredient-editor { display: flex; align-items: center; gap: 16px; margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--line); }
.ingredient-list { flex: 1; min-height: 41px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ingredient-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px 8px 12px; border-radius: 999px; color: #446b57; background: var(--mint); font-size: 11px; font-weight: 800; }
.ingredient-chip button { width: 16px; height: 16px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; color: #446b57; background: rgba(255,255,255,.5); font-size: 13px; line-height: 1; }
.empty-ingredients { color: #9ca49e; font-size: 11px; }
.ingredient-form { min-width: 190px; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.ingredient-form input { width: 100%; min-width: 0; padding: 10px 4px 10px 13px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 11px; }
.round-add { width: 27px; height: 27px; flex: 0 0 27px; margin-right: 5px; border: 0; border-radius: 50%; color: var(--paper); background: var(--ink); font-size: 18px; line-height: 1; }

.results-section { padding-bottom: 20px; }
.savings-result { min-height: 83px; padding: 14px 20px; display: flex; align-items: center; gap: 13px; overflow: hidden; position: relative; border-radius: var(--radius-md); color: #fffdf8; background: var(--ink); }
.result-check { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 12px; color: var(--ink); background: var(--yellow); font-weight: 900; }
.savings-result strong { display: block; font-size: 14px; }
.savings-result strong span { color: var(--yellow); }
.savings-result small { display: block; margin-top: 2px; color: #abb8b0; font-size: 10px; }
.savings-result img { width: 110px; position: absolute; right: 10px; bottom: -30px; opacity: .72; }
.recipe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; margin-top: 20px; }
.recipe-card { overflow: hidden; border: 1px solid rgba(255,255,255,.85); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--small-shadow); transition: transform .2s ease, box-shadow .2s ease; }
.recipe-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.recipe-image-wrap { height: 170px; overflow: hidden; position: relative; background: var(--mint); }
.recipe-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.recipe-card:hover .recipe-image-wrap img { transform: scale(1.04); }
.recipe-tag { position: absolute; top: 12px; left: 12px; padding: 5px 9px; border-radius: 999px; color: var(--ink); background: rgba(255,253,248,.9); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.recipe-body { padding: 18px; }
.recipe-body h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.06em; line-height: 1.05; }
.recipe-body p { min-height: 39px; margin: 0 0 13px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.recipe-meta { display: flex; gap: 10px; color: #818d83; font-size: 10px; font-weight: 800; }
.recipe-meta span:first-child { color: var(--coral-dark); }
.recipe-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-top: 16px; }
.recipe-card-actions button { border: 0; color: var(--ink); background: transparent; font-size: 10px; font-weight: 900; }
.recipe-card-actions button:first-child { padding: 0 0 3px; border-bottom: 1px solid var(--coral); }
.recipe-card-actions button:last-child { color: var(--coral-dark); font-size: 17px; }
.result-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.action-status { color: var(--mint-deep); font-size: 11px; font-weight: 800; }
.share-box { display: flex; align-items: center; gap: 10px; margin-top: 13px; padding: 12px 15px; border-radius: var(--radius-md); color: #517a63; background: #e3f3e8; font-size: 11px; }
.share-box span { max-width: 560px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #789080; }

.how-section { padding-bottom: 110px; }
.centered-heading { justify-content: center; text-align: center; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how-card { min-height: 215px; padding: 24px; position: relative; overflow: hidden; border-radius: var(--radius-lg); background: rgba(255,253,248,.7); }
.how-card:nth-child(1) { background: var(--mint); }
.how-card:nth-child(2) { background: var(--lavender); }
.how-card:nth-child(3) { background: #ffe0c9; }
.how-number { position: absolute; right: 20px; top: 18px; color: rgba(38,50,46,.28); font-family: var(--display); font-size: 35px; }
.how-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; color: var(--paper); background: var(--ink); font-size: 20px; }
.how-card h3 { margin: 25px 0 5px; font-size: 18px; letter-spacing: -.05em; }
.how-card p { max-width: 240px; margin: 0; color: #64726a; font-size: 11px; }

.site-footer { min-height: 120px; padding-top: 26px; padding-bottom: 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: #8c958e; font-size: 10px; }
.footer-brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 12px; }
.small-mark { width: 24px; height: 24px; border-radius: 8px; color: var(--coral); background: #ffe1d8; font-size: 13px; transform: none; }
.site-footer p { margin: 0; }
.footer-links { display: flex; gap: 15px; font-weight: 800; }
.footer-links a:hover { color: var(--coral-dark); }

.page-main { min-height: calc(100vh - 76px); }
.page-hero { padding-top: 75px; padding-bottom: 44px; }
.compact-hero h1 { max-width: 690px; font-size: clamp(3.2rem, 7vw, 5.7rem); }
.page-hero p { max-width: 570px; color: var(--muted); font-size: 14px; }
.account-section { display: grid; grid-template-columns: 1.2fr .8fr; align-items: stretch; gap: 20px; padding-top: 25px; padding-bottom: 110px; }
.account-card { min-height: 455px; padding: 31px; }
.account-aside { min-height: 455px; padding: 31px; position: relative; overflow: hidden; background: var(--mint); }
.account-aside img { width: 205px; position: absolute; right: -5px; bottom: -25px; }
.account-aside .eyebrow, .account-aside h3, .account-aside p { position: relative; z-index: 1; }
.account-aside h3 { max-width: 280px; margin: 25px 0 8px; font-size: 28px; line-height: 1.05; letter-spacing: -.07em; }
.account-aside p { max-width: 250px; color: #577864; font-size: 12px; }
.loading-state { min-height: 390px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 12px; }
.spinner { width: 17px; height: 17px; display: inline-block; border: 2px solid #cadbcf; border-top-color: var(--coral); border-radius: 50%; animation: spin .75s linear infinite; }
.auth-tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--line); }
.auth-tab { padding: 0 0 13px; border: 0; color: #9ba39c; background: transparent; font-size: 12px; font-weight: 800; position: relative; }
.auth-tab.active { color: var(--ink); }
.auth-tab.active::after { content: ""; height: 2px; position: absolute; left: 0; right: 0; bottom: -1px; border-radius: 4px; background: var(--coral); }
.auth-intro { display: flex; align-items: center; gap: 14px; margin: 28px 0 24px; }
.auth-spark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px; color: var(--coral-dark); background: #ffe1d8; font-size: 19px; }
.auth-intro h2, .profile-top h2 { margin: 0; font-size: 24px; letter-spacing: -.06em; line-height: 1.05; }
.auth-intro p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.auth-form { display: grid; gap: 7px; }
.auth-form label { margin-top: 5px; color: #68756d; font-size: 10px; font-weight: 800; }
.auth-form input, .lookup-form input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  outline: none;
  border-radius: 11px;
  color: var(--ink);
  background: var(--paper);
  font-size: 12px;
}
.auth-form input:focus, .lookup-form input:focus { border-color: var(--mint-deep); box-shadow: 0 0 0 3px rgba(92,158,125,.12); }
.auth-message { min-height: 21px; margin-top: 13px; color: var(--coral-dark); font-size: 11px; font-weight: 700; }
.auth-message.success { color: var(--mint-deep); }
.form-note { margin: 24px 0 0; color: #9da59f; font-size: 9px; }
.profile-top { display: flex; align-items: center; gap: 15px; padding-bottom: 27px; border-bottom: 1px solid var(--line); }
.profile-avatar { width: 53px; height: 53px; display: grid; place-items: center; border-radius: 18px; color: var(--ink); background: var(--yellow); font-size: 23px; }
.profile-top h2 { margin-top: 5px; word-break: break-word; }
.profile-status { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.profile-stats { display: flex; gap: 60px; padding: 28px 0; }
.profile-stats div { display: grid; gap: 2px; }
.profile-stats strong { color: var(--coral-dark); font-size: 28px; line-height: 1; letter-spacing: -.07em; }
.profile-stats span { color: var(--muted); font-size: 10px; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }

.sessions-hero { display: flex; align-items: end; justify-content: space-between; gap: 25px; padding-bottom: 30px; }
.sessions-section { padding-bottom: 110px; }
.gate-card { max-width: 650px; margin: 15px auto 0; padding: 55px 30px; text-align: center; border-radius: var(--radius-xl); background: var(--lavender); }
.gate-icon, .empty-icon { width: 53px; height: 53px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 17px; color: var(--coral-dark); background: #ffe1d8; font-size: 25px; }
.gate-card h2, .empty-card h2 { margin: 0; font-size: 25px; letter-spacing: -.06em; }
.gate-card p, .empty-card p { max-width: 390px; margin: 8px auto 22px; color: #787387; font-size: 12px; }
.list-toolbar { min-height: 89px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 23px; border-radius: var(--radius-lg); background: var(--ink); }
.list-toolbar strong { display: block; }
.list-status { color: #919d95; font-size: 10px; font-weight: 800; }
.sessions-list { display: grid; gap: 13px; margin-top: 18px; }
.session-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; padding: 19px 21px; border: 1px solid rgba(255,255,255,.85); border-radius: var(--radius-lg); background: rgba(255,253,248,.78); box-shadow: var(--small-shadow); }
.session-summary { display: flex; align-items: center; gap: 14px; min-width: 0; }
.session-source { width: 43px; height: 43px; flex: 0 0 43px; display: grid; place-items: center; border-radius: 14px; color: var(--mint-deep); background: var(--mint); font-size: 19px; }
.session-summary h3 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; letter-spacing: -.04em; }
.session-summary p { margin: 4px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 10px; }
.session-values { display: flex; align-items: center; gap: 18px; }
.session-saving { color: var(--coral-dark); font-size: 16px; font-weight: 900; white-space: nowrap; }
.session-actions { display: flex; gap: 5px; }
.session-actions button { min-height: 30px; padding: 5px 9px; border: 0; border-radius: 8px; color: var(--ink); background: #edf0e9; font-size: 10px; font-weight: 800; }
.session-actions button:hover { background: var(--mint); }
.session-actions .delete-session:hover { color: white; background: var(--coral); }
.empty-card { padding: 55px 25px; text-align: center; }
.empty-card .empty-icon { color: #88799e; background: #eee7f8; }
.error-box { margin-top: 13px; padding: 12px 14px; border-radius: 11px; color: #a64f40; background: #ffe6df; font-size: 11px; font-weight: 700; }

.shared-section { padding-bottom: 110px; }
.incoming-share { margin-bottom: 20px; padding: 23px; border: 1px solid #f4c29a; border-radius: var(--radius-lg); background: #fff0dd; }
.incoming-share h2 { margin: 6px 0; font-size: 25px; letter-spacing: -.06em; }
.incoming-share p { margin: 0; color: #8f735d; font-size: 12px; }
.lookup-card { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 25px 28px; background: var(--lavender); }
.lookup-card h2 { margin: 8px 0 3px; font-size: 21px; letter-spacing: -.06em; }
.lookup-card p { margin: 0; color: #766f82; font-size: 11px; }
.lookup-form { min-width: min(100%, 330px); display: flex; gap: 7px; }
.lookup-form input { background: rgba(255,253,248,.84); }
.shared-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-top: 73px; }
.shared-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 21px; }
.shared-card { min-height: 200px; padding: 21px; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.85); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--small-shadow); }
.shared-card .share-type { color: var(--coral-dark); font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.shared-card h3 { margin: 13px 0 5px; font-size: 19px; letter-spacing: -.06em; line-height: 1.05; }
.shared-card p { flex: 1; margin: 0; color: var(--muted); font-size: 11px; }
.shared-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 19px; color: #97a099; font-size: 10px; }
.shared-card-bottom strong { color: var(--coral-dark); font-size: 14px; }
.public-note { max-width: 680px; display: flex; gap: 12px; margin-top: 28px; padding: 16px 18px; border-radius: var(--radius-md); color: #65806f; background: rgba(201,232,216,.46); }
.public-note > span { color: var(--mint-deep); font-size: 18px; }
.public-note strong { font-size: 11px; }
.public-note p { margin: 3px 0 0; font-size: 10px; }

.recipe-dialog {
  width: min(600px, calc(100% - 30px));
  padding: 0;
  border: 0;
  border-radius: var(--radius-xl);
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 25px 100px rgba(30,40,34,.28);
}
.recipe-dialog::backdrop { background: rgba(38,50,46,.48); backdrop-filter: blur(4px); }
.dialog-inner { padding: 29px; position: relative; }
.dialog-close { position: absolute; z-index: 2; right: 18px; top: 18px; }
.dialog-recipe-tag { color: var(--coral-dark); font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.dialog-inner h2 { max-width: 460px; margin: 9px 30px 8px 0; font-size: 33px; letter-spacing: -.07em; line-height: .98; }
.dialog-description { color: var(--muted); font-size: 12px; }
.dialog-columns { display: grid; grid-template-columns: .8fr 1.2fr; gap: 25px; margin-top: 24px; }
.dialog-columns h3 { margin: 0 0 9px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.dialog-columns ul, .dialog-columns ol { margin: 0; padding-left: 18px; color: #67736b; font-size: 11px; }
.dialog-columns li { margin-bottom: 7px; }
.dialog-meta { display: flex; gap: 9px; margin-top: 17px; color: var(--coral-dark); font-size: 11px; font-weight: 800; }
.dialog-fallback-open { display: block; position: fixed; z-index: 100; inset: 0; margin: auto; }
.dialog-fallback-open::backdrop { background: rgba(38,50,46,.48); }

.toast {
  max-width: min(360px, calc(100% - 30px));
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 22px;
  padding: 12px 16px;
  border-radius: 999px;
  color: white;
  background: var(--ink);
  box-shadow: var(--shadow);
  font-size: 11px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 15px);
  transition: .25s ease;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes uploadpulse { from { transform: translateX(-18%); } to { transform: translateX(34%); } }

@media (max-width: 850px) {
  .site-header { min-height: 68px; }
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 62px; padding: 10px; flex-direction: column; align-items: stretch; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,253,248,.97); box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 14px; }
  .site-nav .nav-account { margin: 3px 0 0; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 45px; }
  .hero-copy { max-width: 650px; }
  .hero-visual { min-height: 420px; }
  .stats-strip { flex-wrap: wrap; }
  .stat-divider { display: none; }
  .savings-art { right: 15px; }
  .capture-layout, .account-section { grid-template-columns: 1fr; }
  .account-aside { min-height: 250px; }
  .shared-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .section-pad { width: min(100% - 28px, 1180px); }
  .hero { padding-top: 32px; padding-bottom: 35px; }
  .hero h1, .page-hero h1 { font-size: clamp(3.3rem, 16vw, 5.2rem); }
  .hero-lead { font-size: 14px; }
  .hero-visual { min-height: 340px; margin-top: 2px; }
  .hero-visual > img:not(.ingredient-art) { width: 91%; }
  .ingredient-art { width: 150px; left: -3%; bottom: -5px; }
  .floating-note { min-width: 106px; padding: 9px; }
  .floating-note strong { font-size: 12px; }
  .floating-note small { font-size: 8px; }
  .note-time { left: -2%; top: 11%; }
  .note-save { right: -3%; bottom: 11%; }
  .stats-strip { gap: 17px; padding: 22px; }
  .stat-main { min-width: 100%; }
  .stat-item { min-width: 98px; }
  .stat-main strong { font-size: 30px; }
  .savings-art { width: 105px; bottom: -24px; right: -7px; }
  .capture-section, .analysis-section, .results-section, .how-section { padding-top: 70px; }
  .section-heading { align-items: start; flex-direction: column; gap: 3px; }
  .section-number { display: none; }
  .capture-card, .analysis-card, .account-card, .account-aside { padding: 19px; border-radius: 22px; }
  .capture-footer { align-items: flex-start; flex-direction: column; }
  .capture-footer .button { align-self: stretch; }
  .analysis-top { align-items: stretch; flex-direction: column; }
  .analysis-top .button { width: 100%; }
  .ingredient-editor { align-items: stretch; flex-direction: column; }
  .ingredient-form { min-width: 0; }
  .recipe-grid, .how-grid, .shared-grid { grid-template-columns: 1fr; }
  .recipe-image-wrap { height: 195px; }
  .savings-result { padding-right: 95px; }
  .result-actions .button { width: 100%; }
  .action-status { width: 100%; }
  .share-box { align-items: flex-start; flex-direction: column; }
  .share-box span { width: 100%; }
  .site-footer { align-items: flex-start; flex-direction: column; padding-top: 24px; padding-bottom: 24px; }
  .sessions-hero { align-items: start; flex-direction: column; }
  .sessions-hero .button { width: 100%; }
  .session-row { grid-template-columns: 1fr; gap: 13px; }
  .session-values { justify-content: space-between; }
  .lookup-card { align-items: stretch; flex-direction: column; padding: 21px; }
  .lookup-form { min-width: 0; }
  .lookup-form input { min-width: 0; }
  .shared-heading { align-items: start; flex-direction: column; gap: 4px; margin-top: 55px; }
  .dialog-inner { padding: 23px; }
  .dialog-columns { grid-template-columns: 1fr; gap: 19px; }
  .profile-stats { gap: 35px; }
}

.visually-hidden {
  width: 1px !important;
  height: 1px !important;
  position: absolute !important;
  overflow: hidden !important;
  clip: rect(1px,1px,1px,1px) !important;
  white-space: nowrap !important;
}