/* Shared mdesigner identity, aligned with the public site's current kit. */
@font-face {
  font-family: 'Twemoji Country Flags';
  src: url('../fonts/twemoji-country-flags.woff2') format('woff2');
  unicode-range: U+1F1E6-1F1FF;
  font-display: swap;
}
body, html[data-theme='dark'] body { background-image: none; }
h1, h2, h3, .ticket-title { font-family: var(--font-serif); }
h1 em, h2 em { font-style: normal; }
.brand-logo {
  box-sizing: content-box;
  background: transparent;
  padding: 0;
  object-fit: contain;
  filter: none;
}
.brand-logo-dark { display: none; }
html[data-theme='dark'] .brand-logo-light { display: none; }
html[data-theme='dark'] .brand-logo-dark { display: block; }
.chat-avatar { background: #121820; overflow: hidden; }
.chat-avatar img { display: block; width: 100%; height: 100%; object-fit: contain; }
.chat-id strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.chat-id span { font-size: 12px; color: #ccd3db; }
.site-header { background: var(--bg); backdrop-filter: none; }
.hero { padding-block: 40px 32px; }
.hero-grid { grid-template-columns: minmax(0, 1fr); }
.hero-copy { max-width: 900px; }
.hero h1 { font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.1; max-width: 850px; }
.hero h1::after { content: ''; display: block; width: 64px; height: 4px; background: var(--gold); margin-top: 22px; }
.hero-lede { max-width: 740px; font-size: 1.125rem; }
.hero-ticket { display: none; }
.hero-note { margin-top: 16px; }
.workspace { box-shadow: 0 6px 24px rgb(18 24 32 / 5%); }
.btn { border-radius: 5px; min-height: 44px; }
.btn-gold { box-shadow: none; }
.step-num { font-family: var(--font-sans); font-style: normal; font-weight: 700; }
.template-card { box-shadow: none; border-radius: 8px; }
.template-library summary { cursor: pointer; padding: 16px 0; font-weight: 700; color: var(--ink); }
.template-library[open] summary { margin-bottom: 20px; }
.phone-unified { display: flex; align-items: stretch; gap: 0; }
.phone-unified .phone-country-wrap { flex: 0 0 68px; width: 68px; }
.phone-unified #phoneCountry {
  width: 100%; height: 100%; min-height: 48px; padding: 10px 22px 10px 10px;
  border: 0; border-radius: 0; background-color: transparent;
  box-shadow: none; font-size: 20px; cursor: pointer;
  font-family: 'Twemoji Country Flags', 'Segoe UI Emoji', sans-serif;
}
.phone-unified #phoneCountry option { font-family: 'Twemoji Country Flags', 'Segoe UI Emoji', sans-serif; }
.phone-unified .dial-prefix { border-left: 1px solid var(--border); }
.phone-unified #phoneInput { min-width: 0; width: 100%; flex: 1; }
.phone-unified:focus-within { border-color: var(--blue); box-shadow: var(--ring); }
.callout { border-radius: 8px; background: #121820; color: #f9f7f4; box-shadow: none; }
.callout h2 { max-width: 650px; }
.callout p:not(.eyebrow), .callout .eyebrow { color: #c9cdd2; }
.callout .btn { background: #d68b26; color: #121820; }
.callout .text-btn { color: #f9f7f4; }
.site-footer { background: #121820; color: #f9f7f4; }
.site-footer a, .site-footer .footer-brand p, .footer-bottom { color: #c9cdd2; }
.site-footer img { object-fit: contain; }
.footer-credit { display: inline-flex; align-items: center; gap: .3em; }
.footer-credit img { width: 10px; height: 10px; }
.ad-placement[hidden] { display: none; }
.ad-placement { margin-block: 64px; padding-block: 24px; border-block: 1px solid var(--border); }
.ad-placement-label { text-align: center; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.ad-placement-space { min-height: 280px; }
.ad-placement-tab { margin-top: 96px; margin-bottom: 0; }
@media (max-width: 767px) {
  .hero { padding-block: 28px 24px; }
  .brand-logo { width: 106px; height: auto; padding: 0; }
  .brand-product, .brand-divider { display: none; }
  .hero-lede { font-size: 1.0625rem; }
  .hero-note { display: none; }
  .callout-actions { align-items: stretch; }
}
@media print { .ad-placement { display: none; } }

/* Gentle, consistent motion without delaying input or keyboard focus. */
@media (prefers-reduced-motion: no-preference) {
  :root { --motion-ease: cubic-bezier(.22, 1, .36, 1); }
  body, .site-header, .workspace, .toolbar, .panel, .preview-panel,
  .template-card, .link-output, .callout, .site-footer {
    transition: background-color 360ms ease, color 300ms ease,
      border-color 300ms ease, box-shadow 300ms ease;
  }
  .btn, .icon-btn, .tab, .chip, .filter-chip, .text-btn,
  .main-nav a, .footer-nav a, input, textarea, select, summary {
    transition: background-color 280ms ease, color 280ms ease,
      border-color 280ms ease, box-shadow 280ms ease,
      transform 300ms var(--motion-ease);
  }
  .template-card {
    transition: transform 340ms var(--motion-ease), box-shadow 340ms ease,
      background-color 360ms ease, border-color 280ms ease;
  }
  .tab-panel:not([hidden]) { animation: panel-reveal 320ms var(--motion-ease) both; }
  .dialog[open] { animation: panel-reveal 340ms var(--motion-ease) both; }
  .dialog[open]::backdrop { animation: backdrop-reveal 300ms ease both; }
  details[open] > :not(summary) { animation: panel-reveal 320ms var(--motion-ease) both; }
  .toast { transition: opacity 280ms ease, transform 340ms var(--motion-ease); }
  @keyframes panel-reveal {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes backdrop-reveal {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}
