@font-face {
  font-family: "Thmanyah Sans";
  src: url("/assets/fonts/thmanyahsans-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: optional;
}

@font-face {
  font-family: "Thmanyah Sans";
  src: url("/assets/fonts/thmanyahsans-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: optional;
}

@font-face {
  font-family: "Thmanyah Sans";
  src: url("/assets/fonts/thmanyahsans-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 700;
  font-display: optional;
}

@font-face {
  font-family: "Thmanyah Display";
  src: url("/assets/fonts/thmanyahserifdisplay-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: optional;
}

@font-face {
  font-family: "Thmanyah Display";
  src: url("/assets/fonts/thmanyahserifdisplay-Black.woff2") format("woff2");
  font-style: normal;
  font-weight: 800 900;
  font-display: optional;
}

:root {
  color-scheme: dark;
  --ink: #090c0b;
  --ink-soft: #0f1312;
  --surface: #181d1b;
  --surface-raised: #202624;
  --surface-soft: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #f7f6f1;
  --muted: #c0c2bd;
  --subtle: #939992;
  --emerald: #4fc2ac;
  --emerald-brand: #1fa98f;
  --emerald-deep: #178d77;
  --amber: #ebbf5c;
  --amber-brand: #e0a82e;
  --coral: #eb8867;
  --coral-brand: #e0653e;
  --gold: #d9af78;
  --success: #30d158;
  --danger: #ff6961;
  --max: 1160px;
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(
      circle at 10% 8%,
      rgba(31, 169, 143, 0.12),
      transparent 26rem
    ),
    radial-gradient(
      circle at 90% 24%,
      rgba(217, 175, 120, 0.08),
      transparent 24rem
    ),
    linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    var(--ink);
  background-size:
    auto,
    auto,
    72px 72px,
    72px 72px,
    auto;
  color: var(--text);
  font-family: "Thmanyah Sans", Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[lang="en"] body {
  font-family:
    "Thmanyah Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

html[data-lang="ar"] [data-lang-content="en"],
html[data-lang="en"] [data-lang-content="ar"] {
  display: none !important;
}

html[data-lang="ar"] [data-lang-content="ar"],
html[data-lang="en"] [data-lang-content="en"] {
  display: block !important;
}

::selection {
  color: #07100e;
  background: var(--emerald);
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--ink);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: 112px;
}

.section[id] {
  scroll-margin-top: 88px;
}

.section-compact {
  padding-block: 76px;
}

.section-line {
  border-block-start: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--emerald);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.eyebrow::before {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.section-heading {
  max-width: 720px;
  margin-block-end: 52px;
}

.section-heading h2,
.legal-hero h1,
.error-page h1 {
  margin: 0;
  font-family: "Thmanyah Display", "Thmanyah Sans", Tahoma, serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.3vw, 4rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

html[lang="ar"] .section-heading h2,
html[lang="ar"] .legal-hero h1,
html[lang="ar"] .error-page h1 {
  letter-spacing: 0;
}

.section-heading p,
.legal-hero p {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.17rem);
}

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 100;
  border-block-end: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 11, 12, 0.84);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 1.22rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 28px);
}

.nav-links a {
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-toggle,
.menu-toggle {
  display: inline-grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.language-toggle:hover,
.menu-toggle:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.menu-toggle {
  display: none;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.menu-toggle-lines {
  position: relative;
}

.menu-toggle-lines::before,
.menu-toggle-lines::after {
  position: absolute;
  inset-inline-start: 0;
  content: "";
}

.menu-toggle-lines::before {
  transform: translateY(-6px);
}

.menu-toggle-lines::after {
  transform: translateY(6px);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    var(--emerald-brand),
    var(--emerald-deep)
  );
  color: #07100e;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(31, 169, 143, 0.18);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(31, 169, 143, 0.25);
}

.button-secondary {
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--text);
  box-shadow: none;
}

.button-small {
  min-height: 44px;
  padding-inline: 17px;
  font-size: 0.9rem;
}

.hero {
  min-height: calc(100svh - 76px);
  padding-block: 74px 90px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: clamp(48px, 8vw, 100px);
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-family: "Thmanyah Display", "Thmanyah Sans", Tahoma, serif;
  font-weight: 900;
  font-size: clamp(2.85rem, 6.7vw, 6.6rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

html[lang="ar"] .hero-copy h1 {
  letter-spacing: -0.015em;
  line-height: 1.16;
}

.hero-copy h1 span {
  display: block;
  color: var(--gold);
}

.hero-copy > p {
  max-width: 630px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block-start: 32px;
}

.availability {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-block-start: 22px;
  color: var(--subtle);
  font-size: 0.9rem;
}

.availability-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 6px rgba(79, 194, 172, 0.1);
}

.phone-stage {
  position: relative;
  display: grid;
  min-height: 660px;
  place-items: center;
}

.phone-stage::before {
  position: absolute;
  width: min(100%, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(31, 169, 143, 0.2),
    rgba(31, 169, 143, 0) 66%
  );
  content: "";
  filter: blur(8px);
}

.phone {
  position: relative;
  width: min(100%, 334px);
  min-height: 650px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  background: #050506;
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: rotate(-2deg);
}

html[dir="rtl"] .phone {
  transform: rotate(2deg);
}

.phone-screen {
  position: relative;
  min-height: 624px;
  overflow: hidden;
  border-radius: 39px;
  background:
    radial-gradient(
      circle at 82% 0%,
      rgba(31, 169, 143, 0.2),
      transparent 14rem
    ),
    linear-gradient(180deg, #101012, #0c0c0e);
}

.phone-notch {
  width: 96px;
  height: 25px;
  margin: 10px auto 0;
  border-radius: 99px;
  background: #030304;
}

.phone-content {
  padding: 23px 18px 18px;
}

.phone-date {
  color: var(--subtle);
  font-size: 0.7rem;
}

.phone-greeting {
  margin: 4px 0 18px;
  font-size: 1.42rem;
  font-weight: 700;
}

.chat-prompt {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-block-end: 18px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.77rem;
}

.spark {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: rgba(31, 169, 143, 0.14);
  color: var(--emerald);
}

.day-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.plan-list {
  display: grid;
  gap: 9px;
}

.plan-item {
  display: grid;
  grid-template-columns: 5px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.045);
}

.plan-accent {
  align-self: stretch;
  border-radius: 99px;
  background: var(--emerald);
}

.plan-item.time .plan-accent {
  background: var(--amber-brand);
}

.plan-item.task .plan-accent {
  background: var(--coral-brand);
}

.plan-title {
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 600;
}

.plan-meta,
.plan-time {
  color: var(--subtle);
  font-size: 0.63rem;
}

.phone-review {
  margin-block-start: 13px;
  padding: 13px;
  border: 1px solid rgba(212, 165, 116, 0.22);
  border-radius: 16px;
  background: rgba(212, 165, 116, 0.08);
  font-size: 0.7rem;
}

.phone-review strong {
  display: block;
  margin-block-end: 3px;
  color: var(--gold);
}

.floating-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 210px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(28, 28, 30, 0.92);
  color: var(--muted);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  font-size: 0.76rem;
}

.floating-chip.one {
  inset-block-start: 21%;
  inset-inline-start: -32px;
}

.floating-chip.two {
  inset-block-end: 18%;
  inset-inline-end: -48px;
}

.chip-icon {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--amber);
}

.floating-chip.two .chip-icon {
  background: var(--coral);
}

.rhythm-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.rhythm-step {
  min-height: 190px;
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.025)
  );
}

.rhythm-number {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: rgba(31, 169, 143, 0.14);
  color: var(--emerald);
  font-size: 0.75rem;
  font-weight: 700;
}

.rhythm-step:nth-child(2) .rhythm-number,
.rhythm-step:nth-child(6) .rhythm-number {
  background: rgba(224, 168, 46, 0.14);
  color: var(--amber);
}

.rhythm-step:nth-child(3) .rhythm-number,
.rhythm-step:nth-child(5) .rhythm-number {
  background: rgba(224, 101, 62, 0.14);
  color: var(--coral);
}

.rhythm-step h3 {
  margin: 25px 0 8px;
  font-size: 1.04rem;
  line-height: 1.4;
}

.rhythm-step p {
  margin: 0;
  color: var(--subtle);
  font-size: 0.86rem;
  line-height: 1.65;
}

.conversation-grid,
.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: clamp(48px, 8vw, 100px);
}

