/* Rafter marketing site */

:root {
  --bg: #0C1116;
  --bg-2: #0F151B;
  --surface: #1A222C;
  --surface-2: #243040;
  --field: #141B23;
  --text: #F2F5F8;
  --text-2: #C3CCD6;
  --muted: #8A97A6;
  --dim: #5C6878;
  --line: #2E3A47;
  --orange: #F97316;
  --orange-2: #FB923C;
  --orange-soft: rgba(249, 115, 22, 0.14);
  --amber: #EAB308;
  --green: #22C55E;
  --tape: #F2C230;
  --shell: 1160px;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
body {
  overflow-x: hidden;
  /* blueprint grid */
  background-image:
    linear-gradient(rgba(138, 151, 166, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 151, 166, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-2); }
::selection { background: var(--orange); color: var(--bg); }
img, video { max-width: 100%; }

h1, h2, h3 { font-family: var(--cond); font-weight: 800; letter-spacing: -0.005em; margin: 0; line-height: 0.98; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--orange); }

.shell { max-width: var(--shell); margin: 0 auto; }
.mono { font-family: var(--mono); font-weight: 500; }

.eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

.badge { display: inline-block; line-height: 0; transition: transform .2s ease; }
.badge:hover { transform: translateY(-2px); }
.badge img { width: 150px; height: auto; }

.approx { color: var(--amber); font-family: var(--mono); font-weight: 700; }
.approx--inline { padding: 0 2px; }

/* ---------- nav ---------- */

.nav {
  position: relative;
  z-index: 2;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav__icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 8px 22px -8px rgba(249, 115, 22, 0.45);
}
.nav__word { font-family: var(--cond); font-weight: 800; font-size: 30px; letter-spacing: 0.08em; }
.nav__spacer { flex: 1; }
.nav__links { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 600; }
.nav__links a { color: var(--muted); }
.nav__links a:hover { color: var(--text); }
.nav__cta {
  background: var(--orange);
  color: var(--bg) !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 10px 26px -10px rgba(249, 115, 22, 0.8);
}
.nav__cta:hover { background: var(--orange-2); }
.nav__cta-short { display: none; }

/* ---------- hero ---------- */

.hero-wrap {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 620px at 82% 22%, rgba(249, 115, 22, 0.16), transparent 70%),
    radial-gradient(700px 500px at 0% 100%, rgba(36, 48, 64, 0.7), transparent 70%);
}
.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
  padding: 40px 32px 96px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(26, 34, 44, 0.8);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 28px;
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.hero h1 { font-size: clamp(64px, 8.6vw, 116px); margin-bottom: 26px; text-transform: uppercase; }
.hero h1 em { display: block; }
.hero__lede { font-size: 19px; line-height: 1.6; color: var(--text-2); max-width: 560px; margin: 0 0 34px; }
.hero__actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.price-note { font-size: 15px; color: var(--muted); max-width: 240px; line-height: 1.45; }
.price-note strong { color: var(--text); }

/* ---------- devices ---------- */

.device-wrap { position: relative; display: flex; justify-content: center; }
.device {
  position: relative;
  padding: 11px;
  background: #05080B;
  border-radius: 54px;
  box-shadow:
    inset 0 0 0 2px #3A4655,
    0 40px 90px -30px rgba(0, 0, 0, 0.9),
    0 0 120px -40px rgba(249, 115, 22, 0.35);
}
.device img { display: block; width: 100%; height: auto; border-radius: 44px; background: var(--bg); }
.device--lg { width: min(360px, 82vw); }
.device--md { width: min(320px, 78vw); }
.device--sm { width: min(250px, 70vw); border-radius: 44px; padding: 9px; }
.device--sm img { border-radius: 36px; }

.callout {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  font-size: 14px;
  color: var(--muted);
  box-shadow: 0 20px 44px -16px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
}
.callout b { display: block; color: var(--text); font-size: 15px; }
.callout--work { top: 18%; right: -36px; flex-direction: column; align-items: flex-start; gap: 4px; }
.callout--work .mono { font-size: 14px; }
.callout--work .mono--hero { font-size: 22px; font-weight: 700; color: var(--orange); }
.callout--approx { bottom: 15%; left: -40px; }
.callout--approx .approx { font-size: 30px; line-height: 1; }

/* ---------- watch ---------- */

