/* Fondix marketing + public pages — visual contract from fondix-ui mockup */

.fx-skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: var(--fx-z-tooltip);
  padding: 0.7rem 1rem;
  background: var(--fx-navy);
  color: var(--fx-on-navy);
  text-decoration: none;
  border-radius: 8px;
}
.fx-skip:focus { top: 1rem; }

/* ── Buttons ── */
.fx-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.25rem;
  border-radius: var(--fx-radius-md);
  text-decoration: none;
  font-family: var(--fx-font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--fx-duration) var(--fx-ease-out),
              border-color var(--fx-duration) var(--fx-ease-out),
              color var(--fx-duration) var(--fx-ease-out);
}
.fx-btn:focus-visible {
  outline: none;
  box-shadow: var(--fx-focus-ring);
}
.fx-btn-amber {
  background: var(--fx-amber);
  color: var(--fx-navy-deep);
  border-color: var(--fx-amber);
}
.fx-btn-amber:hover:not(:disabled) {
  background: var(--fx-amber-hover);
  border-color: var(--fx-amber-hover);
  color: var(--fx-navy-deep);
}
.fx-btn-navy {
  background: var(--fx-navy);
  color: var(--fx-on-navy);
  border-color: var(--fx-navy);
}
.fx-btn-navy:hover:not(:disabled) {
  background: var(--fx-navy-hover);
  border-color: var(--fx-navy-hover);
  color: var(--fx-on-navy);
}
.fx-btn-ghost {
  background: transparent;
  color: var(--fx-navy);
  border-color: oklch(72% 0.03 240);
}
.fx-btn-ghost:hover {
  background: oklch(96% 0.015 240);
  color: var(--fx-primary);
  border-color: var(--fx-navy);
}
.fx-btn-ghost-on-navy {
  background: transparent;
  color: var(--fx-on-navy);
  border-color: oklch(78% 0.03 245);
}
.fx-btn-ghost-on-navy:hover {
  background: oklch(42% 0.06 240);
  color: var(--fx-on-navy);
  border-color: var(--fx-on-navy);
}
.fx-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.fx-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

/* Floated <legend> (browser default) must not pull options up into the prompt. */
.fx-quiz__opts {
  clear: both;
}

/* ── Type helpers ── */
.fx-kicker {
  font-family: var(--fx-font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fx-on-navy-soft);
  margin: 0 0 0.55rem;
}
.fx-eyebrow {
  font-family: var(--fx-font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fx-ink-muted);
  margin: 0 0 0.7rem;
}
.fx-display {
  font-family: var(--fx-font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 0 0 0.85rem;
  color: var(--fx-ink);
  max-width: 22ch;
  text-wrap: balance;
}
.fx-lede {
  margin: 0;
  max-width: 46ch;
  color: var(--fx-ink-muted);
  font-size: 1.08rem;
}
.fx-wrap {
  max-width: var(--fx-wrap);
  margin: 0 auto;
  padding: 0 var(--fx-gutter);
}

/* ── Landing hero (two doors) ── */
.fx-hero-doors {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-rows: auto auto auto;
  align-content: start;
  background: var(--fx-primary);
  color: var(--fx-on-navy);
  overflow: visible;
}
.fx-hero-doors > .fx-news-roll {
  grid-column: 1 / -1;
  grid-row: 1;
  z-index: 4;
  min-height: 3.15rem;
  border-top: 0;
  border-bottom: 1px solid oklch(78% 0.16 75 / 0.45);
}
.fx-hero-doors__copy {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0.85rem var(--fx-gutter) 1.35rem;
}
.fx-hero-doors__copy h1 {
  font-family: var(--fx-font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 4.6vw, 4.15rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 1.15rem;
  max-width: 16ch;
  text-wrap: balance;
  color: var(--fx-on-navy);
}
.fx-hero-doors__lead {
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--fx-on-navy-soft);
  max-width: 38ch;
  margin: 0 0 0.85rem;
}
.fx-hero-doors__note {
  margin: 0;
  font-size: 0.95rem;
  color: var(--fx-on-navy-soft);
}
.fx-hero-doors__note a {
  color: var(--fx-on-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.fx-hero-doors__note a:hover { color: oklch(99% 0.02 85); }
.fx-hero-doors__visual {
  position: relative;
  grid-column: 2;
  grid-row: 2 / 4;
  min-height: 22rem;
  overflow: hidden;
}
.fx-hero-doors__visual img,
.fx-hero-doors__visual picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  margin: 0;
}
.fx-hero-doors__visual img {
  object-fit: cover;
  object-position: 58% 40%;
}
.fx-hero-doors__visual .fx-hero-carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--fx-navy-deep);
}
.fx-hero-doors__visual .fx-hero-carousel__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  animation: fx-hero-crossfade 36s ease-in-out infinite;
  animation-delay: calc(var(--slide-i) * 6s);
}
.fx-hero-doors__visual .fx-hero-carousel__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 40%;
}
.fx-hero-doors__visual .fx-hero-carousel__slide:first-child {
  opacity: 1;
  animation-name: fx-hero-crossfade-first;
}
@keyframes fx-hero-crossfade {
  0% { opacity: 0; transform: scale(1.04); }
  4% { opacity: 1; transform: scale(1); }
  13% { opacity: 1; transform: scale(1.03); }
  17%, 100% { opacity: 0; transform: scale(1.05); }
}
@keyframes fx-hero-crossfade-first {
  0% { opacity: 1; transform: scale(1); }
  13% { opacity: 1; transform: scale(1.03); }
  17%, 100% { opacity: 0; transform: scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .fx-hero-doors__visual .fx-hero-carousel__slide {
    animation: none;
    opacity: 0;
    transform: none;
  }
  .fx-hero-doors__visual .fx-hero-carousel__slide:first-child { opacity: 1; }
}
.fx-hero-doors__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--fx-primary) 0%, oklch(32% 0.06 240 / 0.35) 42%, transparent 70%);
  pointer-events: none;
}

