/* ─────────────────────────────────────────────────────────────
   Landing page (route "#/") - see js/render-landing.js
   Uses the existing theme tokens so dark/light just work.
   ───────────────────────────────────────────────────────────── */

.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; }
.spinner--sm { width: 14px; height: 14px; border-width: 2px; display: inline-block; vertical-align: -2px; margin-right: 6px; }
.btn--lg { padding: 12px 22px; font-size: 14.5px; border-radius: 11px; }
.btn { text-decoration: none; }

/* On the landing page the sidebar is hidden and content goes full width. */
body.is-landing .sidebar, body.is-landing .sidebar-scrim, body.is-landing .sidebar-toggle, body.is-landing .header-search { display: none !important; }
body.is-landing .content { max-width: 1180px; padding: 24px 28px 0; }

/* Header nav links */
.header-nav { display: flex; align-items: center; gap: 2px; margin-left: 6px; }
.header-nav a {
  font-size: 13px; font-weight: 600; color: var(--text-secondary); text-decoration: none;
  padding: 7px 11px; border-radius: var(--radius-md);
}
.header-nav a:hover { color: var(--text-primary); background: var(--surface-hover); }
.header-nav a[aria-current="page"] { color: var(--text-primary); background: var(--accent-bg); }

.lp { --lp-gap: clamp(56px, 8vw, 104px); }
.lp-section { margin-top: var(--lp-gap); scroll-margin-top: calc(var(--header-h) + 8px); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ── Hero ── */
.lp-hero {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px);
  align-items: center; padding: clamp(24px, 5vw, 56px) 0 8px;
}
.lp-hero__glow {
  position: absolute; inset: -60px -24px auto -24px; height: 460px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(420px 280px at 76% 38%, var(--accent-bg), transparent 72%),
    radial-gradient(380px 260px at 32% 12%, var(--green-bg), transparent 72%);
}
.lp-pill {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px;
  font-size: 12.5px; font-weight: 600; color: var(--text-secondary);
  border: 1px solid var(--border-strong); background: var(--bg-raised);
  padding: 6px 13px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.lp-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.lp-pill__dot.is-ok { background: var(--green); animation: lp-pulse 2s ease-in-out infinite; }
@keyframes lp-pulse { 0%,100% { box-shadow: 0 0 0 0 var(--green-bg); } 50% { box-shadow: 0 0 0 6px transparent; } }
.lp-title { font-size: clamp(36px, 6vw, 62px); line-height: 1.04; letter-spacing: -1.2px; font-weight: 700; }
.lp-title em { font-style: italic; color: var(--accent); }
.lp-lead { font-size: clamp(16px, 1.6vw, 18px); line-height: 1.65; color: var(--text-secondary); max-width: 56ch; margin: 20px 0 0; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.lp-cta--center { justify-content: center; }
.lp-trust__label { margin: 28px 0 10px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-tertiary); }
.lp-trust { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; font-size: 13px; line-height: 1.4; color: var(--text-secondary); }
.lp-cta__link { align-self: center; margin: 0; padding: 0 4px; font-size: 14px; }
.lp-trust li { display: flex; align-items: flex-start; gap: 9px; }
.lp-trust li::before { content: ""; flex: none; margin-top: 6px; width: 6px; height: 6px; background: var(--green); transform: rotate(45deg); }

.lp-hero__media { position: relative; }
.lp-photo {
  position: relative; margin: 0; overflow: hidden; border-radius: 26px; aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--accent-bg), var(--green-bg)), var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.lp-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.lp-photo__ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--accent); opacity: .5; }
/* ── Section heads ── */
.lp-head { max-width: 760px; margin-bottom: 32px; }
.lp-kicker { font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent-strong); margin: 0 0 12px; }
.lp-head h2, .lp-dev h2, .lp-try h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.12; letter-spacing: -.5px; }
.lp-sub { color: var(--text-secondary); font-size: 16px; line-height: 1.65; margin: 14px 0 0; }

/* ── Stats ── */
.lp-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.lp-stat {
  border: 1px solid var(--border); background: var(--bg-raised); border-radius: 18px; padding: 22px 22px 20px; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.lp-stat::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--accent), var(--green)); opacity: .75; }
