/* Preserve-mode design read: a practical SaaS page for restaurant operators.
   Variance 4 / motion 3 / density 4 keep the established layout and use motion
   only for control feedback. Native CSS retains the original brand system.
   Final component pass: retain Manrope, the blue accent and the existing IA.
   Controls use 8px radii, panels 12px, dialogs 16px. Native selects keep their
   keyboard/mobile picker behavior; the shared Tabler chevron is decorative. */
:root {
  --control-height: 46px;
  --control-border: #cbd5e3;
  --control-hover: #9aadc7;
  --focus-ring: #2563eb33;
  --ease-ui: cubic-bezier(.2, .7, .3, 1);
}

/* Template names lead to a readable example; the adjacent action opens editing. */
.template-info h3 a { display: inline-flex; align-items: center; min-height: 38px; }
.template-info h3 a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.template-directory-link { margin-top: 28px; font-size: 13px; }
html { scrollbar-gutter: stable; }
body.dialog-open { overflow: hidden; }
:root[data-theme="dark"] {
  --control-border: #46566d;
  --control-hover: #7b8fae;
  --focus-ring: #6b9bff40;
}

/* Consistent focus, hover, pressed and disabled states. */
button, a, input, select, textarea, summary {
  -webkit-tap-highlight-color: transparent;
}
button, .button, .text-link, summary, .icon-button {
  transition: color .16s var(--ease-ui), background-color .16s var(--ease-ui),
    border-color .16s var(--ease-ui), box-shadow .16s var(--ease-ui),
    transform .16s var(--ease-ui);
}
button:disabled, .button:disabled {
  cursor: not-allowed;
  opacity: .5;
  transform: none;
  box-shadow: none;
}
button:disabled:hover, .button:disabled:hover {
  transform: none;
}
button:focus-visible, a:focus-visible, summary:focus-visible,
.comparison-table-wrap:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 0;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.button {
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 8px;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
}
.button-small { min-height: 40px; padding: 9px 16px; font-size: 12px; }
.button-white { border-color: var(--control-border); }
.button-white:hover:not(:disabled) { border-color: var(--control-hover); }
.button-primary:disabled:hover { background: var(--blue); }
.button-full { padding-inline: 16px; }
.button > img, .button > span[aria-hidden] { flex-shrink: 0; }
.icon-button { width: 40px; height: 40px; flex-shrink: 0; }
.icon-button img { width: 19px; height: 19px; }
.icon-button:hover:not(:disabled) { border-color: var(--control-hover); }
.text-link { min-height: 34px; align-items: center; text-underline-offset: 4px; }
.text-link:hover:not(:disabled) { text-decoration: underline; }
.footer-links a, .footer-links button { min-height: 36px; display: inline-flex; align-items: center; }

