:root {
  --bg: #FAFAF9;
  --bg-grad: radial-gradient(140% 90% at 50% -10%, #ECFDF5 0%, #FAFAF9 55%);
  --surface: #FFFFFF;
  --surface-soft: #F5F5F4;
  --ink: #0F172A;
  --ink-2: #1E293B;
  --muted: #64748B;
  --muted-2: #94A3B8;
  --border: #E5E7EB;
  --border-soft: #EEF2F7;

  --go:      #10B981;
  --go-bg:   #D1FAE5;
  --caution: #F59E0B;
  --caution-bg: #FEF3C7;
  --avoid:   #EF4444;
  --avoid-bg: #FEE2E2;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 1px 2px rgba(15, 23, 42, 0.04), 0 18px 48px rgba(15, 23, 42, 0.10);

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100dvh;
  background: var(--bg-grad);
  background-attachment: fixed;
}

button { font-family: inherit; }
img { max-width: 100%; display: block; }

.app {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 20px 56px;
  padding-top: max(28px, env(safe-area-inset-top));
}

/* ============== view switching ============== */

.view { display: none; animation: fadeIn 360ms cubic-bezier(.2,.7,.2,1) both; }
.view[data-active="true"] { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============== brand ============== */

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}
.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-weight: 700; letter-spacing: -0.01em; }
.brand__sub  { color: var(--muted); font-size: 12.5px; }

/* ============== hero ============== */

.hero { margin-bottom: 28px; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 9vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--ink);
}
.hero__accent { color: var(--go); font-style: italic; }
.hero__sub {
  color: var(--muted);
  font-size: 15.5px;
  max-width: 38ch;
  margin: 0;
}

/* ============== capture card ============== */

.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--shadow-md);
}
.capture { display: grid; gap: 12px; }
.capture__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.005em;
  cursor: pointer;
  user-select: none;
  transition: transform 120ms ease, box-shadow 200ms ease, background 200ms ease;
  border: 1px solid transparent;
}
.capture__btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}
.capture__btn--primary:hover { background: #0B1220; }
.capture__btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}
.capture__btn--ghost:hover { background: var(--surface-soft); }
.capture__btn:active { transform: translateY(1px); }

/* ============== legend ============== */

.legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 22px 0 12px;
  padding: 0;
  color: var(--muted);
  font-size: 13.5px;
}
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.dot {
  width: 10px; height: 10px;
  border-radius: 999px;
  background: var(--muted-2);
  display: inline-block;
}
.dot--go      { background: var(--go); }
.dot--caution { background: var(--caution); }
.dot--avoid   { background: var(--avoid); }
.dot--mild    { background: var(--caution); }
.dot--high    { background: var(--avoid); }
.dot--none    { background: var(--go); }

.footnote {
  color: var(--muted-2);
  font-size: 12.5px;
  margin: 18px 0 0;
  text-align: center;
}

/* ============== loading ============== */

.view--loading {
  min-height: 60vh;
  display: none;
  place-items: center;
}
.view--loading[data-active="true"] { display: grid; }
.loader { text-align: center; }
.loader__ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--go);
  margin: 0 auto 18px;
  animation: spin 900ms linear infinite;
}
.loader__line {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
  transition: opacity 240ms ease;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============== result view ============== */

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  padding: 8px 12px 8px 4px;
  margin: 0 0 14px -4px;
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  border-radius: var(--r-pill);
}
.back:hover { color: var(--ink); background: var(--surface-soft); }

.hero-photo {
  margin: 0 0 18px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
}
.hero-photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--surface-soft);
}
.hero-photo figcaption { padding: 18px 20px 20px; }
.hero-photo h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
}
.hero-photo p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

/* ============== verdict chip ============== */