.lp-stat__num { font-family: var(--font-display); font-size: clamp(32px, 4vw, 42px); font-weight: 700; line-height: 1; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.lp-stat__label { margin-top: 10px; font-weight: 600; font-size: 14px; }
.lp-stat__note { margin-top: 3px; font-size: 12.5px; color: var(--text-tertiary); }
.lp-stat__idx { position: absolute; top: 16px; right: 18px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--text-tertiary); }
.lp-stat--loading { opacity: .6; }
/* ── Community contribution ── */
.lp-contrib__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.lp-contrib__step { position: relative; padding: 22px; }
.lp-contrib__n { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--accent); }
.lp-contrib__step h3 { margin: 8px 0 6px; font-size: 17px; }
.lp-contrib__step p { margin: 0; font-size: 14px; color: var(--text-secondary); }
.lp-stat__offline { grid-column: 1 / -1; color: var(--text-tertiary); font-size: 13px; margin: 0; }

/* ── Cards ── */
.lp-aud-grid { display: grid; gap: 16px; }
.lp-aud-grid { grid-template-columns: repeat(3, 1fr); }
.lp-card, .lp-feat, .lp-aud {
  display: flex; flex-direction: column; gap: 10px;
  border: 1px solid var(--border); background: var(--bg-raised); border-radius: 18px; padding: 24px;
  box-shadow: var(--shadow-sm); text-decoration: none; color: inherit;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.lp-feat:hover, .lp-aud:hover, .lp-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.lp-card h3, .lp-feat h3, .lp-aud h3 { font-size: 19px; letter-spacing: -.2px; }
.lp-card p, .lp-feat p, .lp-aud p { margin: 0; color: var(--text-secondary); font-size: 14.5px; line-height: 1.6; }
.lp-card__icon {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none;
  background: var(--accent-bg); color: var(--accent-strong);
}
.lp-feat__more, .lp-link { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 700; color: var(--accent-strong); text-decoration: none; }
.lp-link:hover { color: var(--text-primary); }
.lp-link:hover { text-decoration: underline; }

/* ── Live lookup ── */
.lp-try__panel {
  border: 1px solid var(--border); border-radius: 28px; padding: clamp(24px, 4vw, 44px);
  background: linear-gradient(160deg, var(--bg-raised), var(--surface));
  box-shadow: var(--shadow-md); display: grid; gap: 18px;
}
.lp-search { display: flex; gap: 10px; max-width: 560px; }
.lp-search input {
  flex: 1; min-width: 0; height: 48px; padding: 0 16px; font-size: 16px; font-family: var(--font-body);
  background: var(--bg); color: var(--text-primary); border: 1px solid var(--border-strong); border-radius: 12px;
}
.lp-search input:focus { outline: none; box-shadow: var(--focus-ring); }
.lp-search .btn { height: 48px; padding: 0 22px; font-size: 14.5px; }
.lp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-chip {
  font-family: var(--font-body); font-size: 13px; font-weight: 600; cursor: pointer;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--bg-raised); color: var(--text-secondary);
}
.lp-chip:hover { color: var(--accent-strong); border-color: var(--accent); }
.lp-result { min-height: 150px; }
.lp-result__msg { color: var(--text-secondary); margin: 0; font-size: 14.5px; }
.lp-result__msg--err { color: var(--red); }
.lp-food { border: 1px solid var(--border); background: var(--bg); border-radius: 18px; padding: 20px 22px; animation: lp-fade .4s ease both; }
@keyframes lp-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.lp-food__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lp-food__top h3 { font-size: 22px; }
.lp-tag { font-size: 12px; font-weight: 600; color: var(--green); background: var(--green-bg); padding: 4px 11px; border-radius: 999px; }
.lp-food__measure { margin: 6px 0 0; font-size: 13px; color: var(--text-tertiary); }
.lp-nutrients { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; margin: 16px 0 0; }
.lp-nutrients div { background: var(--surface); border-radius: 12px; padding: 11px 13px; }
.lp-nutrients dt { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--text-tertiary); }
.lp-nutrients dd { margin: 3px 0 0; font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.lp-nutrients small { font-family: var(--font-body); font-size: 12px; font-weight: 500; color: var(--text-secondary); margin-left: 3px; }
.lp-food__src { margin: 14px 0 0; font-size: 12.5px; color: var(--text-tertiary); }
.lp-food__src a { color: var(--accent-strong); }

/* ── Gallery ── */
.lp-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.lp-tile {
  position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 20px;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  background: linear-gradient(150deg, var(--accent-bg), var(--green-bg)), var(--surface);
}
.lp-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.lp-tile:hover img { transform: scale(1.06); }
.lp-tile figcaption {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1;
  font-size: 13px; font-weight: 600; color: var(--text-primary);
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: 12px; padding: 9px 12px;
}
.lp-uses-more { margin-top: 44px; }

/* ── Developer ── */
.lp-dev { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.lp-code { border: 1px solid var(--code-border); background: var(--code-bg); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-md); min-width: 0; }
.lp-code__bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--code-border); font-family: var(--font-mono); font-size: 12px; color: var(--text-tertiary); }
.lp-code pre { margin: 0; padding: 20px; overflow-x: auto; font-size: 13.5px; line-height: 1.6; }