.conversation-copy h2,
.privacy-copy h2 {
  margin: 0;
  font-family: "Thmanyah Display", "Thmanyah Sans", Tahoma, serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.22;
}

.conversation-copy > p,
.privacy-copy > p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.07rem;
}

.conversation-demo {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(28, 28, 30, 0.7);
  box-shadow: var(--shadow);
}

.message-list {
  display: grid;
  gap: 14px;
}

.message {
  width: fit-content;
  max-width: 88%;
  padding: 13px 16px;
  border-radius: 19px;
  font-size: 0.95rem;
}

.message.user {
  margin-inline-start: auto;
  border-end-end-radius: 5px;
  background: linear-gradient(
    135deg,
    var(--emerald-brand),
    var(--emerald-deep)
  );
}

.message.yora {
  margin-inline-end: auto;
  border: 1px solid var(--line);
  border-end-start-radius: 5px;
  background: var(--surface-raised);
  color: var(--muted);
}

.action-card {
  margin-block-start: 5px;
  padding: 14px;
  border: 1px solid rgba(224, 168, 46, 0.22);
  border-radius: 16px;
  background: rgba(224, 168, 46, 0.07);
}

.action-card strong {
  display: block;
  color: var(--amber);
  font-size: 0.82rem;
}

.action-card span {
  color: var(--muted);
  font-size: 0.76rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.feature-card {
  grid-column: span 4;
  min-height: 230px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.065), transparent 58%),
    var(--surface-soft);
  transition:
    border-color 180ms ease,
    transform 180ms ease;
}

