/* WrenchSwap website. Colors and fonts match the app (src/constants/brand.ts). Fonts are served from this
   site (fonts/), so no visitor data goes to an outside font service. */
@font-face { font-family: "Archivo"; src: url("fonts/Archivo_800ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/Archivo_700Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plex"; src: url("fonts/IBMPlexSans_400Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url("fonts/IBMPlexSans_600SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "PlexMono"; src: url("fonts/IBMPlexMono_600SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --ground: #F0ECE4; --surface: #F8F6F1; --white: #FFFFFF; --ink: #14120E; --ink2: #3A3733; --muted: #5C574D;
  --line: #DCD6CA; --accent: #C2410C; --orange: #F46809; --cream: #E9DCC9; --soft: #FDE7D8;
  --green: #1F6B3E; --green-soft: #D7EBDD; --dark: #14120E; --dark2: #1F1C17; --dark-line: #322D26;
  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --body: "Plex", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "PlexMono", ui-monospace, Menlo, Consolas, monospace;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 17px/1.6 var(--body); overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.eyebrow { font: 600 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.on-dark .eyebrow { color: var(--orange); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(20, 18, 14, 0.92); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--dark-line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 21px/1 var(--display); letter-spacing: -0.02em; color: var(--cream); }
.brand img { border-radius: 9px; display: block; }
.brand b { color: var(--orange); font-weight: 800; }
nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
nav a { color: var(--cream); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: 15px; font-weight: 600; }
nav a:hover, nav a[aria-current="page"] { background: #2A2621; color: #fff; }
nav a.pill { background: var(--orange); color: var(--ink); margin-left: 6px; white-space: nowrap; }
nav a.pill:hover { background: #FF7A1F; color: var(--ink); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 14px; font: 600 17px/1 var(--body); text-decoration: none; transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--orange); color: var(--ink); box-shadow: 0 10px 30px -10px rgba(244, 104, 9, 0.7); }
.btn.primary:hover { background: #FF7A1F; }
.btn.ghost { color: var(--cream); border: 1.5px solid #4A433A; }
.btn.ghost:hover { border-color: var(--cream); }
.btn.dark { background: var(--ink); color: var(--cream); }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--dark); color: var(--cream); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(700px 480px at 82% 30%, rgba(244, 104, 9, 0.30), transparent 65%),
  radial-gradient(520px 380px at 8% 105%, rgba(194, 65, 12, 0.22), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image: linear-gradient(var(--dark-line) 1px, transparent 1px), linear-gradient(90deg, var(--dark-line) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 20%, transparent 75%); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 0; }
.hero-copy { padding-bottom: 80px; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 10px; border: 1px solid #4A433A; border-radius: 999px; font: 600 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream); background: rgba(31, 28, 23, 0.7); }
.tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(244, 104, 9, 0.25); }
.hero h1 { font-size: clamp(42px, 7.2vw, 84px); margin: 22px 0 20px; color: #FBF6EC; }
.hero h1 span { color: var(--orange); display: block; }
.hero .lead { font-size: clamp(18px, 2.1vw, 21px); color: #CFC3B1; max-width: 560px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 14px; }
.fine { font-size: 14px; color: #A2978A; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 40px; border-top: 1px solid var(--dark-line); }
.facts div { padding: 18px 16px 0 0; }
.facts div + div { padding-left: 18px; border-left: 1px solid var(--dark-line); }
.facts b { display: block; font: 800 30px/1 var(--display); color: #FBF6EC; letter-spacing: -0.02em; }
.facts span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.35; color: #A2978A; }

/* ---------- phone ---------- */
.phone-wrap { position: relative; justify-self: center; align-self: end; padding-top: 10px; }
.phone { position: relative; width: 300px; border-radius: 46px 46px 0 0; padding: 11px 11px 0; background: #0B0A08; border: 1px solid #3A342C; border-bottom: 0; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px #000 inset; transform: rotate(2.5deg); transform-origin: bottom center; }
.screen { position: relative; height: 520px; border-radius: 36px 36px 0 0; background: var(--ground); color: var(--ink); overflow: hidden; font-family: var(--body); }
.island { position: absolute; top: 10px; left: 50%; width: 86px; height: 24px; margin-left: -43px; border-radius: 14px; background: #0B0A08; z-index: 2; }
.app-head { padding: 48px 14px 10px; }
.app-brand { font: 800 19px/1 var(--display); letter-spacing: -0.02em; }
.app-brand b { color: var(--accent); }
.app-sub { font-size: 11px; color: var(--muted); margin-top: 3px; }
.app-search { margin-top: 10px; height: 34px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); display: flex; align-items: center; padding: 0 10px; font-size: 12px; color: var(--muted); gap: 6px; }
.chips { display: flex; gap: 6px; margin-top: 9px; overflow: hidden; }
.chips span { flex: none; font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.chips span.on { background: var(--ink); color: var(--white); border-color: var(--ink); }
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 4px 14px 0; }
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tool .pic { height: 84px; display: grid; place-items: center; position: relative; }
.tool .pic svg { width: 46px; height: 46px; opacity: 0.85; }
.tool .badge { position: absolute; left: 6px; top: 6px; font: 600 8px/1 var(--mono); letter-spacing: 0.08em; background: var(--green); color: #fff; padding: 4px 5px; border-radius: 5px; }
.tool .info { padding: 7px 8px 9px; }
.tool .price { font: 800 15px/1 var(--display); }
.tool .name { font-size: 11px; font-weight: 600; margin-top: 4px; line-height: 1.25; }
.tool .meta { font-size: 10px; color: var(--muted); margin-top: 2px; }
.tabs { position: absolute; left: 0; right: 0; bottom: 0; height: 50px; background: var(--surface); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-around; font-size: 10px; font-weight: 600; color: var(--muted); }
.tabs span.on { color: var(--accent); }
.float { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; background: var(--surface); color: var(--ink); border-radius: 14px; padding: 10px 14px 10px 10px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.7); font-size: 13px; line-height: 1.3; }
.float b { display: block; font-weight: 600; }
.float span { color: var(--muted); font-size: 12px; }
.float .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.float .dot svg { width: 18px; height: 18px; }
.float.one { left: -128px; top: 96px; }
.float.one .dot { background: var(--green-soft); color: var(--green); }
.float.two { right: -96px; top: 318px; }
.float.two .dot { background: var(--soft); color: var(--accent); }
.example { position: absolute; right: calc(100% + 18px); bottom: 18px; white-space: nowrap; font: 600 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: #7E7468; z-index: 4; }

/* ---------- sections ---------- */
section.band { padding: 88px 0; }
.band.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band.on-dark { background: var(--dark); color: var(--cream); }
.head { max-width: 720px; margin-bottom: 44px; }
.head h2 { font-size: clamp(30px, 4.6vw, 48px); margin: 14px 0 14px; }
.head p { font-size: 19px; color: var(--ink2); }
.on-dark .head p { color: #CFC3B1; }
.on-dark .head h2 { color: #FBF6EC; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 26px 24px 28px; counter-increment: step; }
.step::before { content: "0" counter(step); display: block; font: 600 13px/1 var(--mono); letter-spacing: 0.1em; color: var(--accent); margin-bottom: 44px; }
.step::after { content: ""; position: absolute; left: 24px; right: 24px; top: 58px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.step h3 { font-size: 23px; margin-bottom: 8px; }
.step p { color: var(--ink2); font-size: 16px; }

/* trust grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--dark2); border: 1px solid var(--dark-line); border-radius: 20px; padding: 24px; transition: border-color 0.2s ease, transform 0.2s ease; }
.feature:hover { border-color: #5A4A38; transform: translateY(-3px); }
.icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: rgba(244, 104, 9, 0.14); color: var(--orange); margin-bottom: 18px; }
.icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 20px; color: #FBF6EC; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature p { color: #BDB1A0; font-size: 16px; }

/* buyers and sellers */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { border-radius: 24px; padding: 34px 32px; border: 1px solid var(--line); background: var(--white); }
.panel.orange { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.panel h3 { font-size: 30px; margin: 12px 0 18px; }
.panel .eyebrow { color: var(--accent); }
.panel.orange .eyebrow { color: var(--ink); opacity: 0.75; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; font-size: 16.5px; line-height: 1.45; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F8F6F1' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; }

/* fee */
.fee { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; background: var(--ink); color: var(--cream); border-radius: 28px; padding: 40px 44px; margin-top: 20px; position: relative; overflow: hidden; }
.fee::before { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(244, 104, 9, 0.35), transparent 70%); }
.fee .big { font: 800 clamp(72px, 12vw, 128px)/0.9 var(--display); letter-spacing: -0.04em; color: var(--orange); position: relative; }
.fee h3 { font-size: 26px; color: #FBF6EC; margin-bottom: 10px; position: relative; }
.fee p { color: #CFC3B1; font-size: 17px; position: relative; max-width: 560px; }

/* faq */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; font: 700 20px/1.3 var(--display); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); font: 600 20px/1 var(--body); color: var(--accent); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 50px 24px 0; color: var(--ink2); }

/* closing */
.closing { position: relative; text-align: center; overflow: hidden; }
.closing::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% 110%, rgba(244, 104, 9, 0.35), transparent 70%); }
.closing .wrap { position: relative; }
.closing img { border-radius: 22px; box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.8); }
.closing h2 { font-size: clamp(34px, 5.4vw, 60px); color: #FBF6EC; margin: 26px auto 14px; max-width: 760px; }
.closing p { color: #CFC3B1; font-size: 19px; max-width: 560px; margin: 0 auto; }
.closing .cta { justify-content: center; }
.soon { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; padding: 12px 18px; border-radius: 14px; border: 1px dashed #5A4A38; color: #CFC3B1; font-size: 15px; }
.soon b { color: var(--cream); font-weight: 600; }

/* ---------- docs (support, terms, privacy) ---------- */
.doc-head { background: var(--dark); color: var(--cream); padding: 56px 0 48px; position: relative; overflow: hidden; }
.doc-head::before { content: ""; position: absolute; inset: 0; background: radial-gradient(520px 300px at 90% 0%, rgba(244, 104, 9, 0.26), transparent 70%); }
.doc-head .wrap { position: relative; }
.doc-head h1 { font-size: clamp(34px, 5.4vw, 56px); color: #FBF6EC; margin-top: 14px; }
.doc-head p { color: #CFC3B1; margin-top: 12px; max-width: 640px; }
.doc-head a { color: var(--orange); }
.doc { max-width: 760px; padding: 44px 20px 80px; }
.doc section { padding: 24px 0; border-bottom: 1px solid var(--line); }
.doc section:last-child { border-bottom: 0; }
.doc h2 { font-size: 22px; letter-spacing: -0.01em; margin-bottom: 8px; }
.doc p, .doc li { color: var(--ink2); }
.doc ul { padding-left: 20px; margin: 8px 0 0; }
.doc li { margin: 6px 0; }
.help { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 44px 20px 24px; }
.help .card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.help .card h2 { font-size: 21px; margin: 16px 0 8px; letter-spacing: -0.01em; }
.help .card p { color: var(--ink2); font-size: 16px; }
.help .icon { background: var(--soft); color: var(--accent); margin: 0; }
.links { padding: 8px 20px 80px; color: var(--muted); }

/* ---------- footer ---------- */
footer { background: #0D0C09; color: #A2978A; padding: 48px 0 40px; font-size: 15px; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
footer .brand { margin-bottom: 12px; }
footer h4 { font: 600 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: #7E7468; margin: 6px 0 14px; }
footer a { color: var(--cream); text-decoration: none; }
footer a:hover { color: var(--orange); }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--dark-line); padding-top: 20px; font-size: 13.5px; color: #7E7468; }

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(40px) rotate(2.5deg); } to { opacity: 1; transform: rotate(2.5deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.phone { animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.float.one { animation: bob 5s ease-in-out infinite; }
.float.two { animation: bob 6s ease-in-out 0.8s infinite; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone, .float.one, .float.two { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .feature:hover { transform: none; }
}

/* ---------- small screens ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-copy { padding-bottom: 24px; }
  .float.one { left: -30px; } .float.two { right: -24px; }
  .example { right: auto; left: 0; bottom: auto; top: -8px; }
  .steps, .features { grid-template-columns: 1fr 1fr; }
  footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  section.band { padding: 60px 0; }
  .steps, .features, .split, .help { grid-template-columns: 1fr; }
  .fee { grid-template-columns: 1fr; gap: 12px; padding: 30px 26px; }
  .facts b { font-size: 24px; }
  .facts div { padding-right: 10px; } .facts div + div { padding-left: 12px; }
  nav a:not(.pill):not([aria-current]) { display: none; }
  nav a[aria-current="page"] { display: none; }
  .float.one { left: -8px; top: 120px; } .float.two { right: -8px; top: 232px; }
  .brand { font-size: 19px; } nav a.pill { font-size: 14px; padding: 8px 12px; margin-left: 0; }
  .phone { width: 270px; }
  .btn { width: 100%; }
  footer .wrap { grid-template-columns: 1fr; }
  .faq details p { padding-right: 0; }
}
