/* scalingwebapps.com — the "Lines" design layer (2026-11).
   Loads after tokens.css + site.css and restyles them; admin pages do not
   load this file.

   White (or near-black) ground, fine drawn lines that move slowly behind the
   top of each page (assets/js/ui.js), one glass window on the home page,
   bordered cards, violet as the only accent. Motion is limited to those lines
   and 150ms hover fades; the lines stop under prefers-reduced-motion. */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-latin.woff2") format("woff2");
  font-weight: 300 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

/* ---------- Base ---------- */
body { font-family: var(--font-display); position: relative; overflow-x: clip; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; text-wrap: balance; }
h1 { letter-spacing: -0.04em; line-height: 1.06; }
h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.035em; line-height: 1.1; }
h3 { font-size: 18px; letter-spacing: -0.015em; line-height: 1.3; }
strong { font-weight: 500; }
a { transition: color .15s; }
.lede { font-size: 18px; color: var(--ink-2); line-height: 1.55; }
.lede b { color: var(--ink); font-weight: 500; }
.eyebrow, h2.eyebrow { font-family: var(--font-display); text-transform: none; letter-spacing: -0.035em; font-size: clamp(26px, 3vw, 36px); font-weight: 500; color: var(--ink); line-height: 1.1; margin: 0 0 26px; }
.code { font: 500 14px var(--font-mono); color: var(--accent-text); background: var(--accent-soft); display: inline-block; padding: 4px 10px; border-radius: 7px; margin: 0 0 18px; }

.lines { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; z-index: 0; }
.lines.tall { height: 900px; }
.lines.short { height: 420px; opacity: .7; -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
.site-header, main, .site-footer { position: relative; z-index: 1; }

.section { padding-block: clamp(56px, 7vw, 100px) 0; }
.section + .section { border-top: 0; }
.section:has(> .wrap > .notes) { padding-top: 36px; }
.section-head { margin-bottom: 26px; align-items: end; }
.section-head a, .more-link { font-weight: 500; font-size: 15px; text-decoration: none; color: var(--accent); }
.sec-lede { color: var(--ink-2); margin: -14px 0 26px; max-width: 50ch; }

/* ---------- Header ---------- */
.site-header { position: relative; top: auto; padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 0; }
.site-header .wrap { min-height: 0; padding-block: 18px; border-bottom: 1px solid var(--line); gap: 20px; }
.brand-logo { height: 28px; }
.nav { gap: 26px; margin: 0 auto 0 20px; }
.nav a { font-size: 15px; font-weight: 400; color: var(--ink-2); padding: 0; min-height: 0; border-radius: 4px; background: none; }
.nav a:hover { background: none; color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 500; background: none; }
.acts { display: flex; gap: 8px; }
@media (max-width: 760px) {
  .nav { gap: 16px; margin-left: auto; margin-right: 0; }
  .nav a { font-size: 14px; }
  .acts { display: none; }
  .brand-logo { height: 24px; }
}
@media (max-width: 400px) { .nav { gap: 12px; } .brand-logo { height: 21px; } }

/* ---------- Buttons ---------- */
.btn {
  min-height: 44px; padding: 0 18px; border-radius: var(--r-1); font-weight: 500; font-size: 15px;
  border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink);
  transition: opacity .15s, border-color .15s;
}
.btn:hover { background: var(--bg); border-color: var(--ink-3); color: var(--ink); }
.btn:active { transform: none; }
.btn-primary { background: var(--solid); color: var(--solid-ink); border-color: transparent; }
.btn-primary:hover { background: var(--solid); color: var(--solid-ink); border-color: transparent; opacity: .86; }
.btn svg { width: 14px; height: 14px; }
.appstore:hover { opacity: .88; }

