/* GuestPraise landing page. Rules: docs/ui-direction.md and docs/landing-references.md in the Review Platform repo.
   One accent (green), neutrals, soft 20px cards, pill buttons. Logical properties keep an Arabic (RTL) copy easy. */

:root {
  --paper: #f4f4f1;
  --surface: #ffffff;
  --sunken: #ecebe6;
  --ink: #18181b;
  --ink-2: #4f4d48;
  --ink-3: #6b6862;
  --line: #e2e0d9;
  --accent: #0f6b52;
  --accent-soft: #e1efe9;
  --accent-ink: #ffffff;
  --btn: #18181b;
  --btn-ink: #ffffff;
  --star: #e0a000;
  --shadow: 0 1px 2px rgb(40 38 30 / .05), 0 14px 36px rgb(40 38 30 / .07);
  --shadow-lg: 0 2px 4px rgb(40 38 30 / .05), 0 30px 70px rgb(40 38 30 / .14);
  --r-card: 20px;
  --r-sm: 12px;
  --wrap: 1120px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", Inter, system-ui, sans-serif;
  --font-ar: Vazirmatn, Inter, system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1112;
    --surface: #181b1d;
    --sunken: #141718;
    --ink: #ececea;
    --ink-2: #b9bcba;
    --ink-3: #959a98;
    --line: #2a2f31;
    --accent: #3fbf93;
    --accent-soft: #13291f;
    --accent-ink: #06130e;
    --btn: #ececea;
    --btn-ink: #111314;
    --star: #f0b90b;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 14px 36px rgb(0 0 0 / .3);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / .3), 0 30px 70px rgb(0 0 0 / .5);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
[lang="ar"], [lang="fa"], [lang="ur"] { font-family: var(--font-ar); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -.03em; font-weight: 600; font-family: var(--display); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.accent { color: var(--accent); }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; background: var(--btn); color: var(--btn-ink); padding: 10px 16px; border-radius: 999px; z-index: 20; }
.skip:focus { top: 12px; }

/* Buttons: one dark pill per screen, the rest quieter */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font: 600 16px/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--btn); color: var(--btn-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--btn) 86%, var(--accent)); }
.btn-primary .ph { transition: transform .25s var(--ease); }
.btn-primary:hover .ph-arrow-right { transform: translateX(3px); }
.btn-text { min-height: 44px; padding: 0 8px; background: none; color: var(--ink); }
.btn-text:hover { color: var(--accent); }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); }
.btn-light { background: var(--surface); color: var(--ink); }
.btn-light:hover { background: var(--paper); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 15px; }
.btn-block { width: 100%; }

/* Navigation: sticky, one line, key action always reachable */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-row { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14px; letter-spacing: -.02em;
}
.logo-name { font-weight: 650; font-size: 18px; letter-spacing: -.02em; }
.nav-links { display: flex; gap: 28px; margin-inline-start: auto; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }

/* Hero */
.hero { padding-block: 56px 72px; overflow: clip; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 48px; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4.1rem); letter-spacing: -.045em; line-height: 1.03; max-width: 12ch; }
.lead { margin-top: 22px; font-size: 19px; color: var(--ink-2); max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 34px; }

.hero-visual { position: relative; display: flex; justify-content: center; padding-block: 12px; }
.phone {
  position: relative; width: 326px; padding: 10px; border-radius: 46px;
  background: #1d1d20; box-shadow: var(--shadow-lg), inset 0 0 0 1px rgb(255 255 255 / .08);
}
.phone::before { /* speaker slot */
  content: ""; position: absolute; top: 20px; inset-inline-start: 50%; width: 84px; height: 22px;
  margin-inline-start: -42px; border-radius: 999px; background: #1d1d20; z-index: 1;
}
.phone-screen {
  border-radius: 37px; background: #f6f7f6; color: #18181b; padding: 56px 20px 24px;
  min-height: 570px; display: flex; flex-direction: column; gap: 14px;
}
.counter-card {
  position: absolute; inset-inline-start: calc(50% - 300px); bottom: 150px; z-index: 2;
  width: 158px; padding: 16px; border-radius: 16px; transform: rotate(-7deg);
  background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line);
  display: grid; gap: 10px; font-size: 13px; line-height: 1.3; font-weight: 600;
}
.counter-card .ph { font-size: 30px; color: var(--accent); }
.counter-card-mark { position: absolute; inset-inline-end: 14px; top: 14px; font-size: 11px; color: var(--ink-3); font-weight: 700; }