/* ── Closing + footer ── */
.lp-closing {
  margin-top: var(--lp-gap); text-align: center; padding: clamp(40px, 7vw, 76px) 24px;
  border-radius: 30px; border: 1px solid var(--border);
  background: radial-gradient(500px 240px at 50% 0%, var(--accent-bg), transparent 70%), var(--bg-raised);
}
.lp-closing h2 { font-size: clamp(26px, 4vw, 42px); max-width: 20ch; margin: 0 auto; letter-spacing: -.6px; line-height: 1.12; }
.lp-footer { margin-top: 56px; padding: 36px 0 48px; border-top: 1px solid var(--border); color: var(--text-secondary); font-size: 13.5px; }
.lp-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 28px 36px; }
.lp-footer__logo { display: block; width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: 14px; padding: 6px; margin-bottom: 12px; border: 1px solid var(--border); }
.lp-footer p { margin: 0; }
.lp-footer__name { color: var(--text-primary); font-weight: 700; font-size: 15px; }
.lp-footer__tag { margin-top: 4px !important; color: var(--text-secondary); }
.lp-footer__h { margin: 0 0 12px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-tertiary); }
.lp-footer nav a { display: block; padding: 5px 0; color: var(--text-secondary); font-weight: 500; text-decoration: none; }
.lp-footer nav a:hover { color: var(--accent-strong); text-decoration: underline; }
.lp-footer__note { margin-top: 32px !important; padding-top: 20px; border-top: 1px solid var(--border); max-width: 78ch; color: var(--text-tertiary); line-height: 1.6; }
.lp-footer__copy { margin-top: 12px !important; color: var(--text-tertiary); font-size: 12.5px; }

/* ── Responsive ── */
@media (max-width: 1040px) {
  .lp-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .lp-hero, .lp-dev { grid-template-columns: 1fr; }
  .lp-aud-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body.is-landing .content { padding: 14px 16px 0; }
  .lp-gallery { gap: 10px; }
  .lp-search { flex-direction: column; }
  .lp-search .btn { width: 100%; }
  .lp-cta .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .lp-pill__dot.is-ok { animation: none; }
  .lp-tile img, .lp-feat, .lp-aud, .lp-card { transition: none; }
}

/* Platform pillars ("More than a food database") */
.lp-pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: none; }
.lp-pillar { height: 100%; }
.lp-pillar__top { display: flex; align-items: center; justify-content: space-between; }
.lp-pillar__n { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--text-tertiary); letter-spacing: 1px; }
@media (max-width: 900px) { .lp-pillars { grid-template-columns: 1fr; } }
@media (min-width: 901px) and (max-width: 1040px) { .lp-pillars { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 860px) {
  .lp-footer__grid { grid-template-columns: 1fr 1fr; }
  .lp-footer__brand { grid-column: 1 / -1; }
}

/* Developer section: technical details live here */
.lp-dev__tech-label { margin: 18px 0 8px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-tertiary); }
.lp-dev__tech { margin-bottom: 22px; }
.lp-head .lp-sub + .lp-sub { margin-top: 12px; }