/* ---------- Home hero ---------- */
.hero { padding-top: clamp(48px, 6vw, 84px); }
.hero-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: .9fr 1.3fr; } }
.pill-link { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; border: 1px solid var(--line-strong); border-radius: var(--r-1); padding: 6px 11px; background: var(--bg); color: var(--ink-2); text-decoration: none; }
.pill-link:hover { color: var(--ink); border-color: var(--ink-3); }
.pill-link b { font: 500 12px var(--font-mono); color: var(--accent-text); background: var(--accent-soft); padding: 2px 7px; border-radius: 5px; }
.pill-link svg { width: 14px; height: 14px; }
.hero h1 { font-size: clamp(38px, 4.8vw, 58px); margin-top: 22px; max-width: 13ch; }
.hero .lede { margin-top: 20px; max-width: 36ch; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }

.win {
  background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: var(--shadow-glass), 0 0 0 7px var(--ring); overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent);
}
.win-top { display: flex; gap: 20px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.win-top .brand-logo { height: 22px; margin-right: 8px; }
.win-top .on { color: var(--accent); font-weight: 500; }
.win-q { margin-left: auto; border: 1px solid var(--line-strong); border-radius: 8px; padding: 6px 48px 6px 12px; color: var(--ink-3); }
.win-body { display: grid; grid-template-columns: 170px minmax(0, 1fr); min-height: 440px; }
.win-body ul { list-style: none; margin: 0; padding: 16px 12px; border-right: 1px solid var(--line); font-size: 14px; color: var(--ink-2); display: grid; gap: 2px; align-content: start; }
.win-body li { padding: 8px 12px; border-radius: 8px; }
.win-body li.on { background: var(--accent-soft); color: var(--accent-text); font-weight: 500; }
.win-tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); padding: 20px; align-content: start; }
.win-tile { display: grid; gap: 2px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.win-tile img { width: 48px; height: 48px; border-radius: 12px; margin-bottom: 12px; }
.win-tile b { font-weight: 500; font-size: 15px; }
.win-tile span { font-size: 13px; color: var(--ink-3); }
@media (max-width: 600px) { .win-body { grid-template-columns: 1fr; min-height: 0; } .win-body ul, .win-q { display: none; } }

.stats { display: flex; gap: 40px 84px; flex-wrap: wrap; padding-top: clamp(40px, 5vw, 64px); }
.stats b { display: block; font-weight: 400; font-size: 48px; letter-spacing: -0.04em; line-height: 1.1; }
.stats span { color: var(--ink-2); font-size: 15px; }

/* ---------- Category chips ---------- */
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 22px; }
.chip-f { font: 500 13px var(--font-display); color: var(--ink-2); background: var(--bg); border: 1px solid var(--line-strong); padding: 7px 13px; border-radius: var(--r-1); cursor: pointer; transition: border-color .15s, color .15s; }
.chip-f:hover { color: var(--ink); border-color: var(--ink-3); }
.chip-f.on { background: var(--solid); color: var(--solid-ink); border-color: transparent; }