.watch { padding: 96px 32px 40px; }
.watch__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 32px; }
.watch__head h2 { font-size: clamp(40px, 5vw, 64px); max-width: 680px; }
.watch__head p { color: var(--muted); font-size: 17px; line-height: 1.55; max-width: 360px; margin: 0; }
.player {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: var(--bg-2);
  aspect-ratio: 16 / 9;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--line);
}
.player video { display: block; width: 100%; height: 100%; object-fit: cover; }
.player__unmute {
  position: absolute;
  right: 20px; bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 22px 10px 10px;
  background: rgba(26, 34, 44, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font: 700 16px var(--sans);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.8);
  transition: transform .2s ease;
}
.player__unmute:hover { transform: scale(1.04); }
.player__unmute small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0.1em; margin-top: 2px; }
.player__btn { width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: var(--bg); display: grid; place-items: center; }
.player__btn svg { width: 22px; height: 22px; fill: var(--bg); }
.player.is-unmuted .player__unmute { display: none; }

/* ---------- strip ---------- */

.strip { padding: 48px 32px; }
.strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border-radius: 24px;
  box-shadow: 0 0 0 1px var(--line);
}
.strip__item { padding: 30px 28px; border-left: 1px solid var(--line); }
.strip__item:first-child { border-left: 0; }
.strip__stat { font-family: var(--cond); font-size: 46px; font-weight: 800; color: var(--orange); line-height: 1; }
.strip__label { margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--muted); }

/* ---------- features ---------- */

.features { padding: 80px 32px 40px; }
.section-head { max-width: 800px; margin: 0 auto 72px; text-align: center; }
.section-head h2 { font-size: clamp(42px, 5.6vw, 72px); margin-bottom: 22px; }
.section-head p { font-size: 18px; line-height: 1.65; color: var(--text-2); margin: 0; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding: 56px 0;
}
.split--flip .device-wrap { order: 2; }
.split__body h3 { font-size: clamp(38px, 4.4vw, 56px); margin-bottom: 22px; }
.split__body p { font-size: 17px; line-height: 1.7; color: var(--text-2); margin: 0 0 16px; max-width: 480px; }
.split__body strong { color: var(--text); }
.split__body .mono { color: var(--text); font-size: 0.94em; }

