/* ==========================================================
   Fentnn: single-page site
   Palette placeholders: swap --purple values to match the deck.
   ========================================================== */

:root {
  /* Brand colours from Fentnn Sales Deck V1 */
  --black: #111111;
  --white: #ffffff;
  --purple: #622aec;
  --purple-deep: #4c1bc9;
  --purple-soft: #b9a0ff;   /* purple text on black */
  --panel: #f4f4f2;         /* light panel on white */
  --line: #e3e3df;
  --text-mute: #5c5c5c;     /* body grey on white */
  --text-mute-dark: #a3a39e;/* body grey on black */
  --screen: #1c1b20;        /* hero video mockup */

  --display: "Rubik", system-ui, sans-serif;
  --body: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(4.5rem, 10vw, 8rem);
  --radius: 14px;
}

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--white);
  color: var(--black);
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: .85rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-small { min-height: 42px; padding: .6rem 1.15rem; font-size: .9375rem; }

.btn-purple { background: var(--purple); color: var(--white); }
.btn-purple:hover { background: var(--purple-deep); }

.btn-outline-light { border-color: rgba(255,255,255,.4); color: var(--white); }
.btn-outline-light:hover { border-color: var(--white); }

.btn-black { background: var(--black); color: var(--white); }
.btn-black:hover { background: var(--purple); }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Logo ---------- */

.logo { display: inline-block; line-height: 0; }
.logo img { display: block; width: auto; height: 26px; }
.footer-brand .logo img { height: 34px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0,0,0,.88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-links { display: flex; gap: 1.75rem; }
.nav-links a,
.nav-login {
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-mute-dark);
  transition: color .2s;
}
.nav-links a:hover,
.nav-login:hover { color: var(--white); }
.nav-actions { display: flex; align-items: center; gap: 1.25rem; }

.nav-toggle {
  display: none;
  min-height: 42px;
  padding: .5rem 1rem;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font: 600 .9375rem/1 var(--body);
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    padding: 1.5rem var(--gutter) 2rem;
    background: var(--black);
    border-bottom: 1px solid rgba(255,255,255,.1);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a {
    display: block;
    padding: .85rem 0;
    font-size: 1.125rem;
    color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .nav-actions { justify-content: space-between; }
}

/* ---------- Hero ---------- */

.hero {
  background: var(--black);
  color: var(--white);
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}
.hero-title {
  max-width: 13em;
  font-size: clamp(2.6rem, 6.6vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
}
.hero-copy { max-width: 34rem; }
.hero-copy p { color: var(--text-mute-dark); }
.hero-copy .lede {
  color: var(--white);
  font-size: 1.25rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}
.hero-copy .actions { margin-top: 2rem; }
.hero-note {
  margin-top: 1.5rem;
  font-size: .9375rem;
  color: var(--purple-soft) !important;
}

/* Hero visual: one long video cut into many vertical clips */
.hero-visual { position: relative; padding-bottom: 4%; }

.source {
  width: 82%;
  margin-inline: auto;
  padding: 10px 10px 14px;
  background: var(--screen);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
}
.source-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 80% 10%, rgba(98,42,236,.4), transparent 60%),
    linear-gradient(160deg, #2a2830, #141317);
}
.source-screen video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.source-track {
  position: relative;
  height: 6px;
  margin-top: 12px;
  border-radius: 3px;
  background: #2f2c38;
}
.seg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--l);
  width: var(--w);
  border-radius: 3px;
  background: var(--purple);
}

