/* iRecipes website — single stylesheet, no build step. */

:root {
  --bg: #faf7f0;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-soft: #ffffff;
  --text: #24211b;
  --text-muted: #5f6863;
  --text-faint: #8b8880;
  --accent: #3284e9;
  --accent-strong: #1f6fd0;
  --accent-soft: rgba(50, 132, 233, 0.1);
  --accent-contrast: #ffffff;
  --border: rgba(36, 33, 27, 0.09);
  --border-strong: rgba(36, 33, 27, 0.16);
  --shadow-sm: 0 1px 2px rgba(36, 33, 27, 0.05), 0 8px 20px -12px rgba(36, 33, 27, 0.24);
  --shadow-md: 0 2px 6px rgba(36, 33, 27, 0.06), 0 24px 48px -28px rgba(36, 33, 27, 0.35);
  --radius-xs: 12px;
  --radius-sm: 16px;
  --radius-md: 22px;
  --radius-lg: 30px;
  --radius-pill: 999px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131211;
    --bg-elevated: #1b1a18;
    --surface: #1e1d1b;
    --surface-soft: #262421;
    --text: #f3f1ec;
    --text-muted: #b6b1a8;
    --text-faint: #8d8981;
    --accent: #5a9cf1;
    --accent-strong: #7fb2f5;
    --accent-soft: rgba(90, 156, 241, 0.16);
    --accent-contrast: #10151c;
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 20px -14px rgba(0, 0, 0, 0.7);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.45), 0 28px 56px -30px rgba(0, 0, 0, 0.8);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-xs) 0;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

/* ---------------------------------- header --------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand__mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
  line-height: 1;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  padding: 9px 13px;
  border-radius: var(--radius-pill);
}

.site-nav a:hover {
  background: var(--surface-soft);
  color: var(--text);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-soft);
}

.site-nav .nav-cta {
  color: var(--accent-contrast);
  background: var(--accent);
  margin-left: 6px;
}

.site-nav .nav-cta:hover {
  background: var(--accent-strong);
  color: var(--accent-contrast);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 22px 20px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
  }
}

/* ---------------------------------- blocks --------------------------------- */

main {
  display: block;
}

.section {
  padding: 84px 0;
}

.section--tight {
  padding: 56px 0;
}

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

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

h1,
h2,
h3 {
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: clamp(38px, 6vw, 62px);
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
}

h3 {
  font-size: 20px;
}

.lead {
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--text-muted);
  margin: 18px 0 0;
  max-width: 60ch;
}

.section-head {
  max-width: 720px;
  margin-bottom: 44px;
}

.section-head p {
  color: var(--text-muted);
  margin: 14px 0 0;
}

/* ---------------------------------- buttons -------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 650;
  font-size: 17px;
  padding: 15px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

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

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

.btn--ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.pill-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  margin-bottom: 22px;
}

/* ----------------------------------- hero ---------------------------------- */

.discover-hero {
  padding: 72px 0 34px;
}

.discover-categories {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.category-chip {
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text-muted);
  padding: 9px 14px;
  cursor: pointer;
}

.category-chip span { margin-left: 6px; color: var(--text-faint); }
.category-chip.is-active { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }

.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.recipe-card { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.recipe-card img, .recipe-card__placeholder { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface-soft); }
.recipe-card__placeholder { display: grid; place-items: center; font-size: 36px; }
.recipe-card__body { padding: 16px; }
.recipe-card h2 { margin: 0; font-size: 18px; }
.recipe-card p, .recipe-card__meta { color: var(--text-muted); font-size: 14px; margin: 8px 0 0; }
.discover-status { color: var(--text-muted); }
.discover-more { display: block; margin: 30px auto 0; }
.recipe-card { color: inherit; text-decoration: none; }
.recipe-card:hover { border-color: var(--accent); text-decoration: none; }
.recipe-detail { max-width: 960px; }
.recipe-detail h1 { margin: 18px 0 8px; }
.recipe-source { color: var(--text-muted); }
.recipe-detail__columns { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; margin-top: 42px; }
.recipe-detail__columns section { margin-bottom: 28px; }
.recipe-detail__columns h2 { margin-bottom: 18px; }
.recipe-detail__columns h3 { font-size: 16px; margin: 20px 0 8px; }
.recipe-detail__columns li { color: var(--text-muted); margin: 8px 0; }
@media (max-width: 700px) { .recipe-detail__columns { grid-template-columns: 1fr; gap: 20px; } }

