/* Golden Data — site styles */

:root {
  --ink: #141210;
  --ink-2: #1F1C18;
  --gold: #D4A22B;
  --gold-deep: #B08317;
  --paper: #F6F3EC;
  --white: #FFFFFF;
  --cream: #F3EEE2;
  --muted: #5E594F;
  --muted-on-ink: #A39E92;
  --rule: #D9D3C4;
  --rule-on-ink: #3A352E;
  --sans: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --arabic: "Noto Kufi Arabic", "Sora", system-ui, sans-serif;
  --wrap: 1120px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--gold); color: var(--ink); padding: 8px 14px; z-index: 10;
}
.skip:focus { left: 8px; }

/* Arabic-script text (Sorani and Arabic) */
[lang="ckb"], [lang="ar"] { font-family: var(--arabic); }
.rtl { direction: rtl; text-align: right; }

/* ---------- header ---------- */
.site-header { background: var(--ink); color: var(--cream); }
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px 32px; min-height: 76px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px;
}
.brand { display: block; flex: none; }
.brand img { height: 30px; width: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 28px; }
.site-nav a {
  color: var(--cream); text-decoration: none; font-size: 15px;
  display: inline-block; padding: 10px 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--gold); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--gold); }

/* ---------- hero (home) ---------- */
.hero { background: var(--ink); color: var(--cream); padding: 72px 0 80px; border-top: 1px solid var(--rule-on-ink); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.hero h1 { color: var(--white); max-width: 12ch; }
.hero .lead { margin-top: 22px; font-size: 1.15rem; color: var(--cream); max-width: 34rem; }
.hero .actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.hero .other-langs { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--rule-on-ink); padding-top: 22px; }
.hero .other-langs p { font-size: 1.3rem; line-height: 1.7; color: var(--cream); }
.hero .other-langs p:last-child { color: var(--muted-on-ink); font-size: 1.1rem; }
.facts {
  margin-top: 64px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
  border-top: 1px solid var(--rule-on-ink); padding-top: 24px;
}
.facts dt { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; color: var(--gold); }
.facts dd { margin: 4px 0 0; color: var(--muted-on-ink); font-size: 15px; }

.btn {
  display: inline-block; background: var(--gold); color: var(--ink); font-weight: 600;
  text-decoration: none; padding: 13px 22px; border-radius: 2px; font-size: 16px;
}
.btn:hover { background: var(--cream); color: var(--ink); }
.text-link { color: var(--cream); font-size: 16px; }
.text-link:hover { color: var(--gold); }

/* ---------- page head (inner pages) ---------- */
.page-head { background: var(--ink); color: var(--cream); padding: 56px 0 60px; border-top: 1px solid var(--rule-on-ink); }
.page-head h1 { color: var(--white); }
.page-head .lead { margin-top: 16px; color: var(--cream); font-size: 1.1rem; max-width: 40rem; }
.page-head .alt { margin-top: 14px; color: var(--muted-on-ink); font-size: 1.15rem; line-height: 1.8; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section.white { background: var(--white); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 32px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head p { color: var(--muted); max-width: 36rem; }
.h-alt { font-weight: 400; color: var(--muted); font-size: 0.7em; letter-spacing: 0; margin-inline-start: 0.4em; unicode-bidi: isolate; white-space: nowrap; }

.prose { max-width: 44rem; }
.prose p + p { margin-top: 1.1em; }
.prose .lead { font-size: 1.2rem; line-height: 1.55; }
.prose h2 { margin: 56px 0 16px; }
.prose h2:first-child { margin-top: 0; }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; }

/* ---------- link list (services from the old home page) ---------- */
.link-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; }
.link-list li { border-top: 1px solid var(--rule); }
.link-list a {
  display: flex; flex-direction: column; gap: 4px; padding: 20px 0 24px;
  text-decoration: none; color: var(--ink); min-height: 44px;
}
.link-list a:hover .t { color: var(--gold-deep); }
.link-list .t { font-weight: 600; font-size: 1.1rem; letter-spacing: -0.01em; }
.link-list .s { color: var(--muted); font-size: 15px; text-align: left; }
.link-list .t::after { content: " →"; color: var(--gold-deep); }

/* ---------- features grid ---------- */
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.features li { border-top: 2px solid var(--ink); padding-top: 16px; }
.features h3 { margin-bottom: 8px; }
.features p { color: var(--muted); font-size: 15.5px; }