/* Form rhythm and the same inset chevron on every dropdown. */
.field { gap: 8px; margin-bottom: 20px; }
.field label, .asset-setting > label { font-size: 12px; line-height: 1.5; }
.optional { font-size: 11px; }
.field input, .field select, .field textarea,
.editor-panel .field input, .editor-panel .field textarea {
  min-height: var(--control-height);
  padding: 11px 13px;
  border-color: var(--control-border);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
  transition: border-color .16s var(--ease-ui), box-shadow .16s var(--ease-ui);
}
.field input:hover:not(:disabled), .field textarea:hover:not(:disabled),
.field select:hover:not(:disabled) { border-color: var(--control-hover); }
.field input:disabled, .field textarea:disabled, .field select:disabled {
  background-color: var(--surface-2);
  color: var(--muted);
  cursor: not-allowed;
  opacity: .75;
}
.field textarea { min-height: 112px; resize: vertical; }
.field small { font-size: 11px; line-height: 1.7; }
.select-control { position: relative; min-width: 0; width: 100%; }
.field .select-control select {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  padding: 11px 43px 11px 13px;
  cursor: pointer;
  text-overflow: ellipsis;
}
.select-chevron {
  position: absolute;
  inset-inline-end: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%) rotate(90deg);
  color: var(--muted);
  background-color: currentColor;
  -webkit-mask: url("assets/icons/chevron-right.svg") center / contain no-repeat;
  mask: url("assets/icons/chevron-right.svg") center / contain no-repeat;
  pointer-events: none;
  transition: color .16s var(--ease-ui), opacity .16s var(--ease-ui);
}
.select-control:hover .select-chevron, .select-control:focus-within .select-chevron { color: var(--blue); }
.select-control select:open + .select-chevron { transform: translateY(-50%) rotate(270deg); color: var(--blue); }
.select-control:has(select:disabled) .select-chevron { opacity: .45; color: var(--muted); }
.color-control { grid-template-columns: var(--control-height) minmax(0, 1fr); gap: 10px; }
.field .color-control input[type="color"] { width: var(--control-height); min-height: var(--control-height); padding: 5px; }
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 4px; }
input[type="color"]::-moz-color-swatch { border: 0; border-radius: 4px; }
.asset-setting { margin: 22px 0; padding-bottom: 22px; }
.asset-setting > label { margin-bottom: 10px; }
.asset-setting input[type="file"] { font-size: 11px; line-height: 1.7; margin-bottom: 12px; border-radius: 8px; }
.asset-setting input[type="file"]::file-selector-button {
  min-height: 38px;
  padding: 8px 12px;
  margin-right: 10px;
  border-color: var(--control-border);
  border-radius: 6px;
  font-weight: 650;
}
.asset-setting input[type="file"]::file-selector-button:hover { background: var(--blue-tint); color: var(--blue); }
.asset-status { gap: 8px; align-items: center; font-size: 10px; }
.asset-status .text-link { font-size: 10px; min-height: 30px; }

/* Builder and editor: readable labels, aligned action groups, calmer spacing. */
.builder { background: var(--surface); }
.builder-grid { grid-template-columns: 364px minmax(0, 1fr); background: var(--surface); }
.campaign-form { padding: 30px 26px 26px; }
.form-heading { margin-bottom: 24px; }
.form-heading h2 { font-size: 21px; }
.form-heading p { font-size: 12px; line-height: 1.8; margin-top: 8px; }
.generation-modes { padding: 4px; gap: 4px; border-radius: 10px; margin-bottom: 24px; background: var(--surface); }
.generation-modes button { min-height: 40px; border-radius: 7px; font-size: 12px; padding-inline: 8px; }
.generation-modes button:not([aria-pressed="true"]):hover:not(:disabled) { background: var(--blue-tint); }
.generation-modes button[aria-pressed="true"] { border-color: var(--control-border); }
.form-note { font-size: 11px; line-height: 1.7; margin-top: 12px; }
.more-options, .brand-options { margin: 0 0 16px; border-top: 1px solid var(--line); padding-top: 0; }
.more-options summary, .brand-options summary {
  position: relative;
  min-height: 48px;
  align-items: center;
  padding: 12px 28px 12px 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 0;
}
.more-options summary > span, .brand-options summary > span { display: none; }
.more-options summary::after, .brand-options summary::after, .faq-list summary::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 16px;
  height: 16px;
  background: var(--muted);
  -webkit-mask: url("assets/icons/chevron-right.svg") center / contain no-repeat;
  mask: url("assets/icons/chevron-right.svg") center / contain no-repeat;
  transform: translateY(-50%) rotate(90deg);
  transition: transform .16s var(--ease-ui), background-color .16s var(--ease-ui);
}
.more-options[open] > summary, .brand-options[open] > summary { margin-bottom: 12px; }
.more-options[open] > summary::after, .brand-options[open] > summary::after,
.faq-list details[open] > summary::after { transform: translateY(-50%) rotate(270deg); background: var(--blue); }
.more-options summary:hover, .brand-options summary:hover { color: var(--blue); }
.more-options .field:last-child, .brand-options .field:last-child { margin-bottom: 4px; }
.preview-workspace { top: 104px; height: min(820px, calc(100dvh - 124px)); min-height: 560px; }
.preview-meta { padding: 22px 26px 16px; min-height: 80px; flex-shrink: 0; }
.preview-meta p { font-size: 12px; margin-top: 0; }
.preview-meta > div > span:last-child { font-size: 11px; }
.mini-label { font-size: 9px; }
.sample-label { font-size: 9px; padding: 4px 7px; }
.preview-scroll { height: auto; min-height: 0; padding: 4px 24px 24px; flex: 1; }
.email-frame { border-radius: 4px; }
.preview-bottom { padding: 12px 24px; min-height: 52px; flex-shrink: 0; gap: 14px; font-size: 11px; justify-content: flex-end; }
.view-switch { gap: 4px; padding: 4px; border-radius: 8px; margin-inline-start: auto; }
.view-switch button { width: 32px; height: 30px; border-radius: 5px; }
.draft-toolbar { margin-top: 18px; font-size: 12px; }
.draft-toolbar .text-link { font-size: 12px; }
.draft-toolbar > div { gap: 22px; }
.editor-section { align-items: start; }
.editor-panel { padding: 30px; }
.editor-panel-title { flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }
.editor-panel-title h3 { font-size: 18px; }
.editor-heading-actions { gap: 6px 14px; justify-content: flex-start; }
.editor-heading-actions .text-link { font-size: 11px; min-height: 32px; }
.editor-panel .field { margin-bottom: 20px; }
.editor-panel .field textarea { min-height: 230px; line-height: 1.85; }
.subject-choices { gap: 8px; margin: -8px 0 20px; }
.subject-choices button { min-height: 34px; padding: 6px 11px; font-size: 11px; border-radius: 6px; }
.editor-actions { gap: 10px; margin-top: 24px; }
.editor-actions .button { min-height: 44px; font-size: 12px; padding-inline: 16px; }
.editor-actions > .text-link { margin-top: 0; }
.editor-note { font-size: 11px; line-height: 1.85; }
.campaign-context { gap: 24px; }
.campaign-context span { font-size: 12px; }
.campaign-context p { font-size: 12px; }

