/* NippyyX — Studio direction · brief-pinned canon (Stripe / Linear / Vercel register)
   Light ground, monochrome graphite ink (brand: Graphite Black / Steel Mist Grey /
   Soft Cloud White), hairline borders, soft single-layer elevation, Geist with tight
   negative tracking. No accent colour, no metaphor. */

@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("assets/fonts/geistmono-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;

  --bg: #FCFCFD;
  --surface: #EEF1F4;          /* brand: Soft Cloud White */
  --card: #FFFFFF;
  --ink: #24272B;              /* brand: Graphite Black */
  --ink-2: #494E56;
  --ink-3: #6B727C;
  --steel: #8F98A3;            /* brand: Steel Mist Grey — quiet index, icon strokes, dividers */
  --line: #E4E7EB;
  --line-2: #D2D7DD;
  --accent: #24272B;           /* primary action = graphite; the brand has no accent hue */
  --accent-hover: #16181B;
  --accent-ink: #FBFCFD;
  --accent-soft: #EDEFF2;
  --danger: #B42318;

  --focus: 0 0 0 3px rgba(36, 39, 43, 0.22);
  --shadow-sm: 0 1px 2px rgba(36, 39, 43, 0.05), 0 1px 3px rgba(36, 39, 43, 0.06);
  --shadow-md: 0 6px 16px -4px rgba(36, 39, 43, 0.12), 0 3px 7px -3px rgba(36, 39, 43, 0.08);

  --radius: 12px;
  --radius-sm: 10px;
  --radius-btn: 9px;

  --wrap: 1080px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(48px, 6.5vw, 92px);

  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.14;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--ink); }

strong { font-weight: 600; }

::selection { background: rgba(36, 39, 43, 0.13); }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius-btn); }

[hidden] { display: none !important; }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border: 3px solid var(--bg); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--steel); }

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 60;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: var(--radius-btn);
  transition: top 0.15s var(--ease);
}
.skip:focus { top: 12px; }

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

.btn {
  --btn-bg: var(--card);
  --btn-fg: var(--ink);
  --btn-bd: var(--line-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55ch;
  font: inherit;
  font-weight: 500;
  font-size: 14.5px;
  line-height: 1;
  white-space: nowrap;
  padding: 10px 16px;
  min-height: 40px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease),
    box-shadow 0.15s var(--ease), transform 0.15s var(--ease);
}
.btn:hover { color: var(--btn-fg); }
.btn:active { transform: translateY(0.5px); }
.btn:focus-visible { box-shadow: var(--focus); }

.btn-primary {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);
  --btn-bd: var(--accent);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { --btn-bg: var(--accent-hover); --btn-bd: var(--accent-hover); }

.btn-secondary:hover { --btn-bg: var(--surface); }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink-2);
  --btn-bd: transparent;
}
.btn-ghost:hover { --btn-fg: var(--ink); --btn-bg: var(--surface); }

.btn-lg {
  font-size: 15px;
  padding: 13px 22px;
  min-height: 46px;
  border-radius: var(--radius-sm);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 252, 253, 0.8);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.brand-logo {
  display: block;
  height: 21px;
  width: auto;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3.6vw, 44px);
}
.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
}
.nav-links { gap: clamp(14px, 2vw, 26px); }
.nav-actions { gap: 10px; }
.site-nav .nav-link {
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 0;
}
.site-nav .nav-link:hover { color: var(--ink); }

/* Mobile disclosure menu (shown only on narrow screens) */
.nav-menu { display: none; position: relative; }
.nav-menu > summary {
  list-style: none;
  display: grid;
  place-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  cursor: pointer;
}
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary:hover { color: var(--ink); background: var(--surface); }
.nav-menu[open] > summary { color: var(--ink); background: var(--surface); }
.nav-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 176px;
  display: flex;
  flex-direction: column;
  padding: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}
.nav-menu-panel a {
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
}
.nav-menu-panel a:hover { color: var(--ink); background: var(--surface); }

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

