/* fundevs.com
   Layout: a catalog page. Short index up top, then one full-width band per app in that app's own
   colours, showing the app's real screens. Same header and footer on every page. */

:root {
  --paper: #f3f4f6;
  --paper-2: #e6e8ec;
  --ink: #161a22;
  --ink-2: #545b69;
  --rule: #cfd3da;
  --conv-bg: #14213d;      /* converter icon navy */
  --conv-fg: #e9edf6;
  --conv-dim: #8d9ab5;
  --tinge-bg: #16151c;     /* Tinge icon charcoal, cream and lime */
  --tinge-fg: #f3ede2;
  --tinge-dim: #9d988e;
  --tinge-hi: #d2f54a;
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101318; --paper-2: #181c23; --ink: #e8eaee; --ink-2: #9aa1ad; --rule: #2a2f38;
    --conv-bg: #0f1a33; --tinge-bg: #0f0e13;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
img { display: block; max-width: 100%; }
.wrap {
  max-width: 1160px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; }
svg.f { fill: currentColor; }

/* header and footer */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px; }
.mark { font-family: var(--display); font-weight: 800; font-stretch: 125%; font-size: 21px; letter-spacing: -.01em; text-decoration: none; display: flex; align-items: center; gap: 9px; }
.mark svg { width: 20px; height: 28px; }
nav { display: flex; gap: 26px; font-size: 15px; }
nav a { text-decoration: none; color: var(--ink-2); }
nav a:hover, nav a[aria-current] { color: var(--ink); }
.site-footer { border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 28px; padding-block: 26px 40px; padding-bottom: max(40px, env(safe-area-inset-bottom, 0px)); }
.site-footer .co { display: flex; align-items: center; gap: 10px; }
.site-footer .co svg { width: 12px; height: 17px; }
.site-footer nav { gap: 22px; font-size: 14px; flex-wrap: wrap; }

/* home: intro */
.intro .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: end; padding-block: 56px 72px; }
.intro h1 {
  font-family: var(--display); font-stretch: 112%; font-weight: 700;
  font-size: clamp(38px, 5.6vw, 68px); line-height: 1.0; letter-spacing: -.025em; margin: 0;
  text-wrap: balance;
}
.intro h1 em { font-style: normal; font-stretch: 62%; font-weight: 500; color: var(--ink-2); }
.intro p { color: var(--ink-2); max-width: 34ch; margin: 22px 0 0; }
.index { border-top: 2px solid var(--ink); }
.index a { display: grid; grid-template-columns: 52px 1fr auto; gap: 2px 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.index a:hover .nm { text-decoration: underline; text-underline-offset: 4px; }
.index .ic { grid-row: 1 / span 2; width: 52px; height: 52px; }
.index .ic img { width: 100%; height: 100%; }
.index .ic.sq img { border-radius: 12px; }
.index .nm { font-family: var(--display); font-weight: 650; font-size: 21px; line-height: 1.2; }
.index .st { color: var(--ink-2); grid-column: 2; }
.index .arrow { grid-row: 1 / span 2; grid-column: 3; font-family: var(--mono); color: var(--ink-2); }

/* home: app bands */
.band > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding-block: 88px; }
.band h2 { font-family: var(--display); font-weight: 750; font-stretch: 118%; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.02; letter-spacing: -.02em; margin: 18px 0; text-wrap: balance; }
.band .lede { font-size: 19px; max-width: 40ch; margin: 0 0 32px; }
.app-id { display: flex; align-items: center; gap: 14px; }
.app-id img { width: 44px; height: 44px; }
.app-id.sq img { border-radius: 11px; }
.specs { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0 24px; margin: 0 0 36px; border-top: 1px solid; }
.specs dt, .specs dd { padding: 11px 0; border-bottom: 1px solid; margin: 0; }
.specs dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; padding-top: 14px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; font-weight: 600; text-decoration: none; border-radius: 3px; font-size: 15px; }
.btn svg { width: 18px; height: 18px; }

.conv { background: var(--conv-bg); color: var(--conv-fg); }
.conv .label { color: var(--conv-dim); }
.conv .specs, .conv .specs dt, .conv .specs dd { border-color: rgba(233,237,246,.16); }
.conv .specs dt { color: var(--conv-dim); }
.conv .btn { background: var(--conv-fg); color: var(--conv-bg); }
.conv .stat { color: var(--conv-dim); font-size: 14px; }
.conv .stat b { color: var(--conv-fg); font-weight: 600; }
.shotcard { margin: 0; justify-self: center; width: min(400px, 100%); }
.shotcard .screen { border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -28px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.08); background: #fff; }
.shotcard img { width: 100%; height: auto; }
.shotcard figcaption { margin-top: 14px; font-size: 13px; color: var(--conv-dim); }

