/* Fonagram website (draft). One design system with the workstation, the portal and the apps: tokens.css is generated
   from shared/designs/design-system/tokens.json (light and dark). System fonts only: nothing is fetched. */
@import url("tokens.css");
/* The site's names, as aliases of the design system's tokens */
:root {
  --navy: var(--brand-navy);
  --blue: var(--brand-blue);
  --mid: var(--brand-mid);
  --page: var(--surface);
  --band: var(--bg);
  --card: var(--surface);
  --muted: var(--text-muted);
  --line: var(--border);
  --accent: var(--primary);
  --accent-text: var(--on-primary);
  --pill-bg: var(--primary-soft);
  --pill-text: var(--primary);
  --term-bg: #0b1730;
  --term-text: #dce6f7;
  --shadow: var(--shadow-card);
  --radius: var(--radius-lg);
}
@media (prefers-color-scheme: dark) {
  :root { --page: var(--bg); --band: var(--surface); --card: var(--surface-2); --term-bg: #050b1a;
          --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35); }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 17px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.small { font-size: .9rem; }
.muted { color: var(--muted); }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
section { padding: clamp(48px, 8vw, 88px) 0; scroll-margin-top: 64px; }   /* clear the sticky header */
.band { background: var(--band); }
.section-lead { font-size: 1.1rem; color: var(--muted); max-width: 46rem; margin-bottom: 2rem; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--card); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

/* header: the navy brand bar, the same as the workstation and the portal */
.top { position: sticky; top: 0; z-index: 5; background: var(--header); color: var(--on-header); }
.top :focus-visible { outline-color: #8DC4FF; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.logo img { width: 30px; height: auto; }
nav { display: flex; align-items: center; gap: clamp(4px, 1.5vw, 12px); }
nav a { color: #C9D5EA; text-decoration: none; font-weight: 500; font-size: .95rem; padding: 7px 12px; border-radius: 8px; }
nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }

/* buttons */
.btn { display: inline-flex; align-items: center; min-height: var(--control-height-large); background: var(--accent);
  color: var(--accent-text); text-decoration: none; font: inherit; font-weight: 600; padding: 10px 22px;
  border-radius: var(--radius-md); border: 1px solid var(--accent); cursor: pointer; }
.btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
nav a.btn, nav a.btn:hover { color: var(--accent-text); }
nav a.btn { margin-left: 8px; background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }
.btn-small { min-height: var(--control-height); padding: 6px 16px; font-size: .95rem; }
.btn-ghost { background: var(--card); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border-strong); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5rem 0 1rem; }

/* hero */
.hero { padding-top: clamp(40px, 7vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.lead { font-size: 1.15rem; color: var(--muted); }
.pill { display: inline-block; background: var(--pill-bg); color: var(--pill-text); font-weight: 600; font-size: .85rem;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 1rem; }

/* screenshots */
.shot { margin: 0; }
.shot img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
figcaption { font-size: .85rem; color: var(--muted); margin-top: .6rem; }
.shots { display: grid; gap: 24px; margin-top: 2.5rem; }
.shots.two { grid-template-columns: 1fr 1fr; }

/* cards */
.cards { display: grid; gap: 20px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--muted); }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  display: flex; flex-direction: column; gap: 10px; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }
.num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent);
  color: var(--accent-text); font-weight: 700; }

