/* Proxy Labs website. Clean, high-contrast, professional typography.
   Same accent as the app (periwinkle / indigo); green/coral reserved for keep/skip. */
:root {
  --paper: #fbfbfd;
  --paper2: #f3f4f8;
  --line: #d8dbe4;
  --ink: #111217;
  --muted: #383d4c;
  --faint: #596073;
  --accent: #534fe6;
  --accent-hover: #403cc7;
  --accent-ink: #ffffff;
  --pick: #168a5c;
  --reject: #c93b32;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 19px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.narrow { max-width: 860px; }
.center { text-align: center; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
h2 { font-size: clamp(32px, 3.8vw, 50px); line-height: 1.15; margin: 0 0 18px; }
h3 { font-size: 30px; line-height: 1.25; margin: 0 0 8px; }
p { margin: 0 0 14px; }

/* Nav */
nav { position: sticky; top: 0; z-index: 10; background: rgba(251, 251, 253, .94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; letter-spacing: -.01em; font-size: 20px; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
nav .links { display: flex; align-items: center; gap: 32px; font-size: 17px; }
nav .links a { color: var(--muted); font-weight: 500; transition: color .15s ease; }
nav .links a:hover { color: var(--ink); text-decoration: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 32px; border-radius: 999px; font-weight: 650; font-size: 18px; border: 1px solid transparent; cursor: pointer; transition: all .15s ease; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 14px rgba(83, 79, 230, .28); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 6px 20px rgba(83, 79, 230, .38); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #ffffff; box-shadow: 0 1px 3px rgba(17, 18, 23, .04); }
.btn-ghost:hover { border-color: var(--faint); background: var(--paper2); }
.text-link { color: inherit; font-weight: 600; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.text-link:hover { text-decoration: none; opacity: .85; }
.fine { font-size: 16px; color: var(--faint); margin-top: 14px; font-weight: 500; }

/* Hero */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 9, 14, .2) 0%, rgba(8, 9, 14, .5) 40%, rgba(8, 9, 14, .92) 100%), linear-gradient(90deg, rgba(8, 9, 14, .85) 0%, rgba(8, 9, 14, .65) 45%, rgba(8, 9, 14, .25) 85%); }
.hero-text { position: relative; z-index: 1; width: 100%; padding-bottom: 80px; text-shadow: 0 2px 4px rgba(0, 0, 0, .8), 0 4px 24px rgba(0, 0, 0, .6); }
.eyebrow { font-size: 16px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; margin-bottom: 12px; }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); line-height: 1.03; margin: 0 0 22px; max-width: 900px; color: #ffffff; }
.hero .lead { font-size: clamp(19px, 1.9vw, 23px); max-width: 680px; margin-bottom: 32px; color: #ffffff; font-weight: 450; line-height: 1.55; }
.hero-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin: 0; }
.hero .text-link { color: #fff; }
.hero .fine { color: rgba(255, 255, 255, .95); }
.hero .btn { text-shadow: none; }
.hero-badges { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(17, 18, 23, 0.55); backdrop-filter: blur(10px); padding: 8px 18px; border-radius: 999px; font-size: 15px; font-weight: 600; color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.22); text-shadow: none; }
.hero-badge svg { width: 16px; height: 16px; fill: currentColor; }

/* Sections */
section { padding: 104px 0; }
.story { background: var(--paper); }
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 72px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: 0 8px 30px rgba(17, 18, 23, .08); }
.split > * { min-width: 0; }
.story p { color: var(--muted); font-size: 21px; line-height: 1.6; }

.how { background: var(--paper); }
.how > .wrap > h2 { margin-bottom: 10px; }
.sub { color: var(--muted); font-size: 21px; max-width: 720px; margin: 0 auto 72px; line-height: 1.6; }
.feature { display: grid; grid-template-columns: 1fr 1.7fr; gap: 64px; align-items: center; margin-bottom: 96px; }
.feature:last-child { margin-bottom: 0; }
.feature > * { min-width: 0; }
.feature:nth-of-type(even) { grid-template-columns: 1.7fr 1fr; }
.feature:nth-of-type(even) .feature-text { order: 2; }
.feature-text .label { font-size: 15px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.feature-text h3 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.2; margin-bottom: 14px; font-weight: 600; color: var(--ink); }
.feature-text p { color: var(--muted); font-size: 19px; line-height: 1.6; }
.proof { display: flex; align-items: center; gap: 10px; margin-top: 18px; color: var(--ink) !important; font-size: 17px !important; font-weight: 600; }
.proof svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--pick); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.screen { margin: 0; border-radius: 12px; overflow: hidden; background: #0d0e12; aspect-ratio: 16 / 9; box-shadow: 0 2px 8px rgba(22, 23, 29, .08), 0 24px 60px rgba(22, 23, 29, .18); }
.screen img { width: 100%; height: 100%; object-fit: cover; }

.why { background: var(--paper2); }
.why h2 { margin-bottom: 48px; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why-grid > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: 0 2px 10px rgba(17, 18, 23, .04); }
.why-grid > div::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--accent); margin-bottom: 18px; }
.why-grid h3 { font-size: 24px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.why-grid p { color: var(--muted); font-size: 18px; line-height: 1.6; margin: 0; }

.questions { background: var(--paper); }
.questions h2 { margin-bottom: 28px; }
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
summary { cursor: pointer; font-weight: 650; font-size: 21px; list-style: none; color: var(--ink); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--faint); font-weight: 500; font-size: 22px; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); font-size: 18px; line-height: 1.6; margin: 12px 0 0; }

