/* Upshift Revenue — site styles. Tokens follow the Upshift Revenue design system. */

@font-face {
  font-family: "Saira";
  src: url("/assets/fonts/saira-latin-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/assets/fonts/public-sans-latin-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/assets/fonts/public-sans-latin-variable-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --brand: #16181B;          /* Charcoal */
  --surface: #F7F5F0;        /* Paper */
  --brand-subtle: #E9E5DC;   /* Stone */
  --surface-raised: #FCFBF8;
  --accent: #E4572E;         /* Redline Orange */
  --accent-strong: #B23F17;  /* Orange Deep */
  --accent-press: #C9421A;   /* hover for light-label orange buttons */
  --secondary: #1F5468;      /* Petrol */
  --ink-muted: #4F4D48;      /* Graphite */
  --border: #D6D1C7;         /* Line */
  --border-strong: #4F4D48;
  --on-brand: #F7F5F0;
  --on-brand-muted: #B9B5AD;
  --display: "Saira", "Arial Narrow", sans-serif;
  --body: "Public Sans", -apple-system, "Segoe UI", sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--surface);
  color: var(--brand);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}
img, svg { display: block; }
a { color: var(--accent-strong); }
a:hover { color: var(--brand); }
:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 10;
  background: var(--surface); color: var(--brand); padding: 8px 12px; border-radius: 4px;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted);
}
.h2 { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 3.6vw, 40px); line-height: 1.1; text-wrap: balance; }

/* Buttons. Redline Orange with light text only at 19px bold or larger (design system rule). */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border: 0; border-radius: 8px;
  background: var(--accent); color: var(--on-brand);
  font: inherit; font-weight: 700; font-size: 19px; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
}
.btn:hover { background: var(--accent-press); color: var(--on-brand); }
.btn[disabled] { opacity: 0.7; cursor: progress; }

/* Header and logo lockup (A8 proportions; see the design system's Logo section). */
.site-header { background: var(--brand); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 26px; padding-bottom: 26px; }
.lockup { display: flex; color: var(--on-brand); text-decoration: none; }
.lockup:hover { color: var(--on-brand); }
.lockup-row { display: flex; align-items: flex-start; gap: 14px; }
.lockup-mark { flex: none; overflow: visible; width: 41px; height: 40px; margin-top: 3px; }
.lockup-words { display: flex; flex-direction: column; gap: 3px; font-family: var(--display); }
.lockup-top { align-self: flex-start; font-size: 34px; line-height: 0.92; font-weight: 700; font-stretch: 87.5%; }
.lockup-rev { align-self: flex-start; font-size: 12.6px; line-height: 1; font-weight: 500; letter-spacing: 15.5px; margin-right: -15.5px; }
.lockup i { display: inline-block; width: 0; height: 0; }
.site-nav { display: flex; align-items: center; gap: 32px; font-size: 17px; font-weight: 600; }
.site-nav a:not(.btn) { color: var(--on-brand); text-decoration: none; }
.site-nav a:not(.btn):hover { text-decoration: underline; }

/* Hero */
.hero { display: flex; align-items: center; gap: 48px; padding-top: 96px; padding-bottom: 88px; }
.hero-copy { flex: 1 1 600px; min-width: 0; }
.hero h1 { margin-top: 24px; max-width: 900px; font-family: var(--display); font-weight: 700; font-size: clamp(48px, 7vw, 84px); line-height: 0.95; letter-spacing: -0.01em; }
.hero-sub { margin-top: 32px; max-width: 680px; font-size: 20px; }
.hero .btn { margin-top: 40px; }
.hero-art { flex: 0 1 440px; height: 460px; margin-right: -24px; }
.hero-art svg {
  width: 100%; height: 100%;
  -webkit-mask-image: radial-gradient(ellipse 62% 62% at 60% 36%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 62% 62% at 60% 36%, #000 40%, transparent 100%);
}

/* Problem */
.band { background: var(--brand-subtle); }
.problem { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr)); gap: 48px; padding-top: 88px; padding-bottom: 88px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.fit { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 32px; display: flex; flex-direction: column; gap: 8px; }
.fit-who { max-width: 820px; font-size: 18px; font-weight: 600; }
.fit-pe { font-size: 15px; color: var(--ink-muted); }

