/* nakhoda.ae: one stylesheet. Black on warm off-white, Inter throughout
   (self-hosted, fonts/OFL.txt). The only colour is the soft rainbow glow
   under the main call to action (.glow). */

@font-face { font-family: "Inter"; src: url("/fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f7f7f5;
  --ink: #111111;
  --mute: #9a9a9a;
  --sub: #7b7b7b;
  --line: #e4e4e0;
  --card: #ffffff;
  --soft: #efefec;
  --sans: "Inter", system-ui, sans-serif;
  --r: 14px;
  --max: 1080px;
  --rainbow: linear-gradient(90deg, #ffcf5a, #7dffa8, #5ad7ff, #9b7bff, #ff6fd8, #ffb36b);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 400 16.5px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #000; }
h1, h2, h3 { font-weight: 500; color: var(--ink); line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }
h1 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 18px; }
h2 { font-size: clamp(26px, 2.8vw, 36px); margin: 0 0 14px; }
h3 { font-size: 18px; letter-spacing: -.015em; margin: 0 0 6px; }
p { margin: 0 0 14px; }
ul, ol { padding-left: 1.2em; }
main > * { max-width: var(--max); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
main > section, main > .closing { margin-top: 80px; }

/* Top bar. The links sit in a details element (src/layout.mjs): on a phone
   its summary is the Menu button; on a wider screen, in a browser that
   supports ::details-content, the button hides and the links sit on the bar. */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(247, 247, 245, .92); backdrop-filter: blur(8px); }
nav.top { display: flex; flex-wrap: wrap; align-items: center; max-width: var(--max); margin: 0 auto; padding: 14px 24px; min-height: 68px; font-size: 13.5px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.brand .mark { width: 18px; height: 18px; color: var(--ink); }
nav.top .menu { margin-left: auto; }
nav.top .menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; font: 500 13.5px/1 var(--sans); color: #fff; background: #111; }
nav.top .menu summary::-webkit-details-marker { display: none; }
nav.top .menu[open] { flex: 1 0 100%; }
nav.top .menu[open] summary { margin-left: auto; display: flex; width: max-content; }
nav.top .links { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; padding-top: 6px; border-top: 1px solid var(--line); }
nav.top .links a { display: flex; align-items: center; min-height: 48px; padding: 0 12px; border-radius: 10px; color: #3a3a3a; text-decoration: none; font-weight: 500; transition: color .2s; }
nav.top .links a:hover { color: #000; background: var(--soft); }
nav.top .links a[aria-current="page"] { color: #000; }
@supports selector(::details-content) {
  @media (min-width: 761px) {
    nav.top .menu, nav.top .menu[open] { flex: 0 1 auto; margin-left: auto; }
    nav.top .menu summary { display: none; }
    nav.top .menu::details-content { content-visibility: visible; }
    nav.top .links { flex-direction: row; margin: 0; padding: 0; border-top: 0; gap: clamp(8px, 1.8vw, 28px); }
    nav.top .links a { min-height: 44px; padding: 0 4px; font-size: 13.5px; }
    nav.top .links a:hover { background: none; }
    nav.top .links a[aria-current="page"] { box-shadow: inset 0 -1.5px 0 #111; border-radius: 0; }
  }
}

/* The page hero (every page but home) */
.hero { padding-top: 72px; padding-bottom: 8px; text-align: center; }
.kicker { font: 500 12.5px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin-bottom: 20px; }
.lede { font-size: 17px; color: var(--sub); max-width: 640px; margin-left: auto; margin-right: auto; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin: 30px 0 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 999px; background: #111; color: #fff; font-size: 14px; font-weight: 500; text-decoration: none; border: 1px solid #111; transition: transform .3s; }
.button:hover { color: #fff; transform: translateY(-1px); }
.button.ghost { background: transparent; color: var(--ink); border-color: #cfcfca; }
.button.ghost:hover { color: #000; border-color: #111; }

/* The rainbow underglow of the main call to action: the only colour on the site. */
.glow { display: inline-block; position: relative; }
.glow::before { content: ""; position: absolute; left: 10%; right: 10%; bottom: -6px; height: 16px; border-radius: 50%; background: var(--rainbow); filter: blur(9px); opacity: .85; transition: all .3s; }
.glow > a { position: relative; }
.glow:hover::before { opacity: 1; filter: blur(12px); bottom: -9px; }

/* The home hero: the dot-matrix hands (ui/hero.mjs) behind the copy. */
main > .hero-home { max-width: none; padding: 0; margin: 0; }
.hero-home { position: relative; height: calc(100svh - 68px); min-height: 640px; overflow: hidden; text-align: center; }
#dots { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-copy { position: absolute; z-index: 3; left: 50%; top: 17%; transform: translateX(-50%); width: min(92vw, 880px); }
.hero-copy h1 { font-size: clamp(36px, 3.4vw, 58px); margin: 0 auto; max-width: 880px; }
.hero-copy h1 .l1 { display: block; color: var(--mute); }
.hero-copy .lede { margin: 20px auto 0; max-width: 400px; font-size: clamp(13.5px, 1.02vw, 15.5px); line-height: 1.45; }
.hero-copy .glow { margin-top: clamp(30px, 3.4vw, 48px); }
.hero-alt { margin: 18px 0 0; font-size: 13px; color: var(--sub); }
.hero-alt a { color: var(--sub); }
.hero-names { position: absolute; z-index: 3; left: 0; bottom: clamp(24px, 5vh, 56px); width: 100%; padding: 0 16px; color: #8d8d8d; }
.hero-names p { font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; color: var(--mute); }
.hero-names ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px clamp(22px, 4vw, 56px); font-size: clamp(14px, 1.18vw, 17px); font-weight: 500; letter-spacing: -.01em; }

/* The four terms */
.terms { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); overflow: hidden; text-align: left; }
.terms > div { padding: 20px; border-left: 1px solid var(--line); }
.terms > div:first-child { border-left: 0; }
.terms dt { font: 500 11.5px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.terms dd { margin: 0; font-size: 14px; color: var(--sub); }
.terms dd strong { display: block; font-size: 19px; font-weight: 500; letter-spacing: -.02em; color: var(--ink); margin-bottom: 4px; }
main > .terms-wrap { margin-top: 56px; }

/* The short answer */
.answer > * { max-width: 820px; }
main > .answer { margin-top: 56px; padding: 28px 30px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); max-width: calc(var(--max) - 48px); }
.answer h2 { font-size: 22px; }
.answer p { font-size: 17px; }
.answer .answer-src { font-size: 13.5px; color: var(--sub); margin: 0; }

.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head p { color: var(--sub); }

/* The founder's work */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.work-card { padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.work-card h3 { font-size: 19px; }
.work-meta { font-size: 12.5px; font-weight: 500; color: var(--mute); margin-bottom: 10px; }
.work-card ul { margin: 8px 0 0; font-size: 14.5px; color: var(--sub); }
.quote { margin: 18px 0 0; padding: 28px 30px; background: #111; color: #d8d8d4; border-radius: var(--r); }
.quote blockquote { margin: 0; }
.quote blockquote p { font-size: 20px; line-height: 1.45; font-weight: 500; letter-spacing: -.02em; color: #fff; }
.quote figcaption { font-size: 14px; }
.quote figcaption a { color: #d8d8d4; }
.quotes .quote + .quote { margin-top: 12px; }

/* Lists of heading + text */
.pairs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 32px; }
.pairs li { padding: 18px 0 4px; border-top: 1px solid var(--line); }
.pairs p { color: var(--sub); font-size: 15.5px; }

.failure { padding: 30px; background: var(--soft); border-radius: var(--r); }
main > .failure { max-width: calc(var(--max) - 48px); }
.failure p { font-size: 17px; max-width: 820px; }
.guides { margin-top: 18px; font-size: 14.5px; }

/* Steps */
.steps > p { color: var(--sub); }
.steps ol { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.steps li { counter-increment: step; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.steps li::before { content: "0" counter(step); display: block; font-size: 13px; font-weight: 500; color: var(--mute); margin-bottom: 12px; }
.steps p { font-size: 14.5px; color: var(--sub); margin: 0; }

.wrong ul { max-width: 820px; }
.wrong li { margin-bottom: 8px; }

/* Questions */
.faq details { border-top: 1px solid var(--line); max-width: 860px; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 36px 18px 0; font-size: 17px; font-weight: 500; letter-spacing: -.015em; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 15px; font-size: 22px; font-weight: 400; color: var(--mute); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--sub); max-width: 760px; }

.sources ul, .related ul { font-size: 14.5px; }
.sources p { color: var(--sub); font-size: 14.5px; }
.related li { margin-bottom: 6px; }

/* Services and comparison */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; text-align: left; }
.service-card { display: block; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .3s; }
.service-card:hover { border-color: #111; transform: translateY(-1px); color: var(--ink); }
.service-card p { font-size: 14.5px; color: var(--sub); margin: 0; }
.service-card-wrap { display: flex; flex-direction: column; gap: 8px; }
.service-card-wrap .service-card { flex: 1; }
.band { font-size: 13.5px; color: var(--sub); margin: 0 4px; }
.prices-note p { max-width: 820px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 11.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
tbody th { font-weight: 500; }
tbody tr:last-child > * { border-bottom: 0; }
td:last-child, thead th:last-child { background: #111; color: #fff; font-weight: 500; }
thead th:last-child { color: #d8d8d4; }

/* About and work */
.founder p, .team p, .name p, .company p, .work-list > p { max-width: 820px; }
.cta-end .button { margin-bottom: 14px; }

/* The closing block: who reads the request, the form, the other routes */
.closing { padding-top: 40px; padding-bottom: 8px; }
.who-reads { max-width: 760px; margin: 0 0 24px; padding-left: 16px; border-left: 2px solid #111; font-size: 16.5px; }
.form-section { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; padding: 32px; background: #111; color: #d8d8d4; border-radius: 18px; }
.form-section h2 { color: #fff; }
.form-section a { color: #d8d8d4; }
.form-section > form, .form-section > .form-done { grid-column: 2; grid-row: 1; }
form.lead { display: grid; gap: 14px; }
form.lead label { display: grid; gap: 6px; }
.caption { font-size: 13.5px; font-weight: 500; color: #e8e8e4; }
.optional { font-weight: 400; opacity: .7; }
form.lead input, form.lead select, form.lead textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #333; border-radius: 10px; background: #fff; color: var(--ink); font: 400 16px/1.4 var(--sans); }
form.lead textarea { resize: vertical; }
form.lead button { min-height: 50px; border: 0; border-radius: 999px; background: #fff; color: #111; font: 500 15px/1 var(--sans); cursor: pointer; transition: transform .3s; }
form.lead button:hover { transform: translateY(-1px); }
form.lead button:disabled { opacity: .6; cursor: wait; }
.form-note { font-size: 12.5px; opacity: .8; margin: 0; }
.form-error { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fde8e8; color: #7a1414; }
.form-done { padding: 22px; border-radius: var(--r); background: rgba(255, 255, 255, .08); }
.form-done p { margin: 0; font-size: 17px; color: #fff; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-line { margin-top: 18px; color: var(--sub); }
.next { columns: 2; max-width: 600px; }

/* Privacy */
.cols { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; border-top: 1px solid var(--line); padding-top: 24px; }
main > .cols { margin-top: 32px; }
.cols h2 { font-size: 20px; }

/* Footer */
footer { margin-top: 100px; background: #111; color: #c9c9c5; }
.foot { max-width: var(--max); margin: 0 auto; padding: 44px 24px 32px; display: grid; gap: 18px; font-size: 14.5px; }
footer a { color: #e8e8e4; }
footer .brand { color: #fff; margin-bottom: 8px; }
footer .brand .mark { color: #fff; }
.footnav { margin: 0 0 8px; }
.foot-legal { font-size: 12.5px; opacity: .75; border-top: 1px solid #2a2a2a; padding-top: 16px; }

:focus-visible { outline: 2px solid #111; outline-offset: 3px; }
.form-section :focus-visible, footer :focus-visible { outline-color: #fff; }

@media (max-width: 900px) {
  .work-grid, .service-grid, .steps ol { grid-template-columns: 1fr 1fr; }
  .terms { grid-template-columns: 1fr 1fr; }
  .terms > div:nth-child(3) { border-left: 0; }
  .terms > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .form-section { grid-template-columns: 1fr; }
  .form-section > form, .form-section > .form-done { grid-column: 1; grid-row: auto; }
}
@media (max-width: 760px) {
  nav.top { padding: 14px 18px; }
  .hero-copy { top: 14%; }
  .hero-names ul { gap: 10px 22px; font-size: 13px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  main > * { padding-left: 18px; padding-right: 18px; }
  main > section, main > .closing { margin-top: 60px; }
  .hero { padding-top: 44px; }
  .lede { font-size: 16px; }
  .work-grid, .service-grid, .steps ol, .pairs, .cols { grid-template-columns: 1fr; }
  .terms { grid-template-columns: 1fr 1fr; }
  main > .answer, .failure, .quote, .form-section { padding: 22px 18px; }
  .next { columns: 1; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
