/* Public home (CP-40, Figma "Website · myunilink.ai" V3: desktop 1454:1672 / phone 1455:5). Plain CSS, Inter, no framework. Tokens come from the frames. */
/* CP-55: the public site is light by design (cream, navy, orange): tell the browser, so form controls, scrollbars and forced dark modes do not half-invert it. */
:root { color-scheme: light; }
:root {
  --navy: #10284a;
  --orange: #f2780c;
  --orange-soft: #f1984d;
  --orange-deep: #d96305;
  --cream: #f6f5f2;
  --line: #e4e2dc;
  --muted: #5f6880;
  --eyebrow-ink: #9a4a06;   /* CP-58 / DL-208: eyebrows are orange-deep, never purple */
  --wrap: 1200px;
  --gutter: max(20px, calc((100vw - var(--wrap)) / 2));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--navy); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
p, h1, h2, h3 { margin: 0; }

/* header */
/* Header — Figma A47 Site header (1454:1673): padding 22/64, space-between, logo left + Nav (links+CTA) right. */
.site-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 22px 64px; background: #fff; }
.site-header__logo img { display: block; height: 22px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.site-nav a { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--navy); }
.site-nav a.is-current { font-weight: 600; color: var(--orange); }
.site-menu { display: none; }
.site-nav a.btn { color: #fff; font-weight: 600; }

/* buttons — desktop CTA matches frame ~39px content height; 44px tap target is phone-only (CP-55). */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 22px; border-radius: 10px; background: var(--orange); color: #fff; font: 600 16px/1 'Inter', sans-serif; text-decoration: none; border: 0; }
.btn--sm { padding: 11px 18px; border-radius: 12px; font-size: 14px; }
.btn--ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); padding: 12.5px 20.5px; }
.btn--block { width: 100%; }

