/* 3flo homepage. Concept: the wheel is the product, so the page is built around real wheels you can spin. */
:root {
  --night: #071426;
  --deep: #0d2240;
  --line: #1f3a5f;
  --sky: #6ec6ff;
  --free: #ffd21f;
  --hot: #e8262d;
  --chalk: #eef4fb;
  --white: #ffffff;
  --ink: #0a1a2f;
  --mute: #9db3cc;
  --mute-dark: #4a5f78;
  --display: "Archivo", "Arial Black", sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(72px, 10vw, 148px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--white);
  font: 400 clamp(16px, 1.15vw, 18px)/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 72px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

html.js .pre { visibility: hidden; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 60;
  padding: 10px 14px; background: var(--free); color: var(--ink); font-weight: 700; border-radius: 8px;
}
.skip:focus { top: 12px; }

/* The tyre-lettering voice: wide, heavy, slanted, set in capitals. */
.display {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 125%;
  font-style: italic;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: -0.02em;
}
h2.display { font-size: clamp(34px, 5.4vw, 84px); }
.lede { font-size: clamp(17px, 1.5vw, 22px); line-height: 1.45; max-width: 34em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 14px 28px;
  border: 0; border-radius: 10px; cursor: pointer;
  font: italic 800 18px/1.1 var(--display); font-stretch: 112%;
  text-transform: uppercase; text-decoration: none; letter-spacing: 0;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s;
}
.btn-free { background: var(--free); color: var(--ink); box-shadow: 0 5px 0 #b48f00; }
.btn-free:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #b48f00; }
.btn-free:active { transform: translateY(4px); box-shadow: 0 1px 0 #b48f00; }
.btn-dark { background: var(--ink); color: var(--white); box-shadow: 0 5px 0 #000; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #000; }
.btn-dark:active { transform: translateY(4px); box-shadow: 0 1px 0 #000; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--gutter);
  background: rgba(7, 20, 38, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav-logo img { width: 92px; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); font-weight: 600; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--mute); transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }
.nav .btn { min-height: 42px; padding: 9px 16px; font-size: 14px; color: var(--ink); box-shadow: 0 3px 0 #b48f00; }
.nav .btn:hover { color: var(--ink); }

/* Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 3vw, 48px);
  min-height: calc(100svh - 68px);
  padding: clamp(20px, 3vw, 40px) var(--gutter) clamp(28px, 4vw, 56px);
  overflow: hidden;
  background:
    radial-gradient(52vw 52vw at 78% 46%, rgba(110, 198, 255, 0.24), transparent 68%),
    var(--night);
}
.kicker { color: var(--sky); font-weight: 700; font-size: clamp(14px, 1.15vw, 17px); margin-bottom: 14px; }
.hero h1 { font-size: clamp(38px, 5.05vw, 96px); }
.hero h1 .line { display: block; }
.sticker {
  display: inline-block;
  padding: 0.03em 0.2em 0.05em 0.14em;
  background: var(--free);
  color: var(--ink);
  font-style: inherit;
  transform: rotate(-3deg);
  border-radius: 0.06em;
  box-shadow: 0.05em 0.06em 0 rgba(0, 0, 0, 0.5);
}
.hero .lede { margin-top: clamp(16px, 2vw, 26px); color: #d7e4f3; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: clamp(20px, 2.4vw, 32px); }
.cta-note { color: var(--mute); font-size: 15px; font-weight: 600; }

.hero-play { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.stage {
  position: relative;
  width: min(100%, calc(100svh - 322px), 720px);
  min-width: 280px;
  aspect-ratio: 1;
  margin-top: 16px;
}
.wheel { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 26px 40px rgba(0, 0, 0, 0.55)); will-change: transform; }
.pointer {
  position: absolute; left: 50%; top: -14px; z-index: 3;
  width: clamp(30px, 3.4vw, 46px); aspect-ratio: 0.8;
  transform: translateX(-50%); transform-origin: 50% 12%;
  background: var(--free);
  clip-path: polygon(0 0, 100% 0, 100% 42%, 50% 100%, 0 42%);
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.6));
}
.play-row { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; }
.chip {
  padding: 7px 12px; border-radius: 99px; border: 1.5px solid var(--line);
  background: transparent; color: var(--mute);
  font: 600 14px/1.2 var(--body); cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.chip:hover { color: var(--white); border-color: var(--sky); }
.chip[aria-pressed="true"] { background: var(--sky); border-color: var(--sky); color: var(--ink); }
.spin-btn { min-height: 50px; padding: 12px 30px; background: var(--sky); color: var(--ink); box-shadow: 0 5px 0 #2d7fb8; }
.spin-btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #2d7fb8; }
.spin-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #2d7fb8; }
.spin-btn[disabled] { opacity: 0.6; cursor: wait; }
.result { min-height: 3em; margin-top: 8px; text-align: center; color: var(--mute); font-size: 15px; line-height: 1.35; max-width: 30em; }
.result strong { display: block; color: var(--free); font: italic 900 22px/1.15 var(--display); font-stretch: 118%; text-transform: uppercase; }
.result a { color: var(--white); font-weight: 700; }

/* Results */
.results { background: var(--chalk); color: var(--ink); padding: var(--section) var(--gutter); }
.results h2 { max-width: 13em; }
.case-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(14px, 2vw, 26px); margin-top: clamp(28px, 4vw, 56px); }
.case { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; border-radius: 16px; overflow: hidden; background: var(--night); color: var(--white); isolation: isolate; }
.case img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.case::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(4, 12, 24, 0.94) 8%, rgba(4, 12, 24, 0.3) 62%, transparent); }
.case-big { grid-row: span 2; min-height: clamp(420px, 44vw, 640px); }
.case-body { padding: clamp(18px, 2.2vw, 30px); }
.case-who { font-weight: 700; color: var(--sky); font-size: 15px; }
.stat { font-size: clamp(52px, 7vw, 112px); color: var(--free); }
.case:not(.case-big) .stat { font-size: clamp(46px, 5vw, 76px); }
.case-line { font-weight: 600; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.3; max-width: 22em; }
.small-print { margin-top: 16px; font-size: 14px; color: var(--mute-dark); }

/* Wheel wall */
.wall { overflow: hidden; padding: var(--section) 0; background: var(--night); }
.wall-head { padding: 0 var(--gutter); }
.wall-head .lede { margin-top: 14px; color: #d7e4f3; }
.wall-track {
  display: flex; gap: clamp(14px, 1.8vw, 24px);
  width: max-content;
  padding: clamp(28px, 4vw, 52px) var(--gutter) 0;
}
.tile {
  position: relative; flex: none;
  width: clamp(270px, 29vw, 430px);
  padding: 22px 22px 18px;
  border-radius: 16px;
  background: var(--tile, var(--deep));
}
.tile img { width: 100%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.45)); transition: transform 0.9s var(--ease); }
.tile:hover img { transform: rotate(45deg); }
.tile.flat:hover img { transform: scale(1.03); }
.tile h3 { margin-top: 14px; font: italic 900 clamp(18px, 1.7vw, 24px)/1.1 var(--display); font-stretch: 118%; text-transform: uppercase; }
.tile p { color: rgba(255, 255, 255, 0.8); font-size: 15px; }

/* A-frames */
.street { position: relative; padding: var(--section) var(--gutter); background: var(--deep); overflow: hidden; }
.street-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.street .lede { margin-top: 16px; color: #d7e4f3; }
.fan { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.4vw, 18px); align-items: start; }
.fan figure { position: relative; }
.fan figure:nth-child(2) { margin-top: clamp(24px, 5vw, 76px); }
.fan img { width: 100%; border-radius: 12px; box-shadow: 0 22px 44px rgba(0, 0, 0, 0.45); }
.fan figcaption { margin-top: 8px; font-size: 14px; color: var(--mute); }

/* Story */
.story { background: var(--chalk); color: var(--ink); padding: var(--section) var(--gutter); }
.story-head { max-width: 15em; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); margin-top: clamp(20px, 3vw, 40px); }
.phone-col { position: relative; }
.phone {
  position: sticky; top: calc(50vh - min(310px, 42vh));
  width: min(300px, 100%, 36vh);
  aspect-ratio: 9 / 18.6;
  margin: 0 auto;
  padding: 10px;
  border-radius: 40px;
  background: #0b0f16;
  box-shadow: 0 30px 60px rgba(7, 20, 38, 0.35);
}
.screen { position: relative; width: 100%; height: 100%; border-radius: 31px; overflow: hidden; background: var(--night); color: var(--white); }
.state { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 18px; text-align: center; opacity: 0; transition: opacity 0.4s; }
.phone[data-step="1"] .state[data-s="1"],
.phone[data-step="2"] .state[data-s="2"],
.phone[data-step="3"] .state[data-s="3"],
.phone[data-step="4"] .state[data-s="4"] { opacity: 1; }
.state-scan { background: 20% 50% / cover no-repeat url("assets/home/af-tradie.webp"); }
.brackets { position: absolute; left: 20%; top: 73.5%; width: 30%; aspect-ratio: 1; border-radius: 10px; box-shadow: 0 0 0 3px var(--free), 0 0 0 999px rgba(5, 12, 22, 0.28); }
.scan-label { position: absolute; z-index: 1; top: 26px; left: 0; right: 0; font-weight: 700; font-size: 15px; }
.state-spin { background: #101a2b; }
.state-spin img { width: 92%; }
.phone[data-step="2"] .state-spin img { animation: phone-spin 3.2s var(--ease) both; }
@keyframes phone-spin { from { transform: rotate(-1040deg); } to { transform: rotate(-45deg); } }
.state-title { font: italic 900 22px/1.1 var(--display); font-stretch: 118%; text-transform: uppercase; }
.state-note { font-size: 14px; color: var(--mute); }
.pass { width: 100%; padding: 14px; border-radius: 14px; background: var(--free); color: var(--ink); text-align: left; }
.pass small { display: block; font-size: 12px; font-weight: 700; }
.pass b { display: block; margin: 12px 0 20px; font: italic 900 24px/1.05 var(--display); font-stretch: 118%; text-transform: uppercase; }
.bars { height: 54px; border: 8px solid #fff; border-radius: 4px; background: repeating-linear-gradient(90deg, var(--ink) 0 3px, #fff 3px 5px, var(--ink) 5px 6px, #fff 6px 10px); }
.state-lock { justify-content: flex-start; padding-top: 40px; background: linear-gradient(170deg, #17365f, #071426); }
.clock { font: 300 54px/1 var(--body); }
.day { font-size: 14px; color: var(--mute); margin-bottom: 26px; }
.note { width: 100%; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.92); color: var(--ink); font-size: 14px; line-height: 1.3; text-align: left; }
.note b { display: block; font-size: 13px; }
.steps { display: flex; flex-direction: column; }
.step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; }
.step-no { color: var(--mute-dark); font-weight: 700; font-size: 15px; }
.step h3 { margin: 4px 0 8px; font-size: clamp(28px, 3.4vw, 50px); }
.step p:last-child { max-width: 28em; font-size: clamp(17px, 1.4vw, 20px); }

/* Clean line */
.clean { padding: clamp(56px, 7vw, 100px) var(--gutter); background: var(--night); text-align: center; }
.clean h2 { font-size: clamp(30px, 5vw, 76px); }
.clean h2 span { color: var(--sky); }
.clean p { margin: 16px auto 0; max-width: 38em; color: #d7e4f3; }

/* Offer */
.offer { padding: var(--section) var(--gutter); background: var(--free); color: var(--ink); }
.offer-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 5vw, 72px); align-items: end; }
.offer .lede { margin-top: 18px; }
.ticks li { position: relative; padding: 11px 0 11px 34px; border-top: 2px solid rgba(10, 26, 47, 0.2); font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 16px; height: 9px; border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(-45deg); }
.offer .btn { margin-top: 24px; }

/* Form */
.claim { position: relative; padding: var(--section) var(--gutter); background: var(--night); overflow: hidden; }
.claim-wheel { position: absolute; left: -16vw; top: 50%; width: min(66vw, 860px); margin-top: calc(min(66vw, 860px) / -2); opacity: 0.9; pointer-events: none; }
.claim-card { position: relative; width: min(100%, 560px); margin-left: auto; padding: clamp(22px, 3vw, 40px); border-radius: 18px; background: var(--white); color: var(--ink); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5); }
.claim-card h2 { font-size: clamp(32px, 3.8vw, 54px); }
.form-sub { margin-top: 10px; color: var(--mute-dark); }
.field { display: block; margin-top: 14px; }
.field span { display: block; margin-bottom: 4px; font-weight: 700; font-size: 15px; }
.field input { width: 100%; min-height: 52px; padding: 12px 14px; border: 2px solid #c6d3e3; border-radius: 10px; background: #fff; color: var(--ink); font: 500 17px/1.2 var(--body); transition: border-color 0.2s; }
.field input:focus { outline: none; border-color: #1b82cc; box-shadow: 0 0 0 3px rgba(110, 198, 255, 0.45); }
.field input[aria-invalid="true"] { border-color: var(--hot); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.claim form .btn { width: 100%; margin-top: 20px; }
.consent { margin-top: 12px; font-size: 13px; line-height: 1.4; color: var(--mute-dark); }
.form-error { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: #fde8e8; color: #9a1218; font-weight: 600; font-size: 15px; }
.hp { position: absolute; left: -9999px; }
.done p { margin-top: 10px; }

/* FAQ */
.faq { padding: var(--section) var(--gutter); background: var(--chalk); color: var(--ink); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(20px, 4vw, 64px); }
.faq h2.display { font-size: clamp(32px, 3.7vw, 58px); }
.faq details { border-top: 2px solid #c6d3e3; }
.faq details:last-child { border-bottom: 2px solid #c6d3e3; }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: clamp(17px, 1.4vw, 20px); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 800 24px/1 var(--display); color: #1b82cc; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 18px; max-width: 40em; }

/* Footer */
.foot { padding: 48px var(--gutter) 96px; background: var(--night); color: var(--mute); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.foot img { width: 92px; margin-bottom: 12px; }
.foot h3 { margin-bottom: 8px; color: var(--white); font-size: 15px; }
.foot li { margin-bottom: 6px; }
.foot a { color: var(--mute); text-decoration: none; }
.foot a:hover { color: var(--white); text-decoration: underline; }

/* Phone sticky CTA */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: none; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(7, 20, 38, 0.94);
  transform: translateY(110%); transition: transform 0.3s var(--ease);
}
.sticky-cta.on { transform: none; }
.sticky-cta .btn { width: 100%; }

@media (max-width: 980px) {
  .nav-links a:not(.btn) { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; background: radial-gradient(120vw 90vw at 50% 76%, rgba(110, 198, 255, 0.22), transparent 70%), var(--night); }
  .stage { width: min(88vw, 56svh, 560px); min-width: 0; margin-top: 22px; }
  .case-grid { grid-template-columns: 1fr; }
  .case-big { grid-row: auto; min-height: 400px; }
  .wall-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-padding-left: var(--gutter); }
  .wall-track::-webkit-scrollbar { display: none; }
  .tile { width: min(78vw, 340px); scroll-snap-align: start; }
  .street-grid, .offer-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .fan { display: flex; overflow-x: auto; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); scroll-snap-type: x mandatory; scrollbar-width: none; }
  .fan::-webkit-scrollbar { display: none; }
  .fan figure { flex: none; width: min(68vw, 300px); scroll-snap-align: start; }
  .fan figure:nth-child(2) { margin-top: 0; }
  .story-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .phone-col { position: sticky; top: 66px; z-index: 2; padding: 8px 0 12px; background: var(--chalk); }
  .phone { position: static; width: auto; height: 300px; aspect-ratio: 9 / 18.6; padding: 6px; border-radius: 26px; }
  .screen { border-radius: 21px; }
  .state { gap: 6px; padding: 10px; }
  .state-title { font-size: 14px; }
  .state-note, .note, .day, .scan-label { font-size: 11px; }
  .scan-label { top: 14px; }
  .clock { font-size: 32px; }
  .state-lock { padding-top: 22px; }
  .day { margin-bottom: 10px; }
  .pass { padding: 8px; }
  .pass small { font-size: 9px; }
  .pass b { font-size: 14px; margin: 6px 0 8px; }
  .bars { height: 30px; border-width: 4px; }
  .step { min-height: 46svh; padding: 16px 0; }
  .claim { padding-top: 44vw; }
  .claim-wheel { left: 50%; top: -18vw; width: 92vw; margin: 0 0 0 -46vw; }
  .claim-card { margin: 0 auto; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .sticky-cta { display: block; }
}
@media (max-width: 420px) {
  .two { grid-template-columns: minmax(0, 1fr); }
  .nav .btn { font-size: 13px; padding: 9px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .tile img, .state, .sticky-cta { transition: none; }
  .tile:hover img { transform: none; }
  .phone[data-step="2"] .state-spin img { animation: none; transform: rotate(-45deg); }
}
