/* InvestFellow landing page. Loaded after bootstrap.min.css and style.css.
   Prefix with .if-page so theme rules lose. Use !important only where the theme does. */

.if-page {
  font-family: var(--font-sans);
  color: var(--foreground);
  background-color: var(--background);
  background-image: radial-gradient(
    900px 420px at 50% -140px,
    color-mix(in oklch, var(--brass) var(--glow), transparent),
    transparent 60%
  );
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.if-page a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

.if-page a:hover {
  color: var(--primary);
}

.if-skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10001;
  background: var(--card);
  color: var(--foreground);
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}

.if-skip:focus {
  top: 0.75rem;
}

/* Header: drop the theme overlay/image so the brand glow shows through */

.if-page.header,
.if-page.header.has-style-bg,
.if-page.header.has-style-bg.overlay {
  background: transparent;
  background-image: none;
  overflow: visible;
  padding-bottom: 2.5rem;
  color: var(--foreground);
}

.if-page.header.overlay::before,
.if-page .overlay::before {
  content: none;
  display: none;
  background: none;
  opacity: 0;
}

.if-page .navbar {
  background: transparent;
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
  font-weight: 500;
  letter-spacing: 0;
}

.if-page .navbar .container {
  justify-content: space-between;
  width: 100%;
  flex-wrap: nowrap;
}

.if-page .navbar,
.if-page .container {
  position: relative;
  z-index: 2;
}

/* The open mobile menu must sit above the hero that follows the navbar */
.if-page .navbar {
  z-index: 5;
}

.if-page .navbar a,
.if-page .navbar-brand {
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--foreground);
}

.if-page .navbar-brand.text-white {
  color: var(--foreground) !important;
}

.if-page .navbar .logo {
  width: auto;
  height: 2.1rem;
}

@media (prefers-color-scheme: light) {
  .if-page .navbar .logo {
    filter: invert(1) sepia(0.35) brightness(0.5);
  }
}

.if-page .navbar .navbar-menu > li {
  margin-right: 1rem;
  color: var(--foreground);
}

.if-page .navbar .navbar-menu > li::before {
  display: none;
}

.if-page .navbar .navbar-menu > li > a {
  color: var(--foreground);
  font-weight: 500;
  font-size: 1rem;
}

.if-page .navbar .navbar-menu > li > a:hover,
.if-page .navbar .navbar-menu > li:hover {
  color: var(--primary);
}

.if-page .navbar .menu {
  width: 44px;
  height: 44px;
}

.if-page .navbar .menu label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.if-page .navbar .menu input {
  display: block;
  position: absolute;
  width: 44px;
  height: 44px;
  margin: 0;
  opacity: 0;
  z-index: 4;
  cursor: pointer;
}

.if-page .navbar .menu .line-menu,
.if-page.header.has-style-bg .line-menu,
.if-page .navbar.is-transparent .line-menu {
  background: var(--foreground);
}

.if-page .navbar .mobile-menu {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--foreground);
}

.if-page .navbar .mobile-menu li a {
  color: var(--foreground);
  display: flex;
  align-items: center;
  min-height: 44px;
}

.if-page .navbar .mobile-menu li a:hover {
  color: var(--primary);
  padding-left: 0;
}

.if-page .navbar .mobile-menu.is-open {
  display: flex;
}

.if-page .mobile-menu .btn {
  margin-top: 0.75rem;
}

/* Hero type */

.if-page h1,
.if-page h2,
.if-page h3,
.if-page .header-title,
.if-page .section-title,
.if-page .plan-title,
.if-page .if-price,
.if-page .if-footer-brand,
.if-page .if-faq summary h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--foreground);
  line-height: 1.15;
}

.if-page .header-title,
.if-page.header.has-style-bg .header-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: var(--foreground);
  line-height: 1.1;
  max-width: 16em;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.if-page .header-desc,
.if-page.header.has-style-bg .header-desc {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}