.feature-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.feature-card.wide {
  grid-column: span 8;
}

.feature-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: rgba(31, 169, 143, 0.13);
  color: var(--emerald);
  font-weight: 700;
}

.feature-card:nth-child(2n) .feature-icon {
  background: rgba(224, 168, 46, 0.12);
  color: var(--amber);
}

.feature-card:nth-child(3n) .feature-icon {
  background: rgba(224, 101, 62, 0.12);
  color: var(--coral);
}

.feature-card h3 {
  margin: 24px 0 9px;
  font-family: "Thmanyah Display", "Thmanyah Sans", Tahoma, serif;
  font-weight: 700;
  font-size: 1.2rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.security-grid .feature-card {
  grid-column: auto;
  min-height: 250px;
}

.security-grid .feature-card h2 {
  margin: 24px 0 9px;
  font-size: 1.2rem;
}

.security-grid .feature-icon-amber {
  background: rgba(224, 168, 46, 0.12);
  color: var(--amber);
}

.security-grid .feature-icon-coral {
  background: rgba(224, 101, 62, 0.12);
  color: var(--coral);
}

.security-grid .feature-icon-gold {
  background: rgba(212, 165, 116, 0.12);
  color: var(--gold);
}

.memory-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-block-start: 25px;
}

.memory-control {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--ink-soft);
}

.memory-control span {
  display: block;
  color: var(--subtle);
  font-size: 0.78rem;
}

.memory-control strong {
  display: block;
  margin-block-start: 5px;
  font-size: 0.88rem;
}

.trust-list {
  display: grid;
  gap: 14px;
}

.trust-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.trust-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: rgba(31, 169, 143, 0.13);
  color: var(--emerald);
  font-weight: 700;
}

.trust-item h3 {
  margin: 0 0 5px;
  font-size: 1rem;
}

.trust-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.text-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-block-start: 26px;
}

.text-links a {
  color: var(--emerald);
  font-weight: 600;
  text-underline-offset: 5px;
}

.faq-list {
  display: grid;
  max-width: 860px;
  margin-inline: auto;
  border-block-start: 1px solid var(--line);
}

.faq-list details {
  border-block-end: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  cursor: pointer;
  font-size: 1.06rem;
  font-weight: 600;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  flex: 0 0 auto;
  color: var(--emerald);
  content: "+";
  font-size: 1.45rem;
  font-weight: 400;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details > div {
  max-width: 740px;
  padding: 0 4px 23px;
  color: var(--muted);
}

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 7vw, 80px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(224, 168, 46, 0.12),
      transparent 24rem
    ),
    radial-gradient(
      circle at 0% 100%,
      rgba(31, 169, 143, 0.18),
      transparent 26rem
    ),
    var(--surface);
}