/* two columns */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.two-col.reverse > :first-child { order: 2; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: .6rem; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 7px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.ticks.cols { columns: 2; column-gap: 32px; }
.ticks.cols li { break-inside: avoid; }

/* terminal */
.terminal { margin: 0; background: var(--term-bg); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; border: 1px solid var(--line); }
.term-bar { display: flex; gap: 6px; padding: 10px 14px; background: rgba(255, 255, 255, .06); }
.term-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.terminal pre { margin: 0; padding: 16px 18px; overflow-x: auto; color: var(--term-text);
  font: 13px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.terminal b { color: #7fd1a0; font-weight: 600; }
.terminal .dim { color: #8798b8; }
.terminal figcaption { padding: 0 18px 14px; color: #8798b8; }

/* report */
.report { margin: 0; background: var(--card); border: 1px solid var(--line); border-top: 6px solid var(--brand-navy);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.report-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid var(--line);
  padding-bottom: 12px; margin-bottom: 12px; }
.asset { font: 700 1.1rem var(--font-mono); padding: 4px 10px; border-radius: var(--radius-md); background: var(--surface-2); }
.report dl { margin: 0; }
.report dl > div { display: grid; grid-template-columns: 11rem 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.report dt { color: var(--muted); font-size: .92rem; }
.report dd { margin: 0; font-size: .95rem; }
.grade { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 6px; background: var(--pill-bg);
  color: var(--pill-text); font-weight: 700; margin-right: 6px; }

/* pricing */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: flex-start; }
.price.featured { border: 2px solid var(--accent); }
.price h3 { font-size: 1rem; color: var(--muted); font-weight: 600; }
.amount { font-size: 2.6rem; font-weight: 750; letter-spacing: -.02em; margin: .2em 0 .4em; line-height: 1; }
.amount span { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.amount-text { font-size: 2rem; }
.pill-inline { font-size: .75rem; padding: 2px 10px; margin: 0 0 0 8px; vertical-align: middle; }
.note { margin: 1rem 0 .5rem; }
.included { margin-top: 32px; background: var(--band); border-radius: var(--radius); padding: 28px; }

/* demo callout */
.demo-box { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.demo-box p { color: var(--muted); max-width: 44rem; margin: 0; }
.demo-box .btn { flex-shrink: 0; }

/* footer */
.foot { background: var(--header); color: #C9D5EA; padding: 28px 0 40px; }
.foot .muted { color: #C9D5EA; }
.foot a { color: #fff; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.foot-row p { margin: 0; }
.foot img { width: 24px; }

/* tablet */
@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:last-child { grid-column: 1 / -1; }
  .cards.three { grid-template-columns: 1fr; }
}
/* phone */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero-grid, .two-col, .shots.two, .cards.two, .prices { grid-template-columns: 1fr; }
  .two-col.reverse > :first-child { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .ticks.cols { columns: 1; }
  nav a:not(.btn) { display: none; }
  .demo-box { flex-direction: column; align-items: flex-start; }
  .report dl > div { grid-template-columns: 1fr; gap: 2px; }
  .terminal pre { font-size: 11.5px; }
}

/* phone screenshots in a device frame */
.phones { display: flex; justify-content: center; gap: clamp(12px, 3vw, 28px); }
.phone { margin: 0; width: min(46%, 240px); padding: 8px; border-radius: 34px; background: #0b1020;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, .08) inset; }
.phone img { border-radius: 27px; }
.phone-offset { margin-top: 48px; }

/* speed simulation */
.sim { display: grid; grid-template-columns: 260px 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
.sim-phone { position: relative; height: 470px; border-radius: 38px; background: #0b1020; padding: 10px;
  box-shadow: var(--shadow); }
.sim-phone::after { content: ""; position: absolute; inset: 10px; border-radius: 30px; background: #fff; z-index: 0; }
.sim-phone > * { position: relative; z-index: 1; }
.sim-notch { width: 84px; height: 22px; border-radius: 12px; background: #0b1020; margin: 8px auto 14px; }
.sim-head { display: flex; justify-content: space-between; padding: 0 18px; color: #6b7280; font-size: .85rem; }
.sim-bar { height: 5px; margin: 8px 18px 14px; border-radius: 3px; background: #e5e7eb; overflow: hidden; }
.sim-bar-fill { height: 100%; width: 0; background: var(--blue); transition: width .15s linear; }
.sim-tests { list-style: none; margin: 0; padding: 0 18px; }
.sim-tests li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #eef0f4;
  color: #111827; font-size: .95rem; animation: sim-in .25s ease-out; }
.sim-tests li::before { content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: #1A7535; color: #fff; font-size: .7rem; font-weight: 700; flex-shrink: 0; }
.sim-tests li.hand::after { content: "tap"; margin-left: auto; font-size: .7rem; color: #6b7280; background: #f1f3f7;
  padding: 1px 8px; border-radius: 999px; }
.sim-feed { background: var(--brand-navy); color: var(--term-text); border-radius: var(--radius); padding: 18px 20px 20px;
  box-shadow: var(--shadow); min-height: 300px; display: flex; flex-direction: column; }
.sim-feed-head { color: #8798b8; font-size: .85rem; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.sim-feed-head .dot { width: 8px; height: 8px; border-radius: 50%; background: #6FD28B; box-shadow: 0 0 0 4px rgba(111, 210, 139, .2); }
.sim-rows { list-style: none; margin: 0 0 16px; padding: 0; flex: 1; }
.sim-rows li { display: grid; grid-template-columns: 8rem 1fr; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .07); font: 13.5px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  animation: sim-in .35s ease-out; }
.sim-rows time { color: #8798b8; }
.sim-rows b { color: #7fd1a0; font-weight: 600; }
.sim-feed .btn { align-self: flex-start; color: #fff; background: transparent; border-color: rgba(255, 255, 255, .4); }
.sim-feed .btn:hover { background: rgba(255, 255, 255, .1); }
@keyframes sim-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* comparison */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  background: var(--card); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .95rem; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: .85rem; color: var(--muted); font-weight: 600; }
.compare thead th.us { color: var(--accent); font-size: 1rem; }
.compare tbody th { font-weight: 600; width: 32%; }
.compare td.us { background: color-mix(in srgb, var(--accent) 8%, transparent); font-weight: 600; }
.compare td.yes::before, .compare td.part::before, .compare td.no::before { display: inline-block; width: 1.2em; font-weight: 700; }
.compare td.yes::before { content: "✓"; color: var(--pass); }
.compare td.part::before { content: "~"; color: var(--warning); }
.compare td.no::before { content: "✕"; color: var(--fail); }
.compare td.part, .compare td.no { color: var(--muted); }

@media (max-width: 760px) {
  .sim { grid-template-columns: 1fr; }
  .sim-phone { width: 250px; margin: 0 auto; height: 430px; }
  .sim-rows li { grid-template-columns: 1fr; gap: 2px; }
  .sim-rows li span { color: #b9c6dd; }
  .phone-offset { margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .sim-tests li, .sim-rows li { animation: none; }
}

/* admin portal mock */
.portal-row { align-items: start; }
.portal { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow);
  background: var(--card); font-size: .85rem; }
.portal-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--band);
  border-bottom: 1px solid var(--line); }
.portal-bar > span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.portal-url { margin-left: 10px; flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  padding: 3px 10px; color: var(--muted); font-size: .78rem; }
.portal-body { display: grid; grid-template-columns: 112px 1fr; min-height: 340px; }
.portal-nav { display: flex; flex-direction: column; gap: 4px; padding: 14px 10px; border-right: 1px solid var(--line);
  background: var(--band); }
.portal-nav > * { padding: 6px 10px; border-radius: 6px; color: var(--muted); }
.portal-nav b { background: var(--pill-bg); color: var(--pill-text); }
.portal-main { padding: 16px 18px; }
.portal-title { font-weight: 700; font-size: 1rem; margin-bottom: 12px; }
.portal-title .muted { font-weight: 500; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.tile { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.tile span { color: var(--muted); font-size: .75rem; }
.tile b { font-size: 1.35rem; letter-spacing: -.01em; }
.tile em { font-style: normal; color: var(--muted); font-size: .72rem; }
.meter { display: block; height: 5px; border-radius: 3px; background: var(--line); margin-top: 4px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent); }
.portal-sub { font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.portal-chip { font-weight: 600; font-size: .7rem; background: var(--pill-bg); color: var(--pill-text); padding: 2px 8px;
  border-radius: 999px; }
.team { width: 100%; border-collapse: collapse; }
.team th, .team td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line); }
.team th { color: var(--muted); font-weight: 600; font-size: .75rem; }
.team .ok { color: var(--pass); font-weight: 600; }
@media (max-width: 760px) {
  .portal-body { grid-template-columns: 1fr; }
  .portal-nav { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tiles .tile:last-child { grid-column: 1 / -1; }
}
.assign { font-size: .72rem; font-weight: 600; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px;
  padding: 1px 9px; }
.portal-foot { margin-top: 10px; color: var(--muted); font-size: .75rem; }

/* multi-page additions */
nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .16); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.test-card h3 { font-size: 1rem; }
.report-brand { display: flex; align-items: center; gap: 10px; }
.report-brand img { width: 28px; height: auto; }
@media (max-width: 980px) { .cards.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .top-row { flex-wrap: wrap; row-gap: 8px; }
  nav { width: 100%; overflow-x: auto; gap: 18px; padding-bottom: 4px; }
  nav a:not(.btn) { display: inline; white-space: nowrap; }
  nav a.btn { margin-left: auto; }
  .cards.four { grid-template-columns: 1fr; }
  .hero-phones .phone { width: min(70%, 260px); }
}
.report-head { align-items: center; flex-wrap: wrap; gap: 10px; }
.your-logo { font-size: .72rem; font-weight: 600; color: var(--muted); border: 1.5px dashed var(--line);
  border-radius: 8px; padding: 6px 10px; }
.approved { background: var(--surface-2); border-radius: var(--radius-md); padding: 12px 14px; margin: 4px 0 10px; }
.approved-head { display: flex; align-items: center; gap: 10px; }
.approved-head span:not(.approved-tick) { color: var(--muted); font-size: .8rem; }
.approved-tick { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--pass);
  color: #fff; font-weight: 800; flex-shrink: 0; }
.approved-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 14px;
  font-size: .8rem; }
.approved-list li { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--border); padding: 3px 0; }
.approved-list li::after { content: "Passed"; font-size: .7rem; font-weight: 600; color: var(--pass); background: var(--pass-bg);
  border-radius: 999px; padding: 0 8px; align-self: center; }
@media (max-width: 760px) { .approved-list { grid-template-columns: 1fr; } }
@media (max-width: 760px) { nav a.btn { display: none; } }   /* each page has its own Book a demo button */

/* Bench screen mock (how-it-works): the workstation's own look (design system) */
.bench { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow);
  background: var(--bg); font-size: .9rem; }
.bench-bar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--header); color: #fff; }
.bench-bar .badge { margin-left: auto; }
.bench-body { padding: 14px; display: grid; gap: 12px; }
.bench-scan { background: var(--surface); border: 2px solid var(--primary); border-radius: var(--radius-md); padding: 10px 14px;
  color: var(--text-muted); font-size: 1.05rem; }
.bench-ports { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.port { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--warning); border-radius: var(--radius);
  padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.port.work { border-left-color: var(--primary); } .port.done { border-left-color: var(--pass); }
.port-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.port-id { font: 600 .9rem var(--font-mono); }
.port-next { margin-top: 8px; padding: 8px 10px; border-radius: var(--radius-md); background: var(--warning-bg); font-weight: 600; }
.port.work .port-next { background: var(--primary-soft); } .port.done .port-next { background: var(--pass-bg); }
.port-btn { margin-top: 8px; text-align: center; padding: 10px; border-radius: var(--radius-md); background: var(--primary);
  color: var(--on-primary); font-weight: 600; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px; border-radius: 999px; font-size: .72rem; font-weight: 600; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.pass, .badge.online { color: var(--pass); background: var(--pass-bg); }
.badge.warning { color: var(--warning); background: var(--warning-bg); }
.badge.working { color: var(--primary); background: var(--primary-soft); }
@media (max-width: 760px) { .bench-ports { grid-template-columns: 1fr; } }

/* Portal mock: the real portal's navy bar and menu */
.portal-top { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; padding: 8px 14px; background: var(--header);
  color: #C9D5EA; font-size: .78rem; }
.portal-top strong { color: #fff; margin-right: 6px; }
.portal-top b { color: #fff; background: rgba(255, 255, 255, .16); padding: 2px 8px; border-radius: 6px; }
.portal-body { grid-template-columns: 1fr !important; }