/* ---------- packages ---------- */
.plans { list-style: none; margin: 0; padding: 0; }
.plan {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.8fr) minmax(0, 0.9fr) minmax(0, 1.6fr);
  gap: 16px 32px; padding: 28px 0; border-top: 1px solid var(--rule); align-items: baseline;
}
.plans .plan:last-child { border-bottom: 1px solid var(--rule); }
.plan h3 { font-size: 1.35rem; }
.plan .speed { font-size: 1.9rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.plan .speed span, .plan .price span { font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan .price { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; }
.plan ul { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.plan ul li::before { content: "·"; color: var(--gold-deep); font-weight: 600; margin-right: 8px; }
.plan .label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.note { margin-top: 20px; color: var(--muted); font-size: 15px; }

.table-box { overflow-x: auto; border-top: 2px solid var(--ink); }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 15px; }
th, td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
thead th { font-weight: 600; font-size: 13px; color: var(--muted); }
tbody th { font-weight: 600; }
td.num, th.num { text-align: right; padding-right: 0; white-space: nowrap; }

/* ---------- areas ---------- */
.areas { list-style: none; margin: 0; padding: 0; columns: 4 180px; column-gap: 32px; }
.areas li { padding: 8px 0; border-top: 1px solid var(--rule); break-inside: avoid; }

/* ---------- guides ---------- */
.lang-switch { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 24px; }
.lang-switch a { color: var(--cream); font-size: 15px; padding: 6px 0; }
.lang-switch a:hover { color: var(--gold); }
.guide + .guide { margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--rule); }
.guide h2 { margin-bottom: 28px; }
.guide h2[lang="ckb"], .guide h2[lang="ar"] { line-height: 1.5; letter-spacing: 0; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; max-width: 46rem; }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 16px;
  padding: 18px 0; border-top: 1px solid var(--rule); font-size: 1.05rem;
}
.steps li::before { content: counter(step); font-weight: 600; color: var(--gold-deep); font-size: 1.3rem; line-height: 1.4; }
.steps[lang="ckb"] li, .steps[lang="ar"] li { line-height: 1.95; font-size: 1.1rem; }
.steps[lang="ar"] li::before { content: counter(step, arabic-indic); }
.steps[lang="ckb"] li::before { content: counter(step, arabic-indic); }
code, .key {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.9em;
  background: var(--white); border: 1px solid var(--rule); padding: 1px 7px; border-radius: 2px;
  direction: ltr; unicode-bidi: isolate; white-space: nowrap;
}
.guide-nav { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.guide-nav a { color: var(--cream); font-size: 15px; }
.guide-nav a:hover, .guide-nav a[aria-current="page"] { color: var(--gold); }

/* ---------- contact ---------- */
.contact-list { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 12px 28px; }
.contact-list dt { color: var(--muted); font-size: 15px; }
.contact-list dd { margin: 0; }
.contact-list a { color: var(--ink); }
.contact-list a:hover { color: var(--gold-deep); }
.map { border: 0; width: 100%; height: 420px; display: block; background: var(--rule); }

/* ---------- contact strip ---------- */
.strip { background: var(--white); }
.strip .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 40px; padding-bottom: 40px; }
.strip dt { font-size: 13px; color: var(--muted); }
.strip dd { margin: 4px 0 0; font-weight: 600; }
.strip a { color: var(--ink); text-decoration: none; }
.strip a:hover { color: var(--gold-deep); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-on-ink); font-size: 15px; padding: 64px 0 40px; }
.site-footer .cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-footer img { height: 28px; width: auto; }
.site-footer .tag { margin-top: 16px; max-width: 22rem; }
.site-footer h2 { font-size: 13px; font-weight: 600; color: var(--cream); letter-spacing: 0; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.site-footer a { color: var(--muted-on-ink); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .base { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--rule-on-ink); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .link-list, .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .plan ul { grid-column: 1 / -1; }
  .two-col { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .strip .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .brand img { height: 26px; }
  .site-header .bar { min-height: 0; }
  .site-nav ul { gap: 0 20px; }
  .hero { padding: 48px 0 56px; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 44px; }
  .section { padding: 52px 0; }
  .link-list, .features { grid-template-columns: minmax(0, 1fr); }
  .plan { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .h-alt { display: block; margin: 8px 0 0; text-align: left; }
  .strip .wrap { grid-template-columns: minmax(0, 1fr); }
  .site-footer .cols { grid-template-columns: minmax(0, 1fr); }
  .contact-list { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .contact-list dd { margin-bottom: 12px; }
  .map { height: 320px; }
}
