/* ulmathi.download — the home page: a white page, the twelve-box kattam, and a full-page panel that grows out of each box.
   Every corner is sharp. A box opens into a page of the SAME colour (the lord's colour), with dark text of that hue on it.
   Every box carries a drawn icon that moves when you hover it (the label stays still); the same icon sits on the opened page.
   No inline styles anywhere (the CSP forbids them): colours, positions and motion are classes here, or set from site.js. */

@font-face {
  font-family: "Inter";
  src: url(/fonts/inter-latin-wght-normal.woff2) format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Tamil: its own file (50 KB), used only for Tamil letters. The "தமிழ்" button always shows some, so every visitor fetches it once. */
@font-face {
  font-family: "Noto Sans Tamil";
  src: url(/fonts/noto-sans-tamil-tamil-wght-normal.woff2) format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0964-0965, U+0B80-0BFF, U+200C-200D, U+25CC;
}

/* The lord colours of the app's logo (--c), and a deep shade of the same hue for text and icons on top of it (--on).
   Sukran is white in the app; on a white page it would vanish, so here it is light pink. */
.c-suriyan { --c: #f7923e; --on: #3a1a04; }  /* Sun     */
.c-chandran { --c: #a9b4c6; --on: #161d2b; } /* Moon    */
.c-sevvai { --c: #ee6c62; --on: #260707; }   /* Mars    */
.c-budhan { --c: #4cc39a; --on: #032d21; }   /* Mercury */
.c-guru { --c: #f2c230; --on: #3d2b00; }     /* Jupiter */
.c-sukran { --c: #f7c4d9; --on: #4d0f2e; }   /* Venus   */
.c-shani { --c: #9b80e0; --on: #100524; }    /* Saturn  */

:root {
  --ink: #16161a;
  --ease: cubic-bezier(0.7, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --spring: cubic-bezier(0.3, 1.45, 0.5, 1);
  --m: clamp(10px, 2.2vmin, 24px);
  /* the notch / rounded corners / home bar of a phone (the page is drawn edge to edge, so it keeps its content clear of them) */
  --sl: env(safe-area-inset-left, 0px);
  --sr: env(safe-area-inset-right, 0px);
  --st: env(safe-area-inset-top, 0px);
  --sb: env(safe-area-inset-bottom, 0px);
}

/* the two languages are both in the page; html.is-ta (set by site.js) picks which one shows */
html.is-ta .en { display: none; }
html:not(.is-ta) .ta { display: none; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  color: var(--ink);
  font-family: "Inter", "Noto Sans Tamil", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
}

/* ---------- the kattam ---------- */

.kattam {
  --w: min(calc(100vw - 2 * var(--m) - var(--sl) - var(--sr)), calc(100svh - 2 * var(--m) - var(--st) - var(--sb)));
  --gap: clamp(5px, 0.9vmin, 11px);
  width: var(--w);
  height: var(--w);
  display: grid;
  grid-template: repeat(4, 1fr) / repeat(4, 1fr);
  gap: var(--gap);
}
/* a phone held upright: the chart grows taller than wide to use the screen (a tablet keeps the true square) */
@media (max-aspect-ratio: 3/4) and (max-width: 599px) {
  .kattam {
    --m: clamp(8px, 2.6vw, 14px);
    --gap: clamp(4px, 1.4vw, 8px);
    --w: calc(100vw - 2 * var(--m) - var(--sl) - var(--sr));
    height: min(calc(100svh - 2 * var(--m) - var(--st) - var(--sb)), calc(var(--w) * 1.8));
  }
}

.g11 { grid-area: 1 / 1; } .g12 { grid-area: 1 / 2; } .g13 { grid-area: 1 / 3; } .g14 { grid-area: 1 / 4; }
.g21 { grid-area: 2 / 1; }                                                       .g24 { grid-area: 2 / 4; }
.g31 { grid-area: 3 / 1; }                                                       .g34 { grid-area: 3 / 4; }
.g41 { grid-area: 4 / 1; } .g42 { grid-area: 4 / 2; } .g43 { grid-area: 4 / 3; } .g44 { grid-area: 4 / 4; }

/* the centre: the name, a punchline, and under them two small buttons (language, download), on the white of the page with no
   border and no logo (owner, 2026-11-20). The lockup sits a little above the middle. */
.centre {
  grid-area: 2 / 2 / 4 / 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(var(--w) * 0.06); /* the same space between the three rows (name, line, buttons), and the stack centred in the cell */
  min-height: 0;
  padding: calc(var(--w) * 0.078) calc(var(--w) * 0.03) calc(var(--w) * 0.03); /* the stack sits a little BELOW the middle of the cell (owner, 2026-11-20) */
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--w) * 0.028);
  margin: 0;
  font-size: calc(var(--w) * 0.112);
  font-weight: 520;
  letter-spacing: -0.05em;
  line-height: 1;
  user-select: none;
  animation: fade 1.4s var(--ease-out) 0.1s backwards;
}
.tag {
  margin: calc(var(--w) * -0.0509) 0 0; /* the name's line box has empty room under its letters, and the line is brought CLOSE to the name (about half the gap the buttons have) */
  color: var(--ink);
  font-size: calc(var(--w) * 0.0235);
  white-space: nowrap; /* one line */
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.015em;
  text-align: center;
  text-wrap: balance;
  animation: fade 1.4s var(--ease-out) 0.3s backwards;
}
.tag .en, .tag .ta { display: block; }
.tag .ta { letter-spacing: 0; line-height: 1.5; font-size: 0.94em; }
@media (max-aspect-ratio: 3/4) and (max-width: 599px) { /* upright phone: the centre is a narrow column, so the lockup is set larger in it */
  .brand { font-size: calc(var(--w) * 0.126); }
  .tag { font-size: calc(var(--w) * 0.042); white-space: normal; text-wrap: balance; } /* the upright phone's centre is too narrow for one line */
}

.tile {
  container: tile / size; /* label and icon size themselves from the box, not from the window */
  position: relative;
  display: block;
  overflow: hidden;
  padding: clamp(8px, 1.8vmin, 22px);
  background: var(--c);
  color: var(--on);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  animation: tile-in 0.8s var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * 60ms + 120ms);
}
.tile:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.tile .lbl {
  position: relative;
  z-index: 1;
  display: block;
  font-size: clamp(11.5px, 12.5cqmin, 21px);
  font-weight: 620;
  letter-spacing: -0.02em;
  line-height: 1.12;
  overflow-wrap: anywhere; /* only ever matters on a very narrow phone; better to break than to clip */
}
/* the drawing is small and sits under the label, on its left edge: a quiet mark, not a poster. It is sized from the box
   (cqmin), with a floor so it stays readable in the narrow boxes of an upright phone. */
.tile .ic {
  position: absolute;
  left: clamp(8px, 1.8vmin, 22px);
  bottom: clamp(8px, 1.8vmin, 22px);
  width: clamp(34px, 30cqmin, 84px);
  height: clamp(34px, 30cqmin, 84px);
}
/* a small box (a phone held sideways): a little smaller still, so a two-line label never touches it */
@container tile (max-height: 120px) {
  .tile .ic { width: clamp(28px, 26cqmin, 40px); height: clamp(28px, 26cqmin, 40px); }
}
/* Tamil is taller and wider than Latin and must not be tightened: looser lines, no negative tracking */
.lbl .ta { letter-spacing: 0; line-height: 1.3; font-weight: 600; font-size: clamp(10px, 11.8cqmin, 19px); }

/* ---------- two small square buttons: language (ONE button: click to change between English and Tamil) and download ---------- */
.lang { --s: clamp(32px, calc(var(--w, 640px) * 0.052), 46px); --fg: var(--ink); --bg: #fff; display: flex; gap: var(--gap, 8px); }
.lang .lg {
  appearance: none;
  position: relative;
  display: grid;
  place-items: center;
  width: var(--s);
  height: var(--s);
  margin: 0;
  padding: 0;
  border: 2px solid var(--fg);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s, color 0.2s;
}
.lang .lg:hover { background: var(--fg); color: var(--bg); }
.lang .lg:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; }
/* the language mark: a Latin A and a Tamil அ set diagonally in the square */
.lg-lang .gl { position: absolute; font-weight: 700; line-height: 1; letter-spacing: 0; }
.lg-lang .a { left: calc(var(--s) * 0.15); top: calc(var(--s) * 0.1); font-size: calc(var(--s) * 0.42); }
.lg-lang .b { right: calc(var(--s) * 0.13); bottom: calc(var(--s) * 0.1); font-size: calc(var(--s) * 0.44); }
.lg-dl .dl-i { display: block; width: 54%; height: 54%; }
.panel#app .lang .lg-dl { display: none; } /* this IS the download page */
.lg-ig .ig-i { display: block; width: 56%; height: 56%; }
.lang .lg:disabled { opacity: 0.32; cursor: not-allowed; } /* Instagram: greyed until there is an account to link to */
.lang .lg:disabled:hover { background: var(--bg); color: var(--fg); }
.chrome .lang .lg-ig { display: none; } /* the opened pages keep just the two: language and download */

@keyframes tile-in { from { opacity: 0; transform: scale(0.94); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- a panel: grows out of its box to fill the page, in the box's own colour ---------- */

.panel {
  position: fixed;
  inset: 0;
  z-index: 20;
  visibility: hidden;
  background: var(--c);
  color: var(--on);
  clip-path: inset(0 round 0);
}
.panel.show { visibility: visible; }

.sheet {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  transition: opacity 0.4s ease;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--on) 35%, transparent) transparent;
}
.panel.settled .sheet { opacity: 1; }

.doc {
  max-width: 1180px;
  margin: 0 auto;
  padding: calc(clamp(92px, 15vh, 160px) + var(--st)) max(clamp(22px, 5.5vw, 72px), calc(var(--sr) + 16px)) calc(clamp(72px, 12vh, 140px) + var(--sb)) max(clamp(22px, 5.5vw, 72px), calc(var(--sl) + 16px));
}
.art { width: clamp(84px, 11vw, 150px); aspect-ratio: 1; margin: 0 0 clamp(14px, 3.5vh, 36px) -6px; }
.art .ic { display: block; width: 100%; height: 100%; }
.doc h2 {
  margin: 0;
  max-width: 17ch;
  font-size: clamp(36px, 7vw, 96px);
  font-weight: 640;
  line-height: 1.02;
  letter-spacing: -0.042em;
  text-wrap: balance;
}
.doc .lead {
  margin: clamp(20px, 3.6vh, 36px) 0 0;
  max-width: 36em;
  font-size: clamp(18px, 2.1vw, 27px);
  font-weight: 460;
  line-height: 1.42;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}
.points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 34px clamp(28px, 4vw, 56px);
  margin-top: clamp(40px, 9vh, 96px);
  padding-top: 28px;
  border-top: 2px solid var(--on);
}
.points h3 { margin: 0 0 9px; font-size: 16px; font-weight: 680; letter-spacing: -0.01em; }

/* numbers set very large (the "sixteen charts, a jothidar reads two" box): the figure is the heading; the middle one, what a
   jothidar reads, is dimmed so the 16s stand out */
.points.stats { gap: 20px clamp(28px, 4vw, 56px); }
.stats h3 { margin: 0 0 8px; font-size: clamp(76px, 12.5vw, 184px); font-weight: 700; line-height: 0.86; letter-spacing: -0.065em; }
.stats > div:nth-child(2) h3 { opacity: 0.4; }
.stats p { font-size: clamp(16px, 1.55vw, 21px); font-weight: 570; line-height: 1.35; max-width: 16em; }

/* example questions, set as chips; every third is filled so the wall has rhythm */
.asks { display: flex; flex-wrap: wrap; gap: 10px 12px; margin: clamp(22px, 4vh, 40px) 0 0; padding: 0; list-style: none; }
.asks li { padding: 10px 18px 11px; border: 2px solid var(--on); font-size: clamp(16px, 1.65vw, 22px); font-weight: 620; line-height: 1.25; letter-spacing: -0.012em; }
.asks li:nth-child(3n + 1) { background: var(--on); color: var(--c); }
.note { max-width: 44em; margin: clamp(18px, 3vh, 30px) 0 0; font-size: 15.5px; font-weight: 500; line-height: 1.55; }

/* a page with a lot on it (the numbers, the wall of questions, a long fighting lead): tighter top, a smaller icon and headline
   that follow the window's HEIGHT as well as its width, so the whole page shows at once on a laptop too */
.dense .doc { padding-top: calc(clamp(60px, 10vh, 112px) + var(--st)); padding-bottom: calc(clamp(32px, 5vh, 72px) + var(--sb)); }
.dense .art { width: clamp(52px, min(7vw, 10vh), 100px); margin-bottom: clamp(6px, 1.6vh, 20px); }
.dense .doc h2 { max-width: 20ch; font-size: clamp(30px, min(5.4vw, 8.2vh), 76px); }
.dense .doc .lead { margin-top: clamp(10px, 2vh, 24px); font-size: clamp(17px, min(2vw, 3vh), 26px); }
.dense .points { margin-top: clamp(20px, 4vh, 48px); padding-top: 18px; }
.dense .stats h3 { font-size: clamp(60px, min(12.5vw, 19vh), 184px); }
.dense .asks { margin-top: clamp(16px, 3vh, 40px); }
/* a headline of two sentences (the human-errors box): wider and smaller, so the page still shows at once */
.longhead .doc h2 { max-width: 30ch; font-size: clamp(28px, min(4.6vw, 7vh), 66px); }
.longhead .txt.ta h2, .dense.longhead .txt.ta h2 { max-width: 34ch; font-size: clamp(22px, min(3vw, 4.2vh), 42px); }
.dense .asks li { font-size: clamp(15px, min(1.65vw, 2.7vh), 22px); }
.dense .txt.ta .asks li { font-size: clamp(14px, min(1.4vw, 2.3vh), 19px); }
.points p { margin: 0; font-size: 16.5px; font-weight: 470; line-height: 1.58; }

.more { margin: 30px 0 0; font-size: 17px; font-weight: 600; }
.more a { color: var(--on); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.txt.ta .more { overflow-wrap: anywhere; line-height: 1.7; }

/* the two store buttons: greyed (not links yet) until there is a release to point them at */
.stores { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(28px, 5vh, 48px); }
.store {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: min(100%, 230px);
  padding: 14px 22px 13px;
  border: 2px dashed var(--on);
  color: var(--on);
  opacity: 0.42;
  cursor: not-allowed;
  user-select: none;
  -webkit-user-select: none;
}
.store small { font-size: 13px; font-weight: 520; line-height: 1.3; }
.store b { font-size: 26px; font-weight: 660; line-height: 1.15; letter-spacing: -0.025em; }
.store em { margin-top: 3px; font-size: 12px; font-style: normal; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.txt.ta .store em { letter-spacing: 0.02em; }

.mail {
  display: inline-block;
  margin-top: clamp(28px, 6vh, 56px);
  color: var(--on);
  font-size: clamp(22px, 4.6vw, 52px);
  font-weight: 640;
  letter-spacing: -0.035em;
  text-decoration: underline;
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.18em;
}
.mail:hover { text-decoration-thickness: 0.18em; }

/* Tamil pages: the same design, set for Tamil (taller letters, looser lines, no negative tracking) */
.txt.ta h2 { font-size: clamp(26px, 5.8vw, 80px); line-height: 1.2; letter-spacing: -0.005em; font-weight: 650; max-width: 22ch; overflow-wrap: anywhere; }
.txt.ta .lead { font-size: clamp(17px, 1.9vw, 24px); line-height: 1.65; letter-spacing: 0; overflow-wrap: anywhere; }
.txt.ta .prose { overflow-wrap: anywhere; }
.txt.ta .points h3 { line-height: 1.45; letter-spacing: 0; }
.txt.ta .stats h3 { line-height: 0.86; letter-spacing: -0.065em; }
.txt.ta .asks { gap: 8px 10px; }
.txt.ta .asks li { padding: 6px 14px 7px; font-size: clamp(14px, min(1.4vw, 2.3vh), 19px); line-height: 1.4; letter-spacing: 0; }
.txt.ta .note { line-height: 1.8; }
.dense .txt.ta h2 { font-size: clamp(24px, min(4.6vw, 7.2vh), 64px); }
.txt.ta .points p, .txt.ta .prose p, .txt.ta .prose li { line-height: 1.85; letter-spacing: 0; }
.txt.ta .prose h3.dt { line-height: 1.3; letter-spacing: 0; }
.txt.ta .prose h4 { line-height: 1.5; letter-spacing: 0; }

/* long-form text: terms and privacy */
.prose { max-width: 44rem; margin-top: clamp(28px, 6vh, 56px); }
.prose p, .prose li { font-size: 16.5px; font-weight: 460; line-height: 1.72; }
.prose h4 { margin: 2.3em 0 0.5em; font-size: 19px; font-weight: 680; letter-spacing: -0.015em; }
/* terms and privacy share one box: each text opens with its own big title, set off by a rule */
.prose .legal-doc { margin-top: clamp(44px, 9vh, 88px); padding-top: 26px; border-top: 2px solid var(--on); }
.prose .legal-doc:first-of-type { margin-top: clamp(32px, 6vh, 56px); }
.prose h3.dt { margin: 0 0 0.3em; font-size: clamp(28px, 4.2vw, 48px); font-weight: 650; line-height: 1.08; letter-spacing: -0.035em; scroll-margin-top: 110px; }
.prose .legal-nav { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; }
.prose .legal-nav a { display: inline-block; padding: 10px 18px; border: 2px solid var(--on); font-size: 16px; font-weight: 650; text-decoration: none; }
.prose .legal-nav a:hover, .prose .legal-nav a:focus-visible { background: var(--on); color: var(--c); outline: none; }
.prose .muted { font-size: 15px; opacity: 0.85; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 0.35em 0; }
.prose a { color: var(--on); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.prose table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 15.5px; }
.prose th, .prose td { border-top: 1px solid color-mix(in srgb, var(--on) 40%, transparent); padding: 9px 12px 9px 0; text-align: left; vertical-align: top; }
.prose th { font-weight: 680; }

/* ---------- the first page: hero text on one side, the app at work in a phone on the other ----------
   (below the text on a phone). The phone is drawn in CSS: a plain phone outline, not an iPhone or an Android, running the
   app's own chat screens (the layout, words and colours copy the app, light theme). It is interactive: the page opens on the
   first of five chats being typed and answered, and the visitor can tap the back arrow for the list of chats, open any of them
   and scroll it (src/site.js). Everything inside is sized in --u, one pixel of the app on a 390 px wide phone, so the whole
   phone scales as one picture. */

.panel.split .art { display: none; }
.panel.split .doc {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(clamp(72px, 11vh, 110px) + var(--st));
  padding-bottom: calc(clamp(20px, 4vh, 56px) + var(--sb));
}
.txt.split { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(28px, 5vw, 88px); }
.txt.split .hero h2 { max-width: 11ch; font-size: clamp(34px, 6vw, 88px); }
.txt.ta.split .hero h2 { max-width: 14ch; font-size: clamp(26px, 4.6vw, 64px); }
.txt.split .hero .lead { max-width: 24em; }

.demo { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.demo figcaption { max-width: 34ch; font-size: 14px; font-weight: 560; line-height: 1.45; opacity: 0.85; text-align: center; }
.phone {
  --ph: min(74vh, 720px);
  --pw: calc(var(--ph) * 0.4737);
  width: var(--pw);
  height: var(--ph);
  padding: calc(var(--pw) * 0.028);
  border-radius: calc(var(--pw) * 0.15);
  background: #0c0c0e;
  box-shadow: 0 0 0 calc(var(--pw) * 0.006) #3a3a42, 0 24px 60px -18px rgba(16, 5, 36, 0.55);
}
.ph-screen {
  container-type: size;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--pw) * 0.123);
  background: #fbfbfa;
}
.ph-screen::before { /* the camera pill */
  content: "";
  position: absolute;
  z-index: 3;
  top: 2.4cqw;
  left: 50%;
  width: 27cqw;
  height: 7cqw;
  margin-left: -13.5cqw;
  border-radius: 99px;
  background: #0c0c0e;
}
/* the app's light theme tokens (frontend/src/index.css) and its pixel, --u */
.ph-in {
  --u: 0.2564cqw;
  --sf: #fff; --sf2: #f6f6f5; --sf3: #efefee; --ln: #e4e4e2; --ln2: #cfcfcc;
  --fg: #16161a; --fg2: #56565e; --fg3: #83838d; --fg4: #aeaeb6;
  --ac: #16161a; --acfg: #fff; --acd: #e9e9e7;
  --ok: #15803d; --okbg: #e7f6ec; --bad: #dc2626; --badbg: #fdecec;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--fg2);
  font-size: calc(13 * var(--u));
  line-height: 1.5;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
}
.ph-in * { box-sizing: border-box; }
.ph-in p, .ph-in h3, .ph-in h4, .ph-in h5, .ph-in h6, .ph-in ul, .ph-in li { margin: 0; padding: 0; list-style: none; }
.ph-in .i { display: block; flex: none; width: calc(16 * var(--u)); height: calc(16 * var(--u)); }
.ph-in button { appearance: none; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: default; }
.ph-in button:focus-visible { outline: calc(2 * var(--u)) solid var(--ac); outline-offset: calc(2 * var(--u)); }

/* top bar, person strip, tabs: decorative (the owner: "need not be interactable") */
.tb { flex: none; padding-top: calc(47 * var(--u)); border-bottom: 1px solid var(--ln); background: var(--sf); }
.tb-row { display: flex; align-items: center; gap: calc(8 * var(--u)); height: calc(52 * var(--u)); padding: 0 calc(12 * var(--u)); }
.tb .bkh, .tb .tbi { display: grid; place-items: center; padding: calc(6 * var(--u)); color: var(--fg3); }
.tb .nm { color: var(--fg); font-size: calc(14 * var(--u)); font-weight: 600; white-space: nowrap; }
.tb .sp { flex: 1; }
.acct { display: inline-flex; align-items: center; gap: calc(4 * var(--u)); padding: calc(4 * var(--u)) calc(8 * var(--u)); border: 1px solid var(--ln); border-radius: calc(8 * var(--u)); color: var(--fg2); font-size: calc(11 * var(--u)); font-weight: 500; font-variant-numeric: tabular-nums; }
.acct .coin { width: calc(14 * var(--u)); height: calc(14 * var(--u)); color: #f59e0b; }
.phd { flex: none; display: flex; gap: calc(8 * var(--u)); padding: calc(8 * var(--u)) calc(16 * var(--u)); border-bottom: 1px solid var(--ln); background: var(--sf); font-size: calc(12 * var(--u)); white-space: nowrap; overflow: hidden; }
.phd span { padding: calc(2 * var(--u)) calc(8 * var(--u)); border: 1px solid var(--ln); border-radius: calc(4 * var(--u)); background: var(--sf2); color: var(--fg2); }
.phd strong { color: var(--fg); font-weight: 600; }
.tabs { flex: none; display: flex; gap: calc(4 * var(--u)); padding: 0 calc(12 * var(--u)); border-bottom: 1px solid var(--ln); background: var(--sf); font-size: calc(12 * var(--u)); color: var(--fg3); white-space: nowrap; overflow: hidden; }
.tabs span { padding: calc(8 * var(--u)) calc(12 * var(--u)); border-bottom: calc(2 * var(--u)) solid transparent; margin-bottom: -1px; }
.tabs .on { border-bottom-color: var(--ac); color: var(--fg); font-weight: 500; }

/* the body scrolls; the privacy note sits at its top, as in the app */
.ph-scroll { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: calc(16 * var(--u)); padding: calc(16 * var(--u)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #cfcfcc transparent; background: #fbfbfa; }
.ph-scroll > * { flex: none; }
.pn { display: flex; gap: calc(8 * var(--u)); padding: calc(8 * var(--u)) calc(12 * var(--u)); border: 1px solid var(--ln); border-radius: calc(8 * var(--u)); background: var(--sf2); font-size: calc(11 * var(--u)); line-height: 1.375; color: var(--fg2); }
.pn .i { width: calc(14 * var(--u)); height: calc(14 * var(--u)); margin-top: 1px; color: var(--fg3); stroke-width: 1.75; }
.pn strong { color: var(--fg); font-weight: 500; }
.pn u { color: var(--fg3); text-underline-offset: 2px; }

/* the two views: the list of chats, and one chat */
.ph-screen[data-view="chat"] .v-list, .ph-screen[data-view="list"] .v-chat { display: none; }
.v-list h3 { margin-bottom: calc(4 * var(--u)); color: var(--fg3); font-size: calc(11 * var(--u)); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.v-list ul { display: flex; flex-direction: column; gap: calc(2 * var(--u)); }
.v-list li { display: flex; align-items: flex-start; gap: calc(4 * var(--u)); border-radius: calc(8 * var(--u)); }
.v-list li:hover { background: var(--sf2); }
.row { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: calc(10 * var(--u)); padding: calc(8 * var(--u)) calc(10 * var(--u)); cursor: pointer !important; }
.row .dot { flex: none; width: calc(8 * var(--u)); height: calc(8 * var(--u)); margin-top: calc(6 * var(--u)); border-radius: 50%; background: var(--fg4); }
.row .rt { flex: 1; min-width: 0; display: block; }
.row .t1, .row .t2 { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.row .t1 { color: var(--fg); font-size: calc(13 * var(--u)); }
.row .t2 { color: var(--fg4); font-size: calc(11 * var(--u)); }
.row .ago { flex: none; margin-top: calc(2 * var(--u)); color: var(--fg4); font-size: calc(11 * var(--u)); font-variant-numeric: tabular-nums; }
.v-list li .tr-i { flex: none; box-sizing: content-box; width: calc(14 * var(--u)); height: calc(14 * var(--u)); padding: calc(8 * var(--u)); margin-top: calc(2 * var(--u)); color: var(--fg4); }

/* footers: the list's "New chat" and Porutham; a chat's composer */
.ft { flex: none; border-top: 1px solid var(--ln); background: var(--sf); }
footer.ft.v-list { display: flex; gap: calc(8 * var(--u)); padding: calc(12 * var(--u)) calc(12 * var(--u)) calc(30 * var(--u)); }
.ph-screen[data-view="chat"] footer.ft.v-list, .ph-screen[data-view="list"] footer.ft.v-chat { display: none; }
.newc { flex: 1; display: flex; align-items: center; justify-content: center; gap: calc(8 * var(--u)); padding: calc(12 * var(--u)); border-radius: calc(16 * var(--u)); background: var(--ac); color: var(--acfg); font-size: calc(15 * var(--u)); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.newc .i { width: calc(20 * var(--u)); height: calc(20 * var(--u)); stroke-width: 1.75; }
.por { display: flex; flex: none; align-items: center; justify-content: center; gap: calc(6 * var(--u)); padding: 0 calc(14 * var(--u)); border: 1px solid var(--ln); border-radius: calc(16 * var(--u)); color: var(--fg2); font-size: calc(13 * var(--u)); font-weight: 500; }
.por.on { border-color: var(--ac); background: var(--acd); color: var(--fg); }
.cb, .cf { display: none; }
.cb.on { display: flex; flex-direction: column; gap: calc(16 * var(--u)); animation: ph-fade 0.25s ease; }
.cf.on { display: block; }
.cbar { display: flex; gap: calc(8 * var(--u)); }
.cbar .cb-back { display: grid; flex: none; place-items: center; width: calc(48 * var(--u)); padding: calc(12 * var(--u)) 0; border: 1px solid var(--ln); border-radius: calc(16 * var(--u)); color: var(--fg2); cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.cbar .cb-back:hover { border-color: var(--ln2); background: var(--sf2); color: var(--fg); }
.cbar .cb-back .i { width: calc(20 * var(--u)); height: calc(20 * var(--u)); stroke-width: 1.75; }
.cbar .por { flex: 1; padding: calc(12 * var(--u)) calc(16 * var(--u)); }
.ub { align-self: flex-end; max-width: 85%; padding: calc(8 * var(--u)) calc(14 * var(--u)); border-radius: calc(12 * var(--u)); background: var(--acd); color: var(--fg); }
.think { display: none; align-items: flex-start; gap: calc(10 * var(--u)); padding: calc(10 * var(--u)) calc(12 * var(--u)); border: 1px solid var(--ln); border-radius: calc(8 * var(--u)); background: var(--sf2); overflow: hidden; }
.think .spin { margin-top: calc(2 * var(--u)); color: var(--ac); animation: ph-spin 0.8s linear infinite; }
.think .tx { flex: 1; min-width: 0; font-size: calc(12 * var(--u)); }
.think .tt { color: var(--fg); font-size: calc(13 * var(--u)); }
.think .ts { margin-top: calc(2 * var(--u)); color: var(--fg4); }
.think .stopb { flex: none; padding: calc(4 * var(--u)) calc(10 * var(--u)); border: 1px solid var(--ln); border-radius: calc(8 * var(--u)); color: var(--fg2); font-size: calc(12 * var(--u)); }
@keyframes ph-spin { to { transform: rotate(360deg); } }

/* the answer card, as the app draws it (components/reading/AnswerCard.tsx): short answer, dated windows, traits, chances, sections,
   next steps, "what I looked at", follow-ups, the standing disclaimer. Real answers are this long. */
.ans { display: flex; flex-direction: column; gap: calc(16 * var(--u)); padding: calc(16 * var(--u)); border: 1px solid var(--ln); border-radius: calc(12 * var(--u)); background: var(--sf); line-height: 1.625; }
.ans h4.sa { color: var(--fg); font-size: calc(15 * var(--u)); font-weight: 500; line-height: 1.375; }
.ans h5 { margin-bottom: calc(8 * var(--u)); color: var(--fg3); font-size: calc(11 * var(--u)); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.ans h6 { margin-bottom: calc(2 * var(--u)); color: var(--fg); font-size: calc(12 * var(--u)); font-weight: 600; }
.sec p { font-size: calc(13 * var(--u)); }
.seg { display: flex; height: calc(10 * var(--u)); overflow: hidden; border-radius: 99px; background: var(--sf3); }
.seg .fill { display: block; height: 100%; }
.s1 { background: var(--ac); }
.s2 { background: rgba(22, 22, 26, 0.7); }
.s3 { background: rgba(22, 22, 26, 0.5); }
.tr ul { display: flex; flex-direction: column; gap: calc(8 * var(--u)); margin-top: calc(8 * var(--u)); }
.trh { display: flex; align-items: baseline; gap: calc(8 * var(--u)); }
.trh .dot { flex: none; width: calc(8 * var(--u)); height: calc(8 * var(--u)); border-radius: 50%; }
.trh span { flex: 1; color: var(--fg); }
.trh b { color: var(--fg); font-weight: 500; font-variant-numeric: tabular-nums; }
.tr li p { padding-left: calc(16 * var(--u)); color: var(--fg3); font-size: calc(11 * var(--u)); line-height: 1.375; }
.wr { padding: calc(12 * var(--u)); margin-bottom: calc(8 * var(--u)); border: 1px solid var(--ln); border-radius: calc(8 * var(--u)); background: var(--sf2); }
.wh { display: flex; align-items: baseline; justify-content: space-between; gap: calc(8 * var(--u)); }
.wh span { color: var(--fg2); font-size: calc(12 * var(--u)); font-variant-numeric: tabular-nums; }
.wh b { font-size: calc(14 * var(--u)); font-weight: 600; font-variant-numeric: tabular-nums; }
.wt { position: relative; height: calc(8 * var(--u)); margin-top: calc(8 * var(--u)); border-radius: 99px; background: var(--sf3); }
.wt::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--ln2); }
.wt .fill { position: absolute; top: 0; bottom: 0; border-radius: 99px; }
.wt .pos { left: 50%; transform-origin: left; }
.wt .neg { right: 50%; transform-origin: right; }
.pos { color: var(--ok); } .neg { color: var(--bad); }
.wt .pos { background: var(--ok); } .wt .neg { background: var(--bad); }
.wr p { margin-top: calc(8 * var(--u)); font-size: calc(12 * var(--u)); line-height: 1.375; }
.wr p strong { font-weight: 500; }
.wnote { color: var(--fg4); font-size: calc(10 * var(--u)); line-height: 1.375; }
.chs ul { display: flex; flex-direction: column; gap: calc(10 * var(--u)); }
.chh { display: flex; align-items: baseline; justify-content: space-between; gap: calc(8 * var(--u)); }
.chh span { color: var(--fg); }
.chh b { color: var(--fg); font-weight: 500; font-variant-numeric: tabular-nums; }
.cht { height: calc(6 * var(--u)); margin-top: calc(4 * var(--u)); overflow: hidden; border-radius: 99px; background: var(--sf3); }
.cht .fill { display: block; height: 100%; background: var(--ac); transform-origin: left; }
.chs p { margin-top: calc(4 * var(--u)); color: var(--fg3); font-size: calc(11 * var(--u)); line-height: 1.375; }
.stp ul { display: flex; flex-direction: column; gap: calc(4 * var(--u)); }
.stp li { display: flex; gap: calc(8 * var(--u)); }
.stp li span:first-child { color: var(--fg4); }
.evd summary { display: flex; align-items: center; gap: calc(4 * var(--u)); color: var(--fg3); font-size: calc(11 * var(--u)); list-style: none; cursor: pointer; user-select: none; }
.evd summary::-webkit-details-marker { display: none; }
.evd summary .i { width: calc(12 * var(--u)); height: calc(12 * var(--u)); transition: transform 0.2s; }
.evd[open] summary .i { transform: rotate(90deg); }
.evd ul { display: flex; flex-wrap: wrap; gap: calc(6 * var(--u)); margin-top: calc(6 * var(--u)); }
.evd li { padding: calc(1 * var(--u)) calc(6 * var(--u)); border: 1px solid var(--ln); border-radius: calc(5 * var(--u)); background: var(--sf2); color: var(--fg2); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: calc(10 * var(--u)); line-height: 1.6; }
.fu { display: flex; flex-wrap: wrap; gap: calc(6 * var(--u)); padding-top: calc(4 * var(--u)); }
.fu span { padding: calc(4 * var(--u)) calc(10 * var(--u)); border: 1px solid var(--ln); border-radius: 99px; color: var(--fg2); font-size: calc(12 * var(--u)); line-height: 1.4; }
.ftn { color: var(--fg4); font-size: calc(10 * var(--u)); line-height: 1.375; }
.cr { padding: 0 calc(4 * var(--u)); color: var(--fg4); font-size: calc(11 * var(--u)); margin-top: calc(-12 * var(--u)); }
.pills { display: flex; flex-wrap: wrap; gap: calc(6 * var(--u)); padding-top: calc(4 * var(--u)); }
.pills span { padding: calc(4 * var(--u)) calc(10 * var(--u)); border: 1px solid var(--ln); border-radius: 99px; color: var(--fg3); font-size: calc(12 * var(--u)); }
.pills .clr { border-color: transparent; color: var(--fg4); }

.cmp { display: flex; align-items: center; gap: calc(8 * var(--u)); padding: calc(8 * var(--u)) calc(12 * var(--u)) 0; color: var(--fg3); font-size: calc(11 * var(--u)); }
.cmp b { color: var(--fg); font-weight: 400; }
.cmp .i { width: calc(12 * var(--u)); height: calc(12 * var(--u)); color: var(--fg4); }
.comp { display: flex; align-items: flex-end; gap: calc(8 * var(--u)); padding: calc(8 * var(--u)) calc(12 * var(--u)) calc(30 * var(--u)); }
.inp { position: relative; flex: 1; min-width: 0; padding: calc(8 * var(--u)) calc(12 * var(--u)); border: 1px solid var(--ln); border-radius: calc(12 * var(--u)); background: var(--sf2); white-space: nowrap; overflow: hidden; }
.inp .ph { display: block; overflow: hidden; color: var(--fg4); text-overflow: ellipsis; }
.inp .typed { position: absolute; inset: 0; padding: calc(8 * var(--u)) calc(12 * var(--u)); overflow: hidden; background: var(--sf2); color: var(--fg); opacity: 0; }
.inp .typed span { display: block; overflow: hidden; }
.send { display: grid; flex: none; place-items: center; width: calc(36 * var(--u)); height: calc(36 * var(--u)); border-radius: 50%; background: var(--ac); color: var(--acfg); opacity: 0.4; }
.send .i { width: calc(16 * var(--u)); height: calc(16 * var(--u)); stroke-width: 1.75; }

/* bar widths: w = percent of the track; m = half-track for the time windows (a window's score is half of its width) */
.w5{width:5%}.w10{width:10%}.w15{width:15%}.w20{width:20%}.w25{width:25%}.w30{width:30%}.w35{width:35%}.w40{width:40%}.w45{width:45%}.w50{width:50%}.w55{width:55%}.w60{width:60%}.w65{width:65%}.w70{width:70%}.w75{width:75%}.w80{width:80%}.w85{width:85%}.w90{width:90%}.w95{width:95%}.w100{width:100%}
.m5{width:5%}.m10{width:10%}.m15{width:15%}.m20{width:20%}.m25{width:25%}.m30{width:30%}.m35{width:35%}.m40{width:40%}.m45{width:45%}.m50{width:50%}

/* ---------- while the page plays the chats on its own (.play on the phone): the typing, the sending, the answer ----------
   seconds after a chat is entered: typed .05-.75, sent .8, "reading" 1.1-1.75, the answer 1.75, its bars grow at 2.1, the credits and
   suggestions at 3; then src/site.js scrolls down through the (long) answer. Without .play (the visitor touched the phone, or
   reduced motion) every chat just shows as finished. */
.phone.play .cf.on .typed { animation: ph-type 0.78s linear 0.05s both; }
.phone.play .cb.on .ub { animation: ph-pop 0.4s var(--spring) 0.8s backwards; }
.phone.play .cb.on .think { display: flex; animation: ph-think 0.7s linear 1.1s both; }
.phone.play .cb.on .ans { animation: ph-rise 0.45s var(--ease-out) 1.75s backwards; }
.phone.play .cb.on .fill { animation: ph-grow 0.7s ease-out 2.1s backwards; }
.phone.play .cb.on :is(.cr, .pills) { animation: ph-fade 0.4s ease 3s backwards; }
@keyframes ph-pop { from { opacity: 0; transform: scale(0.82); } }
@keyframes ph-rise { from { opacity: 0; transform: translateY(5cqw); } }
@keyframes ph-fade { from { opacity: 0; } }
@keyframes ph-grow { from { transform: scaleX(0); } }
@keyframes ph-type { /* the question is typed into the box, then sent (the box empties) */
  0% { opacity: 1; clip-path: inset(0 100% 0 0); animation-timing-function: steps(26); }
  80% { opacity: 1; clip-path: inset(0 0 0 0); }
  92% { opacity: 1; clip-path: inset(0 0 0 0); }
  100% { opacity: 0; clip-path: inset(0 0 0 0); }
}
@keyframes ph-think { /* "Reading your birth chart..." shows, then gives way to the answer */
  0% { opacity: 0; max-height: 0; padding-block: 0; border-width: 0; margin-block: calc(-16 * var(--u)); }
  12%, 85% { opacity: 1; max-height: 40cqw; padding-block: calc(10 * var(--u)); border-width: 1px; margin-block: 0; }
  100% { opacity: 0; max-height: 0; padding-block: 0; border-width: 0; margin-block: calc(-16 * var(--u)); }
}

@media (max-width: 860px) {
  .txt.split { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .panel.split .doc { justify-content: flex-start; }
  .phone { --pw: min(330px, 82vw); --ph: calc(var(--pw) * 2.111); }
  .txt.split .hero h2, .txt.ta.split .hero h2 { max-width: none; }
}

/* ---------- chrome added by site.js: progress bar, the mini kattam, close ---------- */

.chrome {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(20px + var(--st)) max(clamp(16px, 3vw, 32px), calc(var(--sr) + 12px)) 28px max(clamp(16px, 3vw, 32px), calc(var(--sl) + 12px));
  background: linear-gradient(var(--c) 55%, transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.panel.settled .chrome { opacity: 1; pointer-events: auto; }
.chrome .bar { position: absolute; left: 0; right: 0; top: 0; height: 4px; background: color-mix(in srgb, var(--on) 18%, transparent); opacity: 0; transition: opacity 0.3s; }
.chrome .bar i { display: block; height: 100%; background: var(--on); transform: scaleX(0); transform-origin: left; }
.panel.auto .bar { opacity: 1; }
.panel.auto .bar i { animation: fill var(--d, 10s) linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }

/* the mini kattam is also the close button: its twelve squares show (and jump to) the boxes, the X in its empty middle closes */
.mini { display: grid; grid-template: repeat(4, 12px) / repeat(4, 12px); gap: 3px; }
.mini .m { padding: 0; border: 0; background: var(--on); cursor: pointer; opacity: 0.28; transition: opacity 0.2s, transform 0.2s; }
.mini .m:hover { opacity: 0.7; transform: scale(1.2); }
.mini .m[aria-current] { opacity: 1; }
.mini .m:focus-visible { outline: 2px solid var(--on); outline-offset: 2px; opacity: 1; }
.mini .x {
  grid-area: 2 / 2 / 4 / 4;
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s;
}
.mini .x::before, .mini .x::after { content: ""; position: absolute; left: 16%; right: 16%; top: calc(50% - 1px); height: 2px; background: var(--on); transition: background 0.2s; }
.mini .x::before { transform: rotate(45deg); }
.mini .x::after { transform: rotate(-45deg); }
.mini .x:hover, .mini .x:focus-visible { background: var(--on); outline: none; }
.mini .x:hover::before, .mini .x:hover::after, .mini .x:focus-visible::before, .mini .x:focus-visible::after { background: var(--c); }
@media (pointer: coarse) { .mini { grid-template: repeat(4, 14px) / repeat(4, 14px); } }

.chrome .right { display: flex; align-items: center; gap: 12px; }
.chrome .lang { --s: 40px; --fg: var(--on); --bg: var(--c); gap: 8px; }

@media (max-width: 640px) {
  .doc h2, .txt.ta h2 { max-width: none; }
  .mini { grid-template: repeat(4, 13px) / repeat(4, 13px); }
  .chrome .right { gap: 8px; }
  .chrome .lang { --s: 36px; gap: 6px; }
  .art { width: 84px; }
}

/* =====================================================================================================================
   The icons. One drawing per box, in the box's deep shade; the picture means what the box says, and its movement is the
   meaning too (a clock hand that sweeps for timing, scales that weigh for terms, a lock that clicks shut for privacy...).
   They play when you hover a box (.tile:hover), when the carousel is about to open it (.tile.hot), and once when its page
   has opened (.panel.settled). The label never moves.
   Reused drawings (build.py ICON_ART): charts = "accurate" (sixteen charts), matching = porutham, ask = "ask anything",
   privacy = the privacy promise, terms = terms and privacy. The target ("accurate"), timing, learn, reports and credits
   drawings are no longer on the page (kept for reuse).
   ===================================================================================================================== */

.ic { color: var(--on); overflow: visible; }
.ic * { transform-box: fill-box; transform-origin: center; }
.ic .vb { transform-box: view-box; }
.ic .bg { fill: var(--c); }
.ic .bgs { stroke: var(--c); }

/* what it does: a phone whose kattam works itself out, then the reading appears */
:is(.tile:hover, .tile.hot, .panel.settled) .ic-ulmathi .cell { animation: pop 0.8s var(--spring) both; }
:is(.tile:hover, .tile.hot, .panel.settled) .ic-ulmathi .cell:nth-child(3n + 2) { animation-delay: 0.12s; }
:is(.tile:hover, .tile.hot, .panel.settled) .ic-ulmathi .cell:nth-child(3n) { animation-delay: 0.24s; }
:is(.tile:hover, .tile.hot, .panel.settled) .ic-ulmathi .ln { animation: slide-in 0.5s var(--ease-out) 0.55s both; }
:is(.tile:hover, .tile.hot, .panel.settled) .ic-ulmathi .ln + .ln { animation-delay: 0.7s; }
@keyframes pop { 0% { transform: scale(1); } 35% { transform: scale(0.15); } 100% { transform: scale(1); } }
@keyframes slide-in { from { transform: translateX(-14px); opacity: 0; } }

/* 2 · every chart: a stack of charts fans out into sixteen */
.ic-charts .k { transition: transform 0.6s var(--spring); }
:is(.tile:hover, .tile.hot, .panel.settled) .ic-charts .k1 { transform: translate(14px, -10px) rotate(10deg); }
:is(.tile:hover, .tile.hot, .panel.settled) .ic-charts .k3 { transform: translate(-14px, 10px) rotate(-10deg); }

/* 3 · timing: the "now" marker slides along the periods */
.ic-timing .now { transform: translateX(-26px); transition: transform 1s cubic-bezier(0.6, 0, 0.2, 1); }
:is(.tile:hover, .tile.hot, .panel.settled) .ic-timing .now { transform: translateX(30px); }

/* 4 · matching: two rings come together and the overlap fills */
.ic-matching .ra { transform: translateX(-14px); transition: transform 0.7s var(--spring); }
.ic-matching .rb { transform: translateX(14px); transition: transform 0.7s var(--spring); }
.ic-matching .lens { opacity: 0; transition: opacity 0.3s ease 0.35s; }
:is(.tile:hover, .tile.hot, .panel.settled) .ic-matching :is(.ra, .rb) { transform: none; }
:is(.tile:hover, .tile.hot, .panel.settled) .ic-matching .lens { opacity: 1; }

/* 5 · ask: the question types, then the answer pops in */
:is(.tile:hover, .tile.hot, .panel.settled) .ic-ask .dt { animation: hop 0.55s ease-in-out 2; }
:is(.tile:hover, .tile.hot, .panel.settled) .ic-ask .dt:nth-of-type(2) { animation-delay: 0.12s; }
:is(.tile:hover, .tile.hot, .panel.settled) .ic-ask .dt:nth-of-type(3) { animation-delay: 0.24s; }
:is(.tile:hover, .tile.hot, .panel.settled) .ic-ask .ans { animation: pop-in 0.5s var(--spring) 1.1s both; }
.ic-ask .ans { transform-origin: 100% 100%; }
@keyframes hop { 50% { transform: translateY(-9px); } }
@keyframes pop-in { from { transform: scale(0); } }

/* 6 · learn: the page turns over, and back, like leafing through */
.ic-learn .flip { transform-origin: 60px 60px; }
:is(.tile:hover, .tile.hot, .panel.settled) .ic-learn .flip { animation: leaf 1.7s cubic-bezier(0.5, 0, 0.3, 1) both; }
@keyframes leaf { 0% { transform: scaleX(1); } 32% { transform: scaleX(-1); } 58% { transform: scaleX(-1); } 90%, 100% { transform: scaleX(1); } }

/* 7 · reports: the lines are written, the download arrow bobs */
.ic-reports .wl { stroke-dasharray: 44; }
:is(.tile:hover, .tile.hot, .panel.settled) .ic-reports .wl { animation: draw 0.6s ease-out both; }
:is(.tile:hover, .tile.hot, .panel.settled) .ic-reports .wl:nth-of-type(2) { animation-delay: 0.18s; }
:is(.tile:hover, .tile.hot, .panel.settled) .ic-reports .wl:nth-of-type(3) { animation-delay: 0.36s; }
:is(.tile:hover, .tile.hot, .panel.settled) .ic-reports .arr { animation: bob 0.6s ease-in-out 0.7s 2; }
@keyframes draw { from { stroke-dashoffset: 44; } to { stroke-dashoffset: 0; } }
@keyframes bob { 50% { transform: translateY(6px); } }

/* 8 · terms: the scales weigh up */
:is(.tile:hover, .tile.hot, .panel.settled) .ic-terms .beam { animation: rock 1.5s ease-in-out both; }
:is(.tile:hover, .tile.hot, .panel.settled) .ic-terms .pl,
:is(.tile:hover, .tile.hot, .panel.settled) .ic-terms .pr { animation: rock-back 1.5s ease-in-out both; }
.ic-terms .beam { transform-origin: 60px 28px; }
.ic-terms .pl { transform-origin: 18px 28px; }
.ic-terms .pr { transform-origin: 102px 28px; }
@keyframes rock { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-10deg); } 55% { transform: rotate(8deg); } 80% { transform: rotate(-3deg); } }
@keyframes rock-back { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(10deg); } 55% { transform: rotate(-8deg); } 80% { transform: rotate(3deg); } }

/* 9 · privacy: the lock opens and clicks shut */
:is(.tile:hover, .tile.hot, .panel.settled) .ic-privacy .shackle { animation: click 1.1s ease-in-out both; }
@keyframes click { 0%, 100% { transform: translateY(0); } 30%, 62% { transform: translateY(-12px); } 80% { transform: translateY(1.5px); } }

/* 10 · accounts: the credit coin is tossed */
:is(.tile:hover, .tile.hot, .panel.settled) .ic-credits .coin { animation: toss 1.1s ease-in-out both; }
@keyframes toss { 0%, 100% { transform: translateY(0) scaleX(1); } 30% { transform: translateY(-10px) scaleX(0.02); } 60% { transform: translateY(-10px) scaleX(-1); } }

/* 11 · get the app: the download drops into the phone */
:is(.tile:hover, .tile.hot, .panel.settled) .ic-app .arr { animation: drop 0.8s var(--ease-out) 2 both; }
@keyframes drop { 0% { transform: translateY(-22px); opacity: 0; } 45% { opacity: 1; } 100% { transform: translateY(0); opacity: 1; } }

/* 12 · contact: the envelope opens and the letter rises */
.ic-contact .flap-c { transform-origin: 50% 0; transition: transform 0.35s ease; }
.ic-contact .flap-o { transform-origin: 50% 100%; transform: scaleY(0); transition: transform 0.35s ease 0.2s; }
.ic-contact .letter { transition: transform 0.6s var(--spring) 0.3s; }
:is(.tile:hover, .tile.hot, .panel.settled) .ic-contact .flap-c { transform: scaleY(0); }
:is(.tile:hover, .tile.hot, .panel.settled) .ic-contact .flap-o { transform: scaleY(1); }
:is(.tile:hover, .tile.hot, .panel.settled) .ic-contact .letter { transform: translateY(-26px); }

/* human error: the warning sign shakes */
.ic-warning .tri { transform-origin: 60px 106px; }
:is(.tile:hover, .tile.hot, .panel.settled) .ic-warning .tri { animation: shake 0.9s ease-in-out both; }
@keyframes shake { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(-9deg); } 35% { transform: rotate(8deg); } 55% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } }

/* (not on the page now) accurate: the squares close in, the crosshair locks on, the centre pops */
:is(.tile:hover, .tile.hot, .panel.settled) .ic-accurate .m { animation: converge 0.9s var(--spring) both; }
:is(.tile:hover, .tile.hot, .panel.settled) .ic-accurate .tk { animation: lock 0.8s var(--spring) 0.2s both; }
:is(.tile:hover, .tile.hot, .panel.settled) .ic-accurate .c { animation: pop-in 0.5s var(--spring) 0.55s both; }
@keyframes converge { from { transform: scale(1.7); opacity: 0; } }
@keyframes lock { from { transform: scale(1.4); } }

/* reliable: the tick is written, and written again exactly the same */
.ic-reliable .tick { stroke-dasharray: 90; }
:is(.tile:hover, .tile.hot, .panel.settled) .ic-reliable .tick { animation: tick 0.55s ease-out 0.1s 2 both; }
@keyframes tick { from { stroke-dashoffset: 90; } to { stroke-dashoffset: 0; } }

/* far cheaper: the price arrow drops, the coin gives a little */
:is(.tile:hover, .tile.hot, .panel.settled) .ic-cheaper .dn { animation: drop 0.8s var(--ease-out) 2 both; }
:is(.tile:hover, .tile.hot, .panel.settled) .ic-cheaper .cn { animation: squeeze 0.8s ease-in-out 2; }
@keyframes squeeze { 50% { transform: scale(0.86); } }

/* any time: the hands sweep round */
.ic-anytime :is(.hh, .mh) { transform-origin: 60px 60px; }
:is(.tile:hover, .tile.hot, .panel.settled) .ic-anytime .mh { animation: sweep 1.6s cubic-bezier(0.5, 0, 0.3, 1) both; }
:is(.tile:hover, .tile.hot, .panel.settled) .ic-anytime .hh { animation: sweep-h 1.6s cubic-bezier(0.5, 0, 0.3, 1) both; }
@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes sweep-h { to { transform: rotate(60deg); } }

@media (prefers-reduced-motion: reduce) {
  .tile, .brand, .tag { animation: none; }
  .phone *, .phone { animation: none !important; }
  .sheet, .chrome { transition: none; }
  .ic *, .ic *::before { animation: none !important; transition: none !important; }
}

/* the mini kattam (with its X) sits at the top-left of an opened page. In a window narrow enough for the page's content to start
   under it (or on a touch screen, where the mini is a little bigger), the content starts below it, with some air. */
@media (max-width: 1250px), (pointer: coarse) {
  .doc, .dense .doc, .panel.split .doc { padding-top: calc(clamp(112px, 14vh, 160px) + var(--st)); }
}