/* Thanzi Coach WhatsApp card */
.lp-coach__panel { text-align: left; }
.lp-coach__note { margin: 16px 0 0; font-size: 12.5px; color: var(--text-tertiary); max-width: 62ch; }

@media (max-width: 640px) {
  .lp-trust { grid-template-columns: 1fr; }
  .lp-cta .lp-cta__link { flex: 1 1 100%; text-align: center; padding: 6px 0; }
}

/* Connected-platform strip above the numbered cards */
.lp-flow { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; }
.lp-flow li { position: relative; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--text-secondary); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 999px; padding: 6px 12px; }
.lp-flow li:not(:last-child) { margin-right: 22px; }
.lp-flow li:not(:last-child)::after { content: ""; position: absolute; left: 100%; top: 50%; width: 22px; border-top: 1px dashed var(--accent); }
@media (max-width: 640px) {
  .lp-flow li:not(:last-child) { margin-right: 14px; }
  .lp-flow li:not(:last-child)::after { width: 14px; }
}

.lp-contrib__form { margin-top: 18px; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.lp-contrib__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.lp-contrib__msg { margin: 0; font-size: 14px; color: var(--text-secondary); flex: 1 1 240px; }
.lp-contrib__msg[data-kind="ok"] { color: var(--green); }
.lp-contrib__msg[data-kind="error"] { color: var(--red); }
.lp-contrib__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lp-contrib__form [hidden] { display: none; }
@media (max-width: 640px) { .lp-contrib__actions .btn { flex: 1 1 100%; } }
.lp-contrib__modes { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.lp-contrib__modes .lp-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.lp-contrib__hint { margin: 0; font-size: 14px; color: var(--text-secondary); line-height: 1.55; }
.lp-contrib__pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lp-contrib__count { font-size: 13px; color: var(--text-tertiary); margin-left: 4px; }
.lp-contrib__thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.lp-contrib__thumbs:empty { display: none; }
.lp-contrib__thumb { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-raised); display: flex; align-items: center; justify-content: center; color: var(--text-tertiary); }
.lp-contrib__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-contrib__rm { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 17px; line-height: 1; cursor: pointer; }
.lp-contrib__msg[data-kind="info"] { color: var(--accent); }
.lp-contrib__form[hidden] { display: none; }

/* ── Landing: link to the Submit page ── */
.lp-contrib__cta { margin-top: 22px; }

/* ── Submit page (route "#/submit") - see js/render-submit.js ── */
.submit-link { white-space: nowrap; }
.submit-page { max-width: 880px; margin: 0 auto; padding-bottom: 48px; }
.submit-crumb { font-size: 13px; color: var(--text-tertiary); margin: 4px 0 18px; }
.submit-crumb a { color: var(--text-secondary); text-decoration: none; }
.submit-crumb a:hover { color: var(--accent-strong); }
.submit-head { margin-bottom: 24px; }
.submit-title { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; letter-spacing: -.5px; margin: 0; }
.submit-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.submit-card { padding: 22px; }
.submit-card__title { font-size: 17px; margin: 0 0 12px; }
.submit-card__sub { margin: 14px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-tertiary); }
.submit-card__title + .submit-card__sub { margin-top: 0; }
.submit-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text-secondary); line-height: 1.55; }
.submit-list strong { color: var(--text-primary); }
.submit-flow { margin-top: 36px; scroll-margin-top: calc(var(--header-h) + 8px); }
.submit-flow__title { font-size: 22px; margin: 0 0 6px; }
.submit-step { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; font-size: 15px; font-weight: 600; }
.submit-step__n { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-bg); color: var(--accent-strong); font-size: 12.5px; font-weight: 700; }
.submit-page .lp-contrib__modes { margin-top: 12px; }
.submit-page .lp-contrib__form { margin-top: 12px; }
.submit-done { margin-top: 18px; padding: 24px; display: flex; flex-direction: column; gap: 12px; border-color: var(--green); }
.submit-done h3 { margin: 0; font-size: 19px; }
.submit-done[hidden], #submit-body[hidden] { display: none; }

