/* Site-specific extensions on top of tokens + site kit */

body { margin: 0; }

/* Wider container for showcase-style sections */
.container-wide {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ========== Hero overrides (homepage) ========== */
.hero--home {
  padding: 120px 24px 64px;
}
.hero__title .accent { color: var(--orange-400); }
.hero__sub--wide { max-width: 640px; }

/* ========== Section scaffolding ========== */
.section {
  padding: 96px 24px;
  position: relative;
  z-index: 1;
}
.section--tight { padding: 64px 24px; }
.section__head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.section__head::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--orange-500);
  box-shadow: 0 0 10px var(--orange-glow);
  margin: 0 auto 18px;
  border-radius: 999px;
}
.section__head--left {
  margin: 0 0 48px;
  text-align: left;
  max-width: 680px;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--fg-1);
  margin: 8px 0 16px;
  text-wrap: balance;
}
.section__sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 560px;
  margin: 0 auto;
  text-wrap: pretty;
}
.section__head--left .section__sub { margin: 0; }

/* Anchor offset for sticky nav */
.section, .hero { scroll-margin-top: 80px; }

/* ========== Product hero card (Flipp's Favorites showcase) ========== */
.showcase {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: center;
}
.showcase__text h3 {
  font-size: clamp(30px, 3vw, 40px);
  margin: 12px 0 16px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.showcase__text p { max-width: 440px; margin: 0 0 24px; font-size: 16px; }
.showcase__ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.showcase__meta {
  display: flex; gap: 20px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px; color: var(--fg-3);
}
.showcase__meta span { display: inline-flex; align-items: center; gap: 6px; }

/* Browser-frame screenshot */
.browser-mock {
  background: var(--ink-1);
  border: 1px solid var(--line-1);
  border-radius: 14px;
  box-shadow: var(--shadow-lg), var(--shadow-inset-hairline);
  overflow: hidden;
  transform: rotate(0.2deg);
}
.browser-mock__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: var(--ink-2);
  border-bottom: 1px solid var(--line-1);
}
.browser-mock__dots { display: flex; gap: 6px; }
.browser-mock__dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--ink-4);
}
.browser-mock__url {
  flex: 1;
  background: var(--ink-0);
  border: 1px solid var(--line-1);
  border-radius: 6px;
  padding: 5px 10px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-3);
  display: flex; align-items: center; gap: 8px;
  max-width: 320px;
  margin: 0 auto;
}
.browser-mock__url .icon-sm { color: var(--fg-4); }
.browser-mock__ext {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--ink-3);
  border: 1px solid var(--line-1);
  display: flex; align-items: center; justify-content: center;
  color: var(--orange-500);
  flex-shrink: 0;
}
.browser-mock__img {
  width: 100%;
  display: block;
}

/* ========== Feature grid ========== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card {
  background: var(--ink-1);
  border: 1px solid var(--line-1);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow-md), var(--shadow-inset-hairline);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.feature-card:hover {
  background: var(--ink-2);
  box-shadow: var(--shadow-lg), var(--shadow-inset-hairline);
}
.feature-card__icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--ink-3);
  border: 1px solid var(--line-1);
  display: flex; align-items: center; justify-content: center;
  color: var(--orange-500);
  margin-bottom: 4px;
}
.feature-card h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--fg-1);
}
.feature-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-2);
}

/* ========== Screenshot gallery ========== */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.gallery__item {
  border-radius: 14px;
  overflow: hidden;
  background: var(--ink-1);
  border: 1px solid var(--line-1);
  box-shadow: var(--shadow-md), var(--shadow-inset-hairline);
  cursor: pointer;
  position: relative;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.gallery__item:hover {
  box-shadow: var(--shadow-lg), var(--shadow-inset-hairline), 0 0 0 1px rgba(255,122,43,0.22);
}
.gallery__item:active { transform: scale(0.995); }
.gallery__item img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}
.gallery__item--tall { grid-column: span 2; grid-row: span 2; }
.gallery__item--tall img { aspect-ratio: 4 / 5; }
.gallery__item--wide { grid-column: span 4; }
.gallery__item--wide img { aspect-ratio: 16 / 10; object-position: center; }
.gallery__item--half { grid-column: span 2; }
.gallery__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px 20px 14px;
  background: linear-gradient(to top, rgba(10,9,8,0.92), transparent);
  color: var(--fg-1);
  font-size: 13px;
  font-weight: 500;
  pointer-events: none;
}
.gallery__caption .eyebrow-inline {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange-300);
  margin-bottom: 4px;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(10, 9, 8, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  animation: fade-in 180ms var(--ease-out);
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 14px;
  box-shadow: var(--shadow-xl);
}
.lightbox__close {
  position: absolute; top: 20px; right: 20px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--ink-2);
  border: 1px solid var(--line-1);
  color: var(--fg-1);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.lightbox__close:active { transform: scale(0.94); }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ========== About ========== */