.fx-doors {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 3;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: min(var(--fx-wrap), calc(100% - 2 * var(--fx-gutter)));
  margin: 0 auto 1.5rem;
}
.fx-door {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  align-items: stretch;
  min-height: 132px;
  overflow: hidden;
  background: oklch(99% 0.004 245 / 0.94);
  color: var(--fx-ink);
  border: 1px solid oklch(100% 0 0 / 0.4);
  border-radius: var(--fx-radius-lg);
  box-shadow: var(--fx-shadow-door);
}
.fx-door:hover,
.fx-door:focus-within {
  background: oklch(100% 0 0);
  box-shadow: var(--fx-shadow-door), 0 0 0 2px var(--fx-navy);
}
.fx-door__photo { position: relative; min-height: 100%; }
.fx-door__photo img,
.fx-door__photo picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fx-door__photo picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fx-door__body {
  padding: 1rem 1.1rem 1rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.fx-door__role {
  font-family: var(--fx-font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fx-ink-muted);
  margin: 0 0 0.25rem;
}
.fx-door h2 {
  font-family: var(--fx-font-display);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 0.3rem;
  color: var(--fx-ink);
}
.fx-door p { margin: 0; font-size: 0.9rem; color: var(--fx-ink-muted); }
.fx-door .fx-btn { margin-top: 0.65rem; align-self: flex-start; }
.fx-door .fx-btn-amber { display: none; }
.fx-door:hover .fx-btn-amber,
.fx-door:focus-within .fx-btn-amber { display: inline-flex; }
.fx-door:hover .fx-btn-ghost,
.fx-door:focus-within .fx-btn-ghost { display: none; }

/* ── Sections ── */
.fx-block { padding: var(--fx-section) 0; }
.fx-block--paper { background: var(--fx-bg); }
.fx-block--navy {
  background: var(--fx-primary);
  color: var(--fx-on-navy);
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}
.fx-block--navy .fx-display { color: var(--fx-on-navy); }
.fx-block--navy .fx-lede { color: var(--fx-on-navy-soft); }

.fx-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--fx-border);
  border: 1px solid var(--fx-border);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 2rem;
}
.fx-trust-grid article {
  background: var(--fx-surface);
  padding: 1.4rem 1.3rem 1.3rem;
}
.fx-trust-grid h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  color: var(--fx-ink);
}
.fx-trust-grid p { margin: 0; font-size: 0.92rem; color: var(--fx-ink-muted); }