/* Footer: Connect as icon buttons */
.lp-footer__social { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-footer nav .lp-social { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--border); border-radius: 12px; color: var(--text-secondary); text-decoration: none; }
.lp-footer nav .lp-social:hover { color: var(--accent-strong); border-color: var(--accent); background: var(--surface-hover); text-decoration: none; }
.lp-footer__connect { margin-top: 24px; }
.lp-footer nav .lp-social { width: 40px; height: 40px; }
.lp-footer__note a { color: var(--accent-strong); font-weight: 600; }

/* ── Cut-corner button (add class "btn-cut" next to "btn btn--primary") ──
   Colours come from the site theme so text stays readable in dark and light.
   To use a different look, change only the three variables below, e.g.
   --cut-from: #1c1c1c; --cut-to: #6220fb; --cut-ink: #fff; */
.btn.btn-cut {
  --cut-from: var(--accent);
  --cut-to: var(--accent-strong);
  --cut-ink: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 25px;
  border: 0; border-radius: .25rem;
  text-transform: uppercase; font-style: normal; font-weight: 600;
  font-size: .7rem; line-height: 14px; letter-spacing: 1.2px;
  color: var(--cut-ink);
  background-image: linear-gradient(90deg, var(--cut-from), var(--cut-to));
  box-shadow: none; overflow: hidden; text-decoration: none; white-space: nowrap;
  -webkit-clip-path: polygon(0 0, 0 0, 100% 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 15px 100%, 0 100%);
  clip-path: polygon(0 0, 0 0, 100% 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 15px 100%, 0 100%);
  transition: .2s .1s;
}
.btn.btn-cut:hover { cursor: pointer; padding: 0 30px; transition: all .3s ease-in; background-image: linear-gradient(90deg, var(--cut-from), var(--cut-to)); border: 0; box-shadow: none; }
.btn.btn-cut:focus-visible { outline: 2px solid var(--cut-ink); outline-offset: -4px; } /* clip-path hides outer outlines */
.btn.btn-cut:disabled { opacity: .55; cursor: progress; }
.btn.btn-cut.btn--lg { height: 46px; }
.btn.btn-cut.btn--sm { height: 34px; padding: 0 16px; }
.btn.btn-cut.btn--sm:hover { padding: 0 20px; }
@media (prefers-reduced-motion: reduce) { .btn.btn-cut, .btn.btn-cut:hover { transition: none; } }

/* ── Hard-shadow form fields on the Submit page ──
   Thick border, offset shadow, mono type, lift on hover, inverted on focus.
   Uses theme colours so it works in dark and light. Change --brut-offset to resize the shadow. */