/* How I work */
.section { padding-top: 96px; padding-bottom: 96px; }
.lead { margin-top: 20px; max-width: 760px; font-size: 20px; }
.discovery { margin-top: 48px; background: var(--brand-subtle); border: 1px solid var(--border); border-radius: 14px; padding: 32px; display: flex; flex-wrap: wrap; gap: 12px 48px; align-items: baseline; }
.discovery-title { flex: 1 1 260px; display: flex; flex-direction: column; gap: 8px; }
.discovery-title .eyebrow { color: var(--secondary); }
.discovery h3 { font-size: 26px; line-height: 1.25; font-weight: 700; }
.discovery p:last-child, .note p { flex: 2 1 420px; font-size: 16px; }
.fork { position: relative; height: 88px; }
.fork span { position: absolute; background: var(--ink-muted); }
.fork .stem { left: 50%; top: 0; width: 2px; height: 44px; margin-left: -1px; }
.fork .bar { left: calc(25% - 6px); right: calc(25% - 6px); top: 43px; height: 2px; }
.fork .drop { top: 44px; width: 2px; height: 34px; }
.fork .drop.l { left: calc(25% - 7px); }
.fork .drop.r { right: calc(25% - 7px); }
.fork .tip { bottom: 2px; width: 0; height: 0; background: none; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 9px solid var(--ink-muted); }
.fork .tip.l { left: calc(25% - 12px); }
.fork .tip.r { right: calc(25% - 12px); }
.fork .label { left: 50%; top: 44px; transform: translate(-50%, -50%); background: var(--surface); padding: 4px 14px; border: 1px solid var(--border-strong); border-radius: 4px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; color: var(--brand); }
.fork-mobile { display: none; margin: 20px 0; }
.offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card { background: var(--surface-raised); border: 1px solid var(--border); border-radius: 14px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-size: 22px; line-height: 1.3; font-weight: 700; }
.card p { font-size: 16px; }
.note { margin-top: 24px; background: var(--brand-subtle); border-radius: 14px; padding: 24px 32px; display: flex; flex-wrap: wrap; gap: 8px 48px; align-items: baseline; }
.note h3 { flex: 1 1 260px; font-size: 18px; line-height: 1.4; font-weight: 700; }

/* About and results */
.bio { max-width: 780px; display: flex; flex-direction: column; gap: 20px; }
.bio .creds { margin-top: 8px; font-size: 15px; color: var(--ink-muted); }
.results { margin-top: 64px; background: var(--brand); color: var(--on-brand); border-radius: 14px; padding: 48px 40px; }
.results h3 { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.15; }
.stats { margin: 40px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 40px 32px; }
.stat { border-top: 1px solid var(--border-strong); padding-top: 20px; min-width: 0; container-type: inline-size; }
.stat-num { font-family: var(--display); font-weight: 700; font-size: min(52px, 20cqi); font-stretch: 87.5%; line-height: 1; white-space: nowrap; }
.stat-num.key { color: var(--accent); }
.stat-num .arrow { font-size: 0.55em; font-weight: 600; margin: 0 0.12em; vertical-align: 0.25em; }
.stat p:last-child { margin-top: 14px; font-size: 15px; color: var(--border); }
.built { margin-top: 48px; }
.built .eyebrow { margin-bottom: 16px; color: var(--on-brand-muted); }
.tags { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { border: 1px solid var(--border-strong); border-radius: 4px; padding: 6px 12px; font-size: 15px; }

/* Contact */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 48px; align-items: start; padding-top: 96px; padding-bottom: 96px; }
.contact-intro { display: flex; flex-direction: column; gap: 16px; }
.next { margin-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.next ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.next li { display: flex; gap: 14px; align-items: baseline; }
.next li span:first-child { flex: none; width: 28px; height: 28px; border-radius: 4px; background: var(--surface); border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--secondary); }
.form { background: var(--surface-raised); border: 1px solid var(--border); border-radius: 14px; padding: 32px; display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 15px; font-weight: 600; }
.req { color: var(--accent-strong); }
.hint { font-size: 13px; color: var(--ink-muted); }
.field input, .field textarea { width: 100%; border: 1px solid var(--border-strong); border-radius: 4px; background: #FFFFFF; font: inherit; color: var(--brand); }
.field input { min-height: 44px; padding: 0 12px; }
.field textarea { padding: 10px 12px; resize: vertical; }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 16px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.form-status { font-size: 15px; }
.form-status.error { color: var(--accent-strong); }
.form-done { display: flex; flex-direction: column; gap: 12px; }
.form-done h3 { font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1.15; }

/* Footer */
.site-footer { background: var(--brand); color: var(--on-brand-muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 32px; }
.footer-left { display: flex; align-items: center; gap: 12px; }
.footer-left img { width: 28px; height: 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer a { color: var(--on-brand); }

/* Privacy page */
.prose { max-width: 720px; padding-top: 72px; padding-bottom: 96px; }
.prose h1 { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 5vw, 52px); line-height: 1.05; }
.prose h2 { margin-top: 40px; font-size: 22px; font-weight: 700; line-height: 1.3; }
.prose p, .prose ul { margin-top: 14px; }
.prose ul { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose .meta { margin-top: 12px; color: var(--ink-muted); font-size: 15px; }

/* Responsive */
@media (max-width: 900px) {
  .hero-art { display: none; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .site-header .wrap { padding: 18px 16px; }
  .site-nav { gap: 0; }
  .site-nav a:not(.btn) { display: none; }
  .site-nav .btn { padding: 0 16px; }
  .lockup-top { font-size: 27px; }
  .lockup-rev { font-size: 10px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 64px; padding-bottom: 64px; }
  .problem, .section, .contact { padding-top: 64px; padding-bottom: 64px; }
  .fork { display: none; }
  .fork-mobile { display: block; }
  .offers { grid-template-columns: 1fr; }
  .results { padding: 32px 24px; }
  .discovery, .card, .form { padding: 24px; }
  .note { padding: 24px; }
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.placeholder { background: #FBE3D9; padding: 0 4px; border-radius: 4px; }
