/* Fischer Interactive LLC — site styles */

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  font-feature-settings: "ss01", "cv11";
}

/* Typography scale */
h1, h2, h3, h4 {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); letter-spacing: -0.015em; }
h3 { font-size: var(--text-xl); letter-spacing: -0.01em; }
h4 { font-size: var(--text-lg); letter-spacing: 0; }

.eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}

.lede {
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 42rem;
}

/* Container */
.container       { width: var(--container); margin-inline: auto; }
.container-tight { width: var(--container-tight); margin-inline: auto; }
.container-wide  { width: var(--container-wide); margin-inline: auto; }

/* Section spacing */
section       { padding-block: clamp(var(--s-16), 10vw, var(--s-32)); }
section.tight { padding-block: clamp(var(--s-12), 8vw, var(--s-24)); }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 241, 232, 0.82);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-8);
  padding-block: var(--s-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand svg { color: var(--accent); flex-shrink: 0; }
.brand .brand-name { line-height: 1.2; }
.brand .brand-mark-sub {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

.nav ul {
  display: flex;
  gap: var(--s-8);
  align-items: center;
}
.nav a {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  transition: color 0.2s ease;
  position: relative;
}
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.mobile-toggle {
  display: none;
  color: var(--ink);
  padding: var(--s-2);
}

@media (max-width: 720px) {
  .nav { display: none; }
  .mobile-toggle { display: inline-flex; }
  .nav.open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: var(--s-4) 0;
  }
  .nav.open ul {
    flex-direction: column;
    gap: var(--s-2);
    padding-inline: max(1rem, calc((100vw - var(--container)) / 2));
  }
  .nav.open a { padding-block: var(--s-3); display: block; }
  .nav.open a.active::after { display: none; }
  .nav.open a.active { color: var(--accent); }
}

/* ============ HERO ============ */
.hero {
  padding-block: clamp(var(--s-20), 14vw, var(--s-32));
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-16);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: var(--s-20);
  }
}

.hero .eyebrow { margin-bottom: var(--s-6); }

.hero h1 {
  font-size: var(--text-hero);
  margin-bottom: var(--s-8);
  max-width: 20ch;
}

.hero .lede { margin-bottom: var(--s-10); }

.hero-actions {
  display: flex;
  gap: var(--s-4);
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.85rem 1.4rem;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  letter-spacing: -0.005em;
}
.btn-primary {
  background: var(--accent);
  color: var(--cream-alt);
}
.btn-primary:hover {
  background: var(--accent-lo);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-secondary {
  color: var(--ink);
  border-color: var(--line);
  background: var(--paper);
}
.btn-secondary:hover {
  border-color: var(--ink);
  background: var(--cream-alt);
}

.btn .arrow {
  transition: transform 0.2s ease;
}
.btn:hover .arrow {
  transform: translateX(2px);
}

/* Hero visual — abstract stacked cards */
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 32rem;
  margin-inline: auto;
}
.hero-card {
  position: absolute;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-card-1 {
  top: 0; left: 0;
  width: 72%;
  aspect-ratio: 3 / 4;
  transform: rotate(-3deg);
  z-index: 1;
  background: linear-gradient(160deg, var(--accent) 0%, var(--accent-lo) 100%);
  border-color: transparent;
}
.hero-card-2 {
  bottom: 0; right: 0;
  width: 62%;
  aspect-ratio: 3 / 4;
  transform: rotate(4deg);
  z-index: 2;
}

.hero-card-1::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14) 0%, transparent 60%),
    repeating-linear-gradient(
      -45deg,
      transparent 0px,
      transparent 22px,
      rgba(255,255,255,0.06) 22px,
      rgba(255,255,255,0.06) 23px
    );
}
.hero-card-2::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 30% 30%, rgba(31, 74, 52, 0.08), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(31, 74, 52, 0.06), transparent 50%);
}
.hero-card-2::after {
  content: "";
  position: absolute;
  left: 10%; right: 10%;
  top: 18%;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
  box-shadow:
    0 18px 0 -1px var(--line),
    0 36px 0 -1px var(--line),
    0 54px 0 -1px var(--line),
    0 72px 0 -1px var(--line);
}

/* ============ SECTIONS ============ */

.section-header {
  margin-bottom: var(--s-16);
  max-width: 44rem;
}
.section-header .eyebrow { margin-bottom: var(--s-4); }
.section-header h2 { margin-bottom: var(--s-4); }