.hero {
  padding: 72px 0 84px;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.hero__glow {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.shot__frame.hero__shot {
  aspect-ratio: 393 / 600;
  border-width: 10px;
}

.hero__glow::before {
  content: "";
  position: absolute;
  inset: -18% -14% -6% 6%;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 72%);
  filter: blur(6px);
  z-index: 0;
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}

/* ---------------------------- screenshot placeholders ---------------------- */

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 26px;
}

.shots--fan {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: nowrap;
}

.shot {
  margin: 0;
  position: relative;
  z-index: 1;
}

.shot__frame {
  position: relative;
  aspect-ratio: 393 / 852;
  border-radius: 34px;
  border: 3px solid var(--border-strong);
  background: linear-gradient(160deg, var(--surface) 0%, var(--surface-soft) 100%);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  overflow: hidden;
}
.shot__frame_small {
  position: relative;
  aspect-ratio: 393;
  border-radius: 34px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, var(--surface) 0%, var(--surface-soft) 100%);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  overflow: hidden;
}
.shot__frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 26px;
  border: 1px dashed var(--border-strong);
  pointer-events: none;
}

.shot__label {
  font-size: 14px;
  font-weight: 650;
  color: var(--text-muted);
}

.shot__hint {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-faint);
}

.shot__caption {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.shot--wide .shot__frame {
  aspect-ratio: 500 / 313;
  border-radius: 24px;
}

/* Let the frame take the image's own proportions. */
.shot--auto .shot__frame {
  aspect-ratio: auto;
}

/* A frame that holds a real screenshot instead of a dashed placeholder. */
.shot__frame--filled {
  padding: 0;
  background: var(--surface-soft);
}

.shot__frame--filled::after {
  display: none;
}

.shot__frame--filled img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shots--fan .shot {
  width: min(228px, 30vw);
}

.shots--fan .shot:nth-child(2) {
  transform: translateY(-26px);
}

@media (max-width: 700px) {
  .shots--fan .shot {
    width: min(200px, 42vw);
  }

  .shots--fan .shot:nth-child(4) {
    display: none;
  }
}

/* ---------------------------------- cards ---------------------------------- */

.grid {
  display: grid;
  gap: 20px;
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
}

@media (max-width: 880px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.card--flat {
  box-shadow: none;
}

.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
}

.card p {
  color: var(--text-muted);
  margin: 10px 0 0;
  font-size: 16px;
}

.card h3 + p {
  margin-top: 8px;
}

/* ---------------------------------- steps ---------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 14px;
}

.steps p {
  color: var(--text-muted);
  margin: 8px 0 0;
}

.step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
  counter-reset: step;
}

.step-list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
}

.step-figure {
  margin: 0 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface-soft);
  max-width: 520px;
}

/* When a screenshot follows the step title, keep the same 16px rhythm. */
.step-list li > div > strong + .step-figure {
  margin-top: 16px;
}

.step-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.step-list li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.step-list li > div > strong {
  display: block;
  font-size: 17px;
}

.step-list p {
  margin: 0 0 14px 0;
  color: var(--text-muted);
  font-size: 16px;
}

/* ---------------------------------- chips ---------------------------------- */

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.chip__icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  flex: none;
}

/* --------------------------------- sources --------------------------------- */

.sources {
  display: grid;
  gap: 34px;
}

.source-group h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.source-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.source-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
}

.source-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.source-links .source-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 16px;
  flex: none;
}

.source-links .source-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex: none;
}

.source-links .source-arrow {
  margin-left: auto;
  color: var(--text-faint);
}