.submit-page .lp-contrib__form {
  --brut-ink: var(--text-primary);
  --brut-paper: var(--bg-raised);
  --brut-offset: 5px;
}
.submit-page .field input[type=text],
.submit-page .field textarea,
.submit-page .field select {
  width: 100%; min-height: 50px; padding: 10px 12px;
  font-family: var(--font-mono); font-size: 16px;
  color: var(--brut-ink); background-color: var(--brut-paper);
  border: 3px solid var(--brut-ink); border-radius: 0; outline: none;
  box-shadow: var(--brut-offset) var(--brut-offset) 0 var(--brut-ink);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.submit-page .field textarea { min-height: 96px; }
.submit-page .field input::placeholder, .submit-page .field textarea::placeholder { color: var(--text-tertiary); }
.submit-page .field input[type=text]:hover,
.submit-page .field textarea:hover,
.submit-page .field select:hover {
  transform: translate(-2px, -2px);
  box-shadow: calc(var(--brut-offset) + 2px) calc(var(--brut-offset) + 2px) 0 var(--brut-ink);
}
.submit-page .field input[type=text]:focus,
.submit-page .field textarea:focus,
.submit-page .field select:focus {
  background-color: var(--brut-ink); color: var(--brut-paper); border-color: var(--brut-ink);
  transform: translate(-2px, -2px);
  box-shadow: calc(var(--brut-offset) + 2px) calc(var(--brut-offset) + 2px) 0 var(--accent);
}
.submit-page .field input:focus::placeholder, .submit-page .field textarea:focus::placeholder { color: var(--brut-paper); opacity: .6; }
.submit-page .field select:focus option { background: var(--brut-paper); color: var(--brut-ink); }
.submit-page .field-grid { gap: 18px 16px; }
@media (prefers-reduced-motion: reduce) {
  .submit-page .field input, .submit-page .field textarea, .submit-page .field select { transition: none; }
  .submit-page .field input:hover, .submit-page .field textarea:hover, .submit-page .field select:hover,
  .submit-page .field input:focus, .submit-page .field textarea:focus, .submit-page .field select:focus { transform: none; }
}

/* ── Dot spinner (8 pulsing dots in a ring). Markup: .dot-spinner > 8 x .dot-spinner__dot
   Colour follows the theme accent; size and speed are variables. ── */
.dot-spinner {
  --uib-size: 2.8rem;
  --uib-speed: .9s;
  --uib-color: var(--accent);
  position: relative; display: flex; align-items: center; justify-content: flex-start;
  height: var(--uib-size); width: var(--uib-size); flex: none;
}
.dot-spinner[hidden] { display: none; }
.dot-spinner__dot { position: absolute; top: 0; left: 0; display: flex; align-items: center; justify-content: flex-start; height: 100%; width: 100%; }
.dot-spinner__dot::before {
  content: ""; height: 20%; width: 20%; border-radius: 50%;
  background-color: var(--uib-color); transform: scale(0); opacity: .5;
  animation: dot-spinner-pulse calc(var(--uib-speed) * 1.111) ease-in-out infinite;
}
.dot-spinner__dot:nth-child(2) { transform: rotate(45deg); }
.dot-spinner__dot:nth-child(3) { transform: rotate(90deg); }
.dot-spinner__dot:nth-child(4) { transform: rotate(135deg); }
.dot-spinner__dot:nth-child(5) { transform: rotate(180deg); }
.dot-spinner__dot:nth-child(6) { transform: rotate(225deg); }
.dot-spinner__dot:nth-child(7) { transform: rotate(270deg); }
.dot-spinner__dot:nth-child(8) { transform: rotate(315deg); }
.dot-spinner__dot:nth-child(2)::before { animation-delay: calc(var(--uib-speed) * -.875); }
.dot-spinner__dot:nth-child(3)::before { animation-delay: calc(var(--uib-speed) * -.75); }
.dot-spinner__dot:nth-child(4)::before { animation-delay: calc(var(--uib-speed) * -.625); }
.dot-spinner__dot:nth-child(5)::before { animation-delay: calc(var(--uib-speed) * -.5); }
.dot-spinner__dot:nth-child(6)::before { animation-delay: calc(var(--uib-speed) * -.375); }
.dot-spinner__dot:nth-child(7)::before { animation-delay: calc(var(--uib-speed) * -.25); }
.dot-spinner__dot:nth-child(8)::before { animation-delay: calc(var(--uib-speed) * -.125); }
@keyframes dot-spinner-pulse { 0%, 100% { transform: scale(0); opacity: .5; } 50% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dot-spinner__dot::before { animation: none; transform: scale(.8); opacity: .7; } }

/* Where it is used on the Submit page */
.lp-contrib__actions .dot-spinner { --uib-size: 1.9rem; }
.lp-contrib__thumb .dot-spinner { --uib-size: 2rem; }

/* ── Photo drop zone (Submit page) ── */
.file-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 150px; width: 100%; padding: 1.25rem; text-align: center; cursor: pointer;
  border: 2px dashed var(--border); border-radius: 12px;
  background-color: var(--bg-raised); color: var(--text-secondary);
  transition: border-color .2s ease, background-color .2s ease;
}
.file-drop:hover, .file-drop.is-over { border-color: var(--accent); background-color: var(--accent-bg); }
.file-drop:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.file-drop__icon { display: flex; align-items: center; justify-content: center; }
.file-drop__icon svg { height: 52px; width: 52px; fill: currentColor; }
.file-drop__text { font-weight: 600; font-size: 15px; color: var(--text-primary); }
.file-drop__sub { font-size: 13px; color: var(--text-tertiary); }
.file-drop.is-full { opacity: .55; cursor: not-allowed; }
.file-drop.is-full:hover { border-color: var(--border); background-color: var(--bg-raised); }
@media (prefers-reduced-motion: reduce) { .file-drop { transition: none; } }
