/* Ash Studio — homepage (2026-10-26). Light and quiet, after the idea of averaks.com:
   white page, one ink colour, grey second lines on titles, soft grey chips, no colour accent. */
:root {
  --bg: #fafafa;
  --surface: #f1f2f4;      /* chips, soft buttons */
  --surface-2: #e8e9ec;
  --line: #e4e5e8;
  --text: #18191b;
  --muted: #6e7279;
  --soft: #9a9ea5;         /* the grey second line of titles */
  --dark: #121315;         /* step cards */

  --f-body: "IBM Plex Sans Arabic", "Inter", "Segoe UI", Tahoma, sans-serif;
  --f-latin: "Inter", "IBM Plex Sans Arabic", "Segoe UI", sans-serif;
  --f-logo: "Michroma", "Arial", sans-serif; /* the name: wide, thin, spaced, with a crossbar-less Λ */

  --gutter: clamp(16px, 4vw, 48px);
  --radius: 22px;
}
html[lang="en"] { --f-body: var(--f-latin); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.65; overflow-x: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 10px; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .55rem 1.4rem; border: 0; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 1rem; white-space: nowrap; transition: transform .15s, background-color .2s, opacity .2s; }
.btn:active { transform: scale(.97); }
.btn-ink { background: var(--text); color: #fff; box-shadow: 0 8px 20px -10px rgba(0,0,0,.45); }
.btn-ink:hover { background: #000; }
.btn-soft { background: var(--surface); color: var(--text); }
.btn-soft:hover { background: var(--surface-2); }
.btn-sm { min-height: 40px; padding: .35rem 1rem; font-size: .9rem; }
.link { border: 0; background: none; padding: .5rem 0; color: var(--muted); font-size: .95rem; }
.link:hover { color: var(--text); }

/* ---------- the name (Michroma + drawn Λ) ---------- */
.lam { display: inline-block; width: .9em; height: .77em; margin-inline-end: .3em; vertical-align: 0; }
.lam polygon { fill: currentColor; } /* legs as thick as Michroma's stems, feet flat on the baseline */

/* ---------- top bar ---------- */
.bar { position: fixed; top: 0; inset-inline: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 64px; padding: 0 var(--gutter); background: rgba(250,250,250,.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.bar-links { display: flex; gap: 1.6rem; font-size: .92rem; color: var(--muted); }
.bar-links a { text-decoration: none; }
.bar-links a:hover { color: var(--text); }
.mark { grid-column: 2; text-decoration: none; font-family: var(--f-logo); font-size: .95rem; letter-spacing: .3em; margin-inline-end: -.3em; white-space: nowrap; opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s; pointer-events: none; }
.bar.scrolled .mark { opacity: 1; transform: none; pointer-events: auto; }
.bar-end { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: .5rem; }
.lang { min-width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 500; font-size: .82rem; }
.lang:hover { border-color: var(--text); }
@media (max-width: 760px) {
  .bar { grid-template-columns: auto 1fr; }
  .bar-links { display: none; }
  .mark { grid-column: 1; font-size: .78rem; }
  .bar-end { grid-column: 2; }
}

/* ---------- hero: name, line, globe ---------- */
.hero { padding: clamp(112px, 17svh, 160px) var(--gutter) 0; text-align: center; display: grid; justify-items: center; }
.wm { line-height: 1; font-family: var(--f-logo); font-weight: 400; font-size: clamp(1.45rem, 5.6vw, 4.6rem); letter-spacing: .3em; margin-inline-end: -.3em; white-space: nowrap; }
.wm-word { display: inline-block; }
.hero-sub { margin-top: 1.1rem; color: var(--muted); font-size: clamp(1rem, 2.2vw, 1.25rem); }
.hero .tag { margin-top: clamp(2.4rem, 6svh, 3.6rem); }
.hero > .btn { margin-top: .4rem; }

/* the small pill label above section titles (■ + caps-ish text) */
.tag { display: inline-flex; align-items: center; gap: .55rem; padding: .3rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: .8rem; font-weight: 500; letter-spacing: .04em; }
.tag::before { content: ""; width: 7px; height: 7px; background: var(--text); border-radius: 1px; }
html[lang="en"] .tag { text-transform: uppercase; letter-spacing: .12em; }

.globe { position: relative; width: min(100%, 820px); height: clamp(360px, 50svh, 480px); }

/* the business pills on the globe; site.js places them every frame */
.pill { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.4rem; border-radius: 999px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 10px 24px -14px rgba(0,0,0,.25), inset 0 0 0 1px var(--line); color: var(--text); text-decoration: none; font-weight: 500; font-size: clamp(1rem, 2vw, 1.2rem); white-space: nowrap; will-change: transform, opacity; transition: background-color .2s, color .2s; }
.pill::after { content: "↗"; color: var(--soft); font-size: .85em; }
.pill:hover, .pill:focus-visible { background: var(--text); color: #fff; }
.pill:hover::after, .pill:focus-visible::after { color: #fff; }
@media (max-width: 560px) {
  .globe { height: 400px; }
  .pill { padding: .5rem .85rem; font-size: .84rem; gap: .35rem; }
}

/* ---------- sections ---------- */
.sec { padding: clamp(5rem, 12vw, 8.5rem) var(--gutter) 0; text-align: center; display: grid; justify-items: center; }
.title { margin-top: 1.2rem; max-width: 24ch; text-wrap: balance; font-size: clamp(2rem, 5.4vw, 4rem); font-weight: 700; line-height: 1.12; letter-spacing: -.01em; }
html[lang="en"] .title { letter-spacing: -.035em; max-width: 22ch; }
.title em { display: block; font-style: normal; color: var(--soft); }

/* ---------- quote questions ---------- */
.wiz { position: relative; width: min(100%, 720px); margin-top: clamp(2rem, 5vw, 3rem); padding: clamp(1.6rem, 4vw, 2.6rem); border-radius: 28px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 24px 60px -36px rgba(0,0,0,.3); }
.wiz-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 1.4rem; }
.wiz-dots li { width: 6px; height: 6px; border-radius: 50%; background: var(--surface-2); transition: background-color .3s, width .3s; }
.wiz-dots li.on { width: 18px; border-radius: 3px; background: var(--text); }
.wiz-step { margin: 0; padding: 0; border: 0; min-width: 0; animation: wizIn .35s cubic-bezier(.2,.7,.1,1); }
.wiz-step legend { padding: 0; width: 100%; font-size: clamp(1.35rem, 3vw, 1.8rem); font-weight: 600; line-height: 1.3; }
.wiz-hint { margin-top: .35rem; color: var(--muted); font-size: .95rem; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; margin-top: 1.4rem; }
.chip { min-height: 48px; padding: .5rem 1.25rem; border: 0; border-radius: 999px; background: var(--surface); font-size: 1rem; transition: background-color .2s, color .2s, transform .15s; }
.chip:hover { background: var(--surface-2); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--text); color: #fff; }
.wiz-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.6rem; }
.wiz-nav:has(> :only-child) { justify-content: center; }
.input { width: min(100%, 420px); min-height: 52px; margin-top: 1.4rem; padding: .6rem 1.2rem; border: 0; border-radius: 999px; background: var(--surface); font: inherit; color: inherit; text-align: center; }
.input:focus { outline: 2px solid var(--text); outline-offset: 2px; background: #fff; }
.wiz-done { animation: wizIn .35s cubic-bezier(.2,.7,.1,1); }
.wiz-done-h { font-size: clamp(1.35rem, 3vw, 1.8rem); font-weight: 600; }
.wiz-done .link { margin-top: 1rem; }
@keyframes wizIn { from { opacity: 0; transform: translateY(10px); } }

/* ---------- what we build: three columns ---------- */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); width: min(100%, 1240px); margin-top: clamp(2.4rem, 6vw, 4rem); text-align: start; }
.col { display: flex; flex-direction: column; gap: 1rem; padding: 0 clamp(1.2rem, 3vw, 2.6rem); }
.col + .col { border-inline-start: 1px solid var(--line); }
.col h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; line-height: 1.15; }
.col p { color: var(--muted); max-width: 34ch; }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.tags li { padding: .35rem .9rem; border-radius: 999px; background: var(--surface); font-size: .9rem; }
@media (max-width: 900px) {
  .cols { grid-template-columns: 1fr; gap: 3rem; }
  .col { padding: 0; }
  .col + .col { border: 0; padding-top: 3rem; border-top: 1px solid var(--line); }
}

/* small previews of what a client gets, with sample text (no real client's screenshots) */
.mock { position: relative; margin-top: auto; height: 250px; border-radius: 18px; background: var(--surface); overflow: hidden; font-size: 11px; line-height: 1.35; }
.mock b, .mock span, .mock em, .mock u { font-style: normal; text-decoration: none; }
/* a website */
.mock-site { padding: 12px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 8px; }
.ms-top { display: flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px; background: #fff; color: var(--soft); }
.ms-top i { width: 6px; height: 6px; border-radius: 50%; background: var(--surface-2); }
.ms-top span { margin-inline-start: auto; font-family: var(--f-latin); font-size: 10px; }
.ms-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 4px; }
.ms-nav b { font-weight: 700; font-size: 12px; } .ms-nav span { color: var(--muted); font-size: 10px; }
.ms-hero { display: grid; align-content: center; gap: 4px; padding: 14px 16px; border-radius: 12px; background: var(--text); color: #fff; }
.ms-hero b { font-size: 19px; font-weight: 700; line-height: 1.2; }
.ms-hero span { color: #a6a9af; font-size: 11px; }
.ms-hero em { display: flex; gap: 6px; margin-top: 6px; }
.ms-hero u { padding: 4px 11px; border-radius: 999px; background: #fff; color: var(--text); font-weight: 600; font-size: 10.5px; }
.ms-hero u + u { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px #4a4d52; }
.ms-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ms-quick span { padding: 6px 0; border-radius: 9px; background: #fff; text-align: center; font-weight: 500; }
/* a phone with a booking */
.mock-phone { display: flex; justify-content: center; padding-top: 14px; }
.mp { position: relative; width: 168px; height: 290px; padding: 26px 12px 0; border-radius: 28px; background: #fff; box-shadow: inset 0 0 0 5px var(--text); display: flex; flex-direction: column; gap: 9px; }
.mp-notch { position: absolute; top: 10px; left: calc(50% - 22px); width: 44px; height: 8px; border-radius: 999px; background: var(--text); }
.mp-h { font-size: 13px; font-weight: 700; text-align: center; }
.mp-days { display: flex; gap: 4px; justify-content: center; }
.mp-days span { padding: 4px 6px; border-radius: 8px; background: var(--surface); font-size: 9.5px; white-space: nowrap; }
.mp-days .on, .mp-slots .on { background: var(--text); color: #fff; }
.mp-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.mp-slots span { padding: 5px 0; border-radius: 8px; background: var(--surface); text-align: center; font-family: var(--f-latin); font-size: 10.5px; }
.mp-slots .off { color: var(--soft); text-decoration: line-through; background: #f7f7f8; }
.mp-pick { display: grid; gap: 1px; padding: 8px 10px; border-radius: 10px; background: var(--surface); }
.mp-pick span:first-child { font-weight: 600; font-size: 11px; } .mp-pick span + span { color: var(--muted); font-size: 10px; }
.mp-btn { margin-top: 2px; padding: 7px 0; border-radius: 999px; background: var(--text); color: #fff; text-align: center; font-size: 11px; font-weight: 600; }
/* an admin page */
.mock-admin { display: grid; grid-template-columns: 30% 1fr; gap: 8px; padding: 12px; }
.ma-side { display: flex; flex-direction: column; gap: 4px; padding: 10px 8px; border-radius: 12px; background: #fff; }
.ma-side b { margin-bottom: 4px; font-size: 11.5px; font-weight: 700; }
.ma-side span { padding: 5px 7px; border-radius: 7px; color: var(--muted); }
.ma-side .on { background: var(--surface); color: var(--text); font-weight: 600; }
.ma-main { display: flex; flex-direction: column; gap: 7px; }
.ma-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 2px 4px; }
.ma-head b { font-size: 13px; font-weight: 700; }
.ma-head u { padding: 4px 10px; border-radius: 999px; background: var(--text); color: #fff; font-size: 10px; font-weight: 600; }
.ma-row { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 9px 10px; border-radius: 10px; background: #fff; }
.ma-row em { flex: none; padding: 2px 8px; border-radius: 999px; background: var(--surface); font-size: 9.5px; color: var(--text); }
.ma-row em.draft { color: var(--soft); }

/* ---------- how it works: dark step cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; width: min(100%, 1240px); margin-top: clamp(2.4rem, 6vw, 4rem); text-align: start; }
.card { display: flex; flex-direction: column; gap: .7rem; padding: 1.4rem; border-radius: var(--radius); background: var(--dark) radial-gradient(120% 80% at 100% 0%, #24262a 0%, transparent 60%); color: #f2f2f3; box-shadow: 0 30px 60px -40px rgba(0,0,0,.6); }
.card small { display: flex; align-items: center; gap: .6rem; color: #a6a9af; font-size: .8rem; letter-spacing: .1em; }
.card small::before { content: ""; width: 14px; height: 2px; background: #f2f2f3; }
.card h3 { margin-top: .4rem; font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
.card p { color: #a6a9af; font-size: .95rem; }
@media (max-width: 1000px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.viz { height: 132px; display: grid; gap: 6px; align-content: start; }
.viz i { display: block; border-radius: 8px; background: #1f2124; box-shadow: inset 0 0 0 1px #2c2e32; font-style: normal; }
.viz-list i { padding: .3rem .7rem; font-size: .82rem; color: #d7d8db; display: flex; align-items: center; gap: .5rem; }
.viz-list i::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #f2f2f3; }
.viz-doc { padding: 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px #2c2e32; }
.viz-doc i { height: 9px; } .viz-doc i:nth-child(2) { width: 80%; } .viz-doc i.s { width: 55%; }
.viz-doc b { justify-self: center; width: 60%; height: 26px; margin-top: 10px; border-radius: 8px; background: #e9e9eb; }
.viz-screens { grid-template-columns: 1fr 1fr .8fr; align-items: stretch; }
.viz-screens i { height: 120px; } .viz-screens i.on { height: 90px; align-self: center; background: #6c6f75; }
.viz-live { padding: 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px #2c2e32; }
.viz-live i { height: 56px; }
.viz-live b { font-weight: 400; font-size: .82rem; color: #a6a9af; display: flex; align-items: center; gap: .45rem; }
.viz-live b::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #f2f2f3; animation: blink 2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }

/* ---------- FAQ ---------- */
.faq { width: min(100%, 780px); margin-top: clamp(2rem, 5vw, 3.4rem); text-align: start; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem .2rem; font-weight: 500; font-size: 1.08rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 300; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 .2rem 1.3rem; color: var(--muted); max-width: 62ch; }
.faq details p a { color: var(--text); margin-inline-start: .3rem; }

/* ---------- last call ---------- */
.end { padding-bottom: clamp(5rem, 12vw, 8rem); }
.end-act { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 2rem; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: clamp(2.6rem, 6vw, 4rem) var(--gutter) 1.6rem; font-size: .95rem; }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; width: min(100%, 1240px); margin: 0 auto; }
.foot-brand p { margin-top: .9rem; color: var(--muted); max-width: 32ch; }
.foot-mark { font-family: var(--f-logo); font-size: 1rem; letter-spacing: .3em; white-space: nowrap; }
.foot h4 { margin-bottom: .8rem; color: var(--muted); font-size: .78rem; font-weight: 600; letter-spacing: .1em; }
.foot-in a { display: block; padding: .25rem 0; color: var(--muted); text-decoration: none; }
.foot-in a:hover { color: var(--text); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; width: min(100%, 1240px); margin: 2.6rem auto 0; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
@media (max-width: 700px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.1,1), transform .7s cubic-bezier(.2,.7,.1,1); }
.reveal.in { opacity: 1; transform: none; }
.cards .card:nth-child(2), .cols .col:nth-child(2) { transition-delay: .08s; }
.cards .card:nth-child(3), .cols .col:nth-child(3) { transition-delay: .16s; }
.cards .card:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wiz-step, .wiz-done { animation: none; }
  .viz-live b::before { animation: none; }
}
