/* Tall Oaks Ventures — site design system (Jaspr port).
 *
 * Ported 1:1 from the Flutter site's theme (app_colors.dart /
 * app_theme.dart) and widget styling. Light is the default palette;
 * dark mode follows prefers-color-scheme, matching AdaptiveTheme's
 * "system" mode on the Flutter site.
 */

:root {
  /* Brand */
  --primary: #007AFF;      /* electric blue */
  --green: #00FF41;        /* cyber green */
  --adhoc-blue: #004BE3;

  /* Light palette (AppColors.light*) */
  --bg: #F8F9FA;
  --surface: #FFFFFF;
  --text: #1A1C1E;
  --text2: #42474E;
  --outline: #72777F;
  --card: #F1F3F5;
  --card-border: rgba(114, 119, 127, 0.2);
  --divider: rgba(0, 0, 0, 0.12);

  /* Hero-slide / showcase panel palette (light = blueprint paper) */
  --slide-bg: #F1F5FB;
  --panel: #FFFFFF;
  --green-ink: #00A836;
  --line: rgba(0, 122, 255, 0.35);
  --adhoc-line: rgba(0, 75, 227, 0.35);

  /* M3 derived (seed #007AFF) */
  --surface-variant: #E0E2EC;   /* surfaceContainerHighest */
  --on-surface-variant: #42474E;
  --secondary-container: #D7E3F7;
  --on-secondary-container: #101C2B;
  --primary-container-30: rgba(209, 228, 255, 0.3);

  /* Terminal title bar (the on-us landing page's tokens) */
  --term-bar: #E3E9F2;

  /* Industry accents */
  --leaf: #43A047;
  --pool: #29B6F6;
  --wrench: #FFB300;
  --purple: #AB47BC;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0E11;
    --surface: #0B0E11;
    --text: #E1E2E5;
    --text2: #C1C7CE;
    --outline: #8C9199;
    --card: #1C1F26;
    --card-border: rgba(140, 145, 153, 0.2);
    --divider: rgba(255, 255, 255, 0.12);

    --slide-bg: #0B0E11;
    --panel: #10141A;
    --green-ink: #00FF41;
    --line: rgba(0, 122, 255, 0.30);
    --adhoc-line: rgba(0, 75, 227, 0.30);

    --term-bar: #1A2028;

    --surface-variant: #33353A;
    --on-surface-variant: #C1C7CE;
    --secondary-container: #3B4858;
    --on-secondary-container: #D7E3F7;
    --primary-container-30: rgba(0, 73, 125, 0.3);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--bg);
  /* Mobile browsers (DuckDuckGo especially) may auto-inflate text via
     the system font scale — the hero slides are fixed-aspect canvases
     sized in em, so inflated text overflows their frames. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  font-size: 16px;
  line-height: 1.4;
  /* Matches CanvasKit's text rendering on the Flutter site. */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.mono { font-family: 'Roboto Mono', ui-monospace, monospace; }

button { font-family: inherit; }
input, textarea, select { font-family: inherit; }

img, video { display: block; max-width: 100%; }

a { color: inherit; }

/* Material Symbols icon glyphs (ligature-based). */
.msr {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  display: inline-block;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  user-select: none;
  flex: none;
}
.msr.outlined { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.bicon { display: inline-block; flex: none; }
.bicon svg { display: block; width: 100%; height: 100%; }

/* ── Page shell ─────────────────────────────────────────────────────── */

.shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.shell > .grow { flex: 1 0 auto; }

/* Hero column: 1200 max on desktop, 1000 below, 48/24/16 gutters. */
.hero-wrap { padding: 0 48px; }
.hero-col { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
@media (max-width: 1199px) {
  .hero-wrap { padding: 0 24px; }
  .hero-col { max-width: 1000px; }
}
@media (max-width: 599px) { .hero-wrap { padding: 0 16px; } }

/* Hero entrance fades (hero_section.dart: 2s controller). */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.fade-1s { animation: fade-in 1s ease-in both; }
.fade-2s { animation: fade-in 2s ease-in both; }

/* ── Brand toolbar (BrandHeader / toolbar.js twin) ──────────────────── */

.toolbar {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 16px;
}
.toolbar .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  flex-shrink: 0;
}
.toolbar .brand img { width: 36px; height: 36px; border-radius: 7px; }
.toolbar .name { font-weight: 700; font-size: 16px; letter-spacing: 0.15px; color: var(--text); }
.toolbar nav {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px 16px;
}
.toolbar nav a {
  display: inline-block;
  padding: 10px 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--on-surface-variant);
  text-decoration: underline;
  text-decoration-color: var(--on-surface-variant);
  text-underline-offset: 3px;
  white-space: nowrap;
  cursor: pointer;
}
.toolbar nav a:hover { color: var(--text); text-decoration-color: var(--text); }
@media (max-width: 599px) {
  .toolbar { flex-direction: column; gap: 8px; }
  .toolbar .brand { flex-direction: column; gap: 8px; text-align: center; }
  .toolbar .brand img { width: 52px; height: 52px; border-radius: 10px; }
  .toolbar nav { justify-content: center; gap: 4px 16px; margin-top: 8px; }
}

/* ── Shared card (Flutter Card widget) ──────────────────────────────── */

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
}

/* ── Hero gallery ───────────────────────────────────────────────────── */

.gallery-card { width: 100%; padding: 32px; margin-top: 16px; }
@media (max-width: 599px) { .gallery-card { padding: 16px; } }

.gallery {
  position: relative;
  width: 100%;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  max-height: 700px;
  overflow: hidden;
  border-radius: 12px;
  container-type: inline-size;
  touch-action: pan-y;
}
@media (max-width: 1199px) { .gallery { max-height: 600px; } }
@media (max-width: 639px)  { .gallery { aspect-ratio: 1.25; max-height: 400px; } }

.gallery .track {
  display: flex;
  height: 100%;
  transition: transform 700ms cubic-bezier(0.42, 0, 0.58, 1);
}
.gallery .track.no-anim { transition: none; }
.gallery .slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  container-type: inline-size;
}
/* 1em == 10 * s px, s = clamp(width/900, 0.42, 1.5) — the Flutter
   slides' shared scale factor, for every slide frame (gallery, os-hero
   card). Must precede the compact @container override below so the
   override wins the cascade. The viewport-based line is a fallback for
   engines without container-query units (they drop the cqw declaration
   and would otherwise inherit the 16px body font). */
