/* Amana AI marketing site, "Tile & Arch" design system.
   Hand-written, no framework. Brand colours mirror the app (teal #00685f, gold). Motifs borrow from Omani craft:
   an eight-point star tile, mihrab-style arches, scalloped section edges. Type: Young Serif for voice, Atkinson Hyperlegible
   (made for low-vision readers, which suits an app that ships accessibility) for reading, Atkinson Mono for small labels. */
@import url("../fonts/fonts.css");

:root {
  --ink: #08201e;
  --ink-2: #3a5551;
  --teal: #00685f;
  --teal-d: #004a44;
  --teal-l: #0a8a7d;
  --mint: #7fe0d2;
  --saffron: #f5b82e;
  --saffron-l: #ffe3a0;
  --gold: #f5b82e;
  --gold-d: #7a5400;
  --indigo: #1d2a63;
  --clay: #9b4a2b;
  --leaf: #5fb53f;
  --paper: #eef3ef;
  --paper-2: #e0eae4;
  --card: #fbfdfb;
  --rule: rgba(8, 32, 30, 0.2);
  --line: rgba(8, 32, 30, 0.16);
  --deep: #04201d;
  --deep-2: #06312d;
  --shadow-1: 0 1px 0 rgba(8, 32, 30, 0.04);
  --shadow-2: 8px 8px 0 var(--saffron);
  --r: 22px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Young Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-mono: "Atkinson Hyperlegible Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --font-ar: "Tajawal", "Atkinson Hyperlegible Next", "Segoe UI", sans-serif;
  /* eight-point star: tile (outline) and solid mark */
  --pat-l: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80' fill='none' stroke='%2300685f' stroke-opacity='.15' stroke-width='1.2'%3E%3Cpath d='M74 40L55.7 46.5 64 64 46.5 55.7 40 74 33.5 55.7 16 64 24.3 46.5 6 40 24.3 33.5 16 16 33.5 24.3 40 6 46.5 24.3 64 16 55.7 33.5Z'/%3E%3Cpath d='M0-7L7 0 0 7-7 0ZM80-7L87 0 80 7 73 0ZM0 73L7 80 0 87-7 80ZM80 73L87 80 80 87 73 80Z'/%3E%3C/svg%3E");
  --pat-d: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80' fill='none' stroke='%23ffffff' stroke-opacity='.075' stroke-width='1.2'%3E%3Cpath d='M74 40L55.7 46.5 64 64 46.5 55.7 40 74 33.5 55.7 16 64 24.3 46.5 6 40 24.3 33.5 16 16 33.5 24.3 40 6 46.5 24.3 64 16 55.7 33.5Z'/%3E%3Cpath d='M0-7L7 0 0 7-7 0ZM80-7L87 0 80 7 73 0ZM0 73L7 80 0 87-7 80ZM80 73L87 80 80 87 73 80Z'/%3E%3C/svg%3E");
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cpath d='M74 40L55.7 46.5 64 64 46.5 55.7 40 74 33.5 55.7 16 64 24.3 46.5 6 40 24.3 33.5 16 16 33.5 24.3 40 6 46.5 24.3 64 16 55.7 33.5Z'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.62; color: var(--ink); background: var(--paper); overflow-x: hidden; }
img, video, canvas, svg { max-width: 100%; display: block; }
a { color: var(--teal-d); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink); text-decoration-color: var(--saffron); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.06; letter-spacing: -0.012em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 5.6vw, 5rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.3rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.55rem); line-height: 1.16; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
strong, b { font-weight: 700; }
.ar { font-family: var(--font-ar); direction: rtl; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--saffron); color: var(--ink); padding: 10px 16px; border-radius: 10px; z-index: 200; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: min(var(--maxw), calc(100% - 40px)); margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 0.76rem/1.2 var(--font-mono); letter-spacing: 0.15em; text-transform: uppercase; color: var(--teal); margin-bottom: 1.1rem; }
.eyebrow::before { content: ""; width: 15px; height: 15px; background: var(--saffron); -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; flex: none; }
.lead { font-size: clamp(1.12rem, 1.5vw, 1.32rem); line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--ink-2); }

