/*
  FOLLOWap — the app surface.

  The palette is landing/index.html's :root, unchanged. The marketing site
  runs it dark; the app runs the same four colours light, which is what the
  screenshots in landing/ show.

  Two things here are identity rather than decoration and are marked where
  they appear: the 3px rail on the left of every contact row, and the bottom
  tab bar. Everything else is hairlines, whitespace and one green.
*/

:root{
  /* From landing/index.html, verbatim. */
  --ink:#19191B; --paper:#EBEBEB; --white:#FFFFFF;
  --green:#38CA5F; --grey:#8A8A8C; --grey-d:#5A5A5C;

  /* The third rail state. The marketing palette has two colours and the
     recency rail needs three, so 'going cold' comes from the prototype's
     --stale rather than being invented here. */
  --amber:#D08B2C;

  --line:rgba(0,0,0,.10);
  --line-soft:rgba(0,0,0,.055);
  --sunken:#F4F4F4;
  --r:12px; --r-sm:10px;
}

*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
html{-webkit-text-size-adjust:100%}
body{
  font-family:Manrope,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:var(--paper);color:var(--ink);
  font-size:15px;line-height:1.5;letter-spacing:-.014em;
  -webkit-font-smoothing:antialiased;
  padding-bottom:calc(78px + env(safe-area-inset-bottom));
}
img,svg{display:block}
button,input,select,textarea{font:inherit;color:inherit}
a{color:inherit;text-decoration:none}
.tnum{font-variant-numeric:tabular-nums}

/* ── shell ─────────────────────────────────────────────────────────── */
.top{position:sticky;top:0;z-index:20;background:rgba(235,235,235,.88);
  backdrop-filter:saturate(180%) blur(14px);border-bottom:1px solid var(--line)}
.wrap{max-width:760px;margin:0 auto;padding:0 20px}
.top .wrap{padding-top:16px;padding-bottom:14px}
.brand{display:flex;align-items:baseline;gap:9px}
.brand .nm{font-size:19px;font-weight:800;letter-spacing:-.035em}
.brand .dv{color:var(--grey)}
.brand .ct{font-size:15px;color:var(--grey)}
.brand .ct b{color:var(--ink);font-weight:700}

main{padding-top:26px}

/* Large, tight. The headings carry the tone more than anything else does. */
h1{font-size:30px;font-weight:800;letter-spacing:-.042em;line-height:1.12}
h2{font-size:20px;font-weight:700;letter-spacing:-.03em}
.lede{font-size:16px;color:var(--grey-d);margin-top:10px;max-width:52ch}
.sect{font-size:11.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  color:var(--grey);margin:30px 0 11px;display:flex;justify-content:space-between;align-items:baseline}
.sect .n{letter-spacing:-.01em;text-transform:none;font-weight:500;font-size:13px}

/* ── surfaces ──────────────────────────────────────────────────────── */
.card{background:var(--white);border:1px solid var(--line);border-radius:var(--r)}
.card.pad{padding:22px}
.stack{display:grid;gap:14px}
.muted{color:var(--grey)}
.hr{height:1px;background:var(--line);border:0;margin:16px 0}

/* ── controls ──────────────────────────────────────────────────────── */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;
  height:46px;padding:0 22px;border-radius:var(--r-sm);border:1px solid var(--line);
  background:var(--white);font-size:15px;font-weight:600;letter-spacing:-.018em;
  cursor:pointer;transition:background .12s,border-color .12s}