.gallery .slide, .os-hero .slide {
  font-size: clamp(4.2px, calc((100vw - 112px) / 90), 12.7px);
  font-size: clamp(4.2px, 1.1111cqw, 15px);
}
/* Fallback compact scale for engines without container-query units:
   below ~751px viewport the slide is at most ~639px wide, the compact
   threshold. Overridden by the @container rule where supported. */
@media (max-width: 751px) {
  .gallery .slide, .os-hero .slide {
    font-size: clamp(5px, calc((100vw - 90px) / 46), 10px);
  }
}

@container (max-width: 639px) {
  /* Slightly under the Flutter width/420 scale: the original wrapped its
     compact copy in FittedBox(scaleDown), which absorbed the last few
     percent of overflow — this headroom plays that role. */
  .gallery .slide, .os-hero .slide { font-size: clamp(5px, 2.174cqw, 10px); }
}

.gallery .dots {
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
}
.gallery .dots button {
  width: 8px; height: 8px;
  margin: 0 4px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: color-mix(in srgb, var(--text) 30%, transparent);
  cursor: pointer;
}
.gallery .dots button.active { width: 22px; background: var(--primary); }

/* ── Blueprint slide shared look ────────────────────────────────────── */

.bp {
  position: absolute;
  inset: 0;
  background-color: var(--slide-bg);
  background-image:
    linear-gradient(rgba(0, 122, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 122, 255, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
}
.bp.adhoc-grid {
  background-image:
    linear-gradient(rgba(0, 75, 227, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 75, 227, 0.08) 1px, transparent 1px);
}

/* Center a child at a normalized (fx, fy) point (Flutter's _At). */
.at { position: absolute; transform: translate(-50%, -50%); }

/* Slide scenes fill their frame. */
.promo, .os-teaser, .adhoc-teaser, .rf { position: absolute; inset: 0; }

/* Shrink-to-fit boundary for slide copy — site.js scales it down when an
   engine renders the text larger than the frame (DDG mobile text
   scaling, missing container-query units). Carries the column layout its
   children previously got from the copy container. */
.fit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform-origin: left center;
}

.bicon.android { color: #A4C639; }

/* Industry tile (grass / pool / plumbing / cleaning). */
.tile {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 28%;
  color: #fff;
}
.tile .msr { font-size: 55%; }
.tile.leaf   { background: var(--leaf);   box-shadow: 0 0.1em 0.35em rgba(67, 160, 71, 0.35); }
.tile.pool   { background: var(--pool);   box-shadow: 0 0.1em 0.35em rgba(41, 182, 246, 0.35); }
.tile.wrench { background: var(--wrench); box-shadow: 0 0.1em 0.35em rgba(255, 179, 0, 0.35); }
.tile.purple { background: var(--purple); box-shadow: 0 0.1em 0.35em rgba(171, 71, 188, 0.35); }

/* Floating UI chip (payment toast etc.). */
.chip-float {
  display: inline-flex;
  align-items: center;
  padding: 0.8em 1.2em;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 0.6em 1.6em rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}
.chip-float .dot-ic {
  width: 2em; height: 2em;
  margin-right: 0.8em;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.chip-float .dot-ic .msr { font-size: 1.2em; }
.chip-float span.lbl { font-size: 1.15em; font-weight: 600; color: var(--text); }

/* Corner tag ("ONE APP FOR THE FIELD"). */
.corner-tag {
  position: absolute;
  left: 2em; top: 1.6em;
  font-family: 'Roboto Mono', monospace;
  font-size: 1.1em;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text2);
}

/* Circuit traces (SVG overlay). */
.traces { position: absolute; inset: 0; width: 100%; height: 100%; }
.traces path { fill: none; stroke: var(--primary); vector-effect: non-scaling-stroke; }
.traces .base { stroke-opacity: 0.35; }
.traces .flow {
  stroke-dasharray: 18 82;
  animation: trace-flow 6s linear infinite;
}
@keyframes trace-flow {
  from { stroke-dashoffset: 100; }
  to   { stroke-dashoffset: 0; }
}

/* ── Schedule phone mock (Outside Services) ─────────────────────────── */
/* Local unit: the phone root sets font-size to width/100, so 1em inside
   equals 1% of the phone's width — mirroring the Flutter mock's
   width-fraction sizing. */

.phone {
  background: #1A1A1A;
  border: 2px solid #333333;
  border-radius: 16em;
  padding: 3.5em;
  box-shadow: 0 8em 22em rgba(0, 0, 0, 0.45);
}
.phone .screen {
  aspect-ratio: 9 / 19;
  border-radius: 11.5em;
  overflow: hidden;
  background-color: var(--slide-bg);
  padding: 5em;
  display: flex;
  flex-direction: column;
}
.phone .statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Roboto Mono', monospace;
  font-size: 4.2em;
  font-weight: 600;
  color: var(--text2);
}
.phone .statusbar .icons { display: flex; gap: 0.36em; }
.phone .statusbar .msr { font-size: 1em; }
.phone .call {
  margin-top: 7em;
  display: flex;
  align-items: center;
  background: var(--primary);
  border-radius: 5em;
  padding: 4em 5em;
  color: #fff;
  animation: call-blink 6s linear infinite;
}
.phone .call .msr { font-size: 7em; }
.phone .call span { font-size: 5.5em; font-weight: 600; margin-left: 0.55em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes call-blink {
  0%, 12% { opacity: 0; }
  17%, 100% { opacity: 1; }
}
.phone .day { margin-top: 5em; font-size: 6em; font-weight: 700; color: var(--text); }
.phone .job {
  margin-top: 3em;
  display: flex;
  align-items: center;
  background: var(--panel);
  border-left: 1.5em solid;
  border-radius: 4em;
  padding: 3.5em 4em;
  overflow: hidden;
}
.phone .job .t { font-family: 'Roboto Mono', monospace; font-size: 4.5em; font-weight: 600; color: var(--text2); }
.phone .job .j { font-size: 5em; font-weight: 600; color: var(--text); margin-left: 0.6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone .nav {
  margin-top: auto;
  display: flex;
  justify-content: space-evenly;
  color: var(--text2);
}
.phone .nav .msr { font-size: 8em; }
.phone .nav .msr.active { color: var(--primary); }

/* Video phone (AdHoc). */
.vphone {
  background: #1A1A1A;
  border: 2px solid #333333;
  border-radius: 16em;
  padding: 3.5em;
  box-shadow: 0 8em 22em rgba(0, 0, 0, 0.45);
}
.vphone .clip { border-radius: 11.5em; overflow: hidden; }
.vphone .sysbar {
  height: 10em;
  background: #1A1A1A;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5.5em;
  color: #fff;
}
.vphone .sysbar .time { font-size: 3.6em; font-weight: 600; }
.vphone .sysbar .icons { display: flex; gap: 0.39em; font-size: 3.6em; }
.vphone video { width: 100%; }

/* ── Slide: teaser layout shared (OS teaser + AdHoc teaser) ─────────── */

.teaser-copy {
  position: absolute;
  left: 5.6em;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 3;
}
.teaser-copy .kicker {
  font-family: 'Roboto Mono', monospace;
  font-size: 1.1em;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--green-ink);
}
.teaser-copy h2 {
  margin: 1em 0 0;
  font-size: 3.8em;
  font-weight: 800;
  line-height: 1.08;
  color: var(--text);
  white-space: pre-line;
}
.teaser-copy .sub {
  margin-top: 1em;
  font-size: 1.55em;
  line-height: 1.35;
  color: var(--text2);
  white-space: pre-line;
}
.teaser-copy .cta-note {
  margin-top: 0.8em;
  font-family: 'Roboto Mono', monospace;
  font-size: 1.05em;
  color: var(--text2);
}

.btn-green {
  display: inline-block;
  border: none;
  cursor: pointer;
  background: var(--green);
  color: #0B0E11;
  font-weight: 800;
  border-radius: 0.53em;
  font-size: 1.5em;
  padding: 0.93em 1.33em;
  line-height: 1.2;
  text-decoration: none;
}
.btn-green:hover { box-shadow: inset 0 0 0 999px rgba(11, 14, 17, 0.08); }

/* Compact variant: dimmed scene backdrop, in-flow copy. */
.scene { position: absolute; inset: 0; }
@container (max-width: 639px) {
  .scene { opacity: 0.25; }
  .teaser-copy {
    position: absolute;
    inset: 0;
    left: 0; top: 0;
    transform: none;
    padding: 2.4em 2.4em 34px;
    justify-content: center;
  }
}

/* AdHoc teaser specifics */
.adhoc-title-row { display: flex; align-items: center; margin-top: 1em; }
.adhoc-title-row img { height: 4em; width: auto; }
.adhoc-title-row h2 { margin: 0 0 0 0.32em; font-size: 3.8em; font-weight: 800; line-height: 1.08; color: var(--text); }
.teaser-copy .built { font-size: 2.2em; font-weight: 800; color: var(--text); margin-bottom: 0.64em; }
.store-row { display: flex; gap: 0.8em; margin-top: 1.6em; }
.store-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  background: var(--panel);
  border: 1px solid var(--adhoc-line);
  border-radius: 999px;
  padding: 0.9em 1.4em;
  cursor: pointer;
  color: var(--text);
  text-decoration: none;
}
.store-pill:hover { box-shadow: inset 0 0 0 999px rgba(128, 128, 128, 0.08); }
.store-pill .bicon { width: 1.5em; height: 1.5em; }
.store-pill .lbl { font-size: 1.25em; font-weight: 600; }

/* ── Slide: 20 Hours On Us (Blueprint Build) ────────────────────────── */

.promo .copy {
  position: absolute;
  left: 5.6em;
  top: 32.5%;
  transform: translateY(-50%);
  z-index: 3;
}
.promo h2 {
  margin: 0;
  font-size: 4.6em;
  font-weight: 800;
  line-height: 1.05;
  color: var(--text);
  /* Single line, like the Flutter FittedBox headline. */
  white-space: nowrap;
}
.promo .sub {
  margin-top: 1em;
  font-size: 2em;
  line-height: 1.35;
  color: var(--text2);
  white-space: pre-line;
}
.promo .cta {
  position: absolute;
  left: 25%;
  top: 80%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3;
}
.promo .cta .btn-green { font-size: 1.6em; padding: 1em 1.375em; border-radius: 0.5em; }
.promo .cta .terms-link {
  margin-top: 0.4em;
  padding: 1.2em 0.6em;
  font-size: 1.15em;
  color: var(--text2);
  text-decoration: underline;
  text-decoration-color: var(--text2);
  cursor: pointer;
  background: none;
  border: none;
}
.promo .wire { position: absolute; inset: 0; width: 100%; height: 100%; }
.promo .wire .stroke {
  fill: none;
  stroke: var(--primary);
  stroke-width: 0.38em;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.promo .wire .fillrect { fill: var(--primary); opacity: 0.14; }
.promo .wire .rundot { fill: var(--green); opacity: 0.75; }

/* Play-state: elements animate in once; .done holds the final frame
   (sessionStorage-backed, like OnUsPromoHero.sessionPlayOnce). */
/* Waiting: everything paused at its first frame until first viewed. */
.promo.play.waiting, .promo.play.waiting * { animation-play-state: paused; }
.promo.play h2 { animation: promo-rise 0.78s ease-out 2.7s both; }
.promo.play .sub { animation: promo-rise 0.72s ease-out 3.36s both; }
.promo.play .cta { animation: promo-pop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 4.08s both; }
@keyframes promo-rise {
  from { opacity: 0; translate: 0 2.4em; }
  to   { opacity: 1; translate: 0 0; }
}
@keyframes promo-pop {
  from { opacity: 0; scale: 0; }
  to   { opacity: 1; scale: 1; }
}
.promo.play .wire .stroke {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: wire-draw 2.28s cubic-bezier(0.42, 0, 0.58, 1) 0.24s forwards;
}
.promo.play .wire .stroke.late { animation-delay: 0.9s; }
@keyframes wire-draw { to { stroke-dashoffset: 0; } }
.promo.play .wire .fillrect { animation: wire-fill 0.9s ease-out 2.4s both; }
@keyframes wire-fill { from { opacity: 0; } to { opacity: 0.14; } }
.promo.play .wire .rundot { animation: dot-live 1.2s ease-out 2.4s both; }
@keyframes dot-live {
  0% { opacity: 0; }
  40% { opacity: 1; }
  70% { opacity: 0.45; }
  100% { opacity: 0.75; }
}

@container (max-width: 639px) {
  .promo .wire, .promo-scene { opacity: 0.3; }
  .promo .copy {
    position: absolute;
    inset: 0;
    left: 0; top: 0;
    transform: none;
    padding: 2.4em 2.4em 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }
  .promo .cta {
    position: static;
    transform: none;
    align-items: flex-start;
    margin-top: 2em;
  }
}
/* In compact flow the CTA lives inside .copy — hide the floating one. */
.promo .cta.in-flow { display: none; }
@container (max-width: 639px) {
  .promo .cta.floating { display: none; }
  .promo .cta.in-flow { display: flex; }
}

/* ── Slides: Digital Business Refresh hero candidates ───────────────── */

/* Shared mac-style bar (browser / terminal / site card). */
:is(.rf, .landing-term) .bar {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 1em 1.2em;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
:is(.rf, .landing-term) .bar .dot { width: 1em; height: 1em; border-radius: 50%; flex: none; }
:is(.rf, .landing-term) .bar .dot.r { background: #FF5F57; }
:is(.rf, .landing-term) .bar .dot.y { background: #FEBC2E; }
:is(.rf, .landing-term) .bar .dot.g { background: #28C840; }
:is(.rf, .landing-term) .bar .url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-left: 0.5em;
  padding: 0.45em 1em;
  border-radius: 999px;
  background: var(--slide-bg);
  font-family: 'Roboto Mono', monospace;
  font-size: 1.1em;
  color: var(--text2);
  white-space: nowrap;
  overflow: hidden;
}
:is(.rf, .landing-term) .bar .url .msr { font-size: 1em; color: var(--green-ink); }
:is(.rf, .landing-term) .bar .title { font-size: 1.1em; color: var(--text2); letter-spacing: 0.1em; }

/* Wireframe page bits shared by the browser mock and the site card. */
.rf .rf-line {
  height: 1em;
  border-radius: 0.5em;
  margin-top: 0.9em;
  background: color-mix(in srgb, var(--text2) 30%, transparent);
}
.rf .rf-line.hi { height: 1.6em; background: var(--primary); opacity: 0.85; }
.rf .rf-line.w60 { width: 60%; }
.rf .rf-line.w70 { width: 70%; }
.rf .rf-line.w80 { width: 80%; }
.rf .rf-line.w85 { width: 85%; }
.rf .rf-line.w90 { width: 90%; }
.rf .rf-line.w95 { width: 95%; }
.rf .rf-nav { display: flex; align-items: center; gap: 1em; }
.rf .rf-logo {
  width: 2.2em; height: 2.2em;
  border-radius: 0.6em;
  background: linear-gradient(135deg, var(--primary), var(--pool));
}
.rf .rf-navlinks { display: flex; gap: 0.8em; margin-left: auto; }
.rf .rf-navlinks span {
  width: 3.4em; height: 0.8em;
  border-radius: 0.4em;
  background: color-mix(in srgb, var(--text2) 35%, transparent);
}
.rf .rf-hero { display: flex; gap: 1.6em; align-items: stretch; margin-top: 1.4em; }
.rf .rf-hero-copy { flex: 3; }
.rf .rf-hero-art {
  flex: 2;
  border-radius: 0.8em;
  background: linear-gradient(135deg,
      color-mix(in srgb, var(--primary) 35%, transparent),
      color-mix(in srgb, var(--pool) 45%, transparent));
}
.rf .rf-cta {
  width: 7em; height: 2.2em;
  margin-top: 1.2em;
  border-radius: 0.6em;
  background: var(--green-ink);
}

/* ── Candidate 1: Refresh Sweep ── */
.rf-a .rf-browser {
  width: 36em;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1.2em;
  box-shadow: 0 1.4em 3em rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.rf-a .pane { position: relative; height: 24em; }
.rf-a .page { position: absolute; inset: 0; padding: 1.6em; }
.rf-a .page.before { filter: grayscale(1); opacity: 0.55; }
.rf-a .rf-head {
  height: 1.6em; width: 45%;
  border-radius: 0.5em;
  background: color-mix(in srgb, var(--text2) 45%, transparent);
}
.rf-a .rf-img {
  height: 8em;
  margin-top: 1.2em;
  border-radius: 0.8em;
  background: color-mix(in srgb, var(--text2) 22%, transparent);
}
/* The after-page reveals under the sweep line. */
.rf-a .page.after {
  background: var(--panel);
  clip-path: inset(0 100% 0 0);
  animation: rf-reveal 7s ease-in-out infinite;
}
.rf-a .sweep {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 0.35em;
  background: var(--green);
  box-shadow: 0 0 1.6em var(--green);
  animation: rf-sweepline 7s ease-in-out infinite;
}
@keyframes rf-reveal {
  0%, 8% { clip-path: inset(0 100% 0 0); }
  55%, 92% { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 100% 0 0); }
}
@keyframes rf-sweepline {
  0%, 8% { left: 0; opacity: 1; }
  55% { left: calc(100% - 0.35em); opacity: 1; }
  60%, 88% { opacity: 0; left: calc(100% - 0.35em); }
  92%, 100% { left: 0; opacity: 0; }
}

/* ── Candidate 2: Go-Live Console ── */
.rf-b .rf-term {
  width: 36em;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1.2em;
  box-shadow: 0 1.4em 3em rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.rf-b .rf-term .bar { background: var(--term-bar); border-bottom: none; }
.rf-b .rf-term .body { padding: 1.4em 1.6em 1.8em; font-size: 1.25em; line-height: 2; }
.rf-b .tl { display: flex; gap: 0.9em; white-space: nowrap; }
.rf-b .tl .k { color: var(--primary); flex: none; }
.rf-b .tl .key { color: var(--primary); font-weight: 600; width: 6.5em; flex: none; }
.rf-b .tl .val { color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.rf-b .tl .k:has(+ .key.ok), .rf-b .tl .key.ok, .rf-b .tl .val.ok { color: var(--green-ink); }
.rf-b .tl.cmd { color: var(--text); }
.rf-b .tl .prompt { color: var(--green-ink); font-weight: 700; }
.rf-b .cursor {
  display: inline-block;
  width: 0.55em; height: 1.1em;
  background: var(--green-ink);
  animation: rf-blink 1s steps(1) infinite;
}
@keyframes rf-blink { 50% { opacity: 0; } }
/* Lines print one by one, hold, then the loop restarts. */
.rf-b .tl { opacity: 0; animation: rf-print 9s infinite; }
.rf-b .tl-0 { animation-delay: 0s; }
.rf-b .tl-1 { animation-delay: 0.55s; }
.rf-b .tl-2 { animation-delay: 1.1s; }
.rf-b .tl-3 { animation-delay: 1.65s; }
.rf-b .tl-4 { animation-delay: 2.2s; }
.rf-b .tl-5 { animation-delay: 2.75s; }
.rf-b .tl-6 { animation-delay: 3.5s; }
.rf-b .tl-7 { animation-delay: 3.5s; }
@keyframes rf-print {
  0% { opacity: 0; transform: translateY(0.4em); }
  4%, 93% { opacity: 1; transform: translateY(0); }
  97%, 100% { opacity: 0; }
}

/* Play-once terminal (the /refresh landing page): the print animation
   runs a single pass and holds — longhand properties so the .tl-N delay
   classes keep applying — and the `done` class (set by site.js on repeat
   visits this session) shows the finished output immediately. The
   cursor's own blink keeps running in both states. */
.rf-term.play-once .tl {
  animation-name: rf-print-once;
  animation-duration: 0.5s;
  animation-timing-function: ease-out;
  animation-iteration-count: 1;
  animation-fill-mode: both;
}
@keyframes rf-print-once {
  from { opacity: 0; transform: translateY(0.4em); }
  to   { opacity: 1; transform: translateY(0); }
}
.rf-term.done .tl { animation: none; opacity: 1; transform: none; }

/* ── Candidate 3: Hub & Spokes ── */
.tile.blue { background: var(--primary); box-shadow: 0 0.1em 0.35em rgba(0, 122, 255, 0.35); }
.rf-c .rf-site {
  width: 24em;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1.2em;
  box-shadow: 0 0 2.4em color-mix(in srgb, var(--primary) 30%, transparent),
      0 1.4em 3em rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.rf-c .rf-site .page { padding: 1.4em; }
.rf-c .rf-site .rf-hero-art { min-height: 6em; }

/* Compact: scenes dim behind the copy like the other teaser slides. */
@container (max-width: 639px) {
  .rf .scene { opacity: 0.25; }
}

/* ── /refresh landing page ──────────────────────────────────────────── */

.landing .hero-pill { letter-spacing: 2px; }
.landing .hero-sub { max-width: 640px; }
.landing-cta {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.landing-cta .btn-green {
  font-size: 16px;
  padding: 16px 22px;
  border-radius: 8px;
}
.landing-cta .terms-link {
  padding: 12px 6px;
  font-size: 12px;
  color: var(--text2);
  text-decoration: underline;
  text-decoration-color: var(--text2);
}
.landing-cta .terms-link:hover { color: var(--text); }

/* The go-live console at page scale: 1em == 14px inside, mirroring the
   slide-scale math at s ≈ 1.4 (the on-us console's proportions). */
.landing-term {
  margin: 48px auto 16px;
  font-size: clamp(9px, 2vw, 14px);
  width: 100%;
  display: flex;
  justify-content: center;
}
.landing-term .rf-term { width: min(100%, 46em); }
.landing-term .rf-term .body { font-size: 1.2em; }

.landing-h2 {
  margin: 56px 0 0;
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
}
.landing-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 699px) { .landing-grid { grid-template-columns: 1fr; } }
.landing-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
}
.landing-feature .icon-box {
  padding: 10px;
  border-radius: 10px;
  background: rgba(0, 122, 255, 0.1);
  color: var(--primary);
  display: flex;
  flex: none;
}
.landing-feature .icon-box .msr { font-size: 24px; }
.landing-feature h3 { margin: 2px 0 0; font-size: 16px; font-weight: 700; color: var(--text); }
.landing-feature p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--text2); }

.landing-callout {
  margin-top: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 8px;
  background: rgba(0, 122, 255, 0.08);
}
.landing-callout .icon-box { color: var(--primary); display: flex; flex: none; padding-top: 2px; }
.landing-callout .icon-box .msr { font-size: 22px; }
.landing-callout p { margin: 0; font-size: 14px; line-height: 1.6; color: color-mix(in srgb, var(--text) 85%, transparent); }
.landing-callout a { color: var(--primary); text-decoration: underline; }

.landing-steps { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.landing-step { display: flex; align-items: flex-start; gap: 16px; }
.landing-step .num {
  width: 34px; height: 34px;
  flex: none;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--green-ink);
  border-radius: 50%;
  color: var(--green-ink);
  font-weight: 700;
  font-size: 15px;
}
.landing-step h3 { margin: 4px 0 0; font-size: 16px; font-weight: 700; color: var(--text); }
.landing-step p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--text2); }

.landing-bottom { margin: 40px 0 24px; display: flex; justify-content: center; }

/* ── Hero title block ───────────────────────────────────────────────── */

.hero-pill {
  margin-top: 24px;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(0, 122, 255, 0.1);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
}
.hero-title {
  margin: 32px 0 0;
  font-size: 57px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  text-align: center;
  color: var(--text);
  white-space: pre-line;
}
.hero-sub {
  margin-top: 24px;
  max-width: 600px;
  font-size: 16px;
  text-align: center;
  color: color-mix(in srgb, var(--text) 70%, transparent);
  white-space: pre-line;
}
@media (max-width: 599px) {
  .hero-title { font-size: 45px; font-weight: 400; letter-spacing: 0; }
}

/* ── Section pills ──────────────────────────────────────────────────── */

.section-pills {
  margin: 48px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  scroll-margin-top: 24px;
}
.section-pills button {
  border: none;
  cursor: pointer;
  padding: 20px 32px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1px;
  background: var(--surface-variant);
  color: var(--on-surface-variant);
  transition: background 150ms, box-shadow 150ms;
}
.section-pills button:hover { filter: brightness(1.05); }
.section-pills button.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* ── Sections shared ────────────────────────────────────────────────── */

.section { padding: 32px; display: flex; justify-content: center; }
.section > .inner { width: 100%; max-width: 1000px; }
@media (max-width: 599px) { .section { padding: 16px; } }

.section-subtitle {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  color: color-mix(in srgb, var(--text) 70%, transparent);
}
@media (max-width: 599px) { .section-subtitle { font-size: 16px; font-weight: 500; } }

/* Section entrance fades (match the Flutter interval animations). */
.anim-title { animation: fade-in 0.6s ease-in both; }
.anim-content { animation: fade-in 0.9s ease-in 0.6s both; }
.anim-seq-0 { animation: fade-in 0.4s ease-in both; }
.anim-seq-1 { animation: fade-in 0.4s ease-in 0.4s both; }
.anim-seq-2 { animation: fade-in 0.4s ease-in 0.8s both; }
.anim-seq-3 { animation: fade-in 0.4s ease-in 1.2s both; }
.anim-seq-4 { animation: fade-in 0.4s ease-in 1.6s both; }

/* ── What We Do ─────────────────────────────────────────────────────── */

.service-item {
  margin-top: 24px;
  padding: 32px;
  display: flex;
  align-items: flex-start;
  gap: 32px;
}
.services .service-item:first-of-type { margin-top: 64px; }
.service-item .icon-box {
  padding: 12px;
  border-radius: 12px;
  background: rgba(0, 122, 255, 0.1);
  color: var(--primary);
  display: flex;
}
.service-item .icon-box .msr { font-size: 32px; }
.service-item h3 { margin: 0; font-size: 22px; font-weight: 700; color: var(--text); }
.service-item p {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.5;
  color: color-mix(in srgb, var(--text) 80%, transparent);
}
@media (max-width: 599px) {
  .service-item { flex-direction: column; gap: 24px; padding: 20px; }
  .services .service-item:first-of-type { margin-top: 32px; }
}

/* ── In The Pipeline: Outside Services card ─────────────────────────── */

.os-card {
  margin-top: 64px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 48px;
}
@media (max-width: 599px) { .os-card { padding: 16px; margin-top: 32px; } }

.os-head { display: flex; align-items: center; gap: 24px; }
.os-mark {
  width: 72px; height: 72px;
  flex: none;
  border-radius: 28%;
  background: linear-gradient(135deg, var(--primary), #29B6F6);
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.35);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.os-mark .msr { font-size: 40px; }
.os-head h3 { margin: 0; font-size: 34px; font-weight: 800; line-height: 1.1; color: var(--text); }
.os-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  border: 1.2px solid var(--green-ink);
  border-radius: 999px;
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--green-ink);
}
@media (max-width: 599px) {
  .os-mark { width: 56px; height: 56px; }
  .os-mark .msr { font-size: 31px; }
  .os-head h3 { font-size: 24px; }
  .os-badge { font-size: 9px; }
}
.os-desc { margin: 32px 0 0; max-width: 800px; font-size: 20px; line-height: 1.5; color: var(--text); }
@media (max-width: 600px) { .os-desc { font-size: 16px; margin-top: 24px; } }

.os-props { margin-top: 28px; max-width: 800px; display: flex; flex-wrap: wrap; gap: 14px 24px; }
.os-prop { width: 380px; display: flex; align-items: flex-start; gap: 12px; }
.os-prop .pi {
  width: 30px; height: 30px;
  flex: none;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.os-prop .pi .msr { font-size: 17px; }
.os-prop span.lbl { padding-top: 4px; font-size: 14.5px; line-height: 1.4; font-weight: 500; color: var(--text); }
.os-prop .pi.green  { background: color-mix(in srgb, var(--green-ink) 16%, transparent); color: var(--green-ink); }
.os-prop .pi.blue   { background: rgba(0, 122, 255, 0.16); color: var(--primary); }
.os-prop .pi.pool   { background: rgba(41, 182, 246, 0.16); color: var(--pool); }
.os-prop .pi.amber  { background: rgba(255, 179, 0, 0.16); color: var(--wrench); }
@media (max-width: 599px) { .os-prop { width: 100%; } .os-props { margin-top: 20px; } }

/* Field + Phone hero graphic (variant 3), inside the card. */
.os-hero { margin-top: 40px; container-type: inline-size; }
@media (max-width: 599px) { .os-hero { margin-top: 24px; } }
.os-hero .slide {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  /* font-size comes from the shared slide-scale rules above. */
}
@container (max-width: 639px) { .os-hero .slide { aspect-ratio: 1.1; } }

/* Compact re-positioning of the payment toast (Flutter: fx/fy switch). */
@container (max-width: 639px) {
  .pay-chip { left: 50% !important; top: 95% !important; }
}

/* Status trail */
.status-h { margin: 32px 0 0; font-size: 14px; font-weight: 700; letter-spacing: 0.1px; color: var(--text2); }
.status-row { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 12px; }
.status-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: color-mix(in srgb, #000 8%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--line) 35%, transparent);
}
.status-item .msr { font-size: 20px; }
.status-item .sl { font-size: 14px; font-weight: 600; color: var(--text); }
.status-item .ss { font-size: 10px; }
.status-item.done .msr, .status-item.done .ss { color: var(--green-ink); }
.status-item.doing .msr, .status-item.doing .ss { color: var(--primary); }
.status-item.todo .msr, .status-item.todo .ss { color: var(--text2); }
@media (max-width: 599px) { .status-h { margin-top: 24px; } }

/* ── In The Pipeline: AdHoc DM card ─────────────────────────────────── */

.adhoc-card {
  margin-top: 64px;
  background: var(--adhoc-blue);
  border-radius: 12px;
  padding: 48px;
  color: #fff;
  overflow: hidden;
}
@media (max-width: 599px) { .adhoc-card { padding: 48px 16px; margin-top: 32px; } }
.adhoc-head { display: flex; align-items: center; gap: 24px; }
.adhoc-head img {
  height: 80px; width: 80px;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.adhoc-head h3 {
  margin: 0;
  font-size: 40px;
  font-weight: 400;
  color: #fff;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.54);
}
.adhoc-head a.url {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 4px;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
}
@media (max-width: 599px) {
  .adhoc-head img { height: 60px; width: 60px; }
  .adhoc-head h3 { font-size: 28px; }
}
.adhoc-sub { margin: 32px 0 0; max-width: 800px; font-size: 24px; line-height: 1.4; }
.adhoc-sub .adhoc-term {
  font-style: italic;
  font-weight: 700;
  text-decoration: underline dotted;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.26);
}
.adhoc-sub b { font-weight: 700; }
.adhoc-sub .calls { display: block; margin-top: 1.4em; font-size: 18px; font-weight: 700; }
@media (max-width: 600px) {
  .adhoc-sub { font-size: 18px; }
  .adhoc-sub .calls { font-size: 14px; }
}

.adhoc-bottom { margin-top: 64px; max-width: 800px; display: flex; align-items: flex-start; }
.adhoc-bottom .vid-col { flex: 4; display: flex; justify-content: center; }
.adhoc-bottom .task-col { flex: 5; margin-left: 64px; }
@media (max-width: 599px) {
  .adhoc-bottom { flex-direction: column; align-items: center; }
  .adhoc-bottom .task-col { margin-left: 0; margin-top: 48px; width: 100%; text-align: center; }
}

/* AdHoc showcase video phone (fixed 280px, not slide-scaled). */
.adhoc-video {
  width: 280px;
  background: #1A1A1A;
  border: 2px solid #333;
  border-radius: 48px;
  padding: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.adhoc-video .clip { border-radius: 36px; overflow: hidden; }
.adhoc-video .sysbar {
  height: 28px;
  background: #1A1A1A;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 16px;
  color: #fff; font-size: 10px; font-weight: 600;
}
.adhoc-video .sysbar .icons { display: flex; gap: 4px; }
.adhoc-video .sysbar .msr { font-size: 10px; }

.task-col .status-h { color: rgba(255, 255, 255, 0.7); margin-top: 0; }
.task-item {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}
.task-item:first-of-type { margin-top: 16px; }
.task-item .msr { font-size: 20px; color: #69F0AE; }
.task-item .tl { font-size: 14px; color: #fff; }
.task-item .ts { font-size: 10px; color: #69F0AE; }

.dl-row { margin-top: 48px; display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 280px;
  padding: 16px 24px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.dl-btn .bicon { width: 20px; height: 20px; color: #fff; }
.dl-btn:hover { background: rgba(255, 255, 255, 0.16); }

/* ── Client Stories ─────────────────────────────────────────────────── */

.stories-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 599px) { .stories-grid { grid-template-columns: 1fr; } }

.story-tile {
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--card-border);
}
.story-tile.playing {
  border: 2px solid var(--primary);
  background: color-mix(in srgb, var(--primary) 9%, var(--card));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.story-tile .vwrap { position: relative; aspect-ratio: 16 / 9; background: #000; }
.story-tile video { width: 100%; height: 100%; object-fit: cover; }
.story-tile .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.15);
  color: rgba(255, 255, 255, 0.7);
  pointer-events: none;
}
.story-tile .overlay .msr { font-size: 48px; }
.story-tile.playing .overlay { display: none; }
.story-tile .meta { padding: 8px 12px 12px; }
.story-tile .trow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.story-tile h4 { margin: 0; font-size: 16px; font-weight: 500; color: var(--text); }
.story-tile.playing h4 { font-weight: 700; color: var(--primary); }
.story-tile .ai-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--secondary-container);
  color: var(--on-secondary-container);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.story-tile .ai-chip .msr { font-size: 14px; }
.story-tile p { margin: 4px 0 0; font-size: 12px; color: var(--text2); }

/* ── Contact ────────────────────────────────────────────────────────── */

.contact-card { margin-top: 48px; padding: 48px; }
@media (max-width: 599px) { .contact-card { padding: 24px; } }
.contact-row { display: flex; align-items: center; justify-content: center; }
.contact-row .bc-col { flex: 11; display: flex; justify-content: flex-end; }
.contact-row .links-col {
  flex: 9;
  margin-left: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (max-width: 599px) {
  .contact-row { flex-direction: column; }
  .contact-row .bc-col { width: 100%; max-width: 400px; justify-content: center; }
  .contact-row .links-col { margin-left: 0; margin-top: 32px; }
}
.avatar {
  width: 112px; height: 112px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(0, 122, 255, 0.1);
}
@media (max-width: 599px) { .avatar { width: 96px; height: 96px; } }
.contact-links { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--primary);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.15px;
  text-decoration: underline;
  text-decoration-color: var(--primary);
  cursor: pointer;
}
.contact-link .msr { font-size: 20px; text-decoration: none; }
.contact-link .bicon { width: 20px; height: 20px; }
.contact-link:hover { background: rgba(0, 122, 255, 0.06); }

/* Business card: local unit = width/46 (Flutter s = width/460, em = 10s). */
.bc-holder { width: 100%; max-width: 520px; container-type: inline-size; }
.bc {
  aspect-ratio: 1.75;
  /* Viewport fallback first — see .gallery .slide. */
  font-size: clamp(6px, calc((100vw - 96px) / 46), 11.4px);
  font-size: calc(100cqw / 46);
  border-radius: 2em;
  background: linear-gradient(180deg, #3B3F3E, #353938);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  padding: 1.6em 2.4em;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.bc .t {
  font-size: 2.4em;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #CDD1D5;
  text-shadow: 0 0 0.67em rgba(255, 255, 255, 0.25);
  white-space: nowrap;
}
.bc .tag {
  margin-top: 0.15em;
  font-size: 1.35em;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.022em;
  color: #D97C6C;
  white-space: nowrap;
}
.bc .logo {
  flex: 1;
  min-height: 0;
  margin: 0.4em 0;
  display: flex;
  justify-content: center;
  -webkit-mask-image: radial-gradient(closest-side, #000 75%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 75%, transparent 100%);
}
.bc .logo img { height: 100%; width: auto; object-fit: contain; }
.bc .n { font-size: 1.8em; line-height: 1.2; font-weight: 700; color: #fff; white-space: nowrap; }
.bc a.line {
  display: block;
  margin-top: 0.1em;
  padding: 0.1em 0.8em;
  border-radius: 0.6em;
  font-size: 1.3em;
  line-height: 1.25;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  white-space: nowrap;
}
.bc a.line:hover { background: rgba(255, 255, 255, 0.06); }

/* ── Site footer (SiteFooter / footer.js twin) ──────────────────────── */

.site-footer { background: var(--surface); padding: 32px 40px; }
@media (max-width: 599px) { .site-footer { padding: 32px 16px; } }
.site-footer .rule { border-top: 1px solid var(--divider); margin-bottom: 20px; }
.site-footer .row { text-align: center; font-size: 14px; color: var(--text2); }
.site-footer .ai { color: color-mix(in srgb, var(--text) 60%, transparent); font-style: italic; }

/* ── Doc pages (terms / apply) ──────────────────────────────────────── */

.doc-wrap { padding: 0 48px; display: flex; justify-content: center; }
@media (max-width: 599px) { .doc-wrap { padding: 0 16px; } }
.doc { width: 100%; max-width: 860px; padding: 32px 0; }
.doc.apply { max-width: 760px; }

.doc-head { display: flex; align-items: center; gap: 8px; }
.close-btn {
  width: 48px; height: 48px;
  flex: none;
  border: none;
  border-radius: 50%;
  background: none;
  color: var(--text);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.close-btn:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.close-btn .msr { font-size: 24px; }
.doc-head h1 { margin: 0; font-size: 32px; font-weight: 800; color: var(--text); }
@media (max-width: 599px) { .doc-head h1 { font-size: 24px; } }
.doc.apply .doc-head h1 { font-size: 30px; }

.doc .meta { margin-top: 12px; font-size: 13px; line-height: 1.6; color: color-mix(in srgb, var(--text) 60%, transparent); white-space: pre-line; }
.doc .summary {
  margin-top: 16px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(0, 122, 255, 0.08);
  font-size: 14px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--text) 85%, transparent);
}
.doc .sec-title { margin: 24px 0 8px; font-size: 18px; font-weight: 700; color: var(--text); }
.doc .sec-body { margin: 0; font-size: 14px; line-height: 1.6; color: color-mix(in srgb, var(--text) 75%, transparent); white-space: pre-line; }
.doc .fine { margin-top: 24px; font-size: 12px; color: color-mix(in srgb, var(--text) 50%, transparent); }

/* ── Apply form ─────────────────────────────────────────────────────── */

.apply-intro { margin-top: 8px; font-size: 14px; line-height: 1.5; color: color-mix(in srgb, var(--text) 70%, transparent); }
.form-sec { margin: 28px 0 14px; font-size: 18px; font-weight: 700; color: var(--primary); }
.frow { display: flex; gap: 14px; margin-top: 14px; }
.frow > * { flex: 1; min-width: 0; }
.form-sec + .frow { margin-top: 0; }

/* Every field carries the form's 14px gap (the Flutter _gap()) unless it
   sits inside a row (the row spaces itself) or right under a section
   title (which brings its own bottom margin). */
.field { position: relative; margin-top: 14px; }
.frow > .field { margin-top: 0; }
.form-sec + .field { margin-top: 0; }
.field input, .field textarea, .field select {
  width: 100%;
  background: none;
  border: 1px solid var(--outline);
  border-radius: 4px;
  padding: 16px 12px;
  font-size: 16px;
  color: var(--text);
  outline: none;
  resize: vertical;
}
.field select { appearance: none; cursor: pointer; padding-right: 40px; }
.field .caret {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--on-surface-variant);
}
.field label {
  position: absolute;
  left: 8px; top: -8px;
  padding: 0 4px;
  background: var(--bg);
  font-size: 12px;
  color: var(--on-surface-variant);
  pointer-events: none;
  white-space: nowrap;
  max-width: calc(100% - 16px);
  overflow: hidden;
  text-overflow: ellipsis;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
}
.field input:focus + label, .field textarea:focus + label, .field select:focus + label { color: var(--primary); }
.field.error input, .field.error textarea, .field.error select { border-color: #BA1A1A; box-shadow: inset 0 0 0 1px #BA1A1A; }
.field.error label { color: #BA1A1A; }
.field .err-msg { margin: 4px 0 0 12px; font-size: 12px; color: #BA1A1A; }
.field ::placeholder { color: color-mix(in srgb, var(--text) 45%, transparent); }

.chips-label { margin-top: 14px; font-size: 13px; color: color-mix(in srgb, var(--text) 70%, transparent); }
.chips { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.fchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--outline);
  border-radius: 8px;
  background: none;
  color: var(--on-surface-variant);
  font-size: 14px;
  cursor: pointer;
}
.fchip.sel {
  background: var(--secondary-container);
  color: var(--on-secondary-container);
  border-color: transparent;
}
.fchip .msr { font-size: 18px; }

.consent { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; cursor: pointer; font-size: 14px; color: var(--text); }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--primary); flex: none; cursor: pointer; }
.consent a { color: var(--primary); text-decoration: underline; text-decoration-color: var(--primary); }

.fine-print { font-size: 11.5px; color: color-mix(in srgb, var(--text) 55%, transparent); }
.fine-print a { color: inherit; text-decoration: underline; }

.submit-btn {
  width: 100%;
  margin-top: 20px;
  padding: 18px;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.submit-btn:hover:not(:disabled) { box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0.08); }
.submit-btn:disabled { opacity: 0.6; cursor: default; }
.spinner {
  width: 22px; height: 22px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.honeypot { position: absolute; width: 0; height: 0; overflow: hidden; opacity: 0; pointer-events: none; }

/* Success view */
.success .check { color: var(--green-ink); }
.success .check .msr { font-size: 56px; }
.success h1 { margin: 16px 0 0; font-size: 30px; font-weight: 800; color: var(--text); }
.success p { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: color-mix(in srgb, var(--text) 75%, transparent); }
.success .actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn-filled {
  display: inline-flex; align-items: center; gap: 8px;
  border: none;
  padding: 10px 24px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}
.btn-filled:hover { box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0.08); }
.btn-outlined {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px;
  border: 1px solid var(--outline);
  border-radius: 999px;
  background: none;
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.btn-outlined .msr { font-size: 18px; }
.btn-outlined:hover { background: rgba(0, 122, 255, 0.06); }

/* Snackbar */
.snackbar {
  position: fixed;
  left: 50%; bottom: 24px;
  transform: translateX(-50%);
  background: #322F35;
  color: #F5EFF7;
  padding: 14px 16px;
  border-radius: 4px;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  z-index: 100;
  max-width: min(560px, calc(100vw - 32px));
}

/* reCAPTCHA v3 badge hidden — permitted because the apply form shows the
   "protected by reCAPTCHA" attribution text instead (Google FAQ). */
.grecaptcha-badge { visibility: hidden; }

/* ── Flutter definition tooltip (def-box.js / FlutterTermText twin) ─── */

.def-flutter {
  text-decoration: underline dotted;
  text-decoration-color: color-mix(in srgb, currentColor 70%, transparent);
  text-underline-offset: 2px;
  cursor: help;
}
#def-box {
  position: fixed;
  z-index: 999;
  max-width: 320px;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text);
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms ease;
}
#def-box.show { opacity: 1; }
#def-box b { color: var(--primary); font-weight: 700; }