/* ----------------------------------- faq ----------------------------------- */

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 17px;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 700;
}

.faq details[open] summary::after {
  content: "–";
}

.faq p {
  color: var(--text-muted);
  margin: 12px 0 0;
}

/* ----------------------------------- cta ----------------------------------- */

.cta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 52px 40px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.cta p {
  color: var(--text-muted);
  max-width: 52ch;
  margin: 16px auto 0;
}

.cta .btn-row {
  justify-content: center;
}

/* ---------------------------------- footer --------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 52px 0 40px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: 32px;
}

.footer-grid p {
  color: var(--text-muted);
  font-size: 15px;
  margin: 12px 0 0;
  max-width: 34ch;
}

.footer-col h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 15px;
}

.footer-base {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: 14px;
}

/* ----------------------------------- docs ---------------------------------- */

.page-head {
  padding: 64px 0 12px;
}

.page-head p {
  color: var(--text-muted);
  max-width: 66ch;
}

.prose {
  max-width: 78ch;
  padding-bottom: 40px;
}

.prose h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  margin: 44px 0 14px;
  scroll-margin-top: 90px;
}

.prose h3 {
  font-size: 19px;
  margin: 28px 0 10px;
  scroll-margin-top: 90px;
}

.prose p,
.prose li {
  color: var(--text-muted);
}

.prose ul,
.prose ol {
  padding-left: 22px;
  margin: 12px 0;
}

.prose li + li {
  margin-top: 8px;
}

.prose strong {
  color: var(--text);
}

.meta-line {
  font-size: 14.5px;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 8px;
}

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin: 26px 0 8px;
}

.toc h2 {
  font-size: 14px !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint) !important;
  margin: 0 0 12px !important;
}

.toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 32px;
}

.toc li {
  font-size: 15px;
  margin-bottom: 4px;
  break-inside: avoid;
}

.callout {
  background: var(--accent-soft);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 22px 0;
}

.callout p {
  color: var(--text);
  margin: 0;
}

/* ----------------------------- help center layout -------------------------- */

.help-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding-bottom: 60px;
}

.help-nav {
  position: sticky;
  top: 88px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 20px;
}

.help-nav h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin: 0 0 12px;
}

.help-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.help-nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: var(--radius-xs);
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 500;
}

.help-nav a:hover {
  background: var(--surface-soft);
  color: var(--text);
  text-decoration: none;
}

.help-nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 650;
}

.help-nav__icon {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  flex: none;
}

.help-nav__emoji {
  width: 20px;
  font-size: 15px;
  line-height: 1;
  text-align: center;
  flex: none;
}

@media (max-width: 880px) {
  .help-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .help-nav {
    display: none;
  }

  .help-nav ul {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

.help-hero {
  padding: 56px 0 8px;
}

.help-feedback {
  margin-top: 46px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
}

.help-feedback p {
  color: var(--text-muted);
  margin: 10px 0 18px;
}

/* ----------------------------------- form ---------------------------------- */

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-sm);
  max-width: 640px;
}

.field {
  display: block;
  margin-bottom: 20px;
}

.field > span {
  display: block;
  font-size: 15px;
  font-weight: 650;
  margin-bottom: 8px;
}

.field .hint {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-faint);
  margin: -2px 0 8px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #d9483f;
}

.field-error {
  display: none;
  color: #d9483f;
  font-size: 14px;
  margin-top: 6px;
}

.field-error.is-visible {
  display: block;
}

.form-status {
  margin-top: 20px;
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  display: none;
  font-size: 16px;
}

.form-status.is-visible {
  display: block;
}

.form-status--success {
  background: var(--accent-soft);
  color: var(--text);
}

.form-status--error {
  background: rgba(217, 72, 63, 0.12);
  color: var(--text);
}

.form-status strong {
  display: block;
  margin-bottom: 4px;
}

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  display: inline-block;
  animation: spin 0.7s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn:hover {
    transform: none;
  }

  .spinner {
    animation-duration: 1.6s;
  }
}

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