/* Three upright phones (from the light design), sitting under the source screen */
.phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(.6rem, 2vw, 1.25rem);
  margin-top: -7%;
}
.phone {
  position: relative;
  width: min(29%, 190px);
  aspect-ratio: 9 / 19;
  padding: clamp(4px, .6vw, 6px);
  border-radius: clamp(18px, 2.8vw, 28px);
  background: #18171b;
  box-shadow:
    inset 0 0 0 1.5px #46444e,
    0 24px 48px -16px rgba(0,0,0,.75),
    0 12px 44px -18px rgba(98,42,236,.55);
}
/* dynamic island */
.phone::before {
  content: "";
  position: absolute;
  top: clamp(8px, 1.2vw, 13px);
  left: 50%;
  translate: -50% 0;
  z-index: 2;
  width: 30%;
  height: clamp(6px, 1vw, 10px);
  border-radius: 999px;
  background: #0a0a0c;
}
.screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: clamp(14px, 2.3vw, 23px);
  background: #0d0c11;
}
.screen video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cap {
  position: absolute;
  left: 50%;
  bottom: 22%;
  z-index: 1;
  translate: -50% 0;
  width: max-content;
  max-width: 82%;
  padding: .3em .6em;
  border-radius: 6px;
  background: var(--white);
  color: var(--black);
  font-size: clamp(.5625rem, .9vw, .8125rem);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.rail {
  --d: clamp(6px, .8vw, 9px);
  position: absolute;
  right: 7%;
  bottom: 24%;
  z-index: 1;
  width: var(--d);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  box-shadow:
    0 calc(var(--d) * -2) 0 rgba(255,255,255,.92),
    0 calc(var(--d) * -4) 0 rgba(255,255,255,.92);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.5));
}
.prog {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  height: 3px;
  width: 0;
  background: var(--white);
  transition: width .25s linear;
}

/* The one orchestrated moment: segments mark, then the phones rise */
@media (prefers-reduced-motion: no-preference) {
  .seg {
    transform-origin: left center;
    animation: seg-in .45s cubic-bezier(.2,.7,.2,1) both;
    animation-delay: calc(.35s + var(--i) * .12s);
  }
  .phone {
    animation: phone-up .9s cubic-bezier(.2,.8,.2,1) both;
    animation-delay: calc(1.05s + var(--i) * .12s);
  }
}
@keyframes seg-in {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}
@keyframes phone-up {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; width: 100%; margin-inline: auto; }
}
@media (max-width: 520px) {
  .cap { display: none; }
}

/* ---------- Sections (shared) ---------- */

.section { padding-block: var(--section-y); }

.section-head { max-width: 46rem; }
.section-head h2 {
  font-size: clamp(2rem, 4.4vw, 3.5rem);
}
.section-head p {
  margin-top: 1.25rem;
  font-size: 1.1875rem;
  color: var(--text-mute);
  max-width: 36rem;
}

/* ---------- How it works: steps on a video timeline ---------- */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 3.75rem;
}
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  top: 1.15rem;
  left: 0;
  height: 6px;
  border-radius: 3px;
}
.steps::before { right: 0; background: var(--line); }
.steps::after  { width: 72%; background: var(--purple); }

.step-num {
  position: absolute;
  top: 0;
  display: inline-grid;
  place-items: center;
  height: 2.6rem;
  min-width: 3.6rem;
  padding-inline: .8rem;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1rem;
  z-index: 1;
}
.step { position: relative; }
.step h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: .75rem;
}
.step p { color: var(--text-mute); max-width: 32ch; }

/* the steps grid positions its own numbers; nudge the pill to the top of the list */
.step .step-num { top: -3.75rem; }

.platform {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(3.5rem, 7vw, 5rem);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--panel);
  border-radius: var(--radius);
}
.platform h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.875rem);
  max-width: 24ch;
  margin-bottom: .75rem;
}
.platform p { color: var(--text-mute); max-width: 52ch; }
.platform .btn { flex-shrink: 0; }

@media (max-width: 820px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-top: 0;
    padding-left: 4.75rem;
  }
  .steps::before,
  .steps::after {
    top: 0;
    left: 1.55rem;
    width: 6px;
    height: auto;
  }
  .steps::before { bottom: 0; right: auto; }
  .steps::after  { bottom: 28%; }
  .step .step-num { top: 0; left: -4.75rem; }
  .platform { flex-direction: column; align-items: flex-start; }
}

/* ---------- Who it's for ---------- */

