/*
  The home page and the crew pages. Same warm paper, ink, and orange as the
  app, so moving from a page into the app feels like one place. Each crew
  page sets --tint (the background of that person's portrait) and --ink (a
  darker shade of the same hue): the hero band is painted in --tint, so the
  portrait has no edge and the person sits in their own color.
  Square corners throughout; the app's rounded chat bubbles are its one
  exception, since that's the shape everyone reads as chat.
*/
:root {
  --bg: #FAF9F6;
  --card: #FFFFFF;
  --text: #1F1F1F;
  --text-2: #4D4D4D;
  --line: #D6D3CC;
  --accent: #C2560C;
  --accent-ink: #7A2E00;
  --tint: #E9E2D0;
  --ink: #7A2E00;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { font-size: 19px; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: var(--ink); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
p { max-width: 38em; }

/* ---------- header ---------- */
.site-top { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-top .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; margin-inline-end: auto; }
/* The period sits inside the left-to-right span so it stays after "Sal" on Arabic pages. */
.brand span::after { content: "."; color: var(--accent); }
.site-top nav { display: flex; gap: 20px; align-items: center; }
.site-top nav a { color: var(--text-2); text-decoration: none; font-size: .9rem; }
.site-top nav a:hover { color: var(--text); text-decoration: underline; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px; border-radius: 2px;
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 2px solid var(--text); background: transparent; color: var(--text);
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn:not(.primary):hover { background: var(--text); color: var(--bg); }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- sections ---------- */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -0.015em; }
h2 { font-size: 2rem; margin-bottom: 12px; }
.lede { font-size: 1.15rem; color: var(--text-2); margin: 0 0 36px; }

/* ---------- home hero: the wall of faces ---------- */
.home-hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.home-hero h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 700; }
.home-hero p { font-size: 1.2rem; color: var(--text-2); margin: 20px 0 0; }
.faces { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.faces a { display: block; aspect-ratio: 1; overflow: hidden; }
.faces img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.faces a:hover img { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) { .faces img { transition: none; } }

/* ---------- crew grid ---------- */
.crew { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
/* A directory entry: headshot beside the details, like a find-a-doctor list. */
.member {
  display: grid; grid-template-columns: 132px 1fr; text-decoration: none; color: var(--text);
  background: var(--card); border: 1px solid var(--line); border-radius: 2px;
}
.member:hover { border-color: var(--text); }
.member img { width: 132px; height: 100%; min-height: 132px; object-fit: cover; }
.member .who { padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; }
.member strong { font-size: 1.2rem; }
.member .title { font-size: .85rem; font-weight: 600; margin: 0; }
.member .pair { color: var(--text-2); font-size: .9rem; }
.member .hi { font-size: .9rem; margin-top: 8px; color: var(--text-2); }
.member .view { margin-top: auto; padding-top: 10px; font-weight: 600; font-size: .85rem; color: var(--accent-ink); }

/* Sal: everyone else's languages in one. */
.sal { display: grid; grid-template-columns: 280px 1fr; gap: 0; border: 2px solid var(--text); border-radius: 2px; margin-top: 36px; background: var(--card); }
.sal img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.sal > div { padding: 28px 32px; }
.sal h3 { font-size: 1.6rem; margin-bottom: 10px; }
.sal p { color: var(--text-2); margin: 0 0 8px; }

/* ---------- crew profile, laid out like a hospital staff page ---------- */
.cover { background: var(--tint); height: 150px; padding: 0; }
.profile-head { padding: 0 0 36px; border-bottom: 1px solid var(--line); }
.profile-head .wrap { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: end; }
.headshot { margin-top: -110px; width: 220px; aspect-ratio: 1; object-fit: cover; border: 5px solid var(--bg); background: var(--tint); }
.profile-head h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 700; }
.title { font-size: 1.1rem; font-weight: 600; color: var(--ink); margin: 6px 0 0; }
.meta { color: var(--text-2); margin: 4px 0 0; }
.profile-head .actions { margin-top: 20px; }
.play {
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 20px;
  font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer;
  background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 2px;
}
.play:hover, .play[aria-pressed="true"] { border-color: var(--ink); }
.play svg { width: 16px; height: 16px; fill: var(--ink); flex: none; }

/* Top and bottom only: the shorthand would wipe out .wrap's side padding. */
.profile { display: grid; grid-template-columns: 1fr 320px; gap: 56px; padding-top: 48px; padding-bottom: 72px; align-items: start; }
.profile main > section { padding: 0 0 36px; border: 0; }
.profile main > section + section { padding-top: 36px; border-top: 1px solid var(--line); }
.profile h2 { font-size: 1.45rem; margin-bottom: 14px; }
.quote { margin: 24px 0 0; padding: 20px 24px; background: var(--tint); }
.quote p { margin: 0; }
.quote .native { font-size: 1.3rem; line-height: 1.45; }
.quote .en { color: var(--text-2); margin-top: 8px; font-size: .95rem; }
.facts { border: 1px solid var(--line); background: var(--card); position: sticky; top: 20px; }
.facts dl { margin: 0; }
.facts div { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: .8rem; color: var(--text-2); margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 600; }
.facts dd span { display: block; font-weight: 400; color: var(--text-2); font-size: .9rem; }
.facts .btn { width: 100%; margin-top: 4px; }

/* ---------- how it works ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { display: grid; gap: 10px; align-content: start; }
.steps .pic { width: 72px; height: 72px; }
.steps .pic svg { width: 72px; height: 72px; fill: none; stroke: var(--text); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.steps .pic .a { stroke: var(--accent); }
.steps .pic .f { fill: var(--text); }
.steps .pic .bg { fill: var(--bg); }
.steps .pic .go { fill: #1E7A46; stroke: #1E7A46; }
.profile .steps { grid-template-columns: 1fr; gap: 22px; }
.profile .steps li { grid-template-columns: 72px 1fr; column-gap: 18px; }
.profile .steps .pic { grid-row: span 3; }
.steps .num { font-weight: 700; color: var(--accent); font-size: .95rem; }
.steps .native { font-size: 1.15rem; line-height: 1.4; }
.steps .en { color: var(--text-2); font-size: .92rem; }
:lang(ko) { word-break: keep-all; }

/* ---------- good for ---------- */
.uses { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0; border-top: 1px solid var(--line); margin: 0; padding: 0; list-style: none; }
.uses li { padding: 18px 0; border-bottom: 1px solid var(--line); padding-inline-end: 20px; }
.uses strong { display: block; font-size: 1.05rem; }
.uses span { color: var(--text-2); font-size: .92rem; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 860px; }
.plan { border: 1px solid var(--line); background: var(--card); padding: 32px; border-radius: 2px; display: flex; flex-direction: column; }
.plan.best { border: 2px solid var(--text); }
.plan h3 { font-size: 1.15rem; }
.plan .price { color: var(--text); font-size: 3rem; font-weight: 700; letter-spacing: -0.03em; margin: 14px 0 4px; line-height: 1; }
.price small { font-size: 1rem; font-weight: 500; color: var(--text-2); letter-spacing: 0; }
.plan p { color: var(--text-2); margin: 8px 0 0; }
.plan ul { padding-inline-start: 1.1em; margin: 18px 0 24px; color: var(--text); }
.plan li { margin: 6px 0; }
.plan .btn { margin-top: auto; }
.promise { max-width: 860px; margin-top: 28px; padding: 22px 26px; border-left: 0; background: var(--tint); }
.promise strong { display: block; margin-bottom: 4px; }
.promise p { margin: 0; }
.fine { color: var(--text-2); font-size: .85rem; margin-top: 18px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 20px; color: var(--text-2); }

/* ---------- the rest of the crew ---------- */
.others { display: flex; gap: 10px; flex-wrap: wrap; }
.others a { width: 84px; text-decoration: none; color: var(--text-2); font-size: .8rem; text-align: center; }
.others img { width: 84px; height: 84px; object-fit: cover; margin-bottom: 6px; }
.others a:hover { color: var(--text); }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--text-2); font-size: .85rem; }
.site-foot p { margin: 4px 0; }

