/* Flowkee website. Same ground as the app: ink green, a glowing signal
   green for what's live, warm sand for what you can do. One family,
   Alexandria, light against bold. */
:root {
  --ink: #08130e;
  --pine: #0f2219;
  --fern: #1a3529;
  --line: #1f3d31;
  --paper: #f7f5ef;
  --soft: #cfd8d2;
  --muted: #8fa79a;
  --signal: #3fd68b;
  --signal-soft: rgba(63, 214, 139, 0.12);
  --sand: #d6cbb2;
  --coral: #f07a68;
  --amber: #f0c45a;
  --font: 'Alexandria', system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 48px);
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
[dir='rtl'] body, body[dir='rtl'] { line-height: 1.8; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
img, svg { display: block; max-width: 100%; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding-block: 28px; }
.mark { display: inline-flex; align-items: flex-end; gap: 0.12em; text-decoration: none; font-size: 26px; font-weight: 300; letter-spacing: -0.04em; direction: ltr; }
.mark i { width: 0.2em; height: 0.2em; margin-bottom: 0.22em; border-radius: 50%; background: var(--signal); box-shadow: 0 0 8px var(--signal); }
.top nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--soft); }
.top nav a:hover { color: var(--paper); }
.lang { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 6vw, 80px); align-items: center; padding-block: clamp(24px, 6vw, 72px) clamp(56px, 9vw, 120px); }
.hero h1 { margin: 0 0 22px; font-size: clamp(40px, 6.2vw, 72px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; }
[dir='rtl'] .hero h1 { letter-spacing: 0; line-height: 1.25; }
.hero h1 span { display: block; font-weight: 200; }
.hero p { margin: 0 0 32px; max-width: 34em; color: var(--soft); font-size: clamp(17px, 1.6vw, 19px); }
.soon { display: inline-flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; background: var(--sand); color: var(--ink); font-weight: 600; text-decoration: none; font-size: 16px; box-shadow: 0 8px 24px rgba(214, 203, 178, 0.12); }
.btn.ghost { background: transparent; color: var(--paper); border: 1px solid var(--line); box-shadow: none; font-weight: 400; }
.note { font-size: 14px; color: var(--muted); }

/* The phone: one review, start to approval */
.phone { justify-self: center; width: min(100%, 340px); aspect-ratio: 9 / 18.5; border-radius: 48px; padding: 12px; background: #050c09; border: 1px solid var(--line); box-shadow: 0 40px 120px rgba(63, 214, 139, 0.08); position: relative; }
.screen { position: relative; height: 100%; border-radius: 38px; background: var(--ink); overflow: hidden; padding: 22px 16px 16px; display: flex; flex-direction: column; gap: 12px; direction: ltr; text-align: left; font-family: var(--font); }
.screen .bar { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
.screen h3 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.screen h3 span { font-weight: 200; }
.media { position: relative; flex: 0 0 auto; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: radial-gradient(120% 90% at 30% 20%, #3a6a52 0%, #17382a 55%, #0e241a 100%); }
.media .subject { position: absolute; inset: 22% 18% 18%; border-radius: 18px; background: linear-gradient(160deg, rgba(247, 245, 239, 0.18), rgba(247, 245, 239, 0.04)); }
.media .logo { position: absolute; left: 24%; top: 30%; width: 28%; height: 8%; border-radius: 6px; background: rgba(247, 245, 239, 0.55); transform-origin: left center; }
.media .caption-line { position: absolute; left: 24%; height: 5px; border-radius: 3px; background: rgba(247, 245, 239, 0.3); }
.status { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; background: rgba(8, 19, 14, 0.72); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.pin { position: absolute; left: 50%; top: 31%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--coral); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; transform: scale(0); }
.bubble { border-radius: 16px; background: var(--pine); border: 1px solid var(--line); padding: 10px 12px; font-size: 12.5px; line-height: 1.45; opacity: 0; transform: translateY(6px); }
.bubble b { display: block; font-weight: 600; font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.approve { margin-top: auto; height: 46px; border-radius: 16px; background: var(--signal); color: var(--ink); font-weight: 700; font-size: 15px; display: grid; place-items: center; position: relative; }
.approve::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 14px rgba(63, 214, 139, 0.55), 0 0 40px rgba(63, 214, 139, 0.3); opacity: 0; }

/* The review plays in steps (set by site.js on .phone[data-step]):
   0 waiting · 1 change pinned · 2 new version · 3 approved */
.pin, .bubble, .logo, .status i, .approve::after { transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.3), opacity 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease; }
.phone[data-step='1'] .pin { transform: scale(1); }
.phone[data-step='1'] .bubble { opacity: 1; transform: none; }
.phone[data-step='1'] .status i { background: var(--coral); }
.phone[data-step='2'] .logo, .phone[data-step='3'] .logo { transform: scale(1.35); }
.phone[data-step='3'] .status i { background: var(--signal); box-shadow: 0 0 8px var(--signal); }
.phone[data-step='3'] .approve::after { opacity: 1; }

/* Sections */
section { padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--line); }
section h2 { margin: 0 0 14px; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -0.025em; font-weight: 700; max-width: 18em; }
[dir='rtl'] section h2 { letter-spacing: 0; line-height: 1.35; }
section > .wrap > p { margin: 0 0 40px; max-width: 36em; color: var(--soft); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 52px; }
.steps li::before { content: counter(step); position: absolute; top: 0; inset-inline-start: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 15px; border: 1px solid var(--line); color: var(--soft); }
.steps li:last-child::before { background: var(--signal); border-color: var(--signal); color: var(--ink); box-shadow: 0 0 18px rgba(63, 214, 139, 0.45); }
.steps h3 { margin: 0 0 8px; font-size: 19px; font-weight: 600; }
.steps p { margin: 0; color: var(--muted); font-size: 15.5px; }

.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; }
.side { padding: clamp(24px, 4vw, 44px); }
.side + .side { border-inline-start: 1px solid var(--line); background: var(--pine); }
.side h3 { margin: 0 0 18px; font-size: 22px; font-weight: 700; }
.side ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.side li { position: relative; padding-inline-start: 22px; color: var(--soft); }
.side li::before { content: ''; position: absolute; inset-inline-start: 0; top: 0.72em; width: 7px; height: 7px; border-radius: 50%; background: var(--sand); }
.side + .side li::before { background: var(--signal); }

.closing { text-align: center; }
.closing h2 { margin-inline: auto; max-width: none; }
.closing p { margin-inline: auto; }

/* Footer */
footer { border-top: 1px solid var(--line); padding-block: 36px 48px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { text-decoration: none; color: var(--soft); }
footer a:hover { color: var(--paper); }

/* Legal and help pages */
.doc { max-width: 720px; padding-block: 24px 96px; }
.doc h1 { font-size: clamp(32px, 4.4vw, 44px); line-height: 1.15; letter-spacing: -0.03em; margin: 12px 0 8px; font-weight: 700; }
[dir='rtl'] .doc h1 { letter-spacing: 0; line-height: 1.35; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 40px; }
.doc h2 { font-size: 21px; margin: 40px 0 10px; font-weight: 600; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--soft); }
.doc ul { padding-inline-start: 22px; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--paper); font-weight: 600; }
.doc .box { border: 1px solid var(--line); background: var(--pine); border-radius: 20px; padding: 20px 22px; margin: 24px 0; }
.doc dl { margin: 0; }
.doc dt { font-weight: 600; color: var(--paper); margin-top: 22px; }
.doc dd { margin: 6px 0 0; color: var(--soft); }

/* Invite page */
.invite { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: 48px; }
.invite h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.15; margin: 0 0 12px; font-weight: 700; letter-spacing: -0.03em; }
[dir='rtl'] .invite h1 { letter-spacing: 0; line-height: 1.4; }
.invite p { color: var(--soft); max-width: 30em; margin: 0 auto 28px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .phone { width: min(100%, 300px); }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .top nav a:not(.lang) { display: none; }
  .steps { grid-template-columns: 1fr; }
  .sides { grid-template-columns: 1fr; }
  .side + .side { border-inline-start: 0; border-top: 1px solid var(--line); }
}

.status em { font-style: normal; }
section.closing > .wrap > p { margin-inline: auto; }

/* Store badges (disabled until launch) */
.store { display: inline-flex; flex-direction: column; justify-content: center; min-width: 150px; padding: 10px 20px; border-radius: 14px; background: var(--sand); color: var(--ink); line-height: 1.2; white-space: nowrap; box-shadow: 0 8px 24px rgba(214, 203, 178, 0.12); }
.store b { font-weight: 700; font-size: 16px; }
.store small { font-size: 12px; font-weight: 400; opacity: 0.7; }

/* Content photo in the phone mock (Pexels, free license). */
.media .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; transition: filter 0.6s ease; }
.media .play { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; background: rgba(8, 19, 14, 0.55); }
.media .play::after { content: ''; position: absolute; left: 12px; top: 9px; border-style: solid; border-width: 6px 0 6px 9px; border-color: transparent transparent transparent #fff; }
.pin { left: 46%; top: 80%; }
.phone[data-step='2'] .shot, .phone[data-step='3'] .shot { filter: brightness(1.12) saturate(1.08); }
[dir='rtl'] .steps li::before { content: counter(step, arabic-indic); }
