/* wallance.app — light theme with the app's teal-to-blue accent. Plain CSS, no build step. */
@import url("/assets/fonts/fonts.css");

:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --ink: #0b1324;
  --ink-2: #1f2a3d;
  --muted: #5b6476;
  --line: #e3e8ef;
  --teal: #0fb597;
  --teal-ink: #0b8a73;
  --blue: #3b82f6;
  --grad: linear-gradient(95deg, #14c9a8 0%, #3b82f6 100%);
  --dark: #0c0e11;
  --radius: 20px;
  --shell: 1160px;
  --shadow: 0 18px 50px rgba(11, 19, 36, 0.08);
  --font: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 14px; letter-spacing: -0.03em; font-weight: 800; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0 0 14px; }
.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: 14px; }
.muted { color: var(--muted); }
.lede { font-size: 1.15rem; color: var(--muted); }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(246, 248, 251, 0.85); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid rgba(11, 19, 36, 0.06); }
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.03em; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink-2); font-weight: 500; font-size: 0.96rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal-ink); text-decoration: none; }
.nav .lang { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px 0; border-radius: 2px; }

/* App Store badge (black, as Apple's guidelines expect on light backgrounds) */
.store { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; border-radius: 14px; background: #000; color: #fff; line-height: 1.1; border: 1px solid #000; transition: transform .15s ease; }
.store:hover { text-decoration: none; transform: translateY(-1px); color: #fff; }
.store svg { width: 26px; height: 26px; flex: 0 0 auto; }
.store small { display: block; font-size: 0.68rem; font-weight: 500; opacity: 0.9; }
.store strong { display: block; font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; }
.store.sm { padding: 7px 13px 7px 10px; border-radius: 11px; }
.store.sm svg { width: 20px; height: 20px; }
.store.sm small { display: none; }
.store.sm strong { font-size: 0.92rem; }
.nav .store, .nav .store:hover, .foot .store, .foot .store:hover { color: #fff; }
.store.light { background: #fff; color: #000; border-color: #fff; }
.store.light:hover { color: #000; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border-radius: 14px; font: 700 0.96rem/1 var(--font); border: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: transform .15s ease, border-color .15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); border-color: #c9d2de; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 64px 0 56px; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(10px); pointer-events: none; }
.hero::before { width: 640px; height: 640px; right: -120px; top: -200px; background: radial-gradient(circle, rgba(20, 201, 168, 0.22), transparent 65%); }
.hero::after { width: 560px; height: 560px; right: 260px; top: 160px; background: radial-gradient(circle, rgba(59, 130, 246, 0.16), transparent 65%); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero .lede { max-width: 560px; margin-bottom: 28px; }
.hero-note { margin-top: 18px; font-size: 0.92rem; color: var(--muted); }
.hero-phones { position: relative; height: 620px; }
.phone { width: 270px; border-radius: 42px; padding: 9px; background: #05070a; box-shadow: 0 40px 80px rgba(11, 19, 36, 0.28), 0 0 0 1px rgba(11, 19, 36, 0.1); }
.phone img { border-radius: 34px; }
.hero-phones .phone { position: absolute; }
.hero-phones .p1 { left: 4%; top: 0; z-index: 2; }
.hero-phones .p2 { right: 0; top: 80px; transform: rotate(5deg); }

/* Breadcrumbs */
.crumbs ol { list-style: none; margin: 0; padding: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.86rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: #a7b0bf; }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* Sections */
.section { padding: 84px 0; }
.section.tight { padding-top: 32px; }
.section.white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 700px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* Feature cards (links to feature pages) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fcard { display: flex; flex-direction: column; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.fcard:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d3dbe6; }
.fcard .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px; background: linear-gradient(140deg, rgba(20, 201, 168, 0.16), rgba(59, 130, 246, 0.16)); color: var(--teal-ink); }
.fcard .ic svg { width: 23px; height: 23px; }
.fcard h3 { margin-bottom: 6px; }
.fcard p { color: var(--muted); font-size: 0.97rem; margin: 0 0 14px; flex: 1; }
.fcard .go { font-weight: 700; color: var(--teal-ink); font-size: 0.92rem; }

/* Dark showcase band */
.showcase { background: var(--dark); color: #e9eef5; border-radius: 30px; padding: 56px 48px 0; overflow: hidden; position: relative; }
.showcase::before { content: ""; position: absolute; inset: auto -10% -40% auto; width: 600px; height: 600px; background: radial-gradient(circle, rgba(20, 201, 168, 0.18), transparent 62%); }
.showcase h2 { color: #fff; max-width: 640px; }
.showcase p { color: #a8b2c1; max-width: 620px; }
.strip { position: relative; display: flex; gap: 22px; justify-content: center; margin-top: 36px; }
.strip .phone { width: 220px; margin-bottom: -120px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.strip .phone:nth-child(2) { transform: translateY(-30px); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; margin-bottom: 14px; background: var(--grad); color: #fff; font-weight: 800; }
.steps strong { display: block; font-size: 1.08rem; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 0.96rem; }

/* Trust row */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust div { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.trust strong { display: block; margin-bottom: 4px; }
.trust span { color: var(--muted); font-size: 0.94rem; }

/* Feature page */
.fhero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding-top: 28px; padding-bottom: 64px; }
.fhero .phone { margin: 0 auto; width: 280px; }
.fbody { display: grid; grid-template-columns: 1.25fr 0.85fr; gap: 48px; align-items: start; }
.prose h2 { font-size: 1.5rem; margin: 30px 0 10px; letter-spacing: -0.02em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #3b4557; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 90px; }
.panel h3 { margin-bottom: 12px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: rgba(15, 181, 151, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b8a73' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }
.panel .store { margin-top: 18px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 840px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 18px 30px 18px 0; font-weight: 650; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.4rem; color: var(--teal-ink); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* CTA band */
.band { border-radius: 30px; padding: 52px 48px; background: var(--dark); color: #fff; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; right: -120px; top: -160px; width: 480px; height: 480px; background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent 62%); }
.band h2 { color: #fff; position: relative; }
.band p { color: #a8b2c1; margin: 0; position: relative; }
.band .store { position: relative; }

/* Legal / prose pages */
.doc { max-width: 800px; padding: 24px 0 90px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 0.95rem; background: var(--surface); }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); color: #3b4557; }
.doc th { background: #eef2f7; color: var(--ink); }

/* Footer */
.foot { background: var(--surface); border-top: 1px solid var(--line); padding: 56px 0 36px; font-size: 0.93rem; color: var(--muted); }
.foot-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.foot-brand p { margin: 12px 0 16px; max-width: 320px; }
.foot-title { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); margin: 4px 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--ink); }
.foot-note { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line); }

.notfound { min-height: 64vh; display: grid; place-items: center; text-align: center; padding: 60px 20px; }

/* Responsive */
@media (max-width: 1000px) {
  .hero-inner, .fhero, .fbody, .band { grid-template-columns: 1fr; }
  .hero-phones { height: 500px; max-width: 520px; width: 100%; margin: 0 auto; }
  .hero-phones .phone { width: 220px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .panel { position: static; }
  .foot-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 6px 20px 16px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .store { margin-top: 12px; align-self: flex-start; border-bottom: 1px solid #000; }
  .hero { padding-top: 40px; }
  .hero-phones { height: 410px; }
  .hero-phones .phone { width: 176px; border-radius: 30px; padding: 7px; }
  .hero-phones .phone img { border-radius: 24px; }
  .cards, .steps, .trust, .foot-inner { grid-template-columns: 1fr; }
  .showcase { padding: 36px 22px 0; border-radius: 24px; }
  .strip .phone { width: 140px; margin-bottom: -80px; border-radius: 26px; padding: 6px; }
  .strip .phone img { border-radius: 21px; }
  .strip .phone:nth-child(3) { display: none; }
  .fhero .phone { width: 230px; }
  .band { padding: 34px 22px; border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .store, .btn, .fcard { transition: none; } }