.cta-panel h2 {
  max-width: 690px;
  margin: 0;
  font-family: "Thmanyah Display", "Thmanyah Sans", Tahoma, serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 4.2rem);
  line-height: 1.2;
}

.cta-panel p {
  max-width: 610px;
  margin: 18px 0 26px;
  color: var(--muted);
}

.site-footer {
  padding-block: 64px 30px;
  border-block-start: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(2, 1fr);
  gap: 38px;
}

.footer-intro p {
  max-width: 340px;
  margin: 15px 0 0;
  color: var(--subtle);
  font-size: 0.9rem;
}

.footer-group h2 {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  width: fit-content;
  color: var(--subtle);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-block-start: 48px;
  padding-block-start: 22px;
  border-block-start: 1px solid var(--line);
  color: var(--subtle);
  font-size: 0.82rem;
}

/* Legal and support pages */
.legal-main {
  min-height: 68svh;
}

.legal-hero {
  padding-block: 74px 54px;
  border-block-end: 1px solid var(--line);
}

.legal-hero .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-block-start: 22px;
  color: var(--subtle);
  font-size: 0.86rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 760px);
  justify-content: space-between;
  gap: clamp(42px, 8vw, 100px);
  padding-block: 64px 100px;
}

.legal-toc {
  position: sticky;
  inset-block-start: 105px;
  align-self: start;
}

.legal-toc h2 {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.85rem;
}

.legal-toc nav {
  display: grid;
  gap: 9px;
}

.legal-toc a {
  color: var(--subtle);
  font-size: 0.86rem;
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--emerald);
}

.legal-content section {
  padding-block: 0 42px;
  scroll-margin-top: 105px;
}

.legal-content h2 {
  margin: 0 0 15px;
  font-family: "Thmanyah Display", "Thmanyah Sans", Tahoma, serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 2.3vw, 1.75rem);
  line-height: 1.35;
}

.legal-content h3 {
  margin: 25px 0 8px;
  font-size: 1.06rem;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

.legal-content p {
  margin: 0 0 14px;
}

.legal-content ul,
.legal-content ol {
  margin: 12px 0 0;
  padding-inline-start: 1.35rem;
}

.legal-content li + li {
  margin-block-start: 7px;
}

.legal-content a,
.support-card a {
  color: var(--emerald);
  text-underline-offset: 4px;
}

.callout {
  margin: 20px 0;
  padding: 17px 18px;
  border: 1px solid rgba(224, 168, 46, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(224, 168, 46, 0.07);
  color: var(--muted);
}

.callout strong {
  color: var(--amber);
}

.callout.privacy {
  border-color: rgba(31, 169, 143, 0.28);
  background: rgba(31, 169, 143, 0.07);
}

.callout.privacy strong {
  color: var(--emerald);
}

.legal-cards,
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-block-start: 18px;
}

.legal-card,
.support-card {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.legal-card h3,
.support-card h2,
.support-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.legal-card p,
.support-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.support-shell {
  padding-block: 70px 100px;
}

.support-intro {
  max-width: 760px;
  margin-block-end: 42px;
}

.support-intro h1 {
  margin: 0;
  font-family: "Thmanyah Display", "Thmanyah Sans", Tahoma, serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1.1;
}

.support-intro p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.support-card {
  min-height: 190px;
  padding: 24px;
}

.support-card .support-number {
  display: grid;
  width: 35px;
  height: 35px;
  margin-block-end: 20px;
  place-items: center;
  border-radius: 50%;
  background: rgba(31, 169, 143, 0.13);
  color: var(--emerald);
  font-size: 0.78rem;
  font-weight: 700;
}

.support-card ul {
  margin: 10px 0 0;
  padding-inline-start: 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-panel {
  margin-block-start: 40px;
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(
    135deg,
    rgba(31, 169, 143, 0.11),
    rgba(28, 28, 30, 0.75)
  );
}

.contact-panel h2 {
  margin: 0 0 10px;
  font-family: "Thmanyah Display", "Thmanyah Sans", Tahoma, serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.contact-panel p {
  max-width: 660px;
  margin: 0 0 20px;
  color: var(--muted);
}

.error-page {
  min-height: 100svh;
}

.error-main {
  display: grid;
  min-height: calc(100svh - 72px);
  place-content: center;
  padding: 60px 24px 100px;
  text-align: center;
}

.error-main > div:not(.error-orbit) {
  max-width: 660px;
}

.error-main h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 1.08;
}

.error-main p {
  margin: 18px auto 26px;
  color: var(--muted);
}

.error-orbit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 4vw, 40px);
  margin-block-end: 30px;
  color: var(--subtle);
  font-size: clamp(4rem, 13vw, 9rem);
  font-weight: 700;
  line-height: 1;
}

.error-orbit img {
  width: clamp(64px, 10vw, 94px);
  height: clamp(64px, 10vw, 94px);
  border-radius: 22%;
  box-shadow: var(--shadow);
}

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1050px) {
  .security-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rhythm-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-card,
  .feature-card.wide {
    grid-column: span 6;
  }
}