/* ---------- App cards ---------- */
.app-grid { gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.app-card {
  display: grid; grid-template-columns: 1fr; gap: 0; align-content: start; align-items: start;
  padding: 20px; min-height: 0; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.app-card:hover { border-color: var(--accent-line); background: var(--surface); box-shadow: var(--shadow-2); }
.app-card:active { transform: none; }
.app-card .icon { width: 52px; height: 52px; border-radius: 13px; margin-bottom: 14px; box-shadow: none; }
.app-card > span:nth-child(2) { gap: 3px; }
.app-card .name { font-family: var(--font-display); font-weight: 500; font-size: 17px; letter-spacing: -0.01em; }
.app-card .desc { font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.app-card .cat { font-size: 13px; color: var(--ink-3); margin-top: 10px; }
.app-card .chev { display: none; }
.app-card .pill { justify-self: start; margin-top: 10px; }
.pill { background: var(--accent-soft); color: var(--accent-text); border: 0; font-weight: 500; }

/* ---------- Principle / feature cells ---------- */
.points, .features { gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.points li, .features li { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); }
.points h3, .features h3 { font-size: 18px; margin-bottom: 8px; }
.features h3::before { content: none; }
.points p, .features p { color: var(--ink-2); font-size: 15px; }

/* ---------- Help band / closing ---------- */
.band { display: grid; gap: 24px; align-items: center; border: 1px solid var(--line); border-radius: var(--r-3); padding: clamp(28px, 5vw, 52px); background: var(--band); }
@media (min-width: 860px) { .band { grid-template-columns: 1.4fr auto; } }
.band p { color: var(--ink-2); margin-top: 12px; max-width: 52ch; }
.band-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.closing { background: none; }
.closing-box { text-align: center; display: grid; justify-items: center; gap: 14px; border: 1px solid var(--line); border-radius: var(--r-3); padding: clamp(36px, 6vw, 72px) 24px; background: var(--band); }
.closing-box p { color: var(--ink-2); max-width: 44ch; }

/* ---------- Footer ---------- */
.site-footer { background: none; border-top: 0; margin-top: clamp(56px, 7vw, 100px); padding: 0; }
.foot-row { display: flex; gap: 18px 28px; flex-wrap: wrap; align-items: center; padding-block: 28px 44px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }
.foot-row .brand-logo { height: 24px; }
.foot-row nav { display: flex; gap: 6px 20px; flex-wrap: wrap; margin-right: auto; }
.foot-row nav a, .foot-row > span a { color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.foot-row a:hover { color: var(--ink); }

/* ---------- App page ---------- */
.crumbs { padding-top: 18px; }
.crumbs ol { color: var(--ink-3); }
.crumbs li + li::before { content: "/"; }
.app-hero { padding-block: 36px 0; }
.app-hero-grid { display: grid; gap: 40px; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 940px) { .app-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; } }
.app-hero-id { gap: 20px; grid-column: auto; }
.app-hero .icon-lg { width: 92px; height: 92px; border-radius: 22px; box-shadow: none; }
.app-hero h1 { font-size: clamp(40px, 5.4vw, 60px); }
.app-hero .subtitle { font-size: 18px; color: var(--ink-2); margin-top: 2px; }
.app-hero .cat { color: var(--ink-3); font-size: 14px; }
.pitch { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; letter-spacing: -0.025em; font-weight: 500; margin-top: 28px; max-width: 24ch; grid-column: auto; }
.cta-row { grid-column: auto; grid-row: auto; flex-direction: row; align-items: center; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.cta-note { color: var(--ink-3); font-size: 14px; }
.cta-note a { color: var(--accent); font-weight: 500; text-decoration: none; }
.shot-tray { background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: var(--shadow-glass), 0 0 0 7px var(--ring); min-width: 0; }
.shot-rail { gap: 16px; padding: 22px; scrollbar-width: none; }
.shot-rail::-webkit-scrollbar { display: none; }
.shot, .shot.has-img { width: clamp(160px, 21vw, 210px); border: 1px solid var(--line); border-radius: 22px; }

.tiers { gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.tier { padding: 28px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.tier-pro { border-color: var(--accent); background: var(--note); }
.tier h3 { font-size: 18px; margin-bottom: 16px; }
.tier ul { list-style: none; padding: 0; gap: 10px; }
.tier li { padding-left: 26px; position: relative; }
.tier li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.notes { max-width: 60ch; }

/* ---------- FAQ ---------- */
.faq { border-top: 0; max-width: 820px; margin-top: 0; }
.faq details { border: 0; border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { padding-block: 18px; font-weight: 500; }
.faq summary h3 { font-size: 16px; font-weight: 500; }
.faq summary::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 1.6px solid var(--ink-3); border-bottom: 1.6px solid var(--ink-3); transform: rotate(45deg); margin-right: 4px; transition: transform .15s; }
.faq details[open] summary::after { content: ""; transform: rotate(-135deg); }
.faq .answer { padding-bottom: 20px; max-width: 64ch; }

/* ---------- Guides ---------- */
.guide-hero { gap: 20px; }
.guide-hero .icon-lg { width: 72px; height: 72px; border-radius: 18px; }
.guide-group { font-size: 22px; margin: 40px 0 16px; }
.guide-more-h { margin: clamp(56px, 7vw, 100px) 0 22px; }
.guide-cards { gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.guide-card { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: none; transition: border-color .15s; }
.guide-card:hover { border-color: var(--accent-line); background: var(--surface); transform: none; box-shadow: none; }
.guide-card strong { font-family: var(--font-display); font-weight: 500; font-size: 16px; letter-spacing: 0; }
.guide-card span { color: var(--ink-2); font-size: 14px; }
.guide-app { font-weight: 500; }
.steps { margin-top: 36px; max-width: 1000px; }
.steps > li { gap: 28px; padding: 36px 0; }
@media (min-width: 760px) { .steps > li { grid-template-columns: minmax(0, 1fr) 250px; gap: 56px; } }
.steps h2 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 14px; }
.steps h2 .n { width: 32px; height: 32px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-text); font: 500 14px var(--font-mono); }
.phone { border-radius: 30px; border: 6px solid #17171c; background: #17171c; box-shadow: 0 30px 60px -34px rgba(20, 20, 60, .6); }
.note { border-left: 3px solid var(--accent); background: var(--note); border-radius: 0 10px 10px 0; padding: 12px 16px; font-size: 15px; }
.guide-stuck { border: 1px solid var(--line); border-radius: var(--r-3); padding: clamp(28px, 5vw, 52px); margin-top: clamp(56px, 7vw, 100px); background: var(--band); }
.guide-stuck h2 { font-size: clamp(26px, 3vw, 36px); }
.guide-stuck p { color: var(--ink-2); max-width: 52ch; }
.guide-foot { color: var(--ink-3); }

/* ---------- Support ---------- */
.wrap.narrow { max-width: 728px; }
.support { padding-block: clamp(48px, 6vw, 84px) 0; }
.support h1 { font-size: var(--step-5); }
.support .faq { margin-top: 36px; }
.form-card { background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); border: 1px solid var(--line-strong); border-radius: 20px; box-shadow: var(--shadow-glass), 0 0 0 7px var(--ring); padding: clamp(22px, 3.4vw, 36px); margin-top: 40px; }
.form-card h2 { font-size: 24px; margin-bottom: 20px; }
.field label, .field .label { font-weight: 500; font-size: 15px; }
input, select, textarea { border-radius: 10px; background-color: var(--bg); border-color: var(--line-strong); min-height: 48px; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.chip { border-radius: 10px; background: var(--bg); border-color: var(--line-strong); font-weight: 500; }
.attach-drop { border-color: var(--line-strong); border-radius: 12px; background: var(--surface); }
.attach-drop:hover, .attach-drop.over { background: var(--accent-soft); }
.attach-cta { font-weight: 500; }
.banner { border-radius: 10px; }
.guide-hint, .banner.guide-hint { background: var(--note); border: 1px solid var(--line); border-radius: 10px; }
.tick { width: 60px; height: 60px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.ref-box { font: 500 15px var(--font-mono); background: var(--surface); border-color: var(--line-strong); border-radius: 8px; }

/* ---------- Prose / legal ---------- */
.prose h2 { font-size: 24px; margin: 40px 0 12px; }
.prose a, .notes a, .lede a, .fineprint a { color: var(--accent); }
.legal { display: grid; gap: 40px; margin-top: var(--s-6); }
@media (min-width: 900px) { .legal { grid-template-columns: 220px minmax(0, 1fr); gap: 64px; } .legal-toc { position: sticky; top: 24px; align-self: start; } }
.legal-toc b { font-weight: 500; font-size: 14px; }
.legal-toc ul { list-style: none; margin: 12px 0 0; padding: 0 0 0 14px; display: grid; gap: 8px; font-size: 14px; border-left: 1px solid var(--line); }
.legal-toc a { color: var(--ink-2); text-decoration: none; }
.legal-toc a:hover { color: var(--ink); }
.legal .prose { margin-top: 0 !important; }
.legal .prose section:first-child h2 { margin-top: 0; }
.prose section + section { border-top: 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