.tinge { background: var(--tinge-bg); color: var(--tinge-fg); overflow: hidden; }
.tinge .label, .tinge .specs dt { color: var(--tinge-dim); }
.tinge .specs, .tinge .specs dt, .tinge .specs dd { border-color: rgba(243,237,226,.14); }
.tinge .pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid currentColor; color: var(--tinge-hi); padding: 7px 13px; border-radius: 99px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }
.tinge .pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* phones holding real screenshots */
.phone { width: min(300px, 100%); max-width: 100%; border-radius: 34px; padding: 9px; background: #000; box-shadow: 0 34px 70px -30px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.12); }
.phone .scr { border-radius: 26px; overflow: hidden; aspect-ratio: 540 / 1200; position: relative; background: #07070c; }
.phone .scr img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s; }
.tinge .demo { display: grid; justify-items: center; gap: 22px; }
.glow { position: relative; width: min(300px, 100%); }
.glow::before { content: ""; position: absolute; inset: 8% -18%; background: radial-gradient(closest-side, var(--glow, #8b3cf0), transparent); opacity: .45; filter: blur(30px); transition: background .6s; }
.glow .phone { position: relative; width: 100%; }
.swatches { display: flex; gap: 10px; align-items: center; }
.swatches button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; box-shadow: inset 0 0 0 3px var(--tinge-bg); }
.swatches button[aria-pressed="true"] { border-color: var(--tinge-fg); }
.swatch-cap { font-size: 13px; color: var(--tinge-dim); }

.gallery .wrap { padding-block: 0 88px; }
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 2.2fr); gap: 20px; align-items: end; }
.strip figure { margin: 0; display: grid; gap: 10px; }
.strip .phone { width: 100%; border-radius: 26px; padding: 7px; }
.strip .phone .scr { border-radius: 20px; }
.strip .land { border-radius: 22px; padding: 7px; background: #000; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.12); }
.strip .land img { width: 100%; height: auto; border-radius: 16px; }
.strip figcaption { font-size: 13px; color: var(--tinge-dim); }

/* home: company */
.about .wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; padding-block: 80px; }
.about h2 { font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: 28px; margin: 10px 0 0; }
.about .label { color: var(--ink-2); }
.about p { margin: 0; max-width: 56ch; color: var(--ink-2); }
.about .contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 28px; border-top: 1px solid var(--rule); padding-top: 20px; }
.about .contact div { min-width: 0; }
.about .contact a { display: block; margin-top: 4px; font-weight: 500; overflow-wrap: anywhere; }

/* document pages (privacy policy) */
.doc-head .wrap { padding-block: 48px 40px; }
.doc-head .wrap > div { border-bottom: 2px solid var(--ink); padding-bottom: 40px; }
.doc-head .label { color: var(--ink-2); }
.doc-head h1 { font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: clamp(36px, 5vw, 56px); line-height: 1.02; letter-spacing: -.02em; margin: 10px 0 0; }
.doc .wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding-block: 0 88px; }
.toc { position: sticky; top: 24px; align-self: start; display: grid; gap: 10px; font-size: 14px; }
.toc .label { color: var(--ink-2); }
.toc a { text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--ink); }
.doc article { max-width: 68ch; line-height: 1.65; }
.doc article section + section { margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--rule); }
.doc h2 { font-family: var(--display); font-stretch: 105%; font-weight: 650; font-size: 23px; line-height: 1.25; margin: 0 0 14px; text-wrap: balance; }
.doc article p { margin: 0 0 14px; }
.doc article ol, .doc article ul { margin: 0 0 14px; padding-left: 1.3em; display: grid; gap: 8px; }
.doc .partners { list-style: none; padding: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; border-top: 1px solid var(--rule); }
.doc .partners li { border-bottom: 1px solid var(--rule); }
.doc .partners a { display: flex; justify-content: space-between; padding: 11px 0; text-decoration: none; font-weight: 500; }
.doc .partners a span { color: var(--ink-2); font-family: var(--mono); font-size: 13px; }
.doc .partners a:hover { text-decoration: underline; text-underline-offset: 4px; }
.callout { background: var(--paper-2); padding: 18px 20px; border-left: 3px solid var(--ink); margin: 18px 0; }

@media (max-width: 860px) {
  .intro .wrap, .band > .wrap, .about .wrap, .doc .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .band > .wrap { padding-block: 64px; }
  .band .demo { order: 2; }
  .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .strip .wide { grid-column: 1 / -1; }
  .toc { position: static; border-bottom: 1px solid var(--rule); padding-bottom: 20px; }
  .doc .partners { grid-template-columns: minmax(0, 1fr); }
  nav.top { display: none; }
}
@media (max-width: 480px) {
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip figure:nth-child(3) { display: none; }
  .about .contact { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
