/* Personal affiliate landing page — bracmort.com/<code> and /r/<code>.
   Same brand tokens as index.html (dark canvas, Inter, orange accent), but a
   lean, single-purpose page: no scroll-craft engine, no hero photo, fast on
   a slow shared host. Phone-first; two/three columns from 720px/960px up. */

:root {
  --canvas:     #0B0E14;
  --surface:    #141924;
  --surface-2:  #1B2230;
  --ink:        #F2EEE6;
  --ink-soft:   #A9AFBB;
  --accent:     #F07820;
  --accent-ink: #170A02;
  --hairline:        color-mix(in oklab, var(--ink) 12%, transparent);
  --hairline-strong: color-mix(in oklab, var(--ink) 22%, transparent);
  --bad: #FF6B5E;
  --ok:  #3DDC84;
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-pill: 999px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --maxw: 68rem;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--canvas); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.5; font-weight: 450;
  overflow-x: hidden;
}
h1, h2, h3 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin: 0; }
p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.skip-link {
  position: absolute; left: var(--gutter); top: -3rem; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem; border-radius: var(--r-sm);
  transition: top 160ms var(--ease);
}
.skip-link:focus { top: .75rem; }

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

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

/* ---------------------------------------------------------------- header */
.l-header { padding-block: 1.1rem; border-bottom: 1px solid var(--hairline); }
.l-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.l-header__logo { width: 143px; height: auto; }
.l-lang { display: flex; gap: .2rem; padding: .2rem; border-radius: var(--r-pill); background: rgb(242 238 230 / .06); }
.l-lang a {
  display: inline-block; padding: .4rem .65rem; border-radius: var(--r-pill);
  font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--ink-soft);
  text-decoration: none;
  transition: color 140ms var(--ease), background-color 140ms var(--ease);
}
.l-lang a:hover { color: var(--ink); }
.l-lang a[aria-current="true"] { color: var(--ink); background: rgb(242 238 230 / .12); }

/* ---------------------------------------------------------------- buttons */
.l-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  height: 3.1rem; padding-inline: 1.5rem; border-radius: var(--r-pill); border: 0;
  font-weight: 700; font-size: .95rem; letter-spacing: -0.01em; white-space: nowrap; cursor: pointer;
  text-decoration: none;
  transition: transform 140ms var(--ease), background-color 140ms var(--ease), opacity 140ms var(--ease);
}
.l-btn:active { transform: translateY(1px) scale(.985); }
.l-btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 0 rgb(255 255 255 / .25) inset, 0 10px 24px -10px rgb(240 120 32 / .55); }
.l-btn--primary:hover { background: #FF8A35; }
.l-btn--primary:disabled { opacity: .6; cursor: default; transform: none; }
.l-btn svg { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- hero */
.l-hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4rem); max-width: 46rem; }
.l-hero__kicker { color: var(--accent); font-weight: 700; font-size: .85rem; margin-bottom: 1rem; }
.l-hero__h1 { font-size: clamp(2.1rem, 1.5rem + 3.2vw, 3.6rem); max-width: 14ch; }
.l-hero__sub { margin-top: 1.25rem; font-size: clamp(1.05rem, .98rem + .4vw, 1.25rem); line-height: 1.5; color: var(--ink-soft); max-width: 42ch; }
.l-hero .l-btn { margin-top: 2rem; }
.l-hero__secondary {
  display: inline-block; margin-top: 1rem; font-size: .92rem; font-weight: 600;
  color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--hairline-strong);
  transition: color 140ms var(--ease), border-color 140ms var(--ease);
}
.l-hero__secondary:hover { color: var(--ink); border-color: var(--ink-soft); }

/* ---------------------------------------------------------------- section titles */
.l-h2 { font-size: clamp(1.6rem, 1.35rem + 1.2vw, 2.2rem); }
.l-section__sub { margin-top: .6rem; color: var(--ink-soft); font-size: 1.02rem; max-width: 46ch; }