.closing { padding: 120px 0; background: var(--paper2); }
.closing h2 { color: var(--ink); font-weight: 600; }
.closing p { color: var(--muted); font-size: 21px; margin-bottom: 30px; }
.closing .fine { font-size: 16px; color: var(--faint); margin-top: 16px; font-weight: 500; }

footer { border-top: 1px solid var(--line); padding: 36px 0 52px; color: var(--faint); font-size: 16px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--muted); font-weight: 500; }
footer a:hover { color: var(--ink); }

/* Forms & Cards */
.card { max-width: 540px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 36px; box-shadow: 0 12px 40px rgba(17, 18, 23, .07); }
.card h1 { font-size: 32px; text-align: left; margin: 0 0 10px; line-height: 1.15; color: var(--ink); font-weight: 600; }
.card p { color: var(--muted); margin: 0 0 20px; line-height: 1.6; }
label { display: block; font-size: 14px; color: var(--muted); font-weight: 600; margin: 14px 0 6px; }
input, select, textarea { width: 100%; padding: 13px 15px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(83, 79, 230, .4); border-color: var(--accent); }
.row { display: flex; gap: 10px; align-items: center; margin-top: 20px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin-top: 14px; }
.check input { width: auto; margin-top: 4px; }
.msg { margin-top: 14px; font-size: 14px; min-height: 20px; font-weight: 500; }
.msg.err { color: var(--reject); }
.msg.ok { color: var(--pick); }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.install { padding-left: 22px; margin: 0 0 6px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.install li { margin: 6px 0; }
.small { font-size: 15px; color: var(--faint); margin-top: 14px; font-weight: 500; }

/* Legal pages */
.legal { max-width: 780px; margin: 0 auto; padding: 60px 24px 90px; }
.legal h1 { font-size: 42px; text-align: left; color: var(--ink); font-weight: 600; }
.legal h2 { font-size: 26px; margin-top: 40px; color: var(--ink); font-weight: 600; }
.legal p, .legal li { color: var(--muted); font-size: 18px; line-height: 1.65; }
.legal b { color: var(--ink); }
.note { border: 1px solid rgba(83, 79, 230, .35); background: rgba(83, 79, 230, .08); border-radius: 12px; padding: 14px 18px; color: var(--ink); font-size: 15px; font-weight: 500; }

/* Flow */
.fit { background: var(--paper2); }
.fit h2 { margin-bottom: 10px; color: var(--ink); }
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 18px; align-items: stretch; }
.flow-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; box-shadow: 0 2px 8px rgba(17, 18, 23, .04); }
.flow-step h3 { font-size: 24px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.flow-step p { color: var(--muted); font-size: 17px; line-height: 1.55; margin: 0; }
.flow-step b { color: var(--ink); font-weight: 650; }
.flow-label { font-size: 13px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint) !important; margin-bottom: 10px !important; }
.flow-us { border: 2px solid var(--accent); box-shadow: 0 14px 40px rgba(83, 79, 230, .16); }
.flow-us .flow-label { color: var(--accent) !important; }
.flow-arrow { display: flex; align-items: center; justify-content: center; }
.flow-arrow svg { width: 28px; height: 28px; fill: none; stroke: var(--faint); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); }
  .split, .feature, .feature:nth-of-type(even) { grid-template-columns: 1fr; gap: 28px; }
  .feature:nth-of-type(even) .feature-text { order: 0; }
  .why-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  nav .links a:not(:last-child) { display: none; }
  section { padding: 72px 0; }
  .hero { min-height: 640px; }
  .hero-text { padding-bottom: 48px; }
  .feature { margin-bottom: 64px; }
  .why-grid { grid-template-columns: 1fr; }
  .card { padding: 28px 20px; }
}
