/* taste-skill restyle (2026-10-28). House rules layered over the public pages,
   loaded last: one flat fill per button, no resting shadows or glows, no glass,
   no gradient fields or gradient text, no styled accent words or doodles in
   headlines, sentence-case labels, running text at 16px+.
   Layout, copy and brand colours stay; dialogs and menus keep their float.
   Kept as the owner's own: the home hero (headline down to the price) and the
   yellow "rytm" chip on /captions. */

:root {
  --t-ground: #09090b;
  --t-tone-1: #111114;
  --t-tone-2: #17171b;
  --t-tone-3: #1f1f25;
  --t-ink: #f5f5f7;
  --t-ink-2: #d2d2da;
  --t-accent: #3264f0;
}

/* ───────────── Buttons: flat, one colour ─────────────
   The home hero (headline down to the price) keeps its original look. */
:is(.btn-primary, .ed-btn-export, .ed-btn-export.fm-library-cta):not(.hero *) {
  background: var(--plan, var(--t-accent)) !important;
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
}
:is(.btn-primary, .ed-btn-export, .ed-btn-export.fm-library-cta):not(.hero *):hover:not(:disabled) {
  background: color-mix(in srgb, var(--plan, var(--t-accent)) 86%, #fff) !important;
}
.btn-liquid-glass:not(.hero *) {
  background: var(--t-tone-3);
  box-shadow: none !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.btn-liquid-glass:not(.hero *):hover:not(:disabled) {
  background: #2a2a32;
  box-shadow: none !important;
}
.btn-ghost {
  box-shadow: none !important;
}

/* ───────────── Fields of flat colour instead of gradients ───────────── */
.bg-mesh,
.bg-grid,
.lang-modal-grid,
.animations-login-grid {
  display: none !important;
}
#viewGallery .trust,
#trustBand {
  background: var(--t-tone-1) !important;
}
.pricing-page {
  background: var(--t-ground);
}
.modal-backdrop.open {
  background: rgba(0, 0, 0, 0.72) !important;
}

/* Plan cards: flat tone with the plan's own border colour, no glow. */
.tariff-card {
  background: var(--t-tone-1);
  box-shadow: none;
}
.tariff-card.is-featured {
  --card-bg: color-mix(in srgb, rgb(var(--neon)) 6%, var(--t-tone-1));
  background: var(--card-bg);
  box-shadow: none;
}
.tariff-card::before {
  box-shadow: none;
}
.tariff-section {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.035);
}
.tariff-allowance strong {
  text-shadow: none;
}

/* Billing switch: flat track and thumb. */
.pricing-segment {
  border-color: transparent;
  background: var(--t-tone-2);
  box-shadow: none;
}
.pricing-segment::before,
.pricing-segment.is-dragging::before {
  border-color: transparent;
  background: #33333b;
  box-shadow: none;
}
.pricing-segment button span {
  border-color: transparent;
  background: rgba(50, 100, 240, 0.22);
  box-shadow: none;
  font-size: 12px;
}

/* ───────────── No shadows at rest, no glass (marketing pages) ───────────── */
:is(#viewGallery, .pricing-page, .faqp-page, .animations-shell, .cap-page, .legal-page, .rd-page, .nf, .site-footer) :not(.hero, .hero *),
:is(#viewGallery, .pricing-page, .faqp-page, .animations-shell, .cap-page, .legal-page, .rd-page, .nf, .site-footer) :not(.hero, .hero *)::before,
:is(#viewGallery, .pricing-page, .faqp-page, .animations-shell, .cap-page, .legal-page, .rd-page, .nf, .site-footer) :not(.hero, .hero *)::after {
  box-shadow: none !important;
  text-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* ───────────── Headlines: one face, one colour ───────────── */
.pricing-title-accent {
  color: #3264f0 !important; /* logo blue, flat (no gradient) */
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}
.fm-mark:not(.hero *)::after,
.pricing-handline::after,
.tariff-handline::after {
  display: none !important;
}
.fm-mark--circle:not(.hero *) {
  margin: 0;
}
.pricing-handline {
  font-weight: 800;
}

/* Two typefaces: prices leave Plus Jakarta Sans for Inter. */
.tariff-price strong,
.tariff-allowance strong {
  font-family: Inter, system-ui, sans-serif;
  letter-spacing: -0.05em;
}

/* ───────────── Labels: sentence case at a readable size ───────────── */
.tariff-section-label,
.footer-col h4,
.pricing-eyebrow,
.account-eyebrow {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 14px !important;
}
.tariff-section-label {
  font-weight: 800;
  color: var(--t-ink);
}

/* ───────────── Running text: full ink, 16px+, a readable measure ───────────── */
.fm-faq .faq-q {
  font-size: 17px;
  font-weight: 700;
  padding: 20px 22px;
}
.fm-faq .faq-a-inner {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--t-ink-2);
  padding-left: 22px;
  padding-right: 22px;
}
.fm-faq .faq-a-inner::after {
  height: 20px;
}
.faq-item {
  border-color: transparent;
  background: var(--t-tone-2);
}
.faq-more {
  border: 0;
  background: var(--t-tone-1);
}
.faq-more:hover {
  background: var(--t-tone-2);
}
#viewGallery section:not(.hero) p {
  max-width: 62ch;
}
#viewGallery section:not(.hero) :is(.section-head, .how-step, .feature, .features, .cta) p,
.fm-faq .faq-intro-copy,
.fm-faq .text-muted {
  font-size: 17px;
  line-height: 1.55;
  color: var(--t-ink-2);
}
.tariff-features {
  font-size: 15px;
}
.tariff-lowest-price {
  font-size: 13px;
}
.pricing-billing > p,
.pricing-payment {
  font-size: 14px;
}
.pricing-lead {
  color: var(--t-ink-2);
}

/* "How it works" frames lose their hairlines. */
#viewGallery .how-glass,
#viewGallery .how-step .how-glass,
#viewGallery .how-step.is-left .how-glass,
#viewGallery .how-step.is-right .how-glass {
  border-color: transparent !important;
}