/* AI uses the same control and spacing scale as the template form. */
.ai-panel { margin: 4px 0 24px; padding: 22px 0; }
.ai-panel h3 { font-size: 19px; }
.ai-panel-intro, .ai-service-status, .ai-generation-status:not(:empty),
#ai-generation-status:not(:empty) { font-size: 12px; line-height: 1.8; }
.ai-panel-intro { margin: 10px 0 20px; }
.ai-panel textarea { min-height: 150px; }
.ai-examples { gap: 8px; margin: -4px 0 22px; }
.ai-examples > span { font-size: 11px; margin-bottom: 0; }
.ai-examples button { min-height: 34px; border-radius: 6px; font-size: 11px; padding: 6px 10px; }
.ai-service-status { border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin-top: 20px; background: var(--surface); }
.ai-data-note { margin-top: 14px; font-size: 11px; }
.ai-review-notes { border-radius: 0 8px 8px 0; font-size: 12px; }
#generate-button:disabled { cursor: not-allowed; opacity: .55; }

/* Section rhythm, template cards and supporting content. */
.section { padding-block: 88px; }
.how-section { padding-top: 72px; padding-bottom: 88px; }
.send-section { padding-top: 0; }
.section-heading { margin-bottom: 36px; }
.section-heading > p { line-height: 1.8; }
.template-toolbar { gap: 20px; margin-bottom: 28px; }
.filter-tabs { gap: 6px; }
.filter-tabs button { min-height: 38px; padding: 8px 13px; border: 1px solid transparent; border-radius: 7px; font-size: 12px; }
.filter-tabs button[aria-pressed="true"] { padding: 8px 13px; }
.filter-tabs button:hover:not([aria-pressed="true"]) { background: var(--blue-tint); }
.template-count { font-size: 11px; }
.template-card { border-radius: 12px; }
.template-info { padding: 24px; display: flex; flex-direction: column; align-items: flex-start; }
.template-info h3 { font-size: 17px; line-height: 1.5; margin-top: 0; margin-bottom: 12px; }
.template-info p { font-size: 12px; line-height: 1.8; min-height: 44px; margin: 8px 0 12px; }
.template-info .text-link { font-size: 12px; }
.template-tag { font-size: 9px; }
.section-note { font-size: 11px; line-height: 1.85; }
.how-grid p, .starting-copy p, .guide-item p, .faq-heading p { font-size: 13px; }
.guide-index { font-size: 11px; }
.guide-item { padding-block: 30px; }
.guide-item h3 { margin-top: 0; }
.guide-item .text-link { font-size: 12px; }
.path-row { border-radius: 8px; }
.path-row small { font-size: 12px; }
.path-arrow { transition: transform .16s var(--ease-ui); }
.path-row:hover .path-arrow { transform: translate(2px, -2px); }
.readiness-panel { padding: 28px; }
.readiness-item { padding-block: 17px; }
.readiness-item strong { font-size: 13px; }
.readiness-item p, .handoff-panel > p, .handoff-steps li { font-size: 12px; line-height: 1.85; }
.readiness-item .text-link { font-size: 11px; min-height: 32px; }
.comparison-table-wrap { scrollbar-width: thin; scrollbar-color: var(--control-border) var(--surface); }
.comparison-table thead th { font-size: 11px; padding-block: 19px; }
.comparison-table td, .comparison-table tbody th { padding-block: 26px; }
.comparison-table td:nth-child(3), .comparison-table td span, .comparison-table td a { font-size: 12px; }
.comparison-table td a { display: inline-flex; align-items: center; min-height: 36px; }
.faq-list details { padding: 0; }
.faq-list summary { padding: 21px 34px 21px 0; font-size: 13px; line-height: 1.7; }
.faq-list summary:hover { color: var(--blue); }
.faq-list details[open] > summary { color: var(--blue); }
.faq-list details[open] > summary::after { content: ""; }
.faq-list p { margin: 0; padding: 0 28px 23px 0; font-size: 12px; line-height: 1.9; }
.footer-top > p, .footer-links { font-size: 12px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-links { margin-top: 0; }
.footer-bottom { font-size: 11px; }
.closing-inner > .button { margin-top: 28px; }

/* Native dialogs retain keyboard focus trapping; headers keep close visible. */
html:has(dialog[open]) { overflow: hidden; }
.content-dialog {
  padding: 32px;
  border-radius: 16px;
  max-height: min(900px, calc(100dvh - 48px));
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--control-border) var(--bg);
}
.dialog-header {
  position: sticky;
  top: -32px;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 32px 22px;
  margin: -32px -32px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.dialog-header > div { min-width: 0; }
.dialog-header .eyebrow { margin-bottom: 10px; font-size: 9px; }
.content-dialog .dialog-header h2 { margin: 0; max-width: 100%; font-size: 27px; line-height: 1.3; letter-spacing: -.035em; }
.dialog-header .dialog-close { position: static; border: 1px solid var(--line); margin-top: 0; }
.dialog-header .dialog-close:hover { background: var(--surface-2); }
.content-dialog h2 { font-size: 27px; line-height: 1.3; margin-bottom: 18px; }
.dialog-meta { gap: 24px; margin: 0 0 24px; }
.dialog-meta span { font-size: 12px; }
.dialog-meta p { font-size: 12px; line-height: 1.85; margin-top: 6px; }
.template-detail-frame { height: min(56dvh, 560px); border-radius: 6px; margin: 0 0 24px; }
.template-dialog > .button { min-height: 46px; }
.dialog-actions { margin-top: 26px; gap: 12px; }
.dialog-actions .button { font-size: 13px; }
.compact-dialog p, .export-dialog > p { font-size: 13px; line-height: 1.85; }
.export-issues { padding-right: 6px; max-height: 300px; }
.export-issues p { font-size: 13px; padding-block: 14px; }
.prose { font-size: 14px; line-height: 1.9; overflow-wrap: anywhere; }
.prose h3 { font-size: 18px; margin-top: 28px; }
.prose p { margin-block: 14px; }
.prose li + li { margin-top: 10px; }
.prose .guide-source { font-size: 12px; }
.toast { width: max-content; max-width: min(520px, calc(100% - 32px)); padding: 13px 18px; bottom: max(24px, env(safe-area-inset-bottom)); font-size: 13px; line-height: 1.7; border-radius: 10px; }

@media (max-width: 1120px) {
  .builder-grid { grid-template-columns: 330px minmax(0, 1fr); }
  .campaign-form { padding-inline: 22px; }
  .preview-scroll { padding-inline: 18px; }
  .preview-meta, .preview-bottom { padding-inline: 20px; }
  .editor-section { gap: 48px; }
  .editor-panel { padding: 26px; }
}
@media (min-width: 768px) and (max-width: 940px) {
  .preview-bottom { align-items: flex-start; flex-direction: column; gap: 6px; }
  .templates-grid { gap: 18px; }
  .template-info { padding: 20px 18px; }
  .template-info h3 { font-size: 16px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .templates-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  :root { --control-height: 48px; }
  .container { width: calc(100% - 40px); }
  .nav { width: calc(100% - 24px); min-height: 66px; padding-inline: 14px; gap: 10px; }
  .nav-actions { gap: 6px; }
  .theme-toggle, .menu-toggle { width: 40px; height: 40px; border: 1px solid var(--line); }
  .mobile-nav { padding: 8px; margin-top: 8px; width: calc(100% - 24px); }
  .mobile-nav a { min-height: 46px; padding: 11px 14px; font-size: 14px; border-radius: 7px; }
  .mobile-nav a:hover { background: var(--blue-tint); }
  .hero { padding-top: 46px; }
  .hero-copy > p { font-size: 14px; line-height: 1.8; margin-top: 20px; }
  .hero-actions { gap: 10px; margin-top: 24px; }
  .hero-actions .button { font-size: 12px; min-height: 46px; padding-inline: 16px; }
  .builder { margin-top: 36px; }
  .builder-topbar { min-height: 58px; height: auto; padding: 10px 16px; }
  .builder-title { font-size: 12px; }
  .view-switch button { width: 34px; height: 32px; }
  .builder-grid { grid-template-columns: minmax(0, 1fr); }
  .campaign-form { display: block; padding: 26px 22px; border-right: 0; }
  .field { margin-bottom: 20px; }
  .field label { font-size: 13px; }
  .field input, .field select, .field textarea,
  .campaign-form .field input, .campaign-form .field select,
  .editor-panel .field input, .editor-panel .field textarea,
  .ai-panel .field input, .ai-panel .field textarea, .ai-panel .field select { font-size: 16px; line-height: 1.5; }
  .field .select-control select { padding-right: 44px; }
  .select-chevron { right: 15px; width: 17px; height: 17px; }
  .generation-modes button { min-height: 42px; font-size: 12px; }
  .more-options summary, .brand-options summary { min-height: 50px; font-size: 13px; }
  .asset-setting input[type="file"] { font-size: 12px; }
  .asset-setting input[type="file"]::file-selector-button { min-height: 42px; }
  .asset-status { align-items: flex-start; }
  .asset-status .text-link { min-height: 34px; }
  .preview-workspace { position: static; height: 650px; min-height: 0; }
  .preview-meta { padding: 20px 18px 14px; min-height: 82px; }
  .preview-scroll { padding: 4px 14px 20px; }
  .preview-bottom { padding: 14px 18px; min-height: 52px; flex-wrap: wrap; gap: 8px 16px; font-size: 11px; }
  .draft-toolbar { font-size: 11px; margin-top: 14px; }
  .draft-toolbar > div { margin-top: 4px; gap: 20px; }
  .draft-toolbar .text-link { font-size: 12px; min-height: 44px; }
  .promise-strip { font-size: 11px; gap: 12px 20px; padding-bottom: 12px; margin-top: 22px; }
  .section { padding-block: 64px; }
  .how-section { padding-top: 50px; }
  .send-section { padding-top: 0; }
  .section-heading { margin-bottom: 30px; }
  .section-heading > p, .editor-intro > p, .starting-copy p, .faq-heading p { font-size: 14px; }
  .how-grid h3 { font-size: 17px; }
  .how-grid p { font-size: 13px; }
  .filter-tabs { gap: 6px; }
  .filter-tabs button, .filter-tabs button[aria-pressed="true"] { min-height: 42px; padding: 9px 11px; font-size: 11px; }
  .template-count { margin-top: 12px; font-size: 12px; }
  .template-info { padding: 22px; }
  .template-info h3 { font-size: 17px; }
  .template-info p { min-height: 0; font-size: 13px; }
  .template-info .text-link { font-size: 13px; min-height: 42px; }
  .template-tag { font-size: 10px; }
  .template-visual { height: 260px; }
  .editor-section { gap: 32px; }
  .campaign-context { gap: 18px; }
  .campaign-context span, .campaign-context p { font-size: 12px; }
  .editor-panel { padding: 24px 20px; }
  .editor-panel-title { align-items: flex-start; flex-direction: column; gap: 10px; }
  .editor-panel-title h3 { font-size: 19px; }
  .editor-heading-actions { flex-direction: row; align-items: center; gap: 4px 14px; }
  .editor-heading-actions .text-link { font-size: 12px; min-height: 38px; }
  .subject-choices button { min-height: 38px; padding-inline: 12px; font-size: 12px; }
  .editor-actions .button { min-height: 46px; }
  .editor-note { font-size: 12px; }
  .readiness-panel { padding: 24px 20px; }
  .readiness-item p, .handoff-steps li { font-size: 13px; }
  .readiness-item .text-link { min-height: 40px; font-size: 12px; }
  .path-row { padding-block: 24px; gap: 14px; }
  .path-row strong { font-size: 14px; line-height: 1.6; }
  .path-row small { font-size: 12px; line-height: 1.8; }
  .guide-item { padding-block: 28px; }
  .guide-item p { font-size: 13px; }
  .guide-item .text-link { min-height: 42px; font-size: 13px; }
  .faq-list summary { padding-block: 21px; font-size: 14px; }
  .faq-list p { font-size: 13px; padding-right: 14px; }
  .closing-inner { padding-block: 60px; }
  .closing-inner p { font-size: 14px; max-width: 350px; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer-links { gap: 8px 20px; margin-top: 0; font-size: 12px; }
  .footer-links a, .footer-links button { min-height: 44px; }
  .footer-top > p { font-size: 12px; line-height: 1.8; }
  .footer-bottom { font-size: 11px; line-height: 1.8; margin-top: 20px; }
  .content-dialog { padding: 24px; width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 14px; }
  .dialog-header { top: -24px; padding: 22px 24px 20px; margin: -24px -24px 22px; gap: 16px; }
  .content-dialog .dialog-header h2, .content-dialog h2 { font-size: 23px; line-height: 1.35; }
  .dialog-header .dialog-close { width: 40px; height: 40px; }
  .dialog-meta { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .dialog-meta p { font-size: 13px; }
  .template-detail-frame { height: 52dvh; min-height: 280px; }
  .template-dialog > .button { width: 100%; }
  .dialog-actions { gap: 10px; }
  .dialog-actions .button { min-height: 48px; }
  .prose { font-size: 14px; }
  .prose h3 { font-size: 18px; }
  .ai-examples button { min-height: 40px; font-size: 12px; }
  .ai-data-note { font-size: 12px; }
  .toast { font-size: 12px; padding: 12px 16px; bottom: max(16px, env(safe-area-inset-bottom)); }
}
@media (max-width: 575px) {
  .templates-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .template-visual { height: 310px; }
  .template-info p { margin-bottom: 8px; }
  .template-info h3 { font-size: 18px; }
}
@media (max-width: 374px) {
  .container { width: calc(100% - 32px); }
  .brand { font-size: 11px; gap: 7px; }
  .brand-second { font-size: 10px; }
  .brand-mark { width: 30px; height: 30px; }
  .nav { padding-inline: 10px; }
  .hero h1 { font-size: 31px; }
  .hero-actions { flex-wrap: wrap; }
  .hero-actions .button { padding-inline: 13px; }
  .campaign-form { padding-inline: 18px; }
  .generation-modes button { font-size: 11px; }
}
@media (forced-colors: active) {
  .select-chevron { display: none; }
  .field .select-control select { appearance: auto; padding-right: 12px; }
  .more-options summary::after, .brand-options summary::after, .faq-list summary::after { background: ButtonText; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