.if-rating {
  color: var(--muted-foreground);
  text-align: center;
  max-width: 38rem;
  margin: 1.25rem auto 0;
  font-size: 1rem;
  line-height: 1.5;
}

.if-hero-cta {
  text-align: center;
  margin-top: 1.25rem;
}

.if-ticker-wrap {
  max-width: 1100px;
  margin: 1.75rem auto 0;
}

.if-ticker {
  display: block;
  width: 100%;
  height: auto;
  background: var(--muted);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.if-caption {
  color: var(--muted-foreground);
  text-align: center;
  font-size: 0.9rem;
  margin-top: 0.6rem;
}

/* Buttons — theme .btn-primary:hover uses !important */

.if-page .btn,
.if-page .btn-round {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  transform: none;
}

.if-page .btn:hover {
  transform: none;
}

.if-page .btn-primary {
  background: var(--primary);
  border: 1px solid var(--primary);
  color: var(--primary-foreground);
}

.if-page .btn-primary:hover,
.if-page .btn-primary:focus,
.if-page .btn-primary:focus-visible {
  background: var(--primary-hover) !important;
  border-color: var(--primary-hover);
  color: var(--primary-foreground);
}

.if-page .btn-dark,
.if-page .btn-outline {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--foreground);
}

.if-page .btn-dark:hover,
.if-page .btn-dark:focus,
.if-page .btn-dark:focus-visible,
.if-page .btn-outline:hover,
.if-page .btn-outline:focus,
.if-page .btn-outline:focus-visible {
  background: var(--accent);
  border-color: var(--border-strong);
  color: var(--foreground);
}

/* Header call to action: .navbar a would otherwise recolour it */

.if-page .navbar a.btn-primary,
.if-page .navbar a.btn-primary:hover {
  color: var(--primary-foreground);
}

/* Sections and copy */

.if-page .section.section-pricing {
  background: color-mix(in oklch, var(--card) 70%, transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.if-page .header > .container {
  padding-top: 2.5rem;
}

.if-page main {
  display: block;
}

.if-page .section {
  color: var(--foreground);
}

.if-page .section-title,
.if-page .section .section-title {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  max-width: 40rem;
  overflow: visible;
  text-align: left;
}

.if-page .section h3 {
  font-size: 1.55rem;
}

.if-page .section p,
.if-page .if-faq p {
  color: var(--foreground);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 42rem;
}

.if-page .if-rating,
.if-page .if-caption {
  color: var(--muted-foreground);
}

.if-shot {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
}

.if-note {
  background: color-mix(in oklch, var(--brass) 8%, var(--card));
  border: 1px solid var(--border);
  border-left: 3px solid color-mix(in oklch, var(--brass) 70%, var(--border));
  color: var(--foreground);
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  max-width: 42rem;
}

.if-page .section .if-note,
.if-note strong {
  color: var(--foreground);
}

.if-video {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: var(--muted);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

.if-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.if-steps {
  padding-left: 1.2rem;
  max-width: 42rem;
  list-style: decimal;
}

.if-steps li {
  list-style: decimal;
  margin-bottom: 0.55rem;
  color: var(--foreground);
  line-height: 1.5;
}

/* Pricing plans */

.if-page .section.section-pricing .plan-item,
.if-page .plan-item,
.if-page .section.section-pricing .plan-item.has-style1 {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
  color: var(--foreground);
  position: relative;
}

.if-page .plan-item:hover {
  border-color: color-mix(in oklch, var(--brass) 45%, var(--border));
}

.if-page .section.section-pricing .plan-item.is-active,
.if-page .plan-item.is-active {
  border-color: color-mix(in oklch, var(--brass) 70%, var(--border));
  background: color-mix(in oklch, var(--brass) 8%, var(--card));
  box-shadow: var(--shadow);
  color: var(--foreground);
}

.if-page .section.section-pricing .plan-item .plan-title,
.if-page .plan-title {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--foreground);
  text-align: center;
}

.if-page .section .if-price,
.if-price {
  max-width: none;
  color: var(--foreground);
  font-size: 2.6rem;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 0.35rem;
  font-variant-numeric: tabular-nums;
}

.if-price span {
  display: block;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

.if-plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.if-plan li {
  position: relative;
  padding-left: 1.4rem;
  margin: 0 0 0.7rem;
  color: var(--foreground);
  line-height: 1.45;
  list-style: none;
}

.if-plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--brass);
}

/* FAQ */

.if-faq details {
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
}

.if-faq summary {
  cursor: pointer;
  font-weight: 400;
  color: var(--foreground);
}

.if-page .if-faq summary h3 {
  display: inline;
  font-size: 1.4rem;
  margin: 0;
  color: var(--foreground);
}

.if-faq details p {
  margin: 0.75rem 0 0.25rem;
}

/* Footer */

.if-page .footer,
.if-page .footer.has-style2,
.if-page .footer.has-style2 .footer-head,
.if-page .if-footer {
  background: var(--background);
  color: var(--muted-foreground);
  border-top: 1px solid var(--border);
}

.if-page .if-footer p,
.if-page .footer .contact-item p {
  color: var(--muted-foreground);
  max-width: none;
}

.if-page .if-footer a,
.if-page .if-footer-links a,
.if-page .contact-item-info a {
  color: var(--foreground);
  text-decoration: underline;
}

.if-page .if-footer .copyright,
.if-page .if-footer .text-copyright {
  color: var(--muted-foreground) !important;
}

.if-footer-brand {
  color: var(--foreground);
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.if-footer-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 1.1rem 0 0;
  line-height: 0;
}

.if-page .if-footer-badge a {
  display: inline-block;
  text-decoration: none;
}

.if-footer-badge img {
  display: block;
  height: auto;
}

.if-footer-links {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.if-footer-links li {
  margin: 0.35rem 0;
}

.if-page .footer.has-style2 .footer-head .to-top,
.if-page .if-footer .to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--card);
  color: var(--primary);
  opacity: 1 !important;
  cursor: pointer;
}