/* The customer page inside the phone (fixed light colours, like a client's real page) */
.cp-head { display: flex; align-items: center; gap: 12px; }
.cp-logo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #7a4b2a; color: #fff; font-weight: 700; font-size: 15px; flex: none; }
.cp-name { font-weight: 650; font-size: 16px; letter-spacing: -.01em; }
.cp-greet { font-size: 13px; color: #5d5b56; }
.cp-langs { display: inline-flex; align-self: flex-start; gap: 4px; padding: 4px; border-radius: 999px; background: #e8e9e6; }
.cp-pill { border: 0; background: none; padding: 7px 14px; border-radius: 999px; font: 500 13px/1 var(--font); color: #4f4d48; cursor: pointer; }
.cp-pill[data-lang="ar"] { font-family: var(--font-ar); }
.cp-pill.is-active { background: #fff; color: #18181b; box-shadow: 0 1px 3px rgb(0 0 0 / .08); }
.cp-intro { font-size: 13px; color: #5d5b56; line-height: 1.5; }
.cp-card { background: #fff; border-radius: 18px; padding: 16px; box-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 8px 22px rgb(0 0 0 / .05); }
.cp-stars { display: flex; gap: 2px; color: #e0a000; font-size: 15px; margin-bottom: 8px; }
.cp-text { font-size: 15px; line-height: 1.55; min-height: 7.75em; transition: opacity .25s; }
.cp-text.is-swapping { opacity: 0; }
.cp-hint { margin-top: 10px; font-size: 12px; color: #6b6862; }
.cp-go {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; margin-top: auto;
  border: 0; border-radius: 999px; background: #0f7a5c; color: #fff; font: 600 15px/1 var(--font); cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s;
}
.cp-go:active { transform: scale(.98); }
.cp-go.is-done { background: #0b5f47; }
.cp-change { border: 0; background: none; color: #0f6b52; font: 500 14px/1.3 var(--font); padding: 6px; cursor: pointer; }
.cp-change:disabled { color: #8a8780; cursor: default; }
.cp-trust { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: #5d5b56; }
.cp-trust .ph { color: #0f7a5c; font-size: 15px; }
.phone-screen[dir="rtl"] .cp-go, .phone-screen[dir="rtl"] .cp-change, .phone-screen[dir="rtl"] .cp-intro { font-family: var(--font-ar); }

/* Business types */
.types { border-block: 1px solid var(--line); }
.types-row { display: flex; align-items: center; gap: 24px 40px; padding-block: 22px; flex-wrap: wrap; }
.types-label { font-size: 15px; color: var(--ink-3); }
.types-list { display: flex; flex-wrap: wrap; gap: 12px 30px; }
.types-list li { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink-2); }
.types-list .ph { font-size: 22px; color: var(--ink); }

/* Sections */
.section { padding-block: 104px; }
.section-tight { padding-top: 24px; }
.section-sunken { background: var(--sunken); }
.section-head { max-width: 760px; margin-bottom: 52px; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 14px; }
.section h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); letter-spacing: -.04em; }
.section-sub { margin-top: 16px; font-size: 18px; color: var(--ink-2); max-width: 54ch; }
.section-sub a { color: var(--accent); }

/* Steps: one row, joined by a line */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; counter-reset: step; }
.steps::before {
  content: ""; position: absolute; top: 32px; inset-inline: 32px calc(33.333% - 32px);
  border-top: 2px dashed var(--line); z-index: 0;
}
.step { position: relative; z-index: 1; }
.step-icon {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--surface); box-shadow: var(--shadow); font-size: 28px; color: var(--accent); margin-bottom: 24px;
}
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { color: var(--ink-2); max-width: 30ch; }

/* Bento: 2 + 1 on top, 1 + 2 below */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { border-radius: var(--r-card); padding: 30px; background: var(--surface); box-shadow: var(--shadow); }
.tile h3 { font-size: 22px; margin-block: 16px 8px; }
.tile p { color: var(--ink-2); }
.tile-icon { font-size: 28px; color: var(--accent); }
.tile-unique { grid-column: span 2; background: var(--accent-soft); box-shadow: none; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.tile-unique p { max-width: 36ch; }
.tile-panel { grid-column: span 2; background: var(--sunken); box-shadow: none; }
.mini-stack { display: grid; gap: 10px; }
.mini-text { position: relative; display: grid; gap: 7px; padding: 14px 16px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.mini-text span { height: 7px; border-radius: 99px; background: var(--line); }
.mini-text span.short { width: 58%; }
.mini-text.is-used { outline: 2px solid var(--accent); }
.mini-text.is-used .ph { position: absolute; inset-inline-end: -9px; top: -11px; font-size: 24px; color: var(--accent); background: var(--surface); border-radius: 50%; }
.lang-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.lang-chips li { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 15px; font-weight: 500; }
.lang-chips li:first-child { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.bars { margin: 22px 0 0; display: grid; gap: 10px; }
.bar { position: relative; display: flex; justify-content: space-between; align-items: center; height: 34px; padding-inline: 12px; font-size: 14px; }
.bar::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--v); border-radius: 10px; background: var(--accent-soft); z-index: 0; }
.bar span, .bar b { position: relative; }
.bar b { font-weight: 600; color: var(--accent); }
.bars figcaption { font-size: 13px; color: var(--ink-3); }
.panel-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin-top: 14px; }
.panel-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.panel-list .ph { font-size: 21px; color: var(--ink); flex: none; margin-top: 2px; }

/* Control: statement and checklist side by side */
.control { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.control-copy p { margin-top: 18px; font-size: 18px; color: var(--ink-2); max-width: 46ch; }
.control-list { display: grid; gap: 12px; }
.control-list li { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow); font-weight: 500; }
.control-list .ph { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 20px; flex: none; }

/* Pricing */
.billing { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 28px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); }
.billing-opt {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border: 0; border-radius: 999px;
  background: none; color: var(--ink-2); font: 600 15px/1 var(--font); cursor: pointer; transition: background-color .2s, color .2s;
}
.billing-opt.is-active { background: var(--btn); color: var(--btn-ink); }
.billing-save { white-space: nowrap; font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.billing-opt.is-active .billing-save { background: var(--accent); color: var(--accent-ink); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 24px; padding: 32px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow); }
.plan-featured { outline: 2px solid var(--accent); }
.plan h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 24px; }
.plan-badge { font-size: 12px; font-weight: 600; letter-spacing: 0; padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.plan-for { margin-top: 6px; color: var(--ink-2); }
.price { display: flex; align-items: baseline; gap: 6px; }
.price-cur { font-size: 16px; font-weight: 600; color: var(--ink-2); }
.price-num { font-size: 44px; font-weight: 650; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.price-per { font-size: 15px; color: var(--ink-3); }
.price-note { margin-top: 6px; font-size: 14px; color: var(--ink-3); }
.plan-list { display: grid; gap: 12px; flex: 1; align-content: start; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; }
.plan-list b { font-weight: 650; }
.plan-list .ph { color: var(--accent); font-size: 18px; margin-top: 4px; flex: none; }
.pay-trust { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--ink-2); font-size: 15px; }
.plans + .pay-trust { margin-top: 28px; }
.pay-trust .ph { font-size: 18px; flex: none; }
.plan-note { margin-top: 14px; padding: 14px 18px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--ink); }
.chains { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.chains p { color: var(--ink-2); }
.chains b { color: var(--ink); }

/* FAQ: + toggles */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding-block: 22px; font-size: 18px; font-weight: 600; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface); box-shadow: var(--shadow); font-size: 20px; font-weight: 400; transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; color: var(--ink-2); max-width: 62ch; }

/* Final band */
.final { padding-bottom: 96px; }
.final-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: 56px; border-radius: 28px; background: var(--accent); color: var(--accent-ink); max-width: calc(var(--wrap) - 48px);
}
.final-band h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); letter-spacing: -.035em; max-width: 18ch; }

/* Footer */
.footer { border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-block: 32px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-inline-start: auto; }
.footer-links a, .footer-copy { font-size: 15px; color: var(--ink-3); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* Reveal on scroll (only when motion is welcome) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .hero-visual.reveal { transition-delay: .12s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Tablet */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-row { justify-content: space-between; }
  .hero-grid, .control, .faq-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; }
  .hero h1 { max-width: 14ch; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-unique, .tile-panel { grid-column: span 2; }
  .plans { grid-template-columns: minmax(0, 540px); }
  .section { padding-block: 80px; }
  .section-tight { padding-top: 16px; }
}

/* Phone */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .nav-row { height: 60px; }
  .hero { padding-block: 24px 48px; }
  .lead { font-size: 17px; }
  .hero-actions .btn-primary { width: 100%; }
  .hero-actions { justify-content: center; }
  .phone { width: min(326px, 100%); }
  .counter-card { display: none; }
  .types-row { gap: 14px; }
  .types-list { gap: 10px 20px; }
  .section { padding-block: 64px; }
  .section-head { margin-bottom: 36px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { inset-inline: 31px auto; top: 32px; bottom: 32px; border-top: 0; border-inline-start: 2px dashed var(--line); }
  .step { display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; }
  .step-icon { grid-row: span 2; margin-bottom: 0; }
  .step h3 { align-self: end; }
  .bento { grid-template-columns: 1fr; }
  .tile-unique, .tile-panel { grid-column: auto; grid-template-columns: 1fr; }
  .tile { padding: 24px; }
  .panel-list { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 24px; }
  .billing { display: flex; }
  .billing-opt { flex: 1; justify-content: center; padding: 0 8px; gap: 6px; }
  .billing-save { font-size: 11px; padding: 3px 6px; }
  .pay-trust { align-items: flex-start; }
  .pay-trust .ph { margin-top: 3px; }
  .final-band { padding: 36px 24px; }
  .final-band .btn { width: 100%; }
  .footer-links { margin-inline-start: 0; }
}