/* Exceptions the float rule above would swallow. */
:is(#viewGallery, .pricing-page, .faqp-page, .animations-shell, .cap-page, .legal-page, .rd-page, .nf) :is(input, textarea, select):focus-visible {
  outline: 2px solid #7ea0ff;
  outline-offset: 2px;
}

/* Search bars draw their own focus on the whole bar; a ring on the bare input inside
   showed as a small box within the bar (owner, 2026-10-31). */
:is(.animations-search, #viewGallery .search) input:focus-visible {
  outline: none;
}

/* Dialogs keep their float but lose the gradient fill. */
.modal.lang-modal,
.modal.wide,
.modal.animations-login-modal {
  background: #141418 !important;
}
/* The guest login modal on /animations wears the language picker's exact look. */
.animations-login-brand {
  margin-bottom: 20px;
}
.animations-login-brand img {
  width: 44px;
  height: 44px;
}
.animations-login-brand span {
  font-size: 1.55rem;
}
.animations-login-modal h2 {
  font-size: clamp(1.5rem, 3.2vw, 1.9rem);
  line-height: 1.14;
}
.animations-login-modal h2 span {
  display: inline;
}
.animations-login-modal h2 span:first-child::after {
  content: " ";
}
.animations-login-modal h2 span:last-child {
  color: #fff;
}
.animations-login-modal p.lead {
  font-size: 0.96rem;
}

/* The two export steps (format, then settings) wear the language picker's look too (owner,
   2026-11-02): logo row, display headline, centred copy, flat tiles and one blue button on
   top. The blue export button carries the cost of the click as a dark pill with a red −1. */