.hero {
  padding: clamp(40px, 6vw, 76px) 0 clamp(22px, 3vw, 40px);
}
.hero-inner { position: relative; }
.hero-inner > * { max-width: 800px; }
.hero-title {
  font-size: clamp(38px, 5.6vw, 62px);
  letter-spacing: -0.032em;
  line-height: 1.04;
  text-wrap: balance;
}
.hero-lead {
  margin: 20px 0 0;
  font-size: clamp(18px, 2.1vw, 22px);
  color: var(--ink-2);
}
.hero-cred {
  margin: 22px 0 0;
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-3);
}
.hero-cred strong { color: var(--ink-2); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* ---------- Section heads ---------- */

.section-head {
  max-width: 620px;
  margin-bottom: clamp(30px, 4.5vw, 52px);
}
.section-head h2 {
  font-size: clamp(27px, 3.5vw, 37px);
  letter-spacing: -0.028em;
}
.section-head p {
  margin: 12px 0 0;
  font-size: 17px;
  color: var(--ink-2);
}

/* ---------- Pricing ---------- */

.pricing { padding: clamp(36px, 5vw, 60px) 0 var(--section-y); }
.plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.plan {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--shadow-sm);
}
.plan-name {
  font-size: 19px;
  letter-spacing: -0.018em;
}
.plan-desc {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.plan-from { font-size: 13px; color: var(--ink-3); }
.plan-amount {
  font-weight: 600;
  font-size: clamp(26px, 3vw, 32px);
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.plan-cadence { font-size: 14px; color: var(--ink-3); }
.plan-terms { margin: 10px 0 0; font-size: 13px; color: var(--ink-3); }
.plan-link {
  margin-top: auto;
  padding-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}
.plan-link svg { transition: transform 0.15s var(--ease); }
.plan-link:hover svg { transform: translateX(3px); }

/* ---------- Process ---------- */

.process {
  padding: var(--section-y) 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 30px);
}
.step-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--steel);
}
.step h3 {
  margin: 12px 0 6px;
  font-size: 17px;
  letter-spacing: -0.012em;
}
.step p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* ---------- Brief ---------- */

.brief { padding: var(--section-y) 0 clamp(68px, 9vw, 120px); }
.form-card {
  max-width: 680px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow-sm);
}
.form-intro {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--ink-3);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 20px;
  margin-bottom: 18px;
}
.field { display: flex; flex-direction: column; }
.field label {
  margin-bottom: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
}
.field label .opt { color: var(--ink-3); font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.field textarea { min-height: 116px; resize: vertical; line-height: 1.55; }
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-3); }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5 7 7l6-5.5' fill='none' stroke='%235C606A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}
.field select:invalid { color: var(--ink-3); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus);
}
.field [aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.14);
}
.field-error {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--danger);
}
.form-error {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--danger);
}
.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 6px;
}
.btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }
.form-alt { margin: 0; font-size: 13.5px; color: var(--ink-3); }
.form-alt a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.form-alt a:hover { color: var(--accent); }

/* Success */
.success-check {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-content: center;
  margin-bottom: 16px;
}
.brief-success h3 { font-size: 19px; margin: 0 0 10px; letter-spacing: -0.018em; }
.brief-success p { margin: 0 0 12px; max-width: 46ch; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.success-contact { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 8px; }
.linkish {
  background: 0;
  border: 0;
  padding: 8px 0;
  font: inherit;
  font-weight: 500;
  font-size: 14px;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/pattern.jpg") 50% 0 / 440px repeat;
  opacity: 0.04;
  pointer-events: none;
}
.footer-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 13px;
  color: var(--ink-3);
}
.footer-inner p { margin: 0; }
.footer-meta { display: flex; gap: 18px; }
.footer-meta a { color: var(--ink-3); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 2px; }
.footer-meta a:hover { color: var(--ink); text-decoration-color: currentColor; }

/* ---------- Reveal ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(10px); }
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
/* siblings in a group settle in sequence, not all at once */
.js .plans > .plan.is-in:nth-child(2) { transition-delay: 0.06s; }
.js .plans > .plan.is-in:nth-child(3) { transition-delay: 0.12s; }
.js .plans > .plan.is-in:nth-child(4) { transition-delay: 0.18s; }
.js .steps > .step.is-in:nth-child(2) { transition-delay: 0.05s; }
.js .steps > .step.is-in:nth-child(3) { transition-delay: 0.10s; }
.js .steps > .step.is-in:nth-child(4) { transition-delay: 0.15s; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .plans { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-menu { display: block; }
}
@media (max-width: 620px) {
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 440px) {
  .site-nav .btn-ghost { display: none; }
  .header-inner { gap: 10px; }
  .site-nav { gap: 8px; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .form-foot { align-items: stretch; }
  .form-foot .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal],
  .js [data-reveal].is-in { opacity: 1; transform: none; transition: none; }
  .btn, .plan-link svg { transition: none; }
}