.about {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}
.about__avatar {
  width: 180px; height: 180px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--ink-3), var(--ink-1));
  border: 1px solid var(--line-1);
  box-shadow: var(--shadow-md), var(--shadow-inset-hairline);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 700;
  color: var(--orange-500);
  letter-spacing: -0.04em;
  position: relative;
  overflow: hidden;
}
.about__avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,122,43,0.18), transparent 60%);
  pointer-events: none;
}
.about__text p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg-2);
  margin: 0 0 16px;
  max-width: 560px;
}
.about__text p:first-child {
  font-size: 19px;
  color: var(--fg-1);
  line-height: 1.5;
}
.about__stack {
  margin-top: 32px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.chip {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--ink-2);
  border: 1px solid var(--line-1);
  color: var(--fg-2);
}

/* ========== Contact / Support ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-card {
  background: var(--ink-1);
  border: 1px solid var(--line-1);
  border-radius: 14px;
  padding: 32px;
  box-shadow: var(--shadow-md), var(--shadow-inset-hairline);
  display: flex;
  flex-direction: column;
}
.contact-card--accent {
  box-shadow: var(--shadow-md), var(--shadow-inset-hairline),
              0 0 0 1px rgba(255,122,43,0.18),
              0 -20px 80px -30px rgba(255,122,43,0.3);
}
.contact-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.contact-card__icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--ink-3);
  border: 1px solid var(--line-1);
  display: flex; align-items: center; justify-content: center;
  color: var(--orange-500);
}
.contact-card h3 { margin: 0; font-size: 20px; }
.contact-card p {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-2);
  flex: 1;
}
.contact-card__action {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.email-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-1);
  cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.email-pill:hover { background: var(--ink-3); color: var(--orange-300); }
.email-pill:active { transform: scale(0.98); }
.email-pill .icon-sm { color: var(--fg-3); }
.email-pill.copied { color: var(--success); border-color: rgba(74,222,128,0.3); }
.email-pill.copied .icon-sm { color: var(--success); }

/* Social row */
.social-row {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.social-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink-2);
  border: 1px solid var(--line-1);
  color: var(--fg-1);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--dur-fast);
}
.social-btn:hover { background: var(--ink-3); color: var(--fg-1); border-color: var(--line-2); }
.social-btn:active { transform: scale(0.97); }
.social-btn .icon { color: var(--fg-2); }

/* Support tiers */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.tier {
  background: var(--ink-2);
  border: 1px solid var(--line-1);
  border-radius: 10px;
  padding: 16px;
  text-align: left;
}
.tier.is-featured {
  border-color: rgba(255,122,43,0.3);
  background: linear-gradient(180deg, rgba(255,122,43,0.06), transparent);
}
.tier__amount {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--fg-1);
  margin-bottom: 4px;
}
.tier__amount span { font-size: 12px; color: var(--fg-3); font-weight: 500; margin-left: 2px; }
.tier__label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange-300);
  margin-bottom: 2px;
}
.tier__desc {
  font-size: 12px;
  color: var(--fg-3);
  line-height: 1.4;
}

/* ========== FAQ ========== */
.faq {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq__item {
  background: var(--ink-1);
  border: 1px solid var(--line-1);
  border-radius: 12px;
  overflow: hidden;
}
.faq__q {
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  background: transparent;
  border: none;
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.faq__q:hover { background: var(--ink-2); }
.faq__q .icon { color: var(--fg-3); transition: transform var(--dur-fast); }
.faq__item.is-open .faq__q .icon { transform: rotate(45deg); color: var(--orange-400); }
.faq__a {
  padding: 0 22px 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-2);
  display: none;
}
.faq__item.is-open .faq__a { display: block; }

/* ========== Footer overrides ========== */
.site-footer { max-width: 1180px; padding-top: 56px; padding-bottom: 40px; }
.site-footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line-1);
}
.site-footer__social { display: flex; gap: 8px; }
.site-footer__social a {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-3);
  border: 1px solid var(--line-1);
  background: var(--ink-1);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.site-footer__social a:hover { background: var(--ink-2); color: var(--orange-400); border-color: var(--line-2); }

/* ========== Fade-in on mount ========== */
.fade-in { opacity: 0; transform: translateY(8px); animation: fade-up 400ms var(--ease-out) forwards; }
@keyframes fade-up { to { opacity: 1; transform: translateY(0); } }