.who {
  background: var(--black);
  color: var(--white);
}
.audiences { margin-top: clamp(2.5rem, 6vw, 4rem); }
.audience {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1rem 3rem;
  align-items: center;
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
  border-top: 1px solid rgba(255,255,255,.16);
  scroll-margin-top: 90px;
}
.audience:last-child { border-bottom: 1px solid rgba(255,255,255,.16); }
.audience h3 {
  font-size: clamp(2.75rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: .95;
}
.audience:nth-child(2) h3 { color: var(--purple-soft); }
.audience p { color: var(--text-mute-dark); font-size: 1.125rem; max-width: 40ch; }

@media (max-width: 760px) {
  .audience { grid-template-columns: 1fr; }
  .audience h3 { font-size: clamp(2.75rem, 13vw, 4rem); }
}

/* ---------- Why Fentnn ---------- */

.reasons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.25rem, 5vw, 3.5rem) clamp(2rem, 6vw, 5rem);
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.reason {
  position: relative;
  padding-left: 2.25rem;
}
/* small clip-frame marker */
.reason::before {
  content: "";
  position: absolute;
  left: 0;
  top: .1rem;
  width: 14px;
  height: 24px;
  border: 3px solid var(--purple);
  border-radius: 4px;
}
.reason h3 {
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: .6rem;
}
.reason p { color: var(--text-mute); max-width: 44ch; }

@media (max-width: 720px) {
  .reasons { grid-template-columns: 1fr; }
}

/* ---------- The difference ---------- */

.difference {
  background: var(--purple);
  color: var(--white);
}
.difference-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem clamp(2.5rem, 6vw, 5rem);
  align-items: end;
}
.difference h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 800;
}
.difference-copy p + p { margin-top: 1rem; }
.difference-copy { font-size: 1.125rem; color: rgba(255,255,255,.88); }
.difference-close {
  margin-top: 1.75rem !important;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.35);
  color: var(--white);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.3;
}

@media (max-width: 860px) {
  .difference-grid { grid-template-columns: 1fr; }
}

/* ---------- CTA + contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact-intro h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
}
.contact-intro p {
  margin-top: 1.25rem;
  color: var(--text-mute);
  font-size: 1.1875rem;
  max-width: 34rem;
}
.contact-intro .contact-note {
  color: var(--purple);
  font-weight: 600;
  font-size: 1.0625rem;
}

.contact-form {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--panel);
  border-radius: var(--radius);
}
.field { display: grid; gap: .45rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label,
.field legend {
  padding: 0;
  font-weight: 600;
  font-size: .9375rem;
}
.optional { font-weight: 400; color: var(--text-mute); }
.field input,
.field textarea {
  width: 100%;
  padding: .8rem .95rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--black);
  font: inherit;
  transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(98,42,236,.2); }
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #c4122f; }

.choices { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .45rem; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: inline-block;
  padding: .55rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-weight: 500;
  font-size: .9375rem;
  transition: background-color .15s, color .15s, border-color .15s;
}
.choice input:checked + span { background: var(--black); border-color: var(--black); color: var(--white); }
.choice input:focus-visible + span { outline: 3px solid var(--purple); outline-offset: 2px; }

.contact-form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.form-status { font-size: .9375rem; min-height: 1.5em; }
.form-status.is-error { color: #c4122f; }
.form-status.is-success { color: var(--purple-deep); font-weight: 600; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--black);
  color: var(--white);
  padding-block: clamp(3rem, 7vw, 4.5rem) 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
}
.footer-brand p { margin-top: .75rem; color: var(--text-mute-dark); }
.footer-nav h2 {
  font-family: var(--body);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--text-mute-dark);
  margin-bottom: .9rem;
}
.footer-nav ul { display: grid; gap: .5rem; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--purple-soft); }
.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .875rem;
  color: var(--text-mute-dark);
}
.credit a { color: var(--white); text-decoration: none; }
.credit a:hover { color: var(--purple-soft); }
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ---------- Legal pages ---------- */

.page-hero {
  background: var(--black);
  color: var(--white);
  padding-block: clamp(3rem, 7vw, 5rem);
}
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  font-weight: 800;
}
.page-hero p { margin-top: 1rem; color: var(--text-mute-dark); }
.prose {
  max-width: 68ch;
  padding-block: clamp(3rem, 7vw, 5rem);
}
.prose h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 .75rem;
}
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: 1rem; }
.prose ul { list-style: disc; padding-left: 1.25rem; margin-top: .75rem; }
.placeholder-note {
  padding: 1rem 1.25rem;
  margin-bottom: 2.5rem;
  border-left: 4px solid var(--purple);
  background: var(--panel);
  border-radius: 0 10px 10px 0;
}