/* ---------- phones ---------- */
@media (max-width: 820px) {
  html { font-size: 18px; }
  section { padding: 52px 0; }
  .home-hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .home-hero { padding-top: 36px; }
  .cover { height: 110px; }
  .profile-head .wrap { grid-template-columns: 1fr; gap: 16px; }
  .headshot { width: 160px; margin-top: -90px; }
  .profile { grid-template-columns: 1fr; gap: 36px; padding-top: 36px; }
  .facts { position: static; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li { grid-template-columns: 72px 1fr; column-gap: 16px; }
  .steps .pic { grid-row: span 3; }
  .plans { grid-template-columns: 1fr; }
  .sal { grid-template-columns: 1fr; }
  .sal img { max-height: 320px; }
  .site-top nav a.hide-sm { display: none; }
  .actions .btn { flex: 1 1 100%; }
  .actions .play { flex: 1 1 auto; justify-content: center; white-space: nowrap; padding: 0 14px; }
}
/* Narrow phones: just the name and "Open the app", on one line. */
@media (max-width: 440px) {
  .site-top nav a.hide-xs { display: none; }
  .site-top .wrap { flex-wrap: nowrap; gap: 10px; padding: 0 16px; }
  .site-top .open-app { padding: 0 12px; }
}
/* "Talk with Sal" and "Open the app" each stay on one line, even on narrow phones. */
.brand, .site-top .open-app { white-space: nowrap; }
.btn:disabled { opacity: .6; cursor: progress; }
.home-hero p.trial { font-size: .95rem; margin-top: 14px; color: var(--text-2); }

/* ---------- language menu ---------- */
.site-top .open-app { min-height: 44px; padding: 0 18px; }
.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 10px; color: var(--text-2); font-size: .9rem; border: 1px solid transparent; border-radius: 2px;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { border-color: var(--line); color: var(--text); }
.lang-menu svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.lang-menu ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 10; margin: 0; padding: 6px 0; list-style: none;
  background: var(--card); border: 1px solid var(--text); border-radius: 2px; min-width: 200px; max-height: 70vh; overflow: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.lang-menu li a { display: block; padding: 10px 16px; color: var(--text); text-decoration: none; }
.lang-menu li a:hover { background: var(--bg); }
.lang-menu li a[aria-current] { font-weight: 700; color: var(--accent-ink); }

/* "Read this page in ..." when the browser's language differs from the page's. */
.lang-suggest { margin: 0; max-width: none; display: flex; justify-content: center; align-items: center; gap: 12px; padding: 10px 24px; background: #F1EEE7; border-bottom: 1px solid var(--line); }
.lang-suggest[hidden] { display: none; }
.lang-suggest a { font-weight: 600; color: var(--text); }
.lang-suggest button { background: none; border: 0; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--text-2); padding: 4px 8px; }

@media (max-width: 440px) {
  .lang-menu summary span { display: none; }
}

/* ---------- terms and privacy ---------- */
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 12px !important; }
.foot-links a, .fine a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.legal { max-width: 760px; padding-top: 48px; padding-bottom: 72px; }
.legal h1 { font-size: 2.2rem; margin: 0 0 6px; }
.legal-date { color: var(--text-2); margin: 0 0 28px; }
.legal-toc { border: 1px solid var(--line); padding: 14px 18px; margin-bottom: 36px; font-size: .92rem; }
.legal .legal-toc ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 28px; }
.legal-toc li { break-inside: avoid; padding: 3px 0; }
.legal .legal-toc a { color: var(--text); text-decoration: none; }
.legal .legal-toc a:hover { color: var(--accent); text-decoration: underline; }
.legal article { line-height: 1.65; }
.legal h2 { font-size: 1.25rem; margin: 40px 0 10px; scroll-margin-top: 80px; }
.legal p, .legal li { color: var(--text); }
.legal ul, .legal ol { padding-inline-start: 1.3em; }
.legal li { margin: 6px 0; }
.legal a { color: var(--accent); }
.legal-lede { font-size: 1.1rem; }
.legal-box { border: 2px solid var(--text); background: #fff; padding: 12px 18px; margin: 12px 0 16px; }
.legal-box p { margin: 0; font-weight: 600; }
.legal-box.big { padding: 18px 22px; margin-bottom: 28px; }
.legal-box.big p { font-weight: 400; font-size: 1.08rem; }
.legal-caps { font-size: .85rem; letter-spacing: .01em; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 12px 0 16px; }
.legal-table th, .legal-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: start; vertical-align: top; }
.legal-table th { background: #F1EEE7; }
@media (max-width: 640px) {
  .legal { padding-top: 32px; }
  .legal h1 { font-size: 1.7rem; }
  .legal .legal-toc ul { columns: 1; }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; }
  .legal-table thead { display: none; }
  .legal-table tr { border: 1px solid var(--line); margin-bottom: 10px; }
  .legal-table td { border: 0; padding: 4px 10px; }
  .legal-table td:first-child { font-weight: 600; padding-top: 10px; }
  .legal-table td:last-child { padding-bottom: 10px; color: var(--text-2); }
}

/* One plan instead of two, and the business line under the plans. */
.plans.one { grid-template-columns: minmax(0, 480px); }
.biz-note { max-width: 860px; margin-top: 20px; }
