/* Vinny — hivinny.com
   Layout idea: the business card, unfolded. One dark sheet, the wheel's four
   colours as the only colour, a chat prompt as the hero. Single theme by choice. */
@font-face { font-family: "Luckiest Guy"; src: url("fonts/luckiest-guy.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Inter; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #161614;
  --panel: #1f1e1b;
  --ink: #ecebe6;
  --muted: #b5b3ab;
  --dim: #8f8d85;
  --line: rgba(236, 235, 230, 0.14);
  --amber: #ffab0f;   /* Named */
  --lime: #a6ff00;    /* Accurate */
  --teal: #6b9fa0;    /* Profiles (lifted for dark) */
  --mint: #94ffd8;    /* Reputation */
  --display: "Luckiest Guy", "Arial Black", Impact, sans-serif;
  --body: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 1080px;
  --gutter: clamp(18px, 4vw, 32px);
}

/* Home page only: the first screen is light, then the whole page fades to dark
   as the second section scrolls in (site.js sets the tokens; html.light is the
   starting state before the script runs). Registering
   the colour tokens lets them animate; browsers without @property just switch. */
@property --bg { syntax: "<color>"; inherits: true; initial-value: #161614; }
@property --panel { syntax: "<color>"; inherits: true; initial-value: #1f1e1b; }
@property --ink { syntax: "<color>"; inherits: true; initial-value: #ecebe6; }
@property --muted { syntax: "<color>"; inherits: true; initial-value: #b5b3ab; }
@property --dim { syntax: "<color>"; inherits: true; initial-value: #8f8d85; }
@property --line { syntax: "<color>"; inherits: true; initial-value: rgba(236, 235, 230, 0.14); }
/* site.js sets these from the scroll position; the short transition only smooths mouse-wheel steps */
html { transition: --bg 0.25s linear, --panel 0.25s linear, --ink 0.25s linear, --muted 0.25s linear, --dim 0.25s linear, --line 0.25s linear; }
html.light {
  color-scheme: light;
  --bg: #f1f0eb;      /* paper white, same family as the dark theme's text colour */
  --panel: #ffffff;   /* the prompt box is pure white so it pops off the paper */
  --ink: #161614;
  --muted: #55534d;
  --dim: #77756e;
  --line: rgba(22, 22, 20, 0.16);
}
@media (prefers-reduced-motion: reduce) { html { transition: none; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--amber); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header: always dark, stays at the top while scrolling */
html { scroll-padding-top: 64px; } /* header height minus its 1px border: a section's top border hides behind the header's */
.bar {
  position: sticky; top: 0; z-index: 10; color-scheme: dark;
  --bg: #161614; --ink: #ecebe6; --muted: #b5b3ab; --dim: #8f8d85; --line: rgba(236, 235, 230, 0.14);
  background: var(--bg); color: var(--ink); border-bottom: 1px solid var(--line);
}
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 40px; height: 40px; }
.brand span { font-family: var(--display); font-size: 30px; line-height: 1; letter-spacing: 1px; transform: translateY(3px); }
.nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 26px); font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
@media (max-width: 640px) { .nav .opt { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 16px/1 var(--body); padding: 14px 22px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn.primary { background: var(--amber); border-color: var(--amber); color: #161614; }
.btn.primary:hover { background: #ffc04a; border-color: #ffc04a; color: #161614; }
.nav .btn { padding: 10px 16px; font-size: 14px; color: #161614; }

/* Hero: the first screen is the prompt and nothing else */
.hero {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: min(calc(100svh - 65px), 860px); padding-top: 24px; padding-bottom: 96px;
}
.hero .asked { width: 100%; max-width: 880px; display: flex; flex-direction: column; gap: 14px; }
.asked-label { font-size: clamp(14px, 1.4vw, 16px); color: var(--dim); letter-spacing: 0.02em; padding-left: 6px; }
/* Second screen: the slogan gets nearly a full screen to itself */
section.tall { min-height: min(100svh, 940px); display: flex; align-items: center; }
section.tall > .wrap { width: 100%; }
.down { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: 44px; height: 44px; display: grid; place-items: center; color: var(--dim); }
.down:hover { color: var(--ink); }
.down svg { width: 26px; height: 26px; }
.prompt {
  display: flex; align-items: center; gap: 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 28px;
  padding: clamp(16px, 2.6vw, 26px) clamp(18px, 3vw, 30px);
}
.rotator {
  flex: 1 1 auto; min-width: 0; display: grid; align-items: center; overflow: hidden;
  font-size: clamp(22px, 3.8vw, 42px); font-weight: 500; line-height: 1.22; letter-spacing: -0.01em;
  min-height: 2.44em;
}
.rotator .q {
  grid-area: 1 / 1;
  transition: transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.5s ease;
}
.rotator .q.is-below { transform: translateY(80%); opacity: 0; }
.rotator .q.is-above { transform: translateY(-80%); opacity: 0; }
.send {
  flex: 0 0 auto; width: clamp(40px, 5vw, 52px); height: clamp(40px, 5vw, 52px); border-radius: 50%;
  background: var(--amber); display: grid; place-items: center;
}
.send svg { width: 46%; height: 46%; }
@media (prefers-reduced-motion: reduce) { .rotator .q { transition: none; } }

.pitch { display: flex; flex-direction: column; gap: 20px; }
.pitch h1 { font-family: var(--display); font-weight: 400; font-size: clamp(54px, 11vw, 128px); line-height: 0.92; letter-spacing: 0.01em; }
.pitch h1 em { font-style: normal; color: var(--amber); }
.lede { max-width: 56ch; font-size: clamp(17px, 1.8vw, 20px); color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
section { border-top: 1px solid var(--line); padding: clamp(44px, 7vw, 84px) 0; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.12; letter-spacing: -0.015em; font-weight: 700; }
.sec-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: clamp(24px, 4vw, 40px); max-width: 60ch; }
.sec-head p { color: var(--muted); }

/* Sample report */
.sample { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
@media (max-width: 880px) { .sample { grid-template-columns: 1fr; } }
.report { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 28px); display: flex; flex-direction: column; gap: 22px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat b { display: block; white-space: nowrap; font-size: clamp(22px, 2.4vw, 27px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--dim); }
.parts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.parts li { display: flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 2px; flex: 0 0 auto; }
.fixes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; counter-reset: fix; }
.fixes li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; counter-increment: fix; }
.fixes li::before { content: counter(fix); width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 13px; color: var(--muted); }
.fixes strong { display: block; font-size: 16px; }
.fixes span { font-size: 14.5px; color: var(--muted); }
.note { font-size: 13px; color: var(--dim); }

/* How it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 36px); counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 8px; }
.steps li::before { content: counter(step); font-family: var(--display); font-size: 44px; line-height: 1; color: var(--amber); }
.steps h3 { font-size: 19px; }
.steps p { color: var(--muted); font-size: 16px; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 28px); }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 16px; }
.plan.full { border-color: var(--amber); }
.plan h3 { font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.price { font-size: clamp(34px, 5vw, 46px); font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.price small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plus { font-size: 16px; font-weight: 600; color: var(--amber); margin-top: -6px; }
.plan ul { margin: 0; padding: 0 0 0 18px; color: var(--muted); font-size: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; }
.plan .btn { align-self: flex-start; }

.about { display: flex; flex-direction: column; gap: 14px; }
.about > * { max-width: 62ch; }
.about p { color: var(--muted); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-top: 28px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 14px; color: var(--dim); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* Inner pages */
.page { padding-top: clamp(16px, 4vw, 40px); padding-bottom: clamp(48px, 8vw, 96px); }
.page h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 12px; }
.page .sub { color: var(--muted); max-width: 60ch; margin-bottom: 32px; }
.prose { max-width: 68ch; display: flex; flex-direction: column; gap: 14px; color: var(--muted); }
.prose h2 { font-size: 21px; color: var(--ink); margin-top: 18px; }
.prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.prose strong { color: var(--ink); }
.draft { border: 1px dashed var(--amber); border-radius: 12px; padding: 12px 16px; color: var(--ink); font-size: 15px; max-width: 68ch; margin-bottom: 24px; }
mark.todo { background: rgba(255, 171, 15, 0.18); color: var(--ink); border-bottom: 1px dashed var(--amber); padding: 0 3px; border-radius: 3px; }

/* Sign-up form */
form { max-width: 680px; display: flex; flex-direction: column; gap: 34px; }
fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
legend { padding: 0; margin-bottom: 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 16px; }
.field .hint { font-size: 14px; color: var(--dim); }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], textarea {
  width: 100%; font: 400 17px/1.4 var(--body); color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px;
}
textarea { min-height: 92px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: transparent; }
::placeholder { color: #6f6d66; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 560px) { .choices { grid-template-columns: 1fr; } }
.choice { position: relative; display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 14px; padding: 16px; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice b { font-size: 17px; }
.choice span { font-size: 14px; color: var(--muted); }
.choice:has(input:checked) { border-color: var(--amber); background: rgba(255, 171, 15, 0.07); }
.choice:has(input:focus-visible) { outline: 2px solid var(--amber); outline-offset: 3px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 14.5px; color: var(--muted); align-items: start; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--amber); }
.hp { position: absolute; left: -9999px; }
[hidden] { display: none !important; }
.done { max-width: 680px; display: flex; flex-direction: column; gap: 16px; }
.done h2 { font-size: 28px; }
.done p { color: var(--muted); }
.done textarea { min-height: 260px; font-size: 14px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.contact-lines { display: flex; flex-direction: column; gap: 18px; font-size: 19px; }
.contact-lines small { display: block; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