.if-page .footer.has-style2 .footer-head .to-top:hover,
.if-page .if-footer .to-top:hover,
.if-page button.to-top:hover {
  background: var(--accent) !important;
  color: var(--primary);
  opacity: 1;
}

.if-page a:focus-visible,
.if-page button:focus-visible,
.if-page summary:focus-visible,
.if-page input:focus-visible {
  outline: 2px solid var(--ring) !important;
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .if-page .navbar .navbar-menu > li {
    margin-right: 0.65rem;
  }

  .if-page .navbar .navbar-menu > li > a {
    font-size: 0.92rem;
  }
}

@media (max-width: 992px) {
  .if-page .navbar-brand {
    margin-right: 0.75rem;
  }
}

@media (max-width: 576px) {
  .if-page.header {
    padding-bottom: 1.75rem;
  }

  .if-page .section .if-price,
  .if-price {
    font-size: 2.2rem;
  }

  .if-page .navbar .logo {
    height: 1.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* One install button for the visitor's browser, with a link to the other store.
   The page is served with the Chrome link. A small script swaps in Edge, so both
   labels get the same width and nothing moves. */

.if-install {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.if-install-left {
  align-items: flex-start;
  margin-top: 1rem;
}

.if-install-btn {
  min-width: 11rem;
  text-align: center;
}

.if-alt {
  margin: 0;
  min-height: 1.5em;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

.if-alt a {
  color: inherit;
  text-decoration: underline;
}

.if-alt a:hover,
.if-alt a:focus-visible {
  color: var(--primary);
}

.if-install-note::before {
  content: " \00b7  ";
}

.if-install-note {
  display: none;
}

.if-not-chromium .if-install-note {
  display: inline;
}

@media (min-width: 993px) {
  .if-page .navbar .mobile-menu,
  .if-page .navbar .mobile-menu.is-open {
    display: none;
  }
}

@media (min-width: 993px) {
  .if-page .navbar .level-right .navbar-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
}

.if-page .navbar .navbar-menu a.if-alt-nav {
  color: var(--muted-foreground);
  font-size: 0.85rem;
  text-decoration: underline;
  white-space: nowrap;
}

.if-page .navbar .navbar-menu a.if-alt-nav:hover,
.if-page .navbar .navbar-menu a.if-alt-nav:focus-visible {
  color: var(--primary);
}

@media (max-width: 1100px) {
  .if-page .navbar .navbar-menu a.if-alt-nav {
    display: none;
  }
}

.if-page .navbar .navbar-menu .if-install-btn {
  min-width: 9.5rem;
}

/* Interactive ticker demo. Prices are simulated in investfellow-demo.js. */

.if-demo {
  max-width: 1100px;
  margin: 1.75rem auto 0;
  min-width: 0;
}

.if-browser {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  overflow: hidden;
  background: var(--if-page, #1c1c1c);
  box-shadow: var(--shadow);
  min-width: 0;
  max-width: 100%;
}

.if-browser[data-theme="dark"] {
  --if-bar-bg: #0e0e0e;
  --if-up: #3dd68c;
  --if-down: #ff6b6b;
  --if-page: #242424;
  --if-chrome: #1a1a1a;
  --if-line: rgba(255, 255, 255, 0.12);
  --if-url: #c8c8c8;
  --if-url-bg: #2c2c2c;
  --if-skel: rgba(255, 255, 255, 0.08);
  --if-quote-hover: rgba(255, 255, 255, 0.08);
  --if-card-bg: #1b1b1b;
  --if-card-fg: #f5f5f5;
  --if-card-muted: #b0b0b0;
  --if-focus: #f0d78c;
}

.if-browser[data-theme="light"] {
  --if-bar-bg: #f6f3ec;
  --if-up: #08703c;
  --if-down: #b42318;
  --if-page: #ffffff;
  --if-chrome: #efece4;
  --if-line: rgba(28, 24, 18, 0.12);
  --if-url: #5c564c;
  --if-url-bg: #ffffff;
  --if-skel: rgba(28, 24, 18, 0.07);
  --if-quote-hover: rgba(28, 24, 18, 0.06);
  --if-card-bg: #ffffff;
  --if-card-fg: #1c1c1c;
  --if-card-muted: #5c564c;
  --if-focus: #6b4e16;
}

.if-windowbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 40px;
  padding: 0 0.8rem;
  background: var(--if-chrome);
  border-bottom: 1px solid var(--if-line);
}

.if-dots {
  display: flex;
  gap: 6px;
  flex: none;
}

.if-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

.if-dots span:nth-child(1) { background: #e07070; }
.if-dots span:nth-child(2) { background: #e0b15a; }
.if-dots span:nth-child(3) { background: #7dba78; }

.if-omnibox {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--if-url);
  background: var(--if-url-bg);
  border-radius: 999px;
  padding: 0.15rem 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.if-stage {
  display: flex;
  flex-direction: column;
  min-height: 196px;
  min-width: 0;
  background: var(--if-page);
}

.if-browser[data-position="bottom"] .if-stage {
  flex-direction: column-reverse;
}

.if-bar {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  background: var(--if-bar-bg);
  color: var(--if-up);
  border-bottom: 1px solid var(--if-line);
}

.if-browser[data-position="bottom"] .if-bar {
  border-bottom: 0;
  border-top: 1px solid var(--if-line);
}

.if-bar-viewport {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
}

.if-bar-track {
  display: flex;
  width: max-content;
  animation: if-marquee var(--if-duration, 38s) linear infinite;
}

.if-browser[data-speed="slow"] { --if-duration: 76s; }
.if-browser[data-speed="normal"] { --if-duration: 38s; }
.if-browser[data-speed="fast"] { --if-duration: 16s; }

@keyframes if-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.if-bar:hover .if-bar-track,
.if-bar:focus-within .if-bar-track {
  animation-play-state: paused;
}

.if-bar-set {
  display: flex;
  flex: none;
}

.if-page button.if-quote {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  height: 40px;
  margin: 0;
  padding: 0 1rem;
  border: 0;
  background: transparent;
  color: var(--if-up);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 40px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  cursor: pointer;
  opacity: 1;
}

.if-page button.if-quote.is-down {
  color: var(--if-down);
}

.if-page button.if-quote:hover,
.if-page button.if-quote:focus {
  opacity: 1;
  background: var(--if-quote-hover) !important;
}

.if-page button.if-quote:focus-visible {
  outline: 2px solid var(--if-focus) !important;
  outline-offset: -2px;
}

.if-q-sym {
  font-weight: 700;
}

.if-canvas {
  flex: 1;
  min-width: 0;
  padding: 1.05rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.if-skel {
  height: 10px;
  border-radius: 6px;
  background: var(--if-skel);
  width: 100%;
}

.if-skel-title {
  width: 42%;
  height: 16px;
  margin-bottom: 0.2rem;
}

.if-skel-short {
  width: 68%;
}

.if-skel-row {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.35rem;
  min-width: 0;
}

.if-skel-card {
  flex: 1;
  min-width: 0;
  height: 58px;
  border-radius: 10px;
  background: var(--if-skel);
  border: 1px solid var(--if-line);
}

.if-card {
  position: absolute;
  z-index: 3;
  width: min(220px, calc(100% - 16px));
  background: var(--if-card-bg);
  color: var(--if-card-fg);
  border: 1px solid var(--if-line);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  padding: 0.65rem 0.75rem 0.55rem;
  pointer-events: none;
}

.if-card[hidden] {
  display: none !important;
}

.if-card-sym,
.if-card-name,
.if-card-px,
.if-card-row,
.if-card-note {
  margin: 0;
}

.if-card-sym {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
}

.if-card-name {
  color: var(--if-card-muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.if-card-px {
  margin-top: 0.35rem;
  font-size: 1.05rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.if-card-px.is-up { color: var(--if-up); }
.if-card-px.is-down { color: var(--if-down); }

.if-card-chg {
  font-size: 0.8rem;
  font-weight: 600;
}

.if-card-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.if-card-row span:first-child {
  color: var(--if-card-muted);
}

.if-card-note {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  color: var(--if-card-muted);
}

.if-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.7rem 1.15rem;
  margin-top: 0.85rem;
  max-width: 100%;
}

.if-control {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  max-width: 100%;
}

.if-control-label {
  font-size: 0.82rem;
  color: var(--muted-foreground);
  flex: none;
}

.if-seg {
  display: inline-flex;
  max-width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--card);
  overflow: hidden;
}

.if-page .if-seg button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  min-height: 44px;
  padding: 0 0.85rem;
  cursor: pointer;
  opacity: 1;
}

.if-page .if-seg button + button {
  box-shadow: inset 1px 0 0 var(--border);
}

.if-page .if-seg button:hover,
.if-page .if-seg button:focus {
  opacity: 1;
  background: transparent !important;
}

.if-page .if-seg button[aria-pressed="true"],
.if-page .if-seg button[aria-pressed="true"]:hover,
.if-page .if-seg button[aria-pressed="true"]:focus {
  background: var(--primary) !important;
  color: var(--primary-foreground);
  opacity: 1;
}

.if-page .if-seg button:focus-visible {
  outline: 2px solid var(--ring) !important;
  outline-offset: -3px;
  position: relative;
  z-index: 1;
}

.if-recorded {
  margin-top: 0;
  margin-bottom: 1.75rem;
}

@media (max-width: 640px) {
  .if-stage {
    min-height: 176px;
  }

  .if-page button.if-quote {
    font-size: 0.78rem;
    padding: 0 0.7rem;
    height: 36px;
    line-height: 36px;
  }

  .if-canvas {
    padding: 0.85rem 0.85rem 0.95rem;
  }

  .if-skel-card {
    height: 46px;
  }

  .if-controls {
    gap: 0.55rem 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .if-bar-track {
    animation-play-state: paused;
  }
}