/* Principles grid */
.principles {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-10);
}
@media (min-width: 640px)  { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px)  { .principles { grid-template-columns: repeat(3, 1fr); } }

.principle .num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: var(--s-3);
  display: block;
}
.principle h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--s-3);
}
.principle p {
  color: var(--ink-muted);
  font-size: var(--text-base);
  line-height: 1.6;
}

/* Product feature block */
.feature-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-16);
  align-items: center;
}
@media (min-width: 900px) {
  .feature-block {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-20);
  }
  .feature-block.reverse .feature-visual { order: -1; }
}
.feature-block h3 { margin-bottom: var(--s-4); }
.feature-block .eyebrow { margin-bottom: var(--s-3); }
.feature-block p { color: var(--ink-muted); margin-bottom: var(--s-6); }
.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.feature-list li {
  display: flex;
  gap: var(--s-3);
  font-size: var(--text-sm);
  color: var(--ink);
}
.feature-list .check {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Phone mockup */
.phone-mock {
  position: relative;
  max-width: 22rem;
  aspect-ratio: 9 / 18.5;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 2.6rem;
  padding: 0.55rem;
  box-shadow:
    0 30px 60px -20px rgba(31, 35, 28, 0.25),
    0 10px 30px -10px rgba(31, 35, 28, 0.15);
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--paper) 0%, var(--cream-alt) 100%);
  border-radius: 2.1rem;
  overflow: hidden;
  padding: 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 1.4rem;
  background: var(--ink);
  border-radius: 0 0 1rem 1rem;
  z-index: 2;
}
.phone-header {
  padding-top: 1rem;
  padding-bottom: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.phone-header .title-lg {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.phone-header .balance {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.phone-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.6rem;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  font-size: 0.6875rem;
}
.phone-row-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.phone-row .label { color: var(--ink); font-weight: 500; line-height: 1.2; }
.phone-row .meta { color: var(--ink-muted); font-size: 0.5625rem; font-weight: 500; letter-spacing: 0.03em; text-transform: uppercase; }
.phone-row .points { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.phone-row .points.neg { color: #A13544; }
.phone-header .phone-sub { font-size: 0.625rem; color: var(--ink-muted); letter-spacing: 0.02em; }
.phone-cta {
  margin-top: auto;
  background: var(--accent);
  color: var(--paper);
  text-align: center;
  padding: 0.65rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Product card (for products index) */
.product-list {
  display: grid;
  gap: var(--s-6);
}
@media (min-width: 720px) {
  .product-list { grid-template-columns: repeat(2, 1fr); }
}
.product-card {
  padding: var(--s-8);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.product-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.product-card.dim {
  background: transparent;
  border-style: dashed;
}
.product-card .status {
  font-size: var(--text-xs);
  color: var(--ink-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}
.product-card.dim .status { color: var(--ink-faint); }
.product-card .status.live { color: var(--accent); }
.product-card h3 {
  font-size: var(--text-xl);
  letter-spacing: -0.02em;
}
.product-card p {
  color: var(--ink-muted);
  font-size: var(--text-sm);
  line-height: 1.55;
}
.product-card .link {
  margin-top: auto;
  font-size: var(--text-sm);
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  gap: var(--s-2);
  align-items: center;
}
.product-card.dim .link { color: var(--ink-faint); pointer-events: none; }

/* Divider */
.rule {
  height: 1px;
  background: var(--line);
  margin: 0;
  border: 0;
}

/* ============ CONTACT ============ */
.contact-grid {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
}
.contact-card {
  padding: var(--s-8);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.contact-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.contact-card .contact-icon {
  color: var(--accent);
  margin-bottom: var(--s-2);
}
.contact-card h3 {
  font-size: var(--text-lg);
}
.contact-card p {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  line-height: 1.55;
  flex: 1;
}
.contact-card .email {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--accent);
  font-weight: 500;
  word-break: break-all;
}

/* ============ LEGAL PAGES ============ */
.prose {
  max-width: 42rem;
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--ink);
}
.prose h2 {
  font-size: var(--text-xl);
  margin-top: var(--s-12);
  margin-bottom: var(--s-4);
}
.prose h2:first-of-type { margin-top: 0; }
.prose h3 {
  font-size: var(--text-lg);
  margin-top: var(--s-8);
  margin-bottom: var(--s-3);
}
.prose p, .prose ul, .prose ol { margin-bottom: var(--s-4); color: var(--ink); }
.prose ul, .prose ol { padding-left: var(--s-6); }
.prose ul li, .prose ol li {
  margin-bottom: var(--s-2);
  list-style: disc;
  color: var(--ink);
}
.prose ol li { list-style: decimal; }
.prose strong { font-weight: 700; color: var(--ink); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose .meta {
  color: var(--ink-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--s-10);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--line);
}

/* Page header (for interior pages) */
.page-header {
  padding-block: clamp(var(--s-16), 9vw, var(--s-24));
  border-bottom: 1px solid var(--line);
}
.page-header .eyebrow { margin-bottom: var(--s-4); }
.page-header h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--s-6);
  max-width: 20ch;
}
.page-header .lede { max-width: 40rem; }

/* ============ CTA STRIP ============ */
.cta-strip {
  background: var(--ink);
  color: var(--cream);
}
.cta-strip .container {
  display: grid;
  gap: var(--s-8);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 720px) {
  .cta-strip .container {
    grid-template-columns: 1.4fr 1fr;
  }
}
.cta-strip h2 {
  color: var(--cream);
  font-size: var(--text-2xl);
  max-width: 22ch;
}
.cta-strip p {
  color: var(--cream);
  opacity: 0.75;
  margin-top: var(--s-4);
  max-width: 34rem;
}
.cta-strip .btn-primary {
  background: var(--cream);
  color: var(--ink);
  justify-self: start;
}
@media (min-width: 720px) {
  .cta-strip .btn-primary { justify-self: end; }
}
.cta-strip .btn-primary:hover { background: var(--paper); }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--cream-alt);
  border-top: 1px solid var(--line);
  padding-block: var(--s-16) var(--s-8);
  color: var(--ink-muted);
  font-size: var(--text-sm);
}
.footer-grid {
  display: grid;
  gap: var(--s-10);
  grid-template-columns: 1fr;
  margin-bottom: var(--s-12);
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--s-8); }
}
.footer-brand p {
  font-size: var(--text-sm);
  margin-top: var(--s-4);
  color: var(--ink-muted);
  max-width: 24rem;
}
.footer-col h4 {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: var(--s-4);
  font-weight: 600;
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--s-2); }
.footer-col a { color: var(--ink-muted); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  padding-top: var(--s-8);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-4);
  font-size: var(--text-xs);
  color: var(--ink-faint);
}