/* ---------- buttons: flat colour, ink outline, a hard shadow that presses down ---------- */
.btn { --bg: var(--teal); --fg: #fff; --sh: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 999px; background: var(--bg); color: var(--fg); font: 700 1rem/1 var(--font); letter-spacing: 0; text-decoration: none; border: 2px solid var(--ink); box-shadow: 0 4px 0 var(--sh); cursor: pointer; transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease), background 0.16s ease, color 0.16s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--sh); color: var(--fg); text-decoration: none; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--sh); }
.btn-gold { --bg: var(--saffron); --fg: #231800; }
.btn-ghost { --bg: transparent; --fg: var(--ink); box-shadow: 0 4px 0 var(--sh); }
.btn-ghost:hover { --bg: var(--saffron-l); background: var(--saffron-l); }
.btn-ghost-light { --bg: transparent; --fg: #fff; --sh: transparent; border-color: rgba(255, 255, 255, 0.55); box-shadow: none; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.14); box-shadow: none; transform: translateY(-2px); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 0.95rem; box-shadow: 0 3px 0 var(--sh); }
.btn .arrow { transition: transform 0.18s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn .arrow svg { width: 20px; height: 20px; }

/* ---------- header: a deep bar on every page ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background 0.3s ease, box-shadow 0.3s ease; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.28rem; letter-spacing: -0.02em; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand b { color: var(--saffron); font-weight: 800; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { position: relative; color: rgba(255, 255, 255, 0.86); text-decoration: none; font-weight: 600; font-size: 0.97rem; padding: 10px 14px; border-radius: 999px; transition: color 0.15s ease, background 0.15s ease; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; background: var(--saffron); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease); }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: #fff; }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { margin-inline-start: 10px; color: #231800; border-color: #231800; }
.nav .btn:hover { color: #231800; }
.site-header.solid, .site-header.page-solid { background: rgba(4, 32, 29, 0.94); backdrop-filter: saturate(1.3) blur(14px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08); }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, 0.4); background: transparent; color: #fff; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 24px; height: 24px; }
.scroll-bar { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 120; background: transparent; pointer-events: none; }
.scroll-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal-l), var(--saffron)); }

@media (max-width: 920px) {
  .menu-btn { display: inline-flex; }
  .nav { position: fixed; inset: 76px 12px auto 12px; flex-direction: column; align-items: stretch; gap: 2px; padding: 14px; background: var(--deep) var(--pat-d); border: 1.5px solid rgba(255, 255, 255, 0.16); border-radius: 26px; box-shadow: 8px 8px 0 var(--saffron); opacity: 0; transform: translateY(-10px) scale(0.98); pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { color: #fff !important; padding: 14px 16px; font-size: 1.05rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin: 8px 0 0; color: #231800 !important; }
}

/* ---------- hero (scroll-driven sprout) ---------- */
.hero { position: relative; background: var(--deep); }
.hero-track { position: relative; height: 640vh; }
.hero-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--deep) url("../img/hero-first.webp") center / cover no-repeat; color: #fff; }
.hero-pin canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-pin .shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(3, 29, 26, 0.78) 0%, rgba(3, 29, 26, 0.4) 38%, rgba(3, 29, 26, 0) 62%); }
.beats { position: absolute; inset: 0; pointer-events: none; }
.beat { position: absolute; left: max(24px, 6vw); top: 50%; width: min(640px, 48vw); transform: translateY(-50%); opacity: 0; will-change: opacity, transform; }
.beat.on { pointer-events: auto; }
.beat .eyebrow { color: var(--mint); }
.beat h1 { font-size: clamp(2.5rem, 4.3vw, 4.1rem); margin-bottom: 0.4em; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35); }
.beat h1 em { font-style: normal; color: var(--saffron); white-space: nowrap; }
.beat .sub { font-size: clamp(1.05rem, 1.35vw, 1.22rem); color: rgba(255, 255, 255, 0.88); max-width: 46ch; }
.beat .big { font-family: var(--font-display); font-size: clamp(2.1rem, 3.7vw, 3.4rem); line-height: 1.08; letter-spacing: -0.012em; margin: 0; text-shadow: 0 2px 26px rgba(0, 0, 0, 0.4); }
.beat .big em { font-style: normal; color: var(--saffron); }
.beat .small { margin-top: 16px; font-size: 1.08rem; color: rgba(255, 255, 255, 0.84); max-width: 40ch; }
.beat-final .btn { min-height: 50px; }
@media (max-height: 700px) { .beat-final .small { display: none; } .beat-final { bottom: 18px; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.beat-final { left: 0; right: 0; width: auto; top: auto; bottom: clamp(26px, 6vh, 64px); transform: none; text-align: center; display: flex; flex-direction: column; align-items: center; }
.beat-final .hero-cta { justify-content: center; margin-top: 0; }
.beat-final .tagline { margin: 0 0 6px; font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.3rem); letter-spacing: -0.01em; color: var(--saffron-l); text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5); }
.beat-final .small { margin: 0 0 16px; max-width: 54ch; }
.hero-tools { position: absolute; right: max(18px, 3vw); bottom: 22px; display: flex; align-items: center; gap: 16px; z-index: 5; }
.skip-intro { color: rgba(255, 255, 255, 0.86); font-size: 0.92rem; font-weight: 600; text-decoration: none; padding: 10px 16px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, 0.32); background: rgba(3, 29, 26, 0.4); backdrop-filter: blur(6px); }
.skip-intro:hover { color: #fff; background: rgba(255, 255, 255, 0.14); }
.stem { position: absolute; right: max(18px, 3vw); top: 50%; width: 3px; height: min(34vh, 280px); transform: translateY(-50%); border-radius: 3px; background: rgba(255, 255, 255, 0.16); z-index: 4; }
.stem i { position: absolute; inset: auto 0 0 0; height: 0; border-radius: 3px; background: linear-gradient(0deg, var(--saffron), var(--leaf), var(--mint)); }
.stem b { position: absolute; left: 50%; width: 14px; height: 14px; margin-left: -7px; bottom: 0; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--leaf); box-shadow: 0 0 14px rgba(127, 224, 210, 0.7); }
.cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.72); font: 500 0.74rem/1 var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; z-index: 5; transition: opacity 0.3s; }
.cue::after { content: ""; width: 1.5px; height: 34px; background: linear-gradient(var(--mint), transparent); animation: cue 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* no-JS / reduced motion: a still hero, normal flow */
:is(.no-scrub, .no-js) .hero-track { height: auto; }
:is(.no-scrub, .no-js) .hero-pin { position: relative; height: auto; min-height: 100svh; background: radial-gradient(900px 600px at 78% 50%, rgba(127, 224, 210, 0.22), transparent 70%), var(--pat-d), linear-gradient(170deg, var(--deep-2), var(--deep)); }
:is(.no-scrub, .no-js) .beats { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 120px max(24px, 6vw) 90px; gap: 28px; }
:is(.no-scrub, .no-js) .beat { position: static; opacity: 1 !important; transform: none !important; width: min(680px, 100%); }
:is(.no-scrub, .no-js) .beat:not(.beat-0):not(.beat-final) { display: none; }
:is(.no-scrub, .no-js) .beat-final { text-align: left; align-items: flex-start; }
:is(.no-scrub, .no-js) canvas, :is(.no-scrub, .no-js) .stem, :is(.no-scrub, .no-js) .cue, :is(.no-scrub, .no-js) .skip-intro, :is(.no-scrub, .no-js) .beat-final { display: none; }
.hero-emblem { display: none; }
:is(.no-scrub, .no-js) .hero-emblem { display: block; position: absolute; right: max(24px, 8vw); top: 50%; transform: translateY(-46%); width: min(34vw, 400px); height: auto; filter: drop-shadow(0 0 60px rgba(127, 224, 210, 0.35)); }
@media (max-width: 760px) { :is(.no-scrub, .no-js) .hero-emblem { position: static; transform: none; width: 170px; margin: 96px auto -50px; } }

@media (max-aspect-ratio: 9/10), (max-width: 760px) {
  .hero-pin .shade { background: linear-gradient(0deg, rgba(3, 29, 26, 0.94) 0%, rgba(3, 29, 26, 0.72) 28%, rgba(3, 29, 26, 0) 52%); }
  .beat { left: 22px; right: 22px; width: auto; top: auto; bottom: clamp(70px, 11svh, 110px); transform: none; }
  .beat h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
  .beat .big { font-size: clamp(1.8rem, 7.6vw, 2.5rem); }
  .beat-final { bottom: clamp(24px, 5svh, 52px); }
  .stem { display: none; }
  .hero-tools { right: 16px; bottom: 16px; }
  .cue { display: none; }
}

/* ---------- sections: a row of arches lifts the page out of the dark hero and CTA ---------- */
.after { position: relative; z-index: 2; background: var(--paper); margin-top: -1px; }
.after::before, .cta-band::before { content: ""; position: absolute; left: 0; right: 0; top: -25px; height: 26px; pointer-events: none; background: radial-gradient(circle at 50% 100%, var(--arch, var(--paper)) 0 24px, transparent 24.6px) 0 0 / 52px 26px repeat-x; }
.cta-band { --arch: var(--deep-2); position: relative; }
section { scroll-margin-top: 80px; }
.sec { padding: clamp(76px, 10vw, 132px) 0; }
.sec-tight { padding: clamp(48px, 7vw, 84px) 0; }
.sec-head { max-width: 780px; margin-bottom: clamp(34px, 5vw, 60px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-head.center .lead { margin-inline: auto; }
.band { background: var(--paper-2) var(--pat-l); background-size: 80px 80px; border-block: 1.5px solid var(--rule); }
.dark { background: var(--pat-d), linear-gradient(170deg, var(--deep-2), var(--deep)); background-size: 80px 80px, auto; color: #fff; }
.dark h2, .dark h3 { color: #fff; }
.dark .eyebrow { color: var(--mint); }
.dark .lead, .dark .muted { color: rgba(255, 255, 255, 0.8); }
.dark a { color: var(--mint); }

/* page header: deep, patterned, with one slowly turning star */
.page-hero { position: relative; overflow: hidden; padding: 152px 0 78px; color: #fff; background: radial-gradient(900px 420px at 88% 0%, rgba(10, 138, 125, 0.55), transparent 70%), var(--pat-d), linear-gradient(170deg, var(--deep-2), var(--deep)); background-size: auto, 80px 80px, auto; }
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4.4rem); max-width: 17ch; color: #fff; }
.page-hero .lead { color: rgba(255, 255, 255, 0.84); }
.page-hero .eyebrow, .page-hero .badge { color: var(--mint); }
.page-hero a { color: var(--saffron-l); }
.crumbs { font: 500 0.8rem/1.4 var(--font-mono); letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.7); margin-bottom: 22px; }
.crumbs a { color: rgba(255, 255, 255, 0.78); }
.crumbs a:hover { color: #fff; }
.orn { position: absolute; right: max(-60px, calc(50% - 760px)); top: 50%; width: min(46vw, 460px); aspect-ratio: 1; transform: translateY(-46%); color: var(--saffron); opacity: 0.9; pointer-events: none; }
.orn svg { width: 100%; height: 100%; overflow: visible; }
.orn .spin { transform-origin: 200px 170px; animation: spin 80s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 860px) { .orn { opacity: 0.28; width: 78vw; right: -22vw; } }
.page-hero .wrap > * { animation: rise 0.8s var(--ease) both; }
.page-hero .wrap > :nth-child(2) { animation-delay: 0.08s; }
.page-hero .wrap > :nth-child(3) { animation-delay: 0.18s; }
.page-hero .wrap > :nth-child(4) { animation-delay: 0.28s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.answer { position: relative; background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--r); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-2); }
.answer p { font-size: clamp(1.1rem, 1.5vw, 1.28rem); line-height: 1.55; margin: 0; }
.answer strong { color: var(--teal-d); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 26px; }
.fact { background: var(--paper-2); border: 1.5px dashed var(--rule); border-radius: 18px 18px 14px 14px; padding: 16px 18px 15px; }
.fact b { display: block; font: 400 1.85rem/1.1 var(--font-display); color: var(--teal-d); margin-bottom: 4px; }
.fact span { font-size: 0.93rem; color: var(--ink-2); line-height: 1.4; display: block; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1.5px solid var(--rule); border-radius: var(--r); padding: clamp(24px, 2.6vw, 32px); transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s ease; }
.card:hover { border-color: var(--ink); transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--saffron); }
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
/* icon plates are tiny arches */
.ico { width: 50px; height: 56px; border-radius: 999px 999px 12px 12px; display: grid; place-items: center; margin-bottom: 18px; background: var(--paper-2); color: var(--teal); border: 1.5px solid var(--ink); }
.ico svg { width: 26px; height: 26px; margin-top: 4px; }
.ico.gold { background: var(--saffron-l); color: var(--gold-d); }
.ico.clay { background: #f4dccf; color: var(--clay); }
.ico.leaf { background: #daf0cc; color: #2f7a1c; }

.pain { display: grid; gap: 20px; }
.pain-row { display: grid; grid-template-columns: 1fr 1fr; background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.pain-row > div { padding: clamp(22px, 2.8vw, 34px); }
.pain-row .before { background: #eadfd6; color: #4e3022; border-inline-end: 1.5px dashed rgba(78, 48, 34, 0.4); }
.pain-row .before small, .pain-row .after-c small { display: block; font: 500 0.72rem/1.2 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 10px; }
.pain-row .after-c small { color: var(--teal); }
.pain-row .before small { color: var(--clay); }
.pain-row .before h3 { font-style: italic; }
.pain-row p { margin: 0; }
.pain-row h3 { font-size: 1.3rem; margin-bottom: 0.3em; }
@media (max-width: 760px) { .pain-row { grid-template-columns: 1fr; } .pain-row .before { border-inline-end: 0; border-bottom: 1.5px dashed rgba(78, 48, 34, 0.4); } }

/* ---------- phone mockups ---------- */
.phone { position: relative; width: min(100%, 300px); margin-inline: auto; aspect-ratio: 430 / 932; background: #0d1d1c; border-radius: 40px; padding: 9px; box-shadow: 0 30px 50px -18px rgba(3, 29, 26, 0.55), inset 0 0 0 2px #2d4846; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 32px; background: #f4faf8; }
.phone.sm { width: min(100%, 250px); border-radius: 34px; padding: 8px; }
.phone.sm img { border-radius: 27px; }

.showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: clamp(28px, 5vw, 80px); align-items: center; }
.tabs { display: grid; gap: 0; border-top: 1.5px solid var(--ink); }
.tab { text-align: left; background: transparent; border: 0; border-bottom: 1.5px solid var(--rule); border-radius: 0; padding: 18px 16px 18px 12px; cursor: pointer; font: inherit; color: inherit; transition: background 0.2s, padding 0.25s var(--ease); display: grid; grid-template-columns: 50px 1fr; gap: 16px; align-items: start; width: 100%; position: relative; }
.tab:hover { background: rgba(255, 255, 255, 0.55); }
.tab[aria-selected="true"] { background: var(--card); padding-inline-start: 22px; border-bottom-color: var(--ink); }
.tab[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 18px; width: 12px; height: 12px; background: var(--saffron); -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; }
.tab .ico { margin: 0; width: 46px; height: 52px; }
.tab strong { display: block; font: 400 1.32rem/1.15 var(--font-display); margin-bottom: 3px; }
.tab span { display: block; font-size: 0.97rem; color: var(--ink-2); line-height: 1.5; }
.tab .more { display: none; margin-top: 8px; }
.tab[aria-selected="true"] .more { display: block; }
/* the phone stands in an arched niche, like a mihrab */
.stage { position: relative; display: grid; place-items: center; padding: 84px 0 30px; }
.stage::before { content: ""; position: absolute; inset: 0 -3% 0; border-radius: 999px 999px 30px 30px; background: var(--pat-d), linear-gradient(175deg, var(--teal-l), var(--teal-d) 70%, var(--deep-2)); background-size: 72px 72px, auto; border: 1.5px solid var(--ink); z-index: 0; }
.stage::after { content: ""; position: absolute; top: 34px; left: 50%; width: 26px; height: 26px; margin-left: -13px; background: var(--saffron); -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; z-index: 1; }
.stage .phone { z-index: 1; }
.stage .phone img { transition: opacity 0.28s ease; }
.stage .phone img.swap { opacity: 0; }
@media (max-width: 900px) { .showcase { grid-template-columns: 1fr; } .stage { order: -1; max-width: 380px; margin-inline: auto; width: 100%; } }
.no-js .showcase { grid-template-columns: 1fr; }

.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: start; }
.shot figcaption { text-align: center; margin-top: 14px; font-size: 0.95rem; color: var(--ink-2); }
.shot figcaption b { display: block; color: var(--ink); font: 400 1.15rem/1.2 var(--font-display); margin-bottom: 2px; }
@media (max-width: 980px) { .shots { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .shots { grid-template-columns: 1fr; } }

/* ---------- steps / outcomes ---------- */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; padding-top: 18px; }
.step { position: relative; background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--r); padding: 44px 28px 28px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: -26px; left: 26px; width: 48px; height: 58px; border-radius: 999px 999px 10px 10px; background: var(--saffron); color: var(--ink); border: 1.5px solid var(--ink); font: 400 1.7rem/1 var(--font-display); display: grid; place-items: center; padding-top: 8px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 44px; } }
.outcomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.outcome { position: relative; padding: 30px 26px 24px; border-radius: 120px 120px var(--r) var(--r); background: rgba(255, 255, 255, 0.06); border: 1.5px solid rgba(255, 255, 255, 0.22); transition: background 0.25s, transform 0.25s var(--ease); }
.outcome:hover { background: rgba(255, 255, 255, 0.11); transform: translateY(-4px); }
.outcome h3 { color: var(--saffron); margin-bottom: 0.35em; text-align: center; padding-top: 14px; font-size: 1.65rem; }
.outcome p { margin: 0; color: rgba(255, 255, 255, 0.86); font-size: 1rem; }
.outcome small { display: block; margin-top: 14px; font: 500 0.74rem/1.3 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--mint); }
@media (max-width: 920px) { .outcomes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .outcomes { grid-template-columns: 1fr; } }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.checks li { position: relative; padding-left: 40px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 26px; height: 26px; background: var(--saffron); -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; }
.checks li::after { content: ""; position: absolute; left: 8px; top: 10px; width: 10px; height: 6px; border-left: 2.4px solid var(--ink); border-bottom: 2.4px solid var(--ink); transform: rotate(-48deg); }
.checks li b { display: block; }
.checks li span { color: var(--ink-2); font-size: 0.99rem; }
.dark .checks li span, .cta-band .checks li span { color: rgba(255, 255, 255, 0.76); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1.5px solid var(--ink); border-radius: 28px; padding: 34px 30px; }
.plan.featured { background: var(--pat-d), linear-gradient(170deg, var(--deep-2), var(--deep)); background-size: 80px 80px, auto; color: #fff; box-shadow: 10px 10px 0 var(--saffron); }
.plan.featured h2, .plan.featured h3, .plan.featured .price { color: #fff; }
.plan.featured .for, .plan.featured .price small { color: rgba(255, 255, 255, 0.78); }
.plan.featured li::before { color: var(--saffron); }
.plan.featured .btn { --bg: var(--saffron); --fg: #231800; --sh: #000; border-color: #000; }
.plan .tag { position: absolute; top: -17px; left: 28px; background: var(--saffron); color: #231800; border: 1.5px solid var(--ink); font: 500 0.74rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; }
.plan h3, .plan h2 { font-size: 1.6rem; margin-bottom: 4px; }
.price { font: 400 3rem/1.05 var(--font-display); margin: 14px 0 4px; }
.price small { font: 500 1rem/1 var(--font); color: var(--ink-2); }
.plan .for { color: var(--ink-2); font-size: 0.98rem; margin-bottom: 22px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 11px; flex: 1; }
.plan li { position: relative; padding-left: 28px; font-size: 0.99rem; }
.plan li::before { content: "✦"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
@media (max-width: 980px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; gap: 34px; } }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--r); overflow: hidden; font-size: 0.98rem; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--deep-2); color: #fff; font: 500 0.82rem/1.2 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.compare tbody th { font-weight: 700; }
.compare tr:last-child > * { border-bottom: 0; }
.tbl-wrap { overflow-x: auto; border-radius: var(--r); }

/* ---------- FAQ: ruled list, serif questions, a star that turns ---------- */
.faq { display: grid; gap: 0; max-width: 880px; margin-inline: auto; border-top: 1.5px solid var(--ink); }
.faq details { background: transparent; border-bottom: 1.5px solid var(--rule); padding: 0 4px; transition: background 0.2s; }
.faq details[open] { background: rgba(255, 255, 255, 0.55); border-bottom-color: var(--ink); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 48px 22px 8px; font: 400 clamp(1.15rem, 1.7vw, 1.4rem)/1.25 var(--font-display); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 24px; height: 24px; margin-top: -12px; background: var(--saffron); -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; transition: transform 0.4s var(--ease), background 0.2s; }
.faq details[open] summary::after { transform: rotate(135deg) scale(1.1); background: var(--teal); }
.faq summary:hover { color: var(--teal-d); }
.faq .a { padding: 0 48px 24px 8px; color: var(--ink-2); }
.faq .a p:last-child { margin-bottom: 0; }

/* ---------- video ---------- */
.video { position: relative; border-radius: 28px; overflow: hidden; background: #000; border: 1.5px solid var(--ink); box-shadow: var(--shadow-2); aspect-ratio: 16 / 9; }
.video video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- forms ---------- */
.form-card { background: var(--card); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 28px; padding: clamp(26px, 3.4vw, 42px); box-shadow: 10px 10px 0 var(--saffron); }
.form-card h3 { font-size: 1.8rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } }
label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 6px; }
input[type="text"], input[type="email"], select, textarea { width: 100%; font: inherit; font-size: 1rem; padding: 13px 14px; border: 1.5px solid var(--ink); border-radius: 14px; background: #fff; color: var(--ink); min-height: 52px; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--saffron); outline-offset: 1px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; color: var(--ink-2); }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--teal); flex: none; }
.form-note { font-size: 0.88rem; color: var(--ink-2); margin: 16px 0 0; }
.form-msg { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #daf0cc; color: #174a0a; font-weight: 700; display: none; }
.form-msg.show { display: block; }
.cta-band { background: var(--pat-d), linear-gradient(160deg, var(--deep-2), var(--deep)); background-size: 80px 80px, auto; color: #fff; }
.cta-grid { display: grid; grid-template-columns: 1fr minmax(320px, 540px); gap: clamp(30px, 5vw, 80px); align-items: center; }
@media (max-width: 920px) { .cta-grid { grid-template-columns: 1fr; } }
.cta-band h2 { color: #fff; font-size: clamp(2.2rem, 4.2vw, 3.7rem); }
.cta-band .eyebrow { color: var(--mint); }
.cta-band .lead { color: rgba(255, 255, 255, 0.84); }

/* ---------- footer ---------- */
.footer { background: var(--deep); color: rgba(255, 255, 255, 0.74); padding: 68px 0 38px; font-size: 0.97rem; border-top: 1.5px solid rgba(255, 255, 255, 0.1); background-image: var(--pat-d); background-size: 80px 80px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 34px; }
.footer a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--saffron); }
.footer .foot-h { color: var(--saffron-l); font: 500 0.76rem/1.2 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 16px; }
.h3 { font-family: var(--font-display); font-size: clamp(1.25rem, 1.8vw, 1.55rem); line-height: 1.12; margin: 0 0 0.5em; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer .ar { font-size: 1.5rem !important; color: var(--saffron-l) !important; }
.footer .fine { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.86rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.75s ease, transform 0.75s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 0.09s; } .js .reveal.d2 { transition-delay: 0.18s; } .js .reveal.d3 { transition-delay: 0.27s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .cue::after, .orn .spin { animation: none; }
  .page-hero .wrap > * { animation: none; }
  .btn, .btn .arrow, .card, .outcome, .faq summary::after { transition: none; }
}
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.badge { font: 500 0.78rem/1 var(--font-mono); letter-spacing: 0.04em; padding: 9px 14px; border-radius: 999px; background: transparent; border: 1.5px solid var(--ink); color: var(--ink); }
.dark .badge, .page-hero .badge { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.note { font-size: 0.93rem; color: var(--ink-2); border-left: 3px solid var(--saffron); padding: 4px 0 4px 14px; margin: 18px 0; }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.updated { font: 500 0.82rem/1.4 var(--font-mono); color: var(--ink-2); }

/* ---------- language switch ---------- */
.nav .lang-switch { font-family: var(--font-ar); font-weight: 700; font-size: 1rem; padding: 8px 16px; margin-inline-start: 8px; border: 1.5px solid rgba(255, 255, 255, 0.4); border-radius: 999px; color: #fff; }
.nav .lang-switch:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; }
.nav .lang-switch::after { display: none; }
html[lang="ar"] .nav .lang-switch { font-family: var(--font); }
@media (max-width: 920px) { .nav .lang-switch { margin: 6px 0 0; text-align: center; } }

/* ---------- Arabic / right-to-left ---------- */
html[lang="ar"] { --font: "Readex Pro", "Tajawal", "Segoe UI", system-ui, sans-serif; --font-display: "Reem Kufi", "Readex Pro", "Tajawal", serif; --font-mono: "Readex Pro", "Tajawal", sans-serif; }
html[lang="ar"] body { line-height: 1.85; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { font-weight: 600; letter-spacing: 0; line-height: 1.32; }
html[lang="ar"] h1 { font-size: clamp(2.4rem, 5vw, 4.3rem); }
html[lang="ar"] h2 { font-size: clamp(1.85rem, 3.4vw, 3rem); }
html[lang="ar"] .eyebrow, html[lang="ar"] .crumbs, html[lang="ar"] .badge, html[lang="ar"] .cue, html[lang="ar"] .plan .tag, html[lang="ar"] .updated, html[lang="ar"] .pain-row small, html[lang="ar"] .outcome small, html[lang="ar"] .compare thead th, html[lang="ar"] .footer .foot-h { letter-spacing: 0; text-transform: none; font-size: 0.9rem; font-weight: 600; }
html[lang="ar"] .eyebrow { font-size: 0.95rem; }
html[lang="ar"] .lead { line-height: 1.8; }
html[lang="ar"] .fact b, html[lang="ar"] .price, html[lang="ar"] .tab strong, html[lang="ar"] .shot figcaption b, html[lang="ar"] .faq summary, html[lang="ar"] .step::before, html[lang="ar"] .beat .big, html[lang="ar"] .beat-final .tagline { letter-spacing: 0; line-height: 1.35; font-weight: 600; }
html[lang="ar"] .price { font-size: 2.6rem; }
html[lang="ar"] .btn { font-weight: 600; }
html[lang="ar"] .brand, html[lang="ar"] .footer .brand { direction: ltr; }
html[dir="rtl"] .btn .arrow svg { transform: scaleX(-1); }
html[dir="rtl"] .btn:hover .arrow { transform: translateX(-4px); }
html[dir="rtl"] .beat { direction: rtl; text-align: right; }
html[dir="rtl"] .beat-final { text-align: center; }
html[dir="rtl"] .orn { right: auto; left: max(-60px, calc(50% - 760px)); }
html[dir="rtl"] .scroll-bar i { margin-inline-start: auto; background: linear-gradient(270deg, var(--teal-l), var(--saffron)); }
html[dir="rtl"] .checks li { padding-left: 0; padding-right: 40px; }
html[dir="rtl"] .checks li::before { left: auto; right: 0; }
html[dir="rtl"] .checks li::after { left: auto; right: 8px; }
html[dir="rtl"] .plan li { padding-left: 0; padding-right: 28px; }
html[dir="rtl"] .plan li::before { left: auto; right: 0; }
html[dir="rtl"] .plan .tag { left: auto; right: 28px; }
html[dir="rtl"] .faq summary { padding: 22px 8px 22px 48px; }
html[dir="rtl"] .faq summary::after { right: auto; left: 8px; }
html[dir="rtl"] .faq .a { padding: 0 8px 24px 48px; }
html[dir="rtl"] .tab { text-align: right; }
html[dir="rtl"] .tab[aria-selected="true"]::before { left: auto; right: 0; }
html[dir="rtl"] .step::before { left: auto; right: 26px; }
html[dir="rtl"] .note { border-left: 0; padding-left: 0; border-right: 3px solid var(--saffron); padding-right: 14px; }
html[dir="rtl"] .compare th, html[dir="rtl"] .compare td { text-align: right; }
html[dir="rtl"] input[type="email"] { direction: ltr; text-align: right; }

/* ---------- help assistant ---------- */
.amana-chat { position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 150; font-family: var(--font); }
.chat-fab { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px 0 18px; border-radius: 999px; border: 2px solid var(--ink); background: var(--saffron); color: #231800; font: 700 1rem/1 var(--font); cursor: pointer; box-shadow: 0 4px 0 var(--ink); transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease); }
.chat-fab:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.chat-fab:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.chat-fab svg { width: 22px; height: 22px; flex: none; }
[dir="rtl"] .chat-fab { padding: 0 18px 0 22px; }
.chat-panel { position: absolute; inset-inline-end: 0; bottom: 70px; width: min(410px, calc(100vw - 24px)); height: min(610px, calc(100vh - 110px)); height: min(610px, calc(100svh - 110px)); display: flex; flex-direction: column; background: var(--card); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 28px; box-shadow: 8px 8px 0 var(--saffron); overflow: hidden; animation: chatIn 0.28s var(--ease); }
.chat-panel[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.chat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 18px 16px 22px; color: #fff; background: var(--pat-d), linear-gradient(170deg, var(--deep-2), var(--deep)); background-size: 80px 80px, auto; }
[dir="rtl"] .chat-head { padding: 18px 22px 16px 18px; }
.chat-head strong { display: block; font: 400 1.35rem/1.2 var(--font-display); }
[lang="ar"] .chat-head strong { font-weight: 600; }
.chat-head small { display: block; margin-top: 4px; font-size: 0.82rem; line-height: 1.45; color: rgba(255, 255, 255, 0.78); }
.chat-close { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.45); background: transparent; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.chat-close:hover { background: rgba(255, 255, 255, 0.16); }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); scroll-behavior: smooth; }
.chat-msg { max-width: 90%; padding: 12px 15px; border-radius: 18px; font-size: 0.97rem; line-height: 1.6; }
.chat-msg p { margin: 0 0 8px; }
.chat-msg p:last-child { margin-bottom: 0; }
.chat-msg.bot { align-self: flex-start; background: #fff; border: 1.5px solid var(--rule); border-start-start-radius: 4px; }
.chat-msg.user { align-self: flex-end; background: var(--saffron); border: 1.5px solid var(--ink); border-end-end-radius: 4px; font-weight: 600; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-msg a { color: var(--teal-d); }
.chat-more { display: inline-block; margin-top: 4px; font-weight: 700; font-size: 0.92rem; text-decoration: none; padding: 6px 12px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper-2); color: var(--ink) !important; }
.chat-more:hover { background: var(--saffron-l); }
.chat-msg.typing { display: inline-flex; gap: 5px; align-items: center; padding: 14px 16px; }
.chat-msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); opacity: 0.35; animation: dot 1s infinite; }
.chat-msg.typing span:nth-child(2) { animation-delay: 0.15s; } .chat-msg.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 50% { opacity: 1; transform: translateY(-3px); } }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; align-self: stretch; margin-bottom: 2px; }
.chat-chip { font: 600 0.88rem/1.25 var(--font); text-align: start; padding: 8px 13px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--card); color: var(--ink); cursor: pointer; transition: background 0.15s, transform 0.15s var(--ease); }
.chat-chip:hover { background: var(--saffron-l); transform: translateY(-1px); }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1.5px solid var(--rule); background: var(--card); }
.chat-form input { flex: 1; min-width: 0; min-height: 46px; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: 999px; font: inherit; font-size: 1rem; background: #fff; color: var(--ink); }
.chat-send { flex: none; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--ink); background: var(--teal); color: #fff; font: 700 0.95rem/1 var(--font); cursor: pointer; box-shadow: 0 3px 0 var(--ink); }
.chat-send:hover { background: var(--teal-d); }
.chat-send:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.chat-foot { margin: 0; padding: 0 14px 12px; font-size: 0.76rem; line-height: 1.4; text-align: center; color: var(--ink-2); background: var(--card); }
@media (max-width: 520px) { .amana-chat { inset-inline-end: 12px; bottom: 12px; } .chat-panel { bottom: 66px; border-radius: 24px; } .chat-fab span { font-size: 0.95rem; } }
@media print { .amana-chat { display: none; } }
@media (prefers-reduced-motion: reduce) { .chat-panel { animation: none; } .chat-msg.typing span { animation: none; opacity: 0.7; } .chat-log { scroll-behavior: auto; } .chat-fab, .chat-chip { transition: none; } }
/* keep the home-page hero controls clear of the help button */
.home .hero-tools { bottom: 88px; }
@media (max-width: 760px) { .home .hero-tools { bottom: 84px; } }
/* chat bubbles in right-to-left: the visitor's messages sit on the right, replies on the left */
[dir="rtl"] .chat-msg.bot { align-self: flex-end; }
[dir="rtl"] .chat-msg.user { align-self: flex-start; }
[dir="rtl"] .chat-chips { justify-content: flex-start; }