/* ---------------------------------------------------------------- services */
.l-services { padding-block: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid var(--hairline); }
.l-svc-grid { margin-top: 2rem; display: grid; grid-template-columns: 1fr; gap: 1rem; }
.l-svc-card {
  padding: 1.6rem 1.5rem; border-radius: var(--r-lg); background: var(--surface);
  border: 1px solid var(--hairline); display: grid; gap: .85rem; align-content: start;
}
.l-svc-card svg { width: 26px; height: 26px; color: var(--accent); }
.l-svc-card h3 { font-size: 1.15rem; }
.l-svc-card p { color: var(--ink-soft); font-size: .95rem; line-height: 1.5; }

/* ---------------------------------------------------------------- how it works */
.l-how { padding-block: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid var(--hairline); }
.l-how-steps { margin-top: 2rem; display: grid; grid-template-columns: 1fr; gap: 1.75rem; counter-reset: step; }
.l-how-steps li { display: grid; gap: .5rem; }
.l-how-steps__n { font-size: .85rem; font-weight: 700; letter-spacing: .06em; color: var(--accent); }
.l-how-steps h3 { font-size: 1.1rem; }
.l-how-steps p { color: var(--ink-soft); font-size: .95rem; line-height: 1.5; }

/* ---------------------------------------------------------------- contact */
.l-contact { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(3.5rem, 8vw, 6rem); border-top: 1px solid var(--hairline); max-width: 40rem; }
.l-contact__note { margin-top: 1rem; padding: .75rem 1rem; border-radius: var(--r-md); background: rgb(240 120 32 / .1); border: 1px solid rgb(240 120 32 / .28); font-size: .92rem; color: var(--ink); }

.l-form { margin-top: 2rem; display: grid; gap: 1.1rem; }
.l-field__row { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
.l-field { display: grid; gap: .4rem; }
.l-field label { font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.l-field input, .l-field select, .l-field textarea {
  width: 100%; padding: .85rem 1rem; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--hairline-strong); color: var(--ink);
  font-size: 1rem; transition: border-color 140ms var(--ease), background-color 140ms var(--ease);
}
.l-field input::placeholder, .l-field textarea::placeholder { color: color-mix(in oklab, var(--ink-soft) 70%, transparent); }
.l-field input:hover, .l-field select:hover, .l-field textarea:hover { border-color: var(--ink-soft); }
.l-field input:focus, .l-field select:focus, .l-field textarea:focus { border-color: var(--accent); background: var(--surface-2); outline: none; }
.l-field textarea { min-height: 8rem; resize: vertical; font-family: inherit; }
.l-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A9AFBB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px; padding-right: 2.75rem; }
.l-field.is-bad input, .l-field.is-bad select, .l-field.is-bad textarea { border-color: var(--bad); animation: l-shake 340ms var(--ease); }
@keyframes l-shake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(2px); } 30%, 50%, 70% { transform: translateX(-4px); } 40%, 60% { transform: translateX(4px); } }

.l-form__submit { width: 100%; margin-top: .25rem; }
.l-form__status { min-height: 1.3em; color: var(--bad); font-size: .9rem; font-weight: 600; }
.l-form__status[data-ok="true"] { color: var(--ok); }

.l-form__done { display: none; margin-top: 2rem; padding: 2rem 1.75rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--hairline); text-align: center; }
.l-form__done:not([hidden]) { display: grid; justify-items: center; gap: .75rem; }
.l-form__done svg { width: 40px; height: 40px; color: var(--ok); }
.l-form__done h3 { font-size: 1.2rem; }
.l-form__done p { color: var(--ink-soft); font-size: .95rem; max-width: 32ch; }
.l-form[hidden] { display: none; }

/* ---------------------------------------------------------------- footer */
.l-footer { padding-block: 1.75rem; border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; gap: 1.25rem 1.75rem; align-items: center; }
.l-footer a { font-size: .88rem; color: var(--ink-soft); border-bottom: 1px solid transparent; transition: color 140ms var(--ease), border-color 140ms var(--ease); }
.l-footer a:hover { color: var(--ink); border-color: var(--hairline-strong); }

/* ---------------------------------------------------------------- breakpoints */
@media (min-width: 640px) {
  .l-field__row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 720px) {
  .l-svc-grid { grid-template-columns: repeat(3, 1fr); }
  .l-how-steps { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .l-hero { max-width: 52rem; }
}

/* ---------------------------------------------------------------- motion & contrast */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
@media (forced-colors: active) {
  .l-btn--primary, .l-lang a[aria-current="true"] { forced-color-adjust: none; }
}