/* Mockup caption */
.mock-caption {
  margin-top: var(--s-4);
  text-align: center;
  font-size: var(--text-xs);
  color: var(--ink-muted);
  letter-spacing: 0.02em;
  font-style: normal;
  max-width: 22rem;
  margin-inline: auto;
}

/* Workshop note (short one-sentence section) */
.workshop-note {
  padding-block: var(--s-16);
  border-top: 1px solid var(--line);
}
.workshop-note p {
  font-size: var(--text-lg);
  color: var(--ink-muted);
  text-align: center;
  line-height: 1.5;
  margin: 0;
}

/* Utilities */
.mono { font-family: var(--font-mono); }
.text-center { text-align: center; }
.mt-6 { margin-top: var(--s-6); }
.mt-8 { margin-top: var(--s-8); }

/* ============ APP SCREENSHOTS ============ */
/* A real screenshot inside the phone frame (screenshots are 9:16). */
.phone-mock.shot { aspect-ratio: 9 / 16.6; }
.phone-mock.shot .phone-screen { padding: 0; background: var(--ink); }
.phone-mock.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.app-hero { display: flex; gap: var(--s-6); align-items: center; flex-wrap: wrap; margin-bottom: var(--s-6); }
.app-icon { width: 88px; height: 88px; border-radius: 22px; box-shadow: var(--shadow); flex-shrink: 0; }
.app-hero h1 { margin-bottom: 0; }

.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(13rem, 1fr);
  gap: var(--s-6);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--s-4);
}
.shots figure { scroll-snap-align: start; margin: 0; }
.shots img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow); }
.shots figcaption { margin-top: var(--s-3); font-size: var(--text-sm); color: var(--ink-muted); }

.status-pill {
  display: inline-block;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
}
.fine-print { font-size: var(--text-xs); color: var(--ink-muted); margin-top: var(--s-8); max-width: 42rem; }