.fx-split-media {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.fx-split-media.fx-quiz-split,
.fx-split-media.fx-calc-split {
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(15.5rem, 18rem);
  gap: clamp(1.25rem, 3vw, 2.25rem);
}
.fx-split-media.fx-quiz-split > :first-child,
.fx-split-media.fx-calc-split > :first-child {
  min-width: 0;
}

.fx-quiz__item {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  column-gap: 0.9rem;
  row-gap: 0.55rem;
  align-items: start;
}
.fx-quiz__q { display: contents; }
.fx-quiz__prompt { grid-column: 2; margin: 0; }
.fx-quiz__opts { grid-column: 1 / -1; clear: both; }
.fx-steps { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.fx-steps li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.9rem;
  align-items: start;
}
.fx-step-n {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--fx-navy);
  color: var(--fx-on-navy);
  font-family: var(--fx-font-mono);
  font-size: 0.85rem;
  font-weight: 600;
}
.fx-steps h3 { margin: 0 0 0.2rem; font-size: 1.05rem; color: var(--fx-ink); }
.fx-steps p { margin: 0; color: var(--fx-ink-muted); font-size: 0.95rem; }
.fx-media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 22rem;
  background: var(--fx-primary);
  margin: 0;
}
.fx-media img,
.fx-media picture,
.fx-media picture img { width: 100%; height: 100%; object-fit: cover; min-height: 22rem; display: block; }
.fx-media__card {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  max-width: 16.5rem;
  padding: 1rem 1.1rem;
  background: oklch(99% 0.004 245 / 0.94);
  border-radius: 12px;
  box-shadow: 0 12px 28px oklch(20% 0.04 240 / 0.22);
}
.fx-media__card p { margin: 0; font-size: 0.82rem; color: var(--fx-ink-muted); }
.fx-media__card strong { display: block; color: var(--fx-ink); font-size: 0.95rem; margin-bottom: 0.2rem; }

.fx-bandi-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.fx-bandi-list { display: grid; gap: 0.85rem; }
.fx-bando {
  display: grid;
  grid-template-columns: 10.5rem 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 0.7rem 1rem 0.7rem 0.7rem;
  background: var(--fx-surface);
  border: 1px solid var(--fx-border);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
}
.fx-bando:hover { background: oklch(97.5% 0.008 245); }
.fx-bando img,
.fx-bando picture {
  width: 100%;
  height: 6.4rem;
  object-fit: cover;
  border-radius: 10px;
}
.fx-bando picture {
  display: block;
  overflow: hidden;
}
.fx-bando picture img {
  width: 100%;
  height: 6.4rem;
  object-fit: cover;
}
.fx-bando h3 {
  font-family: var(--fx-font-display);
  font-size: 1.45rem;
  font-weight: 400;
  margin: 0 0 0.3rem;
  color: var(--fx-ink);
}
.fx-bando p { margin: 0; color: var(--fx-ink-muted); font-size: 0.95rem; max-width: 48ch; }
.fx-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 0.7rem;
  border-radius: 999px;
  font-family: var(--fx-font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.fx-chip--ok { background: oklch(95% 0.04 155); color: oklch(32% 0.11 155); }
.fx-chip--info { background: oklch(95% 0.03 240); color: var(--fx-navy); }

.fx-quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.fx-quote {
  margin: 0;
  padding: 1.3rem 1.4rem;
  background: var(--fx-surface);
  border: 1px solid var(--fx-border);
  border-radius: 16px;
}
.fx-quote p { margin: 0 0 0.85rem; color: var(--fx-ink); font-size: 1.02rem; line-height: 1.5; }
.fx-quote footer { display: grid; gap: 0.15rem; color: var(--fx-ink-muted); font-size: 0.88rem; }
.fx-quote cite { font-style: normal; font-weight: 600; color: var(--fx-ink); }

.fx-panel {
  padding: 1.25rem 1.35rem;
  background: var(--fx-surface);
  border: 1px solid var(--fx-border);
  border-radius: 16px;
}
.fx-panel__title {
  font-family: var(--fx-font-display);
  font-size: 1.35rem;
  font-weight: 400;
  margin: 0 0 0.85rem;
  color: var(--fx-ink);
}
.fx-panel__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--fx-border);
  font-size: 0.95rem;
  color: var(--fx-ink-muted);
}
.fx-panel__row:last-of-type { border-bottom: 0; }
.fx-panel__row--on span:last-child { color: var(--fx-navy); font-weight: 600; }
.fx-panel__note { margin: 0.75rem 0 0; font-size: 0.82rem; color: var(--fx-ink-muted); }
.fx-list { margin: 1.25rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; }
.fx-list li {
  padding-left: 1.15rem;
  position: relative;
  color: var(--fx-ink-muted);
  font-size: 0.98rem;
}
.fx-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--fx-navy);
}