.verdict {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-radius: var(--r-lg);
  margin-bottom: 22px;
  color: #fff;
  background: var(--caution);
  box-shadow: var(--shadow-md);
  animation: pop 420ms cubic-bezier(.2,.9,.3,1.4) both;
}
.verdict[data-verdict="GO"]      { background: linear-gradient(135deg, #10B981, #047857); }
.verdict[data-verdict="CAUTION"] { background: linear-gradient(135deg, #F59E0B, #B45309); }
.verdict[data-verdict="AVOID"]   { background: linear-gradient(135deg, #EF4444, #B91C1C); }
.verdict__left { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.verdict__label {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 14px;
  text-transform: uppercase;
}
.verdict__sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
}
.verdict__score {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.verdict__score small {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  opacity: 0.75;
}

@keyframes pop {
  0%   { transform: scale(.96); opacity: 0; }
  60%  { transform: scale(1.02); opacity: 1; }
  100% { transform: scale(1);  opacity: 1; }
}

/* ============== blocks (ingredients / reasoning / recs) ============== */

.block {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.block__title {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

/* ingredients */
.ingredients {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.ingredients li {
  display: grid;
  grid-template-columns: 14px 1fr;
  align-items: start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--surface-soft);
}
.ingredients .dot { margin-top: 6px; }
.ingredients__name { font-weight: 600; color: var(--ink); font-size: 15px; }
.ingredients__note { color: var(--muted); font-size: 13.5px; line-height: 1.45; margin-top: 2px; }

/* reasoning */
.reasoning { display: grid; gap: 10px; }
.reasoning__item {
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--surface-soft);
  border-left: 3px solid var(--border);
}
.reasoning__item--align    { border-left-color: var(--go);      background: linear-gradient(0deg, #ECFDF5, #ECFDF5); }
.reasoning__item--conflict { border-left-color: var(--avoid);   background: linear-gradient(0deg, #FEF2F2, #FEF2F2); }
.reasoning__goal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.reasoning__item--align    .reasoning__goal { color: #047857; }
.reasoning__item--conflict .reasoning__goal { color: #B91C1C; }
.reasoning__text { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }

/* recs */
.recs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.recs li {
  position: relative;
  padding: 12px 14px 12px 38px;
  border-radius: var(--r-md);
  background: var(--surface-soft);
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.45;
}
.recs li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 16px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--go);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

/* CTA */
.cta {
  width: 100%;
  height: 56px;
  border-radius: var(--r-pill);
  border: 0;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  margin-top: 12px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
  transition: background 200ms ease, transform 120ms ease;
}
.cta:hover  { background: #0B1220; }
.cta:active { transform: translateY(1px); }

/* ============== plan card on capture screen ============== */

.plan-card {
  margin-top: 14px;
  display: grid;
  gap: 14px;
  background: linear-gradient(135deg, #ECFDF5 0%, #FFFFFF 80%);
  border-color: #D1FAE5;
}
.plan-card__head { display: flex; align-items: flex-start; gap: 14px; }
.plan-card__icon {
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--go);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  box-shadow: var(--shadow-sm);
}
.plan-card__copy h3 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0 0 2px;
  color: var(--ink);
}
.plan-card__copy p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
}
.plan-card__btn {
  height: 48px;
  border-radius: var(--r-pill);
  border: 0;
  background: var(--go);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.28);
  transition: background 200ms ease, transform 120ms ease;
}
.plan-card__btn:hover  { background: #059669; }
.plan-card__btn:active { transform: translateY(1px); }

.seg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-pill);
  background: rgba(16, 185, 129, 0.10);
}
.seg__opt {
  min-width: 0;
  height: 38px;
  padding: 0 4px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: #047857;
  font: 500 13.5px/1 var(--font-sans);
  white-space: nowrap;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.seg__opt:hover { background: rgba(255, 255, 255, 0.6); }
.seg__opt[aria-checked="true"] {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(16, 185, 129, 0.15);
}
.seg__opt:focus-visible { outline: 2px solid var(--go); outline-offset: 2px; }

/* ============== meal plan view ============== */

.plan-hero { margin: 4px 0 22px; }
.plan-hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--go);
  background: var(--go-bg);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  margin-bottom: 12px;
}
.plan-hero__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 7vw, 42px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  line-height: 1.05;
}
.plan-hero__sub {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  max-width: 50ch;
}

.meal-list { display: grid; gap: 14px; margin-bottom: 16px; }

.meal {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 18px 20px 20px;
  box-shadow: var(--shadow-sm);
}
.meal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.meal__slot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.meal__slot svg { color: var(--go); }
.meal__time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
  background: var(--surface-soft);
  padding: 4px 10px;
  border-radius: var(--r-pill);
}
.meal__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  line-height: 1.18;
}
.meal__ingredients {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
.meal__ingredients li {
  font-size: 13px;
  color: var(--ink-2);
  background: var(--surface-soft);
  padding: 5px 10px;
  border-radius: var(--r-pill);
}
.meal__why {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  background: linear-gradient(0deg, #ECFDF5, #ECFDF5);
  border-left: 3px solid var(--go);
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.45;
}
.meal__why::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--go);
  margin-top: 7px;
  flex: 0 0 auto;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}
.meal__aligned {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.meal__aligned li {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #047857;
  background: var(--go-bg);
  padding: 4px 9px;
  border-radius: var(--r-pill);
}

.meal__swap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink-2);
  font: 600 13.5px/1 var(--font-sans);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}
.meal__swap svg { color: var(--go); }
.meal__swap:hover { background: var(--surface-soft); border-color: #D1D5DB; }
.meal__swap:disabled { cursor: progress; }
.meal__swap:disabled svg { animation: spin 900ms linear infinite; }
.meal[aria-busy="true"] > :not(.meal__swap) { opacity: 0.45; transition: opacity 200ms ease; }

.tips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.tips li {
  position: relative;
  padding: 12px 14px 12px 38px;
  border-radius: var(--r-md);
  background: var(--surface-soft);
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.45;
}
.tips li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ink-2);
  opacity: 0.4;
}

/* ============== avoid card on capture screen ============== */

.avoid-card {
  margin-top: 12px;
  display: grid;
  gap: 14px;
  background: linear-gradient(135deg, #FEF2F2 0%, #FFFFFF 80%);
  border-color: #FECACA;
}
.avoid-card__head { display: flex; align-items: flex-start; gap: 14px; }
.avoid-card__icon {
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--avoid);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  box-shadow: var(--shadow-sm);
}
.avoid-card__copy h3 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0 0 2px;
  color: var(--ink);
}
.avoid-card__copy p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
}
.avoid-card__btn {
  height: 48px;
  border-radius: var(--r-pill);
  border: 0;
  background: var(--avoid);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.28);
  transition: background 200ms ease, transform 120ms ease;
}
.avoid-card__btn:hover  { background: #DC2626; }
.avoid-card__btn:active { transform: translateY(1px); }

/* ============== avoid list view ============== */

.avoid-hero { margin: 4px 0 22px; }
.avoid-hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--avoid);
  background: var(--avoid-bg);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  margin-bottom: 12px;
}
.avoid-hero__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 7vw, 42px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  line-height: 1.05;
}
.avoid-hero__sub {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  max-width: 50ch;
}