/* type */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--orange); }
.eyebrow--sm { font-size: 12px; letter-spacing: 0.08em; }
.eyebrow--purple { color: var(--eyebrow-ink); }
.sec { padding: 96px var(--gutter); display: flex; flex-direction: column; align-items: center; gap: 40px; }
.sec--white { background: #fff; }
.sec--cream { background: var(--cream); }
.sec__head { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.sec__head h2 { font-size: 40px; line-height: 48px; font-weight: 700; max-width: 900px; }
.sec__head .sub, .sub { font-size: 19px; line-height: 30px; color: var(--muted); max-width: 760px; }

.sub--sm { font-size: 18px; line-height: 1.45; color: #546175; max-width: 720px; }
.sec--problem { padding-top: 96px; }

/* choose your path */
.paths { display: flex; gap: 24px; align-items: stretch; width: 100%; max-width: 1128px; }
.path { flex: 1 1 0; min-width: 0; background: #fff; border: 1px solid #e4e1da; border-radius: 16px; padding: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.path__k { font-size: 12px; line-height: 1.45; font-weight: 700; letter-spacing: 0.08em; color: var(--orange); }
.path h3 { font-size: 26px; line-height: 1.45; font-weight: 600; }
.path__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.path__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; line-height: 1.45; }
.path__list b { color: var(--orange); font-weight: 700; }

/* hero */
.hero { position: relative; isolation: isolate; display: flex; align-items: center; gap: 64px; padding: 88px var(--gutter) 96px; background: var(--cream) url('../img/site-hero-v3.jpg') center / cover no-repeat; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, rgba(223, 219, 213, 0.88) 0%, rgba(232, 229, 224, 0.72) 45%, rgba(246, 245, 242, 0.18) 100%); }
.hero__left { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; flex: 0 0 540px; max-width: 540px; }
.hero h1 { font-size: 46px; line-height: 1.1; font-weight: 700; }
.eyebrow--hero { color: var(--orange-deep); }
.lead { font-size: 19px; line-height: 30px; color: var(--muted); }
.hero .lead { color: var(--navy); }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.walkthrough { font-size: 14px; font-weight: 600; color: var(--orange-deep); text-decoration: none; }
.walkthrough:hover, .walkthrough:focus-visible { text-decoration: underline; }
.hero__note { font-size: 14px; font-weight: 500; color: var(--navy); }
.results { flex: 0 0 560px; max-width: 560px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.results__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.results__title { font-size: 20px; font-weight: 700; }
.results__sub { font-size: 13px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.chip { background: var(--cream); color: var(--muted); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.results__tiles { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }   /* A54 H1: revenue on top (full width), the other three in one row */
.tile { background: var(--cream); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.tile__k { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: var(--muted); }
.tile__v { font-size: 34px; line-height: 40px; font-weight: 700; }
.tile__v--green { color: var(--navy); }   /* CP-58 / DL-208: the figure is navy (was green) */
/* A54 H1 (DL-252/260/261): REVENUE RECOVERED is the full-width navy tile; the attention ring is the product's guided-step ring (2px orange, 3px outside, halo 4px at 35%). Not a link. */
.tile--revenue { position: relative; grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 20px; color: #fff;
  background: radial-gradient(ellipse 160px 50px at 125px 53px, rgba(242, 120, 12, 0.12), rgba(242, 120, 12, 0)), var(--navy); }
.tile--revenue .tile__rev { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tile--revenue .tile__k { color: var(--orange); }
.tile--revenue .tile__v { font-size: 48px; line-height: 40px; color: #fff; }
.tile--revenue .tile__s { color: rgba(246, 245, 242, 0.75); }
.tile__pill { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--cream); color: var(--navy); font-size: 12px; font-weight: 600; white-space: nowrap; }
.tile--revenue::after { content: ""; position: absolute; inset: -5px; box-sizing: border-box; border: 2px solid var(--orange); border-radius: 19px; box-shadow: 0 0 0 4px rgba(242, 120, 12, 0.35); pointer-events: none; }
.tile--revenue.is-pulse::after { animation: ring-in 2s ease-out 1; }
@keyframes ring-in { 0% { opacity: 0; box-shadow: 0 0 0 14px rgba(242, 120, 12, 0); } 35% { opacity: 1; box-shadow: 0 0 0 10px rgba(242, 120, 12, 0.22); } 100% { opacity: 1; box-shadow: 0 0 0 4px rgba(242, 120, 12, 0.35); } }
@media (prefers-reduced-motion: reduce) { .tile--revenue.is-pulse::after { animation: none; } }
.tile__v--orange { color: var(--orange); }
.tile__s { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--muted); }
.results__list { display: flex; flex-direction: column; gap: 8px; }
.rrow { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.avatar { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; background: #feecdb; color: var(--orange); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.rrow__t { flex: 1; min-width: 0; }
.rrow__t p:first-child { font-size: 14px; font-weight: 600; }
.rrow__t p:last-child { font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 1px; }
.rrow__btn { background: var(--orange); color: #fff; font-size: 12px; font-weight: 600; padding: 7px 12px; border-radius: 8px; white-space: nowrap; }
.results__foot { font-size: 12px; line-height: 17px; font-weight: 500; color: var(--muted); }

/* proof band */
.proof { display: flex; align-items: center; gap: 40px; padding: 44px var(--gutter); background: var(--navy); color: #fff; }
.proof__lead { flex: 0 0 300px; display: flex; flex-direction: column; gap: 6px; }
.proof__eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--orange-soft); }
.proof__title { font-size: 42px; line-height: 46px; font-weight: 700; }   /* A54 H4: at the scale of the numerals */
.proof__stat { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.proof__big { font-size: 40px; line-height: 44px; font-weight: 700; }
.proof__text { font-size: 15px; line-height: 22px; font-weight: 500; color: #dbe3ed; }
.proof__src { font-size: 12px; line-height: 16px; color: #a6b2c7; }

/* grids and cards */
.grid { display: grid; gap: 24px; width: 100%; max-width: var(--wrap); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--cards { max-width: 1152px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; min-height: 210px; display: flex; flex-direction: column; gap: 10px; }
.pcard__bar { width: 32px; height: 4px; border-radius: 2px; background: var(--orange); }
.pcard h3 { font-size: 18px; line-height: 24px; font-weight: 600; }
.pcard p { font-size: 15px; line-height: 22px; color: var(--muted); }

.flow { display: flex; align-items: stretch; gap: 12px; width: 100%; max-width: var(--wrap); }
.flow__arrow { align-self: center; font-size: 22px; font-weight: 700; color: var(--orange); }
.step { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px 22px; display: flex; flex-direction: column; gap: 10px; }
.step h3 { font-size: 18px; line-height: 24px; font-weight: 700; }
.step p { font-size: 15px; line-height: 23px; color: var(--muted); }
.num { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.num--sm { flex-basis: 28px; width: 28px; height: 28px; font-size: 13px; }
.yourpart { display: flex; align-items: center; gap: 32px; width: 100%; max-width: var(--wrap); background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px 28px; }
.yourpart__label { flex: 0 0 auto; display: flex; flex-direction: column; gap: 4px; }
.yourpart__t { font-size: 18px; font-weight: 700; }
.yourpart__step { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.yourpart__step p { font-size: 15px; line-height: 21px; font-weight: 500; }

/* product tour */
.tour { padding: 96px var(--gutter); display: flex; flex-direction: column; align-items: center; gap: 40px; background: #fff; }
.journey { display: flex; gap: 12px; width: 100%; max-width: var(--wrap); }
.jstep { flex: 1 1 0; min-width: 0; min-height: 151px; background: #fff; border: 1px solid #e0e0db; border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.jstep p { font-size: 16px; line-height: 1.45; font-weight: 500; }
.tour__cta { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.tour__cta p { font-size: 14px; line-height: 1.45; color: #546175; }
.tour__sides { display: flex; align-items: flex-start; gap: 48px; width: 100%; max-width: var(--wrap); }
.tour__studio { flex: 0 0 732px; max-width: 100%; }
.tour__member { flex: 0 0 420px; max-width: 100%; }
.tour__label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--navy); margin-bottom: 20px; }
.tour__label--member { color: var(--orange); }
.tour__shot { display: block; width: 690px; max-width: 100%; height: auto; }
.tour__features { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; }
.feature { display: flex; gap: 12px; align-items: flex-start; }
.feature__dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-top: 7px; }
.feature h3 { font-size: 17px; line-height: 22px; font-weight: 600; }
.feature p { font-size: 15px; line-height: 22px; color: var(--muted); margin-top: 2px; }
.tour__phones { display: flex; gap: 20px; align-items: flex-start; }
.tour__phones figure { margin: 0; flex: 0 1 200px; min-width: 0; }
.tour__phones img { display: block; width: 200px; max-width: 100%; height: auto; }
.tour__phones figcaption { display: none; }
.rrow__btn .short { display: none; }
.tour__caption { font-size: 13px; line-height: 19px; font-weight: 500; color: var(--muted); margin-top: 20px; }

/* trust */
.trust { display: flex; gap: 48px; padding: 64px var(--gutter); background: var(--navy); color: #fff; }
.trust > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.trust h3 { font-size: 19px; font-weight: 600; }
.trust p { font-size: 15px; line-height: 22px; color: #c9d2e3; }

/* final cta + footer */
.final { padding: 72px var(--gutter) 96px; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.final { background: var(--cream); }
.final h2 { font-size: 40px; line-height: 48px; font-weight: 700; }
.final__sub { font-size: 18px; color: #4d5c73; max-width: 620px; }
.final__note { font-size: 14px; font-weight: 500; color: var(--muted); }
.site-footer { background: #fff; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 64px; font-size: 13px; color: var(--muted); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* narrow screens (W2, 390) */
@media (max-width: 1100px) {
  .hero { flex-direction: column; align-items: stretch; padding-top: 56px; padding-bottom: 56px; gap: 40px; }
  .hero__left, .results { flex: 1 1 auto; max-width: 100%; }
  .hero::before { background: linear-gradient(to bottom, rgba(223, 219, 213, 0.9) 0%, rgba(232, 229, 224, 0.78) 42%, rgba(246, 245, 242, 0.3) 100%); }
  .paths { flex-direction: column; }
  .journey { flex-direction: column; }
  .proof { flex-direction: column; align-items: flex-start; }
  .proof__lead { flex: none; }
  .grid--3 { grid-template-columns: 1fr; max-width: 560px; }
  .flow { flex-direction: column; }
  .flow__arrow { transform: rotate(90deg); }
  .tour__sides { flex-direction: column; }
  .tour__studio, .tour__member { flex: none; width: 100%; }
  .yourpart { flex-direction: column; align-items: flex-start; gap: 16px; }
  .trust { flex-direction: column; gap: 24px; }
}
@media (max-width: 700px) {
  .site-header { padding: 16px 20px; } /* A47 phone frames + /studios|/instructors parity */
  .site-nav { margin-left: auto; margin-right: 12px; }
  .site-nav a:not(.btn) { display: none; }
  .site-nav.is-open a:not(.btn) { display: block; position: absolute; left: 0; right: 0; height: 48px; padding: 14px 20px; line-height: 20px; background: #fff; border-top: 1px solid var(--line); }
  .site-nav.is-open a:nth-child(1) { top: 100%; }
  .site-nav.is-open a:nth-child(2) { top: calc(100% + 48px); }
  .site-nav.is-open a:nth-child(3) { top: calc(100% + 96px); }
  .site-nav a.btn { min-height: 44px; } /* CP-55: tap target on phone only */
  .site-menu { display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 4px; width: 44px; height: 44px; padding: 0 11px; box-sizing: border-box; background: none; border: 0; cursor: pointer; }
  .site-menu span { display: block; height: 2px; background: var(--navy); border-radius: 1px; }
  .sec, .tour { padding-top: 56px; padding-bottom: 56px; }
  .path { padding: 24px; }
  .path h3 { font-size: 24px; }
  .hero h1 { font-size: 40px; line-height: 44px; }
  .lead, .sec__head .sub, .sub { font-size: 17px; line-height: 27px; }
  .sec__head h2, .final h2 { font-size: 30px; line-height: 36px; }
  .grid--3 { max-width: none; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; }
  .hero .walkthrough { font-size: 13px; text-align: center; align-self: center; }
  .tour__cta .btn { width: 100%; }
  .results { padding: 20px; }
  .tile__v { font-size: 28px; line-height: 40px; }
  .results__tiles { gap: 8px; }
  .results__tiles .tile { padding: 10px; }
  .tile--revenue { flex-direction: column; gap: 10px; padding: 14px; }
  .tile--revenue .tile__v { font-size: 40px; }
  .tile--revenue .tile__pill { align-self: flex-start; }
  .proof__title { font-size: 34px; line-height: 38px; }
  .rrow__btn .long { display: none; }
  .rrow__btn .short { display: inline; }
  .tour__phones { gap: 14px; }
  .tour__phones figcaption { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-top: 8px; }
  .final { padding-top: 56px; padding-bottom: 64px; }
  .final .hero__ctas { width: 100%; }
  .site-footer { flex-direction: column-reverse; align-items: flex-start; padding: 24px 20px; }
  .site-footer a, .hero .walkthrough { display: inline-flex; align-items: center; min-height: 44px; }   /* CP-55: 44 px tap targets at phone width */
}