/* ── Public page mast ──
   Navy is pinned: dark-mode tokens invert --fx-primary / --fx-on-navy
   and the hero would become light-on-light (illeggibile). */
.fx-mast {
  --fx-mast-bg: oklch(35% 0.08 240);
  --fx-mast-ink: oklch(97% 0.008 245);
  --fx-mast-ink-soft: oklch(86% 0.022 245);
  position: relative;
  background: var(--fx-mast-bg);
  color: var(--fx-mast-ink);
  overflow: hidden;
}
.fx-mast__photo {
  position: absolute;
  inset: 0 0 0 48%;
  pointer-events: none;
}
.fx-mast__photo img,
.fx-mast__photo picture,
.fx-mast__photo picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  display: block;
}
.fx-mast__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--fx-mast-bg) 0%, oklch(32% 0.06 240 / 0.45) 42%, transparent 78%);
}
.fx-mast__copy {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 7vw, 5.25rem) 0 clamp(2.4rem, 5vw, 3.4rem);
}
.fx-mast h1 {
  font-family: var(--fx-font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 0.85rem;
  max-width: 14ch;
  color: var(--fx-mast-ink);
  text-wrap: balance;
}
.fx-mast .fx-lede { color: var(--fx-mast-ink-soft); max-width: 32ch; }
.fx-mast .fx-kicker { color: var(--fx-mast-ink-soft); }
.fx-mast a {
  color: var(--fx-mast-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fx-sec-callout {
    background: var(--fx-error-subtle) !important;
    border: 1px solid oklch(70% 0.08 25 / 0.35) !important;
}

.fx-sec .mud-paper {
    border: 1px solid var(--fx-border) !important;
    box-shadow: none !important;
}

@media (max-width: 900px) {
  .fx-hero-doors,
  .fx-split-media,
  .fx-split-media.fx-quiz-split,
  .fx-split-media.fx-calc-split,
  .fx-bandi-head,
  .fx-trust-grid,
  .fx-quotes {
    grid-template-columns: 1fr;
  }
  .fx-hero-doors {
    min-height: auto;
    grid-template-rows: auto auto auto auto;
  }
  .fx-hero-doors > .fx-news-roll { grid-row: 1; }
  .fx-hero-doors__copy,
  .fx-hero-doors__visual,
  .fx-doors { grid-column: 1; }
  .fx-hero-doors__copy { grid-row: 2; padding: 0.85rem var(--fx-gutter) 1.25rem; }
  .fx-hero-doors__visual { grid-row: 3; grid-column: 1; min-height: 16rem; }
  .fx-hero-doors__visual::after {
    background: linear-gradient(180deg, var(--fx-primary) 0%, transparent 40%);
  }
  .fx-doors {
    grid-row: 4;
    width: auto;
    margin: 1rem var(--fx-gutter) 1.5rem;
    grid-template-columns: 1fr;
  }
  .fx-door { grid-template-columns: 5rem 1fr; }
  .fx-bando { grid-template-columns: 1fr; }
  .fx-bando img,
  .fx-bando picture,
  .fx-bando picture img { height: 10rem; }
  .fx-mast__photo {
    position: relative;
    inset: auto;
    height: 13.5rem;
  }
  .fx-mast__photo::after {
    background: linear-gradient(180deg, oklch(28% 0.05 240 / 0.15) 0%, var(--fx-mast-bg) 100%);
  }
}

@media (max-width: 430px) {
  .fx-door { grid-template-columns: 1fr; }
  .fx-door__photo { height: 7.25rem; }
  .fx-door__body { padding: 0.95rem 1rem 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  .fx-btn { transition: none; }
}