@media (max-width: 900px) {
  .section {
    padding-block: 88px;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .nav-cta {
    display: none;
  }

  .nav-links {
    position: absolute;
    inset-block-start: calc(100% + 1px);
    inset-inline: 20px;
    display: none;
    align-items: stretch;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(18, 18, 20, 0.98);
    box-shadow: var(--shadow);
  }

  .nav-links[data-open="true"] {
    display: grid;
  }

  .nav-links a {
    min-height: 44px;
    padding: 9px 10px;
  }

  .hero {
    padding-block-start: 58px;
  }

  .hero-grid,
  .conversation-grid,
  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy > p {
    margin-inline: auto;
  }

  .hero-actions,
  .availability {
    justify-content: center;
  }

  .phone-stage {
    min-height: 620px;
  }

  .phone {
    min-height: 590px;
  }

  .phone-screen {
    min-height: 564px;
  }

  .floating-chip.one {
    inset-inline-start: 0;
  }

  .floating-chip.two {
    inset-inline-end: 0;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    padding-block-start: 42px;
  }

  .legal-toc {
    position: static;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
  }

  .legal-toc nav {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .nav-shell {
    min-height: 68px;
  }

  .brand {
    font-size: 1.08rem;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .hero {
    min-height: auto;
    padding-block: 48px 70px;
  }

  .hero-copy h1 {
    font-size: clamp(2.65rem, 14vw, 4.4rem);
  }

  .phone-stage {
    min-height: 570px;
  }

  .phone {
    width: min(88vw, 310px);
    min-height: 560px;
    border-radius: 45px;
  }

  .phone-screen {
    min-height: 534px;
    border-radius: 35px;
  }

  .phone-content {
    padding: 18px 15px 15px;
  }

  .floating-chip {
    max-width: 170px;
    padding: 9px 11px;
    font-size: 0.68rem;
  }

  .floating-chip.one {
    inset-inline-start: 0;
  }

  .floating-chip.two {
    inset-inline-end: 0;
  }

  .rhythm-grid,
  .security-grid,
  .legal-cards,
  .support-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rhythm-step {
    min-height: auto;
  }

  .feature-card,
  .feature-card.wide {
    grid-column: 1 / -1;
    min-height: auto;
  }

  .memory-panel {
    grid-template-columns: 1fr;
  }

  .conversation-demo {
    padding: 18px;
  }

  .legal-hero {
    padding-block: 54px 40px;
  }

  .legal-layout {
    padding-block-end: 76px;
  }

  .legal-toc nav {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .nav-shell {
    gap: 8px;
  }

  .nav-actions {
    gap: 7px;
  }

  .language-toggle,
  .menu-toggle {
    min-width: 44px;
    min-height: 44px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .phone-stage {
    min-height: 525px;
  }

  .phone {
    min-height: 520px;
  }

  .phone-screen {
    min-height: 494px;
  }

  .plan-item {
    padding: 10px;
  }

  .floating-chip {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .phone,
  html[dir="rtl"] .phone {
    transform: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  body {
    background: #fff;
    color: #111;
  }

  .site-header,
  .site-footer,
  .legal-toc,
  .skip-link {
    display: none !important;
  }

  .legal-layout {
    display: block;
    padding: 24px 0;
  }

  .legal-content p,
  .legal-content li,
  .legal-hero p,
  .legal-hero .meta-row {
    color: #333;
  }
}