.avoid-list { display: grid; gap: 14px; margin-bottom: 16px; }

.avoid-cat {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 18px 20px 20px;
  box-shadow: var(--shadow-sm);
}
.avoid-cat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.avoid-cat__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--avoid-bg);
  color: #B91C1C;
  font-weight: 700;
  font-size: 13px;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  flex: 0 0 auto;
}
.avoid-cat__title {
  flex: 1;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.2;
}
.avoid-cat__examples {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
.avoid-cat__examples li {
  font-size: 13px;
  color: var(--ink-2);
  background: var(--surface-soft);
  padding: 5px 10px;
  border-radius: var(--r-pill);
}
.avoid-cat__why {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  background: linear-gradient(0deg, #FEF2F2, #FEF2F2);
  border-left: 3px solid var(--avoid);
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.45;
}
.avoid-cat__why::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--avoid);
  margin-top: 7px;
  flex: 0 0 auto;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}
.avoid-cat__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.avoid-cat__tags li {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #B91C1C;
  background: var(--avoid-bg);
  padding: 4px 9px;
  border-radius: var(--r-pill);
}

/* ============== login page ============== */

.login-body { min-height: 100dvh; }
.login-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 20px;
}
.login {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 32px 28px 28px;
  box-shadow: var(--shadow-md);
}
.brand--center { justify-content: center; margin-bottom: 28px; }
.login__title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  text-align: center;
}
.login__sub {
  margin: 0 0 22px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}
.login__form { display: grid; gap: 12px; }
.login__input {
  height: 52px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface-soft);
  padding: 0 22px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}
.login__input:focus {
  border-color: var(--go);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}
.login__error {
  margin: 4px 0 0;
  text-align: center;
  color: var(--avoid);
  font-size: 13.5px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ============== toast ============== */

.toast {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 240ms ease;
  max-width: calc(100% - 40px);
  text-align: center;
}
.toast[data-show="true"] {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============== responsive tweaks ============== */

@media (min-width: 520px) {
  .capture { grid-template-columns: 1fr 1fr; }
  .hero-photo img { height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
