:root {
  color-scheme: light;
  --accent: #f54c00;
  --ink: #161616;
  --muted: #727272;
  --border: #e9e9e9;
  font-family: Almarai, Arial, sans-serif;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 56px 28px; background: #000; color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
svg { display: block; width: 24px; height: 24px; flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.business-card { width: min(100%, 1020px); display: grid; grid-template-columns: 42% 58%; grid-template-areas: "identity connections" "qr connections"; border: 1px solid #272727; border-radius: 24px; overflow: hidden; background: #1a1a1a; }
.identity { grid-area: identity; padding: 18px 24px 34px; color: #fff; }
.brand-heading { margin: 0; }
.brand-lockup { display: block; width: 100%; height: auto; }
.section-heading h2 span { color: var(--accent); }
.arabic, [lang="ar"] { letter-spacing: normal; }
.brand-url { margin: 16px 20px 0; color: #9b9b9b; font-size: 13px; line-height: 1.6; }

.connections { grid-area: connections; min-width: 0; padding: 46px 42px 28px; background: #fff; }
.eyebrow { margin: 0 0 12px; color: var(--muted); font-size: 11px; font-weight: 700; line-height: 1.5; letter-spacing: 2px; }
.section-heading h2 { margin: 0; font-size: 32px; font-weight: 800; line-height: 1.3; letter-spacing: -1px; }
.eyebrow { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.eyebrow .arabic { font-size: 12px; }
.section-heading { margin-bottom: 26px; }
.contact-links { display: grid; }
.contact-link { position: relative; display: flex; align-items: center; gap: 18px; min-height: 79px; border-bottom: 1px solid var(--border); transition: background-color 160ms ease; }
.contact-link:first-child { border-top: 1px solid var(--border); }
.link-icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border: 1px solid var(--border); border-radius: 14px; }
.link-copy { display: grid; min-width: 0; flex: 1; gap: 7px; padding: 12px 0; }
.link-label { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; font-size: 14px; line-height: 1.4; font-weight: 700; }
.link-label .arabic { font-size: 13px; }
.link-detail { font-size: 13px; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }
.link-arrow { color: #939393; flex: none; }
.link-arrow svg { width: 18px; height: 18px; }
.store-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.store-link { display: flex; align-items: flex-start; gap: 12px; min-width: 0; padding: 16px; border: 1px solid var(--border); border-radius: 12px; }
.store-link svg { width: 22px; height: 22px; }
.store-copy { display: grid; min-width: 0; gap: 6px; }
.store-name { font-size: 13px; line-height: 1.4; font-weight: 700; }
.store-ar { font-size: 12px; line-height: 1.5; text-align: left; }
.store-sample { color: var(--muted); font-size: 11px; line-height: 1.65; }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 13px 18px; border: 1px solid transparent; border-radius: 12px; font-size: 13px; line-height: 1.4; font-weight: 700; }
.button svg { width: 19px; height: 19px; }
.button-copy { display: grid; gap: 5px; text-align: center; }
.button-copy [lang="ar"] { font-size: 12px; line-height: 1.5; }
.button-primary { background: var(--accent); color: #000; flex: 1; }
.button-secondary { background: #fff; color: var(--ink); border-color: var(--border); }
.share-status { min-height: 17px; margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.share-link { width: 100%; padding: 10px; margin-top: 8px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; }

.qr-section { grid-area: qr; display: flex; align-items: center; align-self: end; gap: 22px; padding: 0 44px 46px; color: #fff; }
.qr-code { display: block; flex: none; width: 136px; height: 136px; border: 8px solid #fff; border-radius: 12px; background: #fff; }
.qr-copy { min-width: 0; }
.qr-copy h2 { margin: 0 0 10px; font-size: 16px; font-weight: 700; line-height: 1.35; }
.qr-copy p { margin: 0 0 16px; color: #a7a7a7; font-size: 13px; line-height: 1.65; }
.qr-copy .qr-title-ar { margin: 0 0 12px; color: #fff; font-size: 13px; text-align: left; }
.qr-download { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 12px; line-height: 1.4; color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.qr-download svg { width: 16px; height: 16px; }

@media (hover: hover) {
  .contact-link:hover { background: #fafafa; }
  .contact-link:hover .link-arrow, .qr-download:hover { color: var(--accent); }
  .button-primary:hover { background: #d94300; }
  .button-secondary:hover { background: #f6f6f6; }
  .store-link:hover { background: #fafafa; }
}

@media (max-width: 860px) and (min-width: 701px) {
  .identity { padding: 18px 16px 28px; }
  .connections { padding: 36px 28px 24px; }
  .qr-section { padding: 0 28px 36px; gap: 14px; }
  .qr-code { width: 105px; height: 105px; }
  .qr-copy h2 { font-size: 14px; }
  .qr-copy p { font-size: 12px; }
  .qr-download { font-size: 11px; }
}

@media (max-width: 700px) {
  body { display: block; padding: 0; }
  .business-card { width: min(100%, 520px); margin: 0 auto; grid-template-columns: minmax(0, 1fr); grid-template-areas: "identity" "connections" "qr"; border: 0; border-radius: 0; }
  .identity { padding: max(12px, env(safe-area-inset-top)) 0 12px; text-align: center; }
  .brand-url { display: none; }
  .connections { padding: 28px 26px 20px; }
  .section-heading { margin-bottom: 20px; }
  .section-heading h2 { font-size: 28px; }
  .eyebrow { font-size: 10px; margin-bottom: 8px; }
  .contact-link { min-height: 77px; gap: 15px; }
  .card-actions { margin-top: 24px; }
  .qr-section { padding: 28px 26px max(28px, env(safe-area-inset-bottom)); justify-content: center; gap: 28px; }
  .qr-code { width: 136px; height: 136px; }
}

@media (max-width: 359px) {
  .connections { padding-inline: 20px; }
  .link-icon { width: 40px; height: 40px; border-radius: 12px; }
  .contact-link { gap: 12px; }
  .button { padding-inline: 12px; gap: 7px; font-size: 12px; }
  .link-label { font-size: 13px; gap: 4px 8px; }
  .link-label .arabic { font-size: 12px; }
  .store-link { padding: 14px 10px; gap: 8px; }
  .qr-section { gap: 20px; padding-inline: 20px; }
  .qr-code { width: 124px; height: 124px; }
}

@media (prefers-reduced-motion: reduce) { .contact-link { transition: none; } }
