/* meetpithyai.com — direction "Type and nothing else" (warm black, gold). One stylesheet for the
   English and Arabic pages: layout uses logical properties so the Arabic page mirrors itself. */

:root {
  --bg: #0c0a08;
  --surface: #181512;
  --surface-2: #221d17;
  --gold-tone: #2b2417;
  --ink: #ffffff;
  --soft: #8f8a84;
  --accent: #c9a45a;
  --accent-ink: #0c0a08;

  --font-display: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Source Serif 4", Georgia, serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);

  --margin: clamp(16px, 2.8vw, 40px);
  --gap: clamp(16px, 2vw, 32px);
  --section: clamp(120px, 14vw, 200px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-hover: 220ms;
  --t-press: 120ms;
}

:lang(ar) {
  --font-display: "Noto Kufi Arabic", "Libre Franklin", Tahoma, sans-serif;
  --font-text: "Noto Naskh Arabic", "Source Serif 4", Tahoma, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.55;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-head);
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
:lang(ar) .h2 { letter-spacing: 0; line-height: 1.25; }
.num { font-variant-numeric: tabular-nums; }
.soft { color: var(--soft); }

/* Links and the one button shape: square corners, flat gold. */
.link {
  text-decoration: underline;
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.22em;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease;
}
.link:hover { text-decoration-color: currentColor; color: var(--accent); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.button:hover { background: #d8b56c; }
.button:active { transform: scale(0.97); }
.button--quiet { background: var(--surface-2); color: var(--ink); }
.button--quiet:hover { background: #2e2720; }

/* ---------- Hero: stacked name, two inks ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 24px var(--margin) 40px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
}
.topbar nav { display: flex; gap: 24px; align-items: center; }
.wordmark { text-decoration: none; letter-spacing: -0.02em; }
.wordmark span { color: var(--accent); }
.hero__name {
  margin-top: 12vh;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(110px, 25vw, 420px);
  line-height: 0.82;
  letter-spacing: -0.045em;
}
:lang(ar) .hero__name {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 800;
  font-size: clamp(64px, 12.5vw, 220px);
  line-height: 1.3;
  margin-top: 6vh;
}
.hero__name .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__name [data-line] { display: block; }
.hero__name .ink-2 { color: var(--accent); }
.hero__foot {
  margin-top: auto;
  padding-top: 40px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: end;
}
.hero__lede {
  grid-column: 7 / 13;
  font-size: var(--step-lead);
  line-height: 1.35;
  max-width: 34ch;
  justify-self: end;
}
.hero__actions { grid-column: 7 / 13; justify-self: end; display: flex; gap: 20px; align-items: center; margin-top: 28px; flex-wrap: wrap; }
.hero__actions .link { font-family: var(--font-display); font-weight: 700; font-size: 15px; }

/* The name block shares the screen with the lede: on wide screens the lede sits beside line two. */
@media (min-width: 900px) {
  .hero__stack { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
  .hero__name { grid-column: 1 / 13; grid-row: 1; }
  .hero__aside { grid-column: 7 / 13; grid-row: 1; align-self: end; justify-self: end; text-align: end; padding-bottom: 0.6vw; }
  .hero__aside .hero__lede { margin-inline-start: auto; }
  .hero__aside .hero__actions { justify-content: flex-end; }
  /* The proverb's second line runs most of the width, so on the Arabic page the lede sits under it. */
  :lang(ar) .hero__aside { grid-row: 2; grid-column: 1 / 8; justify-self: start; text-align: start; margin-top: 40px; padding-bottom: 0; }
  :lang(ar) .hero__aside .hero__lede { margin-inline-start: 0; }
  :lang(ar) .hero__aside .hero__actions { justify-content: flex-start; }
}

/* ---------- Showcase: two figures compared ---------- */
.showcase { padding-top: var(--section); }
.showcase__head { align-items: start; }
.showcase__head .h2 { grid-column: 1 / 6; }
.showcase__head p { grid-column: 7 / 13; max-width: 60ch; }
.showcase__pair { margin-top: 12vh; align-items: end; }
.specimen { grid-column: span 6; }
.specimen figcaption { font-size: 15px; color: var(--soft); margin-top: 20px; }
.specimen__figure {
  font-family: "Libre Franklin", var(--font-display);
  font-weight: 700;
  font-size: clamp(110px, 18.5vw, 330px);
  line-height: 0.8;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  text-align: start;
}
:lang(ar) .specimen__figure { text-align: right; }

/* ---------- Features: sentences with switches ---------- */
.features { padding-top: var(--section); }
.features > .h2 { margin-bottom: 56px; }
.band {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: center;
  min-height: 20vh;
  padding: 28px var(--margin);
  transition: background-color 420ms var(--ease-out);
  cursor: pointer;
}
.band__text { grid-column: 1 / 11; }
.band__sentence {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.5vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--soft);
  transition: color 320ms ease;
}
:lang(ar) .band__sentence { letter-spacing: 0; line-height: 1.5; }
.band__more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 420ms var(--ease-out);
}
.band__more > p { overflow: hidden; font-size: var(--step-body); max-width: 62ch; }
.band__more > p > span { display: block; padding-top: 10px; }
.band[data-on="true"] .band__sentence { color: var(--ink); }
.band[data-on="true"] .band__more { grid-template-rows: 1fr; }
.band:nth-of-type(1)[data-on="true"] { background: var(--surface); }
.band:nth-of-type(2)[data-on="true"] { background: var(--gold-tone); }
.band:nth-of-type(3)[data-on="true"] { background: var(--surface-2); }
.band:nth-of-type(4)[data-on="true"] { background: var(--gold-tone); }
.band:nth-of-type(5)[data-on="true"] { background: var(--surface); }
.band__switch { grid-column: 11 / 13; justify-self: end; }
.switch {
  position: relative;
  width: 2.2em;
  height: 1.2em;
  font-size: clamp(26px, 2.6vw, 38px);
  padding: 0;
  border: 0;
  border-radius: 1em;
  background: #3a332b;
  cursor: pointer;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.switch::after {
  content: "";
  position: absolute;
  inset-block-start: 0.12em;
  inset-inline-start: 0.12em;
  width: 0.96em;
  height: 0.96em;
  border-radius: 50%;
  background: var(--ink);
  transition: transform 300ms var(--ease-out);
}
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"]::after { transform: translateX(1em); }
:lang(ar) .switch[aria-checked="true"]::after { transform: translateX(-1em); }
.switch:active { transform: scale(0.95); }
.band:hover .band__sentence { color: var(--ink); }

/* ---------- Picture bands ---------- */
.band-picture { margin-top: var(--section); }
.band-picture img, .band-picture video { width: 100%; height: min(78vh, 760px); object-fit: cover; background: var(--surface); }
.band-picture figcaption { margin-top: 16px; font-size: 15px; color: var(--soft); }
.band-picture--film video { height: min(70vh, 680px); }
@media (prefers-reduced-motion: no-preference) {
  .js .band-picture img { transform: scale(1.06); transition: transform 1600ms var(--ease-out); }
  .js .band-picture.is-in img { transform: none; }
}

/* ---------- How it works: call and response ---------- */
.steps { padding-top: var(--section); }
.steps__col { grid-column: 3 / 11; }
.steps__col > .h2 { margin-bottom: 56px; }
.step + .step { margin-top: 88px; }
.step__say { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
:lang(ar) .step__say { letter-spacing: 0; }
.step__call { margin-top: 16px; background: var(--surface); padding: 20px; max-width: 640px; }
.step__response { margin-top: 20px; margin-inline-start: 56px; max-width: 640px; }
.step--final .step__response { max-width: none; width: auto; margin-inline-end: calc(-1 * (100vw - 2 * var(--margin) + var(--gap)) / 6); }
.step__note { margin-top: 12px; font-size: 15px; color: var(--soft); }

/* Interface fragments (data-ui): the app's own light style, ink chrome and one blue. */
[data-ui] {
  --ui-bg: #f2f4f7;
  --ui-card: #ffffff;
  --ui-ink: #111111;
  --ui-muted: #6b6f76;
  --ui-line: #e3e6ea;
  --ui-hue: #1f5fd1;
  background: var(--ui-bg);
  color: var(--ui-ink);
  font-family: "Libre Franklin", "Noto Naskh Arabic", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  border-radius: 8px;
}
.ui-rec { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.ui-rec__dot { width: 12px; height: 12px; border-radius: 50%; background: #d93a2b; flex: none; }
.ui-rec__time { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ui-rec__meta { color: var(--ui-muted); font-size: 14px; }
.ui-rec__wave { display: flex; align-items: center; gap: 3px; height: 32px; margin-inline-start: auto; }
.ui-rec__wave i { display: block; width: 3px; border-radius: 2px; background: var(--ui-ink); height: 30%; transform-origin: center; }
.ui-rec__stop { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ui-ink); display: grid; place-items: center; }
.ui-rec__stop::after { content: ""; width: 12px; height: 12px; background: #fff; border-radius: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .js .ui-rec__wave i { animation: wave 1.1s ease-in-out infinite; animation-delay: calc(var(--d) * -1s); }
}
@keyframes wave { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }

.ui-saved { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.ui-saved__check { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ui-ink); display: grid; place-items: center; }
.ui-saved__check::after { content: ""; width: 10px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.ui-saved__text { flex: 1; min-width: 0; }
.ui-saved__bar { height: 4px; border-radius: 2px; background: #dfe2e6; margin-top: 8px; overflow: hidden; }
.ui-saved__bar i { display: block; height: 100%; width: 72%; background: var(--ui-hue); border-radius: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .js .ui-saved__bar i { animation: upload 2.6s var(--ease-out) infinite; }
}
@keyframes upload { from { width: 8%; } 70%, to { width: 100%; } }
.ui-card { background: var(--ui-card); border-radius: 8px; padding: 16px; }
.ui-title { font-size: 18px; font-weight: 700; }
.ui-sub { font-size: 14px; color: var(--ui-muted); }
.ui-lines { margin-top: 12px; display: grid; gap: 10px; }
.ui-line { display: grid; grid-template-columns: 44px 1fr; gap: 10px; }
.ui-line time { font-size: 14px; color: var(--ui-muted); font-variant-numeric: tabular-nums; padding-top: 2px; direction: ltr; }
.ui-line b { font-weight: 700; font-size: 14px; display: block; }
.ui-line p[dir="rtl"] { text-align: right; font-family: "Noto Naskh Arabic", sans-serif; }
.ui-line p[dir="ltr"] { text-align: left; }
.ui-tabs { display: flex; gap: 18px; font-size: 14px; margin-top: 10px; }
.ui-tabs span { padding-bottom: 6px; color: var(--ui-muted); }
.ui-tabs span[aria-current] { color: var(--ui-ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--ui-ink); } /* taste-skill-ignore: the app's own tab underline, inside data-ui */
.ui-sect { margin-top: 14px; }
.ui-sect h4 { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--ui-muted); }
.ui-sect li { padding-inline-start: 14px; position: relative; }
.ui-sect li + li { margin-top: 4px; }
.ui-sect li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.65em; width: 5px; height: 5px; border-radius: 50%; background: var(--ui-ink); }
.ui-task { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: start; padding: 8px 0; }
.ui-task + .ui-task { border-top: 1px solid var(--ui-line); } /* taste-skill-ignore: list divider inside the app fragment (data-ui) */
.ui-task__box { width: 18px; height: 18px; border: 1.5px solid var(--ui-ink); border-radius: 4px; margin-top: 2px; }
.ui-task small { display: block; color: var(--ui-muted); font-size: 14px; }

.ui-ask { padding: 16px; }
.ui-ask__field {
  display: flex; align-items: center; gap: 10px;
  background: var(--ui-card); border: 1px solid var(--ui-line); border-radius: 8px; /* taste-skill-ignore: the app's input field (data-ui) */
  min-height: 48px; padding: 8px 8px 8px 14px; font-size: 16px;
}
:lang(ar) .ui-ask__field { padding: 8px 14px 8px 8px; }
.ui-ask__field output { flex: 1; min-width: 0; }
.ui-ask__send { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--ui-ink); display: grid; place-items: center; }
.ui-ask__send::after { content: ""; width: 9px; height: 9px; border-top: 2px solid #fff; border-inline-end: 2px solid #fff; transform: translateY(2px) rotate(-45deg); }
.ui-ask__choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ui-chip {
  font: inherit; font-size: 15px; color: var(--ui-ink);
  background: #e5e7eb; border: 0; border-radius: 999px; min-height: 36px; padding: 6px 14px; cursor: pointer;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.ui-chip:hover { background: #d9dce1; }
.ui-chip:active { transform: scale(0.97); }
.ui-chip[aria-pressed="true"] { background: var(--ui-ink); color: #fff; }
.ui-answer { padding: 20px; }
.ui-answer__text { font-size: 18px; line-height: 1.5; transition: opacity 260ms ease; }
.ui-answer__text.is-swapping { opacity: 0; }
.ui-answer__moments { display: flex; gap: 8px; margin-top: 14px; font-size: 15px; color: var(--ui-muted); align-items: center; flex-wrap: wrap; }
.ui-moment { color: var(--ui-hue); font-weight: 600; font-variant-numeric: tabular-nums; direction: ltr; }

/* ---------- List: decisions and tasks at one size ---------- */
.ledger { margin-top: calc(var(--section) - 64px); padding-block: 88px; background: var(--surface); }
.ledger table { width: 100%; border-collapse: collapse; font-family: var(--font-text); font-size: clamp(20px, 2.4vw, 34px); line-height: 1.5; }
.ledger th, .ledger td { padding: 0; text-align: start; font-weight: 400; vertical-align: top; }
.ledger thead th { color: var(--soft); font-size: 0.6em; padding-bottom: 12px; }
.ledger .c-item { width: 52%; }
.ledger .c-who { width: 14%; }
.ledger .c-when { width: 22%; }
.ledger .c-at { width: 14%; text-align: end; font-variant-numeric: tabular-nums; }
.ledger tbody th[scope="rowgroup"] {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  padding-top: 64px;
  padding-bottom: 12px;
}
.ledger tbody:first-of-type th[scope="rowgroup"] { padding-top: 24px; }
.ledger .h2 { margin-bottom: 40px; }

/* ---------- About: two columns, highlighted words ---------- */
.about { padding-block: var(--section); }
.about .h2 { margin-bottom: 48px; }
.about__text {
  columns: 2;
  column-gap: 32px;
  font-size: clamp(20px, 1.9vw, 28px);
  line-height: 1.25;
  color: var(--ink);
  text-align: justify;
  hyphens: auto;
}
:lang(ar) .about__text { line-height: 1.6; }
.about__text strong { color: var(--ink); font-weight: 600; }
.mark {
  color: var(--accent-ink);
  background-color: var(--hl);
  padding: 0 0.1em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.mark--a { --hl: #c9a45a; }
.mark--b { --hl: #e8dcc4; }
.mark--c { --hl: #b9b2a8; }
.about__close { display: inline; }
.about__close a { color: var(--accent-ink); background: var(--accent); padding: 0 0.1em; text-decoration: none; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.about__close a:hover { background: #d8b56c; }

/* ---------- Pricing: plans as a large table ---------- */
.pricing { padding-bottom: var(--section); }
.plans { width: 100%; border-collapse: collapse; font-size: 22px; }
.plans th, .plans td { text-align: start; vertical-align: top; padding: 20px 20px; font-weight: 400; }
.plans thead th { padding-top: 24px; vertical-align: top; }
.plans thead th:first-child { padding-inline-start: 0; }
.plans .plan-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 3vw, 48px); line-height: 1; letter-spacing: -0.03em; }
.plans .plan-price { font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 3vw, 48px); line-height: 1.1; letter-spacing: -0.03em; margin-top: 8px; }
:lang(ar) .plans .plan-name, :lang(ar) .plans .plan-price { letter-spacing: 0; line-height: 1.45; }
.plans .plan-period { font-size: 15px; color: var(--soft); margin-top: 6px; }
.plans tbody tr:nth-child(odd) { background: var(--surface); }
.plans tbody th { width: 34%; padding-inline-start: 16px; }
.plans .is-pro { background: var(--gold-tone); }
.plans tbody tr:nth-child(odd) .is-pro { background: #352c1c; }
.plans tfoot td { padding-top: 28px; }
.plans tfoot .button { width: 100%; }

.pricing__note { margin-top: 20px; font-size: 15px; color: var(--soft); }
.plans-mobile { display: none; }

/* ---------- FAQ: wide heading, indented questions ---------- */
.faq { padding-bottom: var(--section); }
.faq .h2 { font-size: clamp(40px, 5.5vw, 88px); max-width: 16ch; }
.faq__list { grid-column: 5 / 13; margin-top: 80px; display: grid; gap: 12px; }
.faq details { padding: 12px 24px; margin-inline: -24px; transition: background-color var(--t-hover) ease; }
.faq details[open] { background: var(--surface); padding-block: 24px; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  font-size: clamp(20px, 1.7vw, 24px);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-inline-end: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-3px); transition: transform 300ms var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq details p { margin-top: 14px; font-size: var(--step-body); max-width: 52ch; }
.faq summary:hover { color: var(--accent); }

/* ---------- Footer: contact as the headline ---------- */
.footer {
  min-height: 90svh;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  flex-direction: column;
  padding: 40px var(--margin) 28px;
}
.footer__top { align-items: start; font-size: 15px; font-family: var(--font-display); font-weight: 700; }
.footer__notes { grid-column: 1 / 8; display: grid; gap: 6px; }
.footer__stores { grid-column: 8 / 11; display: grid; gap: 6px; }
.footer__back { grid-column: 11 / 13; justify-self: end; }
.footer .h2 { margin-top: auto; font-size: clamp(28px, 3vw, 44px); margin-bottom: 12px; }
.footer__mail {
  display: block;
  font-family: "Libre Franklin", var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 8.4vw, 150px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-decoration: none;
  direction: ltr;
  text-align: left;
  transition: opacity var(--t-hover) ease;
}
:lang(ar) .footer__mail { text-align: right; }
.footer__mail:hover { opacity: 0.75; }
.footer__mail span { display: block; }
.footer__meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; font-size: 15px; flex-wrap: wrap; }
.footer__meta nav { display: flex; gap: 20px; }

/* ---------- Legal pages ---------- */
.legal { padding: 0 var(--margin) var(--section); }
.legal .topbar { padding-block: 24px; }
.legal__body { max-width: 72ch; margin-top: 80px; }
.legal__body h1 { font-family: var(--font-display); font-weight: 700; font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.035em; margin-bottom: 40px; }
.legal__body h2 { font-family: var(--font-display); font-weight: 700; font-size: 28px; letter-spacing: -0.02em; margin: 56px 0 16px; }
.legal__body p, .legal__body li { margin: 0 0 14px; }
.legal__body ul { list-style: disc; padding-inline-start: 1.2em; }
.legal__body blockquote { background: var(--surface); padding: 16px 20px; margin: 0 0 24px; color: var(--soft); }
.legal__body table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 8px 0 24px; }
.legal__body th, .legal__body td { text-align: start; vertical-align: top; padding: 10px 12px; }
.legal__body thead th { color: var(--soft); font-weight: 600; }
.legal__body tbody tr:nth-child(odd) { background: var(--surface); }

/* ---------- Motion: masked headline, entrances ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__name [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-out) forwards; animation-delay: calc(var(--i) * 110ms + 150ms); }
  .js .hero__aside, .js .hero__foot { opacity: 0; transform: translateY(16px); animation: fade-up 700ms var(--ease-out) 900ms forwards; }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--r, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
@keyframes line-up { to { transform: none; } }
@keyframes fade-up { to { opacity: 1; transform: none; } }

/* ---------- Phone ---------- */
@media (max-width: 899px) {
  .topbar nav .hide-sm { display: none; }
  .hero { padding-top: 18px; }
  .hero { min-height: auto; padding-bottom: 72px; }
  .hero__name { margin-top: 18vh; font-size: 27vw; }
  :lang(ar) .hero__name { font-size: 16vw; }
  .hero__aside { margin-top: 36px; }
  .hero__lede { grid-column: 1 / 13; justify-self: start; font-size: 19px; }
  .hero__actions { justify-self: start; }

  .showcase { height: auto; overflow: visible; }
  .showcase__head .h2, .showcase__head p { grid-column: 1 / 13; }
  .showcase__head p { margin-top: 20px; }
  .showcase__pair { margin-top: 48px; row-gap: 24px; }
  .specimen { grid-column: 1 / 13; }
  .specimen__box { padding: 20px 16px 8px; background: var(--surface); overflow: hidden; }
  .specimen:nth-child(2) .specimen__box { background: var(--ink); color: var(--bg); }
  .specimen__figure { font-size: 40vw; }
  .specimen figcaption { margin-top: 12px; }

  .band { min-height: 132px; padding-block: 22px; }
  .band__text { grid-column: 1 / 10; }
  .band__sentence { font-size: clamp(20px, 5.4vw, 24px); }
  .band__switch { grid-column: 10 / 13; }
  .band__more > p { font-size: 15px; }
  .switch { font-size: 26px; }

  .steps__col { grid-column: 1 / 13; }
  .step__response { margin-inline-start: 0; }
  .step--final .step__response { width: auto; margin-inline-end: 0; }
  .step__call, .step__response { max-width: none; }
  .ui-rec__wave { display: none; }

  .about__text { columns: 1; font-size: 20px; line-height: 1.3; text-align: start; }
  :lang(ar) .about__text { line-height: 1.7; }

  .plans { display: none; }
  .plans-mobile { display: grid; gap: 64px; }
  .plan-card { padding: 24px 20px; background: var(--surface); }
  .plan-card.is-pro { background: var(--gold-tone); }
  .plan-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 11vw; line-height: 1; letter-spacing: -0.03em; }
  :lang(ar) .plan-card h3 { letter-spacing: 0; line-height: 1.3; }
  .plan-card .price { font-family: var(--font-display); font-size: 8vw; line-height: 1.15; margin-top: 4px; }
  .plan-card dl { margin-top: 20px; display: grid; gap: 14px; font-size: 17px; }
  .plan-card dt { color: var(--soft); }
  .plan-card .button { width: 100%; margin-top: 24px; }

  .faq .h2 { font-size: 10vw; }
  .faq__list { grid-column: 1 / 13; margin-top: 48px; }
  .faq details { margin-inline: calc(-1 * var(--margin)); padding-inline: var(--margin); }
  .faq summary { font-size: 19px; }
  .faq details p { font-size: 16px; }

  .footer__notes, .footer__stores, .footer__back { grid-column: 1 / 13; justify-self: start; }
  .footer__stores, .footer__back { margin-top: 16px; }
  /* "@meetpithyai.com" is about 8.6em wide in this face: fit it to the content width. */
  .footer__mail { font-size: calc((100vw - 2 * var(--margin)) / 8.8); }
  .footer__meta { flex-direction: column; font-size: 13px; gap: 8px; }
}

@media (max-width: 640px) {
  .ledger { padding-block: 64px; }
  .ledger table, .ledger tbody, .ledger th, .ledger td { display: block; width: auto; }
  .ledger thead { display: none; }
  .ledger tbody tr:not(.group) { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; margin-top: 18px; }
  .ledger tbody tr.group { display: block; }
  .ledger td.c-item { flex: 0 0 100%; font-size: 19px; }
  .ledger td.c-who, .ledger td.c-when { font-size: 15px; color: var(--soft); }
  .ledger td:empty { display: none; }
  .ledger td.c-item, .ledger td.c-who, .ledger td.c-when, .ledger td.c-at { width: auto; }
  .ledger td.c-who:not(:empty) + td.c-when:not(:empty)::before { content: "· "; }
  .ledger td.c-at { margin-inline-start: auto; font-size: 15px; color: var(--soft); }
  .ledger tbody th[scope="rowgroup"] { position: sticky; top: 0; background: var(--surface); font-size: 19px; padding-top: 40px; }
}
