/* gratis.nizu.be — only what Framework7 classes/variables don't already cover. */

:root {
  --gratis-muted: rgba(0, 0, 0, 0.55);
  --gratis-ok: #1a9c4a;
  --gratis-bad: #d93025;
}
.dark {
  --gratis-muted: rgba(255, 255, 255, 0.6);
  --gratis-ok: #4cd964;
  --gratis-bad: #ff6b60;
}

/* Keep the app phone-sized on tablets/laptops at the booth. */
@media (min-width: 640px) {
  .page-content > * {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }
  .page-content > .list.inset-ios,
  .page-content > .block.inset {
    margin-left: auto;
    margin-right: auto;
  }
}

.navbar .right a.link.lang-link {
  gap: 4px;
  width: auto;           /* MD navbar links are 48px icon buttons by default */
  min-width: 48px;
  padding: 0 8px;
}
.lang-icon,
.lang-icon svg {
  display: block;
}
.lang-code {
  font-size: 14px;
  font-weight: 600;
}

/* ---- step 1 hero */
.hero {
  padding: 8px 24px 0;
}
.hero-logo {
  display: block;
  width: 72px;
  height: 72px;
  margin: 12px auto 8px;
  color: var(--f7-text-color); /* monochrome mark: black in light mode, white in dark */
}
.hero-logo-large {
  width: 88px;
  height: 88px;
}
.hero-logo svg {
  display: block;
  width: 100%;
  height: 100%;
}
.hero h1,
.center-screen h1 {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  margin: 8px 0 6px;
}
.hero-sub {
  color: var(--gratis-muted);
  margin: 0 0 12px;
  font-size: 16px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

/* ---- workspace name with a fixed .nizu.be suffix */
.subdomain-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.subdomain-row input {
  flex: 1 1 0;
  min-width: 0;
  font-weight: 600;
}
/* F7 inserts .item-input-error-message right after the input: push it below the suffix. */
.subdomain-row .item-input-error-message {
  order: 2;
  flex-basis: 100%;
}
.subdomain-suffix {
  order: 1;
  flex: 0 0 auto;
  color: var(--gratis-muted);
  font-weight: 600;
  padding-left: 2px;
}
.name-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.name-status .preloader-small {
  width: 14px;
  height: 14px;
}
.name-ok {
  color: var(--gratis-ok);
  font-weight: 600;
}
.name-bad {
  color: var(--gratis-bad);
}

/* ---- step 2 */
.fqdn-card .fqdn-label,
.tip-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gratis-muted);
}
.fqdn {
  font-size: 20px;
  font-weight: 700;
  color: var(--f7-theme-color);
  word-break: break-all;
}
.optional {
  font-weight: normal;
  color: var(--gratis-muted);
}
.consent-list .item-inner .item-title.consent-text {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  font-size: 15px;
  line-height: 1.35;
}
.consent-error {
  color: var(--gratis-bad);
  margin-top: -16px;
  font-size: 14px;
}
.legal-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: -8px;
  font-size: 14px;
}

/* ---- expo partner (MakeFlow) at the bottom of the start screen */
.page-content-with-footer {
  display: flex;
  flex-direction: column;
}
/* Only .page-main and the footer are flex items, so the form keeps its normal block layout. */
.page-content-with-footer > .page-main {
  flex: 1 0 auto;
  width: 100%;
}
.partner-footer {
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
  margin-top: auto;            /* bottom of the screen when there is room, after the button otherwise */
  padding: 24px 16px 16px;
  text-align: center;
}
.partner-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gratis-muted);
  margin-bottom: 8px;
}
.partner-capsule {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  background: #0f2a5c;         /* dark blue: the logo is white on transparent */
  -webkit-tap-highlight-color: transparent;
}
.partner-capsule:active {
  opacity: 0.8;
}
.partner-capsule img {
  display: block;
  width: 160px;
  height: auto;
}
.dark .partner-capsule {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); /* keeps the capsule visible on black */
}

/* Honeypot: out of sight for people, still in the DOM for bots. */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

/* ---- progress / result screens */
.center-screen {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  box-sizing: border-box;
}
.center-screen p {
  max-width: 420px;
}
.progress-wrap {
  width: 100%;
  max-width: 420px;
  margin: 24px 0 8px;
}
.progress-wrap .progressbar {
  height: 8px;
  border-radius: 4px;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: 14px;
  color: var(--gratis-muted);
  text-align: left;
}
.muted {
  color: var(--gratis-muted);
  font-size: 14px;
}
.tip-card {
  width: 100%;
  max-width: 420px;
  box-sizing: border-box;
  text-align: left;
}
.pulse {
  animation: gratis-pulse 1.8s ease-in-out infinite;
}
@keyframes gratis-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .pulse { animation: none; }
}
.result-icon {
  margin-bottom: 8px;
}
.result-ok { color: var(--gratis-ok); }
.result-neutral { color: var(--gratis-muted); }
.buttons-stack {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
