/* Makina Commerce landing. Palette and fonts from makina/src/app/globals.css. Brick red is the one hero colour. */
:root {
  --paper: #f6f1e9;
  --ink: #17140f;
  --ink-2: #4e473d;
  --muted: #5b5348;
  --line: #e4dccf;
  --soft: #f3ece1;
  --card: #ffffff;
  --night: #26221c;
  --red: #c4271c;
  --red-dark: #9e1f16;
  --gold: #f2c14e;
  --ocean: #1d4e9e;
  --leaf: #2f6b4f;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --radius: 22px;
}
html[lang="ar"] {
  --display: "Cairo", system-ui, sans-serif;
  --body: "Cairo", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img, svg, video { display: block; max-width: 100%; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.025em; line-height: 1.05; margin: 0; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.5; }
html[lang="ar"] .hero h1 { font-size: clamp(40px, 5.4vw, 72px); }
html[lang="ar"] .hl { padding: 0 0.2em; }
html[lang="ar"] .ui-hooks > span, html[lang="ar"] .ui-metric small { font-family: var(--body); }
p { margin: 0; }
.mono { font-family: var(--mono); }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.hl { display: inline; background: var(--red); color: var(--paper); padding: 0 0.18em 0.04em; border-radius: 0.14em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
html[lang="ar"] .eyebrow { font-family: var(--body); letter-spacing: 0; font-size: 15px; font-weight: 600; }
.eyebrow-light { color: #cfc6b8; }
.skip { position: absolute; inset-inline-start: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; clip-path: inset(50%); }
.skip:focus { clip-path: none; }

/* Wordmark: dotless ı with the mark's gold dot. */
.wordmark { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; letter-spacing: -0.04em; font-size: 26px; line-height: 1; color: var(--ink); white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.wordmark .i { position: relative; display: inline-block; }
.wordmark .i::after { content: ""; position: absolute; left: 50%; top: 0.13em; width: 0.2em; height: 0.2em; margin-left: -0.1em; border-radius: 50%; background: var(--gold); }

/* Buttons: 48px tall, real focus ring. */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 14px; font: 700 16px var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform 0.15s ease, background 0.15s ease; }
.btn:focus-visible, .langs button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--ocean); outline-offset: 3px; }
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(246, 241, 233, 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-links { display: flex; gap: 22px; margin-inline-start: 16px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.nav-right { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; }
.langs { display: flex; padding: 4px; border-radius: 12px; background: #ede4d6; }
.langs button { min-width: 44px; min-height: 36px; border: 0; border-radius: 9px; background: transparent; font: 700 14px var(--body); color: var(--ink-2); cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(23, 20, 15, 0.12); }
.langs button[data-lang="ar"] { font-family: "Cairo", sans-serif; font-size: 16px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; }
.hero::before { content: ""; position: absolute; width: 900px; height: 900px; inset-inline-start: -340px; top: -360px; background: radial-gradient(circle, rgba(242, 193, 78, 0.32), transparent 62%); pointer-events: none; }
.hero::after { content: ""; position: absolute; width: 800px; height: 800px; inset-inline-end: -320px; bottom: -420px; background: radial-gradient(circle, rgba(196, 39, 28, 0.13), transparent 62%); pointer-events: none; }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.2vw, 84px); font-weight: 800; }
.lead { margin-top: 24px; font-size: 20px; line-height: 1.55; color: var(--ink-2); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; color: var(--ink-2); }
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; flex: 0 0 auto; }

/* Hero UI collage */
.hero-ui { position: relative; min-height: 520px; direction: ltr; }
.ui-card { position: absolute; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 30px 70px rgba(23, 20, 15, 0.14), 0 4px 12px rgba(23, 20, 15, 0.06); }
.ui-store { inset-inline-start: 0; top: 0; width: 360px; overflow: hidden; animation: float 7s ease-in-out infinite; }
.ui-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: var(--soft); border-bottom: 1px solid var(--line); font: 12px var(--mono); color: var(--muted); }
.ui-bar i { width: 10px; height: 10px; border-radius: 5px; background: var(--line); }
.ui-bar span { margin-inline-start: 6px; }
.ui-store-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; }
.ui-store-head b { font: 800 22px "Bricolage Grotesque", sans-serif; }
.ui-store-head span { font-size: 13px; color: var(--muted); }
.ui-hero-block { margin: 0 14px; height: 130px; border-radius: 14px; background: var(--ink); display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 16px; }
.ui-hero-block b { color: var(--paper); font: 800 22px var(--display); }
.ui-hero-block span { align-self: flex-start; background: var(--gold); border-radius: 8px; padding: 4px 12px; font-weight: 700; font-size: 13px; }
.ui-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px; }
.tee { aspect-ratio: 1; border-radius: 12px; background: var(--soft) center/70% no-repeat; }
.t1 { background-image: url("media/tee-ink.svg"); }
.t2 { background-image: url("media/tee-red.svg"); }
.t3 { background-image: url("media/tee-ocean.svg"); }
.ui-cod { margin: 0 14px 14px; border-radius: 12px; background: var(--red); color: #fff; text-align: center; padding: 12px; font-weight: 700; font-size: 14px; }
.ui-metric { inset-inline-end: 0; top: 70px; width: 250px; padding: 20px; background: var(--ink); color: var(--paper); border-color: #000; display: flex; flex-direction: column; gap: 6px; animation: float 8s ease-in-out -2s infinite; }
.ui-metric span { color: var(--gold); font: 800 22px/1.15 var(--display); }
.ui-metric b { font-size: 34px; color: var(--leaf); filter: brightness(1.6); }
.ui-metric small { color: #cfc6b8; font-size: 13px; }
.ui-hooks { inset-inline-end: 30px; bottom: 0; width: 330px; padding: 18px; animation: float 9s ease-in-out -4s infinite; }
.ui-hooks > span { font-size: 13px; color: var(--muted); }
.phones { display: flex; gap: 8px; margin-top: 12px; }
.phones i { flex: 1; aspect-ratio: 9 / 16; border-radius: 10px; border: 3px solid var(--ink); background: var(--night); }
.phones i:nth-child(1) { background: var(--red); }
.phones i:nth-child(2) { background: var(--gold); }
.phones i:nth-child(4) { background: var(--ocean); }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .ui-card { animation: none; } html { scroll-behavior: auto; } }

/* Pain */
.pain { padding: 88px 0; background: var(--card); border-block: 1px solid var(--line); }
.pain h2 { font-size: clamp(32px, 4.4vw, 56px); max-width: 820px; }
.apps { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.apps li { padding: 14px 20px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); font-weight: 600; color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.pain-note { margin-top: 28px; font: 600 22px var(--display); }

/* How */
.how { padding: 104px 0; }
.how h2 { font-size: clamp(34px, 4.6vw, 60px); max-width: 760px; }
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.num { display: inline-flex; align-self: flex-start; padding: 6px 10px; border-radius: 10px; background: var(--ink); color: var(--gold); font-size: 14px; }
.step h3 { font-size: 24px; }
.step p { color: var(--ink-2); font-size: 16px; }

/* Why */
.why { padding: 104px 0; background: var(--ink); color: var(--paper); }
.why h2 { font-size: clamp(32px, 4.2vw, 54px); max-width: 940px; }
.why-grid { margin-top: 52px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.why-grid article { padding: 30px; border-radius: var(--radius); background: var(--night); border: 1px solid #3a342b; }
.why-grid h3 { font-size: 26px; color: var(--gold); }
.why-grid p { margin-top: 12px; color: #e4dccf; }

/* Video */
.video { padding: 104px 0; text-align: center; }
.video h2 { font-size: clamp(32px, 4vw, 52px); }
.video-frame { margin: 36px auto 0; max-width: 980px; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); background: #000; box-shadow: 0 40px 90px rgba(23, 20, 15, 0.18); }
.video-frame video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* Join */
.join { padding: 104px 0; background: var(--card); border-block: 1px solid var(--line); }
.join-in { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.join h2 { font-size: clamp(32px, 4.2vw, 54px); }
.join-copy > p:last-child { margin-top: 18px; font-size: 18px; color: var(--ink-2); max-width: 460px; }
.form { display: flex; flex-direction: column; gap: 16px; padding: 30px; border-radius: 26px; background: var(--paper); border: 1px solid var(--line); }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.form input, .form select { min-height: 52px; padding: 0 14px; border: 1.5px solid #b9ad9b; border-radius: 12px; background: var(--card); font: 400 16px var(--body); color: var(--ink); }
.form input[aria-invalid="true"] { border-color: var(--red); }
html[dir="rtl"] .form input[type="tel"], html[dir="rtl"] .form input[type="email"] { direction: ltr; text-align: right; }
.form-msg { min-height: 24px; font-size: 15px; font-weight: 600; }
.form-msg.ok { color: var(--leaf); }
.form-msg.err { color: var(--red-dark); }
.form-legal { font-size: 13px; color: var(--muted); }
.form.done { align-items: flex-start; }

/* FAQ */
.faq { padding: 104px 0; }
.faq h2 { font-size: clamp(32px, 4vw, 52px); margin-bottom: 28px; }
.faq details { border-top: 1px solid var(--line); padding: 6px 0; max-width: 820px; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; min-height: 56px; display: flex; align-items: center; font: 700 19px var(--body); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-inline-start: auto; font: 500 26px var(--mono); color: var(--red); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 18px; color: var(--ink-2); max-width: 680px; }

/* Footer */
.foot { padding: 36px 0; border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; color: var(--muted); font-size: 14px; }
.wm-sm { font-size: 22px; }
.foot-in .mono { margin-inline-start: auto; }

/* Tablet and phone */
@media (max-width: 960px) {
  .hero-in, .join-in { grid-template-columns: 1fr; }
  .hero-ui { min-height: 470px; max-width: 520px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding: 40px 0 64px; }
  .lead { font-size: 18px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-ui { min-height: 440px; }
  .ui-store { width: 82%; }
  .ui-metric { width: 58%; top: 200px; }
  .ui-hooks { width: 76%; inset-inline-end: 0; }
  .steps, .why-grid { grid-template-columns: 1fr; }
  .pain, .how, .why, .video, .join, .faq { padding: 72px 0; }
  .form { padding: 20px; }
  .nav-right .btn-sm { display: none; }
}