/* tape measure blade */
.tape { position: relative; margin-top: 30px; max-width: 460px; height: 64px; }
.tape__blade {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background-color: var(--tape);
  background-image:
    repeating-linear-gradient(90deg, #1a1a1a 0 2px, transparent 2px 57.5px),
    repeating-linear-gradient(90deg, #1a1a1a 0 1.5px, transparent 1.5px 28.75px),
    repeating-linear-gradient(90deg, #1a1a1a 0 1px, transparent 1px 14.375px),
    repeating-linear-gradient(90deg, #1a1a1a 0 1px, transparent 1px 7.1875px),
    repeating-linear-gradient(90deg, #1a1a1a 0 1px, transparent 1px 3.59375px);
  background-size: 100% 46%, 100% 34%, 100% 26%, 100% 19%, 100% 13%;
  background-repeat: no-repeat;
  box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.9);
}
.tape__mark {
  position: absolute;
  top: -10px; bottom: -10px;
  left: 61%;
  width: 4px;
  background: var(--orange);
  border-radius: 2px;
}
.tape__mark span {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 8px);
  padding: 6px 12px;
  background: var(--orange);
  color: var(--bg);
  border-radius: 8px;
  font: 700 15px var(--mono);
  white-space: nowrap;
}
.js .reveal .tape__mark { left: 2%; transition: left 1.4s cubic-bezier(.3, .7, .2, 1) .5s; }
.js .reveal.is-in .tape__mark { left: 61%; }

.specs, .badges-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.specs span {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
  color: var(--muted);
}
.specs b { color: var(--orange); font-size: 15px; }
.pass {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px 9px 10px;
  background: rgba(34, 197, 94, 0.13);
  border-radius: 999px;
  font: 700 14px var(--mono);
  color: var(--text);
}
.pass::before {
  content: "";
  width: 20px; height: 20px; flex: none;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230C1116' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* square & lumber */
.duo {
  margin: 56px 0;
  padding: 56px;
  background: var(--surface);
  border-radius: 32px;
  box-shadow: 0 0 0 1px var(--line);
}
.duo__head { max-width: 640px; margin-bottom: 44px; }
.duo__head h3 { font-size: clamp(38px, 4.4vw, 56px); margin-bottom: 18px; }
.duo__head p { font-size: 17px; line-height: 1.7; color: var(--text-2); margin: 0; }
.duo__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.duo__card { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.duo__card figcaption { font-size: 16px; line-height: 1.65; color: var(--text-2); }
.duo__card figcaption b { display: block; font-family: var(--cond); font-size: 30px; font-weight: 800; color: var(--text); margin-bottom: 8px; }

/* ---------- offline ---------- */

.offline { padding: 80px 32px; }
.offline__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
  padding: 64px;
  background:
    radial-gradient(640px 420px at 100% 0%, rgba(249, 115, 22, 0.28), transparent 70%),
    linear-gradient(160deg, #1A222C, #121921);
  border: 1px solid var(--line);
  border-radius: 32px;
}
.offline__inner > * { min-width: 0; }
.offline__inner h3 { font-size: clamp(38px, 4.4vw, 56px); margin-bottom: 20px; }
.offline__inner p { font-size: 17px; line-height: 1.7; color: var(--text-2); margin: 0; }
.offline__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
.offline__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
}
.offline__item::before {
  content: "";
  width: 18px; height: 18px; flex: none;
  border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230C1116' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.siri { text-align: center; }
.siri__q {
  display: inline-block;
  padding: 14px 20px;
  background: var(--surface-2);
  border-radius: 20px 20px 6px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.siri__params { display: flex; justify-content: center; gap: 8px; margin-top: 10px; font: 500 13px var(--mono); color: var(--muted); }
.siri__params span { padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; }
.siri__params b { color: var(--text); }
.siri__a {
  margin-top: 16px;
  padding: 18px 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  text-align: left;
  transform: rotate(-1.5deg);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.8);
}
.siri__a b { display: block; font: 700 16px var(--mono); color: var(--orange); white-space: nowrap; }
.siri__a span { font: 500 14px var(--mono); color: var(--muted); }
.siri p { margin-top: 24px; font-size: 15px; color: var(--muted); max-width: 300px; margin-left: auto; margin-right: auto; }

/* ---------- pricing ---------- */

.pricing { padding: 64px 32px 40px; }
.pricing__head { text-align: center; margin-bottom: 48px; }
.pricing__head h2 { font-size: clamp(46px, 6vw, 80px); margin-bottom: 16px; text-transform: uppercase; }
.pricing__head p { font-size: 18px; color: var(--muted); margin: 0; }
.pricing__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; align-items: stretch; }
.plan {
  display: flex;
  flex-direction: column;
  padding: 40px;
  background: var(--surface);
  border-radius: 28px;
  box-shadow: 0 0 0 2px var(--orange), 0 40px 90px -40px rgba(249, 115, 22, 0.5);
}
.plan__head { display: flex; align-items: center; gap: 14px; }
.plan__head img { width: 52px; height: 52px; border-radius: 13px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1); }
.plan__name { font-weight: 700; font-size: 17px; }
.plan__price { font-family: var(--cond); font-weight: 800; font-size: 110px; margin-top: 24px; line-height: 0.9; color: var(--orange); }
.plan__once { font-family: var(--cond); font-weight: 700; font-size: 34px; color: var(--text); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.06em; }
.plan__body { font-size: 16px; line-height: 1.65; color: var(--text-2); margin-top: 22px; }
.plan__foot { margin-top: auto; padding-top: 28px; }
.compare { padding: 36px 40px; background: var(--bg-2); border-radius: 28px; box-shadow: 0 0 0 1px var(--line); }
.compare__eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.compare__row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.compare__row:last-child { border-bottom: 0; }
.compare__label { font-weight: 700; font-size: 17px; }
.compare__sub { font-size: 14px; line-height: 1.45; color: var(--muted); margin-top: 4px; }
.compare__price { font: 700 18px var(--mono); color: var(--text-2); white-space: nowrap; }
.compare__row--us { margin: 8px -16px 0; padding: 20px 16px; background: var(--orange-soft); border-radius: 16px; border-bottom: 0; }
.compare__row--us .compare__price { color: var(--orange); }

/* ---------- faq ---------- */

.faq { max-width: 820px; margin: 0 auto; padding: 88px 32px 40px; }
.faq h2 { font-size: clamp(40px, 5vw, 60px); text-align: center; margin-bottom: 44px; }
.faq__list { display: grid; gap: 14px; }
.faq__item { padding: 26px 30px; background: var(--surface); border-radius: 22px; box-shadow: 0 0 0 1px var(--line); }
.faq__q { font-weight: 700; font-size: 18px; margin-bottom: 10px; }
.faq__a { font-size: 16px; line-height: 1.7; color: var(--text-2); }

/* ---------- closer ---------- */

.closer { padding: 72px 32px 96px; }
.closer__inner {
  text-align: center;
  padding: 72px 32px;
  border-radius: 36px;
  background:
    radial-gradient(700px 400px at 50% 0%, rgba(249, 115, 22, 0.35), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
}
.closer__icon { width: 104px; height: 104px; border-radius: 24px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 24px 50px -18px rgba(249, 115, 22, 0.6); }
.closer h2 { font-size: clamp(48px, 6.4vw, 84px); margin: 28px auto 16px; max-width: 760px; text-transform: uppercase; }
.closer p { font-size: 18px; color: var(--text-2); margin: 0 0 32px; }
.closer__actions { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.closer__price { font-weight: 800; color: var(--text); }

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--line); padding: 32px; background: var(--bg); }
.footer__inner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer__icon { width: 32px; height: 32px; border-radius: 8px; }
.footer__name { font-weight: 700; font-size: 15px; }
.footer__links { display: flex; gap: 18px; margin-left: 14px; font-size: 14px; font-weight: 600; }
.footer__links a { color: var(--muted); }
.footer__links a:hover { color: var(--text); }
.footer__spacer { flex: 1; }
.footer__fine { font-size: 13px; color: var(--muted); }

/* ---------- reveal ---------- */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .reveal .tape__mark { left: 61%; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding: 24px 24px 72px; gap: 56px; }
  .hero__copy { text-align: center; }
  .hero__lede { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero h1 em { display: inline; }
  .callout--work { right: 0; }
  .callout--approx { left: 0; }
  .watch__head { flex-direction: column; align-items: flex-start; }
  .strip__grid { grid-template-columns: 1fr 1fr; }
  .strip__item:nth-child(3) { border-left: 0; }
  .strip__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .split { grid-template-columns: 1fr; gap: 40px; padding: 40px 0; }
  .split--flip .device-wrap { order: 0; }
  .duo { padding: 40px 32px; }
  .duo__grid { grid-template-columns: 1fr; gap: 36px; }
  .offline__inner { grid-template-columns: 1fr; padding: 48px 32px; }
  .pricing__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav { padding: 16px; }
  .nav__links a:not(.nav__cta) { display: none; }
  .nav__cta-long { display: none; }
  .nav__cta-short { display: inline; }
  .hero { padding: 16px 16px 64px; }
  .pill { font-size: 12px; padding: 7px 12px; }
  .hero__lede { font-size: 17px; }
  .callout { font-size: 12px; padding: 9px 12px; gap: 9px; border-radius: 14px; }
  .callout b { font-size: 13px; }
  .callout--work { top: 10%; right: -4px; }
  .callout--work .mono { font-size: 11px; }
  .callout--work .mono--hero { font-size: 17px; }
  .callout--approx { left: -4px; bottom: 10%; }
  .watch, .strip, .features, .offline, .pricing, .closer { padding-left: 16px; padding-right: 16px; }
  .watch { padding-top: 64px; }
  .player { border-radius: 18px; }
  .player__unmute { right: 10px; bottom: 10px; font-size: 13px; padding: 6px 14px 6px 6px; gap: 10px; }
  .player__unmute small { display: none; }
  .player__btn { width: 34px; height: 34px; }
  .player__btn svg { width: 18px; height: 18px; }
  .siri__a b { white-space: normal; }
  .strip__item { padding: 22px 18px; }
  .strip__stat { font-size: 36px; }
  .section-head { margin-bottom: 40px; }
  .duo { padding: 32px 20px; margin: 40px 0; }
  .duo__card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .offline__inner { padding: 36px 22px; }
  .offline__grid { grid-template-columns: 1fr; }
  .plan, .compare { padding: 28px 22px; }
  .plan__price { font-size: 84px; }
  .compare__row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .compare__row--us { margin: 8px -10px 0; padding: 16px 10px; }
  .faq { padding: 64px 16px 32px; }
  .faq__item { padding: 22px 20px; }
  .closer__inner { padding: 52px 20px; border-radius: 28px; }
  .footer { padding: 28px 16px; }
  .footer__links { margin-left: 0; }
}