.btn:hover{background:var(--sunken)}
.btn.primary{background:var(--ink);color:var(--white);border-color:var(--ink)}
.btn.primary:hover{background:#000}
.btn.wide{width:100%}
.btn[disabled]{opacity:.4;cursor:not-allowed}
.actions{display:flex;gap:10px;align-items:center;margin-top:22px;flex-wrap:wrap}

select,input[type=text]{height:38px;padding:0 30px 0 11px;border:1px solid var(--line);
  border-radius:9px;background:var(--white);font-size:14px;outline:none;
  appearance:none;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%238A8A8C' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 10px center}
select:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(56,202,95,.16)}

/* ── notices ───────────────────────────────────────────────────────── */
.notice{display:flex;gap:11px;padding:14px 16px;border-radius:var(--r-sm);
  border:1px solid var(--line);background:var(--white);font-size:14.5px;line-height:1.45}
.notice .dot{width:7px;height:7px;border-radius:50%;background:var(--amber);
  margin-top:8px;flex:0 0 auto}
.notice.blocking .dot{background:#B4462F}
.notice.good .dot{background:var(--green)}
.notice b{font-weight:700}

/* ── stat tiles ────────────────────────────────────────────────────── */
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px}
.tile{background:var(--white);border:1px solid var(--line);border-radius:var(--r);padding:16px 16px 14px}
.tile .v{font-size:27px;font-weight:800;letter-spacing:-.04em;line-height:1}
.tile .v.green{color:var(--green)}
.tile .k{font-size:13.5px;color:var(--grey);margin-top:7px}

/* ── the report ────────────────────────────────────────────────────── */
.report{padding:6px 0}
.report .line{display:flex;align-items:baseline;gap:14px;padding:9px 22px}
.report .line .v{font-size:17px;font-weight:700;letter-spacing:-.03em;
  min-width:64px;text-align:right;font-variant-numeric:tabular-nums}
.report .line .l{font-size:14.5px;color:var(--grey-d)}
.report .line.head .v{font-size:20px}
.report .rule{height:1px;background:var(--line);margin:8px 22px}
.report .line.warn .v,.report .line.warn .l{color:var(--amber)}
.report .line.warn .l{font-weight:600}

/* ── choice cards ──────────────────────────────────────────────────── */
.choices{display:grid;gap:10px}
.choice{display:flex;gap:13px;padding:15px 17px;border:1px solid var(--line);
  border-radius:var(--r-sm);background:var(--white);cursor:pointer;transition:border-color .12s}
.choice:hover{border-color:var(--grey)}
.choice input{margin-top:4px;accent-color:var(--ink);flex:0 0 auto}
.choice .t{font-weight:700;font-size:15px;letter-spacing:-.02em}
.choice .d{font-size:13.5px;color:var(--grey);margin-top:3px}
.choice .tag{font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;
  color:var(--green);margin-left:7px}
.choice.destructive .t{color:#B4462F}

/* ── the column mapping table ──────────────────────────────────────── */
.cols{overflow:hidden}
.col{display:grid;grid-template-columns:1fr 190px;gap:14px;align-items:center;
  padding:14px 18px;border-bottom:1px solid var(--line-soft)}
.col:last-child{border-bottom:0}
.col .nm{font-size:14.5px;font-weight:600;letter-spacing:-.02em}
.col .dupe{font-size:11px;font-weight:700;color:var(--grey);margin-left:6px}
.col .samples{font-size:12.5px;color:var(--grey);margin-top:4px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.col.off .nm{color:var(--grey)}

/* ── contact rows ──────────────────────────────────────────────────── */
/*
  IDENTITY. The 3px rail is how a FOLLOWap list is recognised at a glance:
  grey never reached, green reached recently, amber going cold. It is
  full-bleed to the row's height and sits flush to the card's left edge --
  no inset, no radius, no gap. Changing its width or letting it float inside
  padding is the fastest way to make this look like somebody else's product.
*/
.list{background:var(--white);border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.row{display:flex;align-items:center;gap:12px;padding:11px 14px 11px 0;
  border-bottom:1px solid var(--line-soft);cursor:pointer;transition:background .1s}
.row:last-child{border-bottom:0}
.row:hover{background:var(--sunken)}
.rail{width:3px;align-self:stretch;flex:0 0 auto;background:var(--grey);opacity:.45}
.rail.fresh{background:var(--green);opacity:1}
.rail.stale{background:var(--amber);opacity:1}
.ini{flex:0 0 auto;width:34px;height:34px;border-radius:8px;background:var(--sunken);
  border:1px solid var(--line);display:grid;place-items:center;
  font-size:12px;font-weight:700;color:var(--grey-d);letter-spacing:-.02em;margin-left:11px}
.rmain{flex:1;min-width:0}
.rname{font-size:15.5px;font-weight:600;letter-spacing:-.022em;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rmeta{font-size:13.5px;color:var(--grey);margin-top:1px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rside{flex:0 0 auto;display:flex;align-items:center;gap:9px;color:var(--grey)}
.ago{font-size:13px;font-variant-numeric:tabular-nums}

/* ── filter chips ──────────────────────────────────────────────────── */
.chips{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{display:inline-flex;align-items:center;gap:7px;height:38px;padding:0 15px;
  border-radius:999px;border:1px solid var(--line);background:var(--white);
  font-size:14px;font-weight:600;letter-spacing:-.02em;white-space:nowrap;cursor:pointer}
.chip .n{color:var(--grey);font-weight:600;font-variant-numeric:tabular-nums}
.chip .d{width:7px;height:7px;border-radius:50%;background:var(--grey);opacity:.45}
.chip .d.fresh{background:var(--green);opacity:1}
.chip .d.stale{background:var(--amber);opacity:1}
.chip.on{background:var(--ink);color:var(--white);border-color:var(--ink)}
.chip.on .n{color:rgba(255,255,255,.6)}

/* ── the legend ────────────────────────────────────────────────────── */
.legend{display:flex;gap:22px;flex-wrap:wrap;padding:15px 18px;font-size:14px}
.legend .i{display:flex;align-items:center;gap:9px}
.legend .b{width:3px;height:17px;border-radius:1px;background:var(--grey);opacity:.45}
.legend .b.fresh{background:var(--green);opacity:1}
.legend .b.stale{background:var(--amber);opacity:1}
.legend .w{color:var(--grey);font-size:13px}

/* ── drop zone ─────────────────────────────────────────────────────── */
.drop{border:1px solid var(--line);border-radius:var(--r);background:var(--white);
  padding:46px 26px;text-align:center}
.drop .ic{width:44px;height:44px;margin:0 auto 16px;color:var(--grey)}
.drop .t{font-size:17px;font-weight:700;letter-spacing:-.028em}
.drop .s{font-size:14px;color:var(--grey);margin-top:7px}

/* ── the bottom tab bar ────────────────────────────────────────────── */
/*
  IDENTITY. Five tabs, hairline top, blurred ground, the active one in ink
  and the rest in grey. The centre tab's label is the black capsule.
*/
.tabs{position:fixed;left:0;right:0;bottom:0;z-index:35;display:flex;
  background:rgba(235,235,235,.96);backdrop-filter:saturate(180%) blur(14px);
  border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom)}
.tab{flex:1;padding:9px 0 10px;background:none;border:0;cursor:pointer;
  display:grid;justify-items:center;gap:4px;color:var(--grey);min-height:56px}
.tab span{font-size:11px;font-weight:600;letter-spacing:-.01em}
.tab.on{color:var(--ink)}
.tab .cap{width:52px;height:16px;border-radius:999px;background:var(--ink)}

@media (max-width:520px){
  .col{grid-template-columns:1fr;gap:9px}
  h1{font-size:26px}
}

/* ── the seven actions ─────────────────────────────────────────────── */
.acts{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.act{display:grid;gap:3px;text-align:left;padding:14px 15px;border-radius:var(--r-sm);
  border:1px solid var(--line);background:var(--white);cursor:pointer;
  transition:border-color .12s,background .12s}
.act:hover:not([disabled]){border-color:var(--grey)}
.act .l{font-size:15px;font-weight:700;letter-spacing:-.024em}
.act .h{font-size:12.5px;color:var(--grey);line-height:1.35}
.act[disabled]{opacity:.45;cursor:not-allowed}
.list a{display:block}