.modal.export-settings-modal {
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 32px 30px 24px;
  border-radius: 30px;
  background: #141418;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 30px 80px rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  text-align: center;
  scrollbar-width: none;
}
.export-settings-modal h2 {
  font-family: "Dela Gothic One", var(--display, fantasy);
  font-size: clamp(1.5rem, 3.2vw, 1.9rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.14;
  text-wrap: balance;
}
.export-settings-modal p.lead {
  max-width: 34ch;
  margin: 14px auto 0;
  color: #c2bec8;
  font-size: 0.96rem;
  line-height: 1.55;
}
.export-settings-modal .ex-format-grid,
.export-settings-modal .ex-set-format-summary {
  margin-top: 24px;
}
.export-settings-modal :is(.ex-format-option, .ex-color-control, .ex-set-format-summary, .ex-set-opt) {
  border-color: transparent;
  background: var(--t-tone-3);
  box-shadow: none;
}
.export-settings-modal .ex-format-option {
  border-radius: 18px;
}
.export-settings-modal .ex-format-option:hover {
  transform: none;
  background: #2a2a32;
}
.export-settings-modal .ex-format-option.is-on {
  background: rgba(50, 100, 240, 0.16);
  box-shadow: inset 0 0 0 2px var(--t-accent);
}
.export-settings-modal :is(.ex-format-badge, .ex-set-format-badge) {
  background: #141418;
  color: #fff;
}
.export-settings-modal .ex-format-copy small {
  color: #9a9aa3;
}
.export-settings-modal .ex-format-option.is-on .ex-format-check {
  border-color: var(--t-accent);
  background: var(--t-accent);
}
.export-settings-modal .ex-bg-picker {
  text-align: left;
}
.export-settings-modal .ex-set-format-summary {
  justify-content: center;
  padding: 10px 14px;
  border-radius: 16px;
}
.export-settings-modal .ex-set-format-copy {
  flex: 0 1 auto;
  color: var(--t-ink-2);
  font-size: 0.86rem;
  font-weight: 700;
}
.export-settings-modal .ex-set-label {
  margin-bottom: 10px;
  color: #9a9aa3;
  font-size: 0.86rem;
  letter-spacing: 0;
  text-transform: none;
}
.export-settings-modal .ex-set-opt {
  min-height: 62px;
}
.export-settings-modal .ex-set-opt::after {
  background: rgba(50, 100, 240, 0.16);
  box-shadow: inset 0 0 0 2px var(--t-accent);
}
.export-settings-modal .ex-set-opt:hover:not(:disabled):not(.is-on) {
  background: #2a2a32;
}
.export-settings-modal .ex-set-opt > span:not(.ex-set-pop):not(.ex-set-plan) {
  color: #9a9aa3;
  font-weight: 700;
}
.export-settings-modal .ex-set-opt.is-on > span:not(.ex-set-pop):not(.ex-set-plan) {
  color: #c9d6ff;
}
.export-settings-modal .ex-set-plan {
  text-shadow: none;
}
.export-settings-modal .ex-set-remember {
  justify-content: center;
  margin-top: 14px;
  padding: 4px;
  background: none;
  box-shadow: none;
}
.export-settings-modal .ex-set-remember-copy {
  color: #c2bec8;
  font-size: 0.92rem;
  font-weight: 700;
}
.export-settings-modal .modal-actions {
  margin-top: 22px;
}
.export-settings-modal .ex-set-go {
  flex-wrap: wrap;
  row-gap: 6px;
  width: 100%;
  min-height: 58px;
  padding: 10px 20px;
  border-radius: 18px;
  font-size: 1.05rem;
  gap: 12px;
}
.export-settings-modal .ex-set-go svg {
  width: 20px;
  height: 20px;
}
.export-settings-modal .ex-set-close {
  width: 100%;
  min-height: 50px;
  border-radius: 16px;
  font-weight: 700;
}
.ex-set-go-cost {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #141418;
  color: var(--t-ink-2);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
}
.ex-set-go-cost b {
  color: #ff3b47;
  font-weight: 800;
}
@media (max-width: 600px) {
  .modal.export-settings-modal {
    padding: 28px 22px 20px;
  }
}
/* Phones: label and cost pill stay on one line down to 360 px. */
@media (max-width: 420px) {
  .export-settings-modal .ex-set-go {
    gap: 8px;
    padding-inline: 14px;
    font-size: 1rem;
  }
  .ex-set-go-cost {
    padding: 4px 9px;
    font-size: 0.74rem;
  }
}
/* Short screens (13" laptops, phones with browser bars) keep the export button in view:
   the logo row goes and the gaps tighten. */
@media (max-height: 760px) {
  .export-settings-modal .lang-modal-brand {
    display: none;
  }
  .modal.export-settings-modal {
    padding-top: 26px;
  }
  .export-settings-modal p.lead {
    margin-top: 10px;
  }
  .export-settings-modal .ex-format-grid,
  .export-settings-modal .ex-set-format-summary {
    margin-top: 18px;
  }
  .export-settings-modal .ex-set-section {
    margin-top: 16px;
  }
  .export-settings-modal .modal-actions {
    margin-top: 16px;
  }
}

/* Other pages: flat grounds, one-colour headlines, sentence-case labels. */
body[data-legal-doc]::before,
.cap-hero::before,
.cap-done2-media::before {
  display: none !important;
}
/* The promo banner keeps its own fill, tinted by its cycling border colour. */
.animations-sub:not(.animations-sub--promo) {
  background: var(--t-tone-1);
}
.cap-plan-cta,
.cz-btn.is-primary {
  background: var(--cap-blue, #3264f0);
}
.cap-bar > i {
  background: var(--cap-blue, #3264f0);
}
.cap-done2-expiry .cap-bar > i {
  background: #ffb020;
}
.cap-done2-card {
  background: var(--t-tone-2);
}
.animations-cats-label,
.cap-kicker,
.faqp-kicker,
.cz-picker-row label span {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 14px !important;
}

/* ── Five nav links (Image Motion, 2026-10-31) ────────────────────────── */
/* They no longer fit beside the account buttons below ~1180 px in the longer languages (German
   wrapped the fifth link, French and Spanish pushed the sign-up button out): the header folds
   into the menu from 1180 px, exactly as styles.css does below 980 px. */
.site-header .nav-link { white-space: nowrap; }
@media (min-width: 981px) and (max-width: 1180px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .header-nav { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .header-nav.open {
    display: grid;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    padding: 8px;
    border-radius: 16px;
    background: rgba(16, 16, 16, 0.72);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  }
}

/* ── Phones ───────────────────────────────────────────────────────────── */
/* FAQ columns never grow past the screen. */
.faq-col, .faq-col > .faq { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 480px) {
  /* Logo, language, CTA and the menu button all fit: the language button keeps only its flag. */
  .site-header .header-inner { padding: 0 16px; }
  .site-header .lang-switch-chev { display: none; }
  .site-header .lang-switch-btn { width: 40px; padding: 0; justify-content: center; }
  .site-header .header-nav.open { background: #101012f5; }
  .site-header .header-nav.open a { display: flex; align-items: center; min-height: 44px; }
  .animations-category { min-height: 44px; }
  #animationSearch { font-size: 16px; }
}
@media (max-width: 403px) {
  .site-header:has(.header-right [data-auth-start]) .wordmark-text { display: none; }
  /* With the wordmark folded there is room again for the sign-up button (home-refresh hid it ≤ 360 px). */
  .site-header .header-right .btn-sm { display: flex; }
}