/* ========== Tweaks panel ========== */
.tweaks-panel {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 200;
  background: var(--frost-bg);
  -webkit-backdrop-filter: var(--frost-blur);
  backdrop-filter: var(--frost-blur);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: var(--shadow-xl), var(--shadow-inset-hairline);
  width: 280px;
  overflow: hidden;
}
.tweaks-panel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-1);
}
.tweaks-panel__head h4 {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-2);
  font-weight: 500;
}
.tweaks-panel__body {
  padding: 16px;
  display: flex; flex-direction: column; gap: 18px;
  max-height: 70vh;
  overflow-y: auto;
}
.tweak-group { display: flex; flex-direction: column; gap: 8px; }
.tweak-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-3);
  font-weight: 500;
}
.tweak-row { display: flex; gap: 6px; flex-wrap: wrap; }
.tweak-swatch {
  width: 28px; height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line-1);
  cursor: pointer;
  transition: transform var(--dur-fast);
}
.tweak-swatch.is-active { box-shadow: 0 0 0 2px var(--ink-0), 0 0 0 4px currentColor; }
.tweak-swatch:active { transform: scale(0.92); }
.tweak-seg {
  display: flex;
  background: var(--ink-2);
  border-radius: 8px;
  padding: 3px;
  border: 1px solid var(--line-1);
}
.tweak-seg button {
  flex: 1;
  padding: 6px 8px;
  border: none;
  background: transparent;
  color: var(--fg-2);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
}
.tweak-seg button.is-active {
  background: var(--ink-4);
  color: var(--fg-1);
}
.tweak-toggle {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.tweak-toggle__btn {
  width: 36px; height: 20px;
  border-radius: 999px;
  background: var(--ink-3);
  border: 1px solid var(--line-1);
  position: relative;
  cursor: pointer;
  transition: background var(--dur-fast);
}
.tweak-toggle__btn::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--fg-3);
  transition: transform var(--dur-fast), background var(--dur-fast);
}
.tweak-toggle__btn.is-on { background: var(--orange-500); }
.tweak-toggle__btn.is-on::after { transform: translateX(16px); background: #1A0F05; }

/* ========== Feature GIF Showcase ========== */
.feat-showcase {
  display: flex;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background: var(--ink-2);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.feat-list {
  list-style: none;
  margin: 0;
  padding: 12px;
  width: 38%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-right: 1px solid var(--line-1);
  justify-content: center;
}

.feat-item {
  position: relative;
  padding: 16px 20px 14px;
  border-radius: var(--r-md);
  cursor: pointer;
  overflow: hidden;
  transition: background var(--dur-base) var(--ease-out);
  outline: none;
}
.feat-item:hover { background: var(--ink-3); }
.feat-item:focus-visible { box-shadow: inset 0 0 0 2px var(--line-3); }
.feat-item.is-active { background: var(--ink-3); }

.feat-item__content { display: flex; flex-direction: column; }

.feat-item__label {
  font-size: var(--t-body);
  font-weight: 500;
  color: var(--fg-3);
  line-height: 1.3;
  transition: color var(--dur-base);
}
.feat-item:hover .feat-item__label { color: var(--fg-1); }
.feat-item.is-active .feat-item__label { color: var(--orange-400); }

.feat-item__sub {
  font-size: var(--t-small);
  color: var(--fg-2);
  line-height: 1.4;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  transition:
    max-height var(--dur-slow) var(--ease-out),
    opacity var(--dur-slow) var(--ease-out),
    margin-top var(--dur-slow) var(--ease-out);
}
.feat-item.is-active .feat-item__sub {
  max-height: 48px;
  opacity: 1;
  margin-top: 4px;
}

.feat-item__bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--orange-500);
  box-shadow: 0 0 8px var(--orange-glow);
  width: 0%;
  opacity: 0;
}
.feat-item.is-active .feat-item__bar {
  opacity: 1;
  animation: feat-bar-fill 6.5s linear forwards;
}
@keyframes feat-bar-fill {
  from { width: 0% }
  to { width: 100% }
}

.feat-preview {
  flex: 1;
  background: var(--ink-1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.feat-preview__inner {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: var(--ink-0);
  cursor: zoom-in;
}

.feat-gif {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 320ms var(--ease-out);
}
.feat-gif--a { opacity: 1; z-index: 1; }
.feat-gif--b { opacity: 0; z-index: 2; }

/* ========== Responsive ========== */
@media (max-width: 960px) {
  .showcase { grid-template-columns: 1fr; gap: 32px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about__avatar { width: 140px; height: 140px; font-size: 56px; }
  .contact-grid { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .gallery__item--tall { grid-column: span 2; grid-row: span 2; }
  .gallery__item--wide { grid-column: span 4; }
  .gallery__item--half { grid-column: span 2; }
  .feat-showcase { flex-direction: column; }
  .feat-list {
    width: auto;
    border-right: none;
    border-bottom: 1px solid var(--line-1);
    padding: 10px;
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 4px;
    justify-content: flex-start;
  }
  .feat-list::-webkit-scrollbar { display: none; }
  .feat-item { flex-shrink: 0; padding: 10px 14px; }
  .feat-item__sub { display: none; }
  .feat-preview { padding: 20px; }
}
@media (max-width: 640px) {
  .section { padding: 64px 24px; }
  .feature-grid { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .tweaks-panel { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--tall, .gallery__item--wide, .gallery__item--half { grid-column: span 2; grid-row: auto; }
  .feat-preview { padding: 14px; }
  .feat-preview__inner { aspect-ratio: 16 / 10; }
}
