/* Luqta website. Shared styles for every public page. */
/* The new Saudi riyal sign, from the same font the app uses. It only covers that one character. */
@font-face { font-family: 'SaudiRiyal'; src: url('/fonts/saudi-riyal.woff2') format('woff2'); font-weight: 400; unicode-range: U+20C1; font-display: swap; }
@font-face { font-family: 'SaudiRiyal'; src: url('/fonts/saudi-riyal-bold.woff2') format('woff2'); font-weight: 700; unicode-range: U+20C1; font-display: swap; }
:root {
  --m: #7D1C34;          /* maroon */
  --m-tint: #F8E9EF;
  --m-line: #E7C6D3;
  --cream: #F3E9E4;
  --blush: #F3D5E1;
  --ink: #1E1E1E;
  --mut: #5E5257;
  --bg: #FAF6F2;
  --card: #FFFFFF;
  --line: #EFE4DE;
  --r: 10px;             /* the app's squarer corners */
  --max: 1080px;
  --en-head: 'Unbounded', system-ui, sans-serif;
  --ar: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--ink); font: 15px/1.6 var(--body); }
html.ar body { font-family: var(--ar); font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

/* One language at a time. Text comes in pairs: lang="en" and lang="ar". */
html:not(.ar) body [lang="ar"] { display: none !important; }
html.ar body [lang="en"] { display: none !important; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.mut { color: var(--mut); }
.head { font-family: var(--en-head); font-weight: 700; letter-spacing: 0; line-height: 1.25; }
html.ar .head { font-family: var(--ar); font-weight: 700; }
.h2 { font-size: 22px; margin-bottom: 12px; }
.h3 { font-size: 15px; margin-bottom: 4px; }
section { padding: 64px 0; }
section + section { padding-top: 0; }

/* Wordmark: "luq" cream, "ta" black, always left to right */
.wm { font-family: var(--en-head); font-weight: 800; letter-spacing: -0.02em; line-height: 1; direction: ltr; unicode-bidi: isolate; text-decoration: none; white-space: nowrap; }
.wm .a { color: var(--cream); }
.wm .b { color: var(--ink); }
.wm.on-light .a { color: var(--m); }

/* Top bar */
.top { background: var(--m); color: var(--cream); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav .wm { font-size: 22px; }
.links { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.links a { text-decoration: none; color: var(--blush); }
.links a:hover, .links a[aria-current] { color: var(--cream); }
.lang { background: none; border: 1px solid rgba(243, 233, 228, .45); color: var(--cream); border-radius: 8px; height: 32px; padding: 0 12px; font: inherit; font-size: 13px; cursor: pointer; }
.lang:hover { border-color: var(--cream); }
.menu-btn { display: none; }

/* Buttons: outline or tint, never solid maroon */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: var(--r); border: 1px solid var(--m); color: var(--m); background: transparent; font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--m-tint); }
.btn.light { border-color: var(--cream); color: var(--cream); }
.btn.light:hover { background: rgba(243, 233, 228, .12); }
.btn[disabled] { opacity: .55; cursor: default; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px; padding-top: 0; padding-bottom: 32px; }
.hero .wm { font-size: clamp(56px, 9vw, 96px); }
.tag { font-size: clamp(20px, 2.6vw, 28px); color: var(--cream); margin: 18px 0 10px; }
.lead { color: var(--blush); font-size: 17px; max-width: 30em; }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; }
.badge { position: relative; display: block; height: 46px; }
.badge img { height: 100%; width: auto; }
.badge.soon img { opacity: .55; }
.soon-note { font-size: 13px; color: var(--blush); }
.hero-bg { overflow: hidden; }
header.top { position: relative; z-index: 2; } /* the arm slides in under the top bar */
.art { position: relative; width: 100%; max-width: 500px; aspect-ratio: 1; margin-inline-start: 0; direction: ltr; }
@media (min-width: 821px) {
  .art { margin-top: -20px; max-width: 460px; } /* room for the arm, which starts above the drawing */
  html.ar .art { margin-inline-start: auto; margin-inline-end: 0; }
}

/* Who we are */
.who > div { max-width: 680px; }
.who p.big { font-size: 18px; line-height: 1.65; }
html.ar .who p.big { font-size: 19px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.card .num { font-family: var(--en-head); font-weight: 700; font-size: 34px; color: var(--m); line-height: 1; margin-bottom: 16px; opacity: .85; }

/* Features carousel */
.tabs { display: flex; gap: 8px; margin: 4px 0 20px; }
.tab { height: 38px; padding: 0 16px; border-radius: 8px; border: 1px solid #D9CFC9; background: #fff; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.tab[aria-selected="true"] { border-color: var(--m); background: var(--m-tint); color: var(--m); font-weight: 600; }
.car { position: relative; }
.track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px; }
.track::-webkit-scrollbar { display: none; }
.track .card { flex: 0 0 calc((100% - 28px) / 3); scroll-snap-align: start; min-height: 190px; }
.car-ctl { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.arrow { width: 36px; height: 36px; border-radius: 8px; border: 1px solid #D9CFC9; background: #fff; color: var(--m); font-size: 18px; cursor: pointer; }
html.ar .arrow { transform: scaleX(-1); }
.dots { display: flex; gap: 6px; }
.dot { width: 7px; height: 7px; border-radius: 4px; background: #E2CFD6; border: 0; padding: 0; cursor: pointer; transition: width .2s, background .2s; }
.dot.on { width: 20px; background: var(--m); }

/* Values */
.vals .card .head { color: var(--m); }

/* Be a seller */
.seller { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 36px; }
form .row { display: grid; gap: 6px; margin-bottom: 14px; }
label { font-size: 13px; color: var(--mut); }
input, select, textarea { height: 46px; border: 1px solid #DCD2CC; border-radius: var(--r); padding: 0 14px; font: inherit; font-size: 15px; background: #fff; color: var(--ink); width: 100%; }
textarea { height: 84px; padding: 10px 14px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--m); box-shadow: 0 0 0 3px var(--m-tint); }
input[dir="ltr"] { text-align: start; }
html.ar input[dir="ltr"] { text-align: right; }
.err { color: #B42318; font-size: 13px; min-height: 18px; }
.done { display: none; text-align: center; padding: 24px 8px; }
.done .tick { width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid var(--m); color: var(--m); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 24px; }
.sent form { display: none; }
.sent .done { display: block; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }

/* Footer */
footer { background: var(--ink); color: #C9BFC3; padding: 34px 0; font-size: 14px; margin-top: 64px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot a { color: var(--blush); text-decoration: none; }
.foot a:hover { color: #fff; }
.foot .wm .b { color: #fff; }

/* Simple inner pages */
.page-head { padding-top: 44px; padding-bottom: 40px; }
.page-head h1 { font-size: clamp(26px, 4vw, 36px); color: var(--cream); }
.page-head p { color: var(--blush); margin-top: 10px; max-width: 34em; }
.steps { counter-reset: s; display: grid; gap: 12px; }
.step { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; }
.step .n { font-family: var(--en-head); font-weight: 700; font-size: 24px; color: var(--m); line-height: 1.2; }
.note { background: var(--m-tint); border: 1px solid var(--m-line); border-radius: 12px; padding: 18px 20px; }

/* Legal pages */
.legal { max-width: 760px; }
.legal h2 { font-size: 17px; margin: 32px 0 8px; }
.legal p, .legal li { color: #2E2A2C; }
.legal ul { padding-inline-start: 20px; margin: 8px 0; }
.legal li { margin: 4px 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 14px; background: #fff; }
.legal th, .legal td { text-align: start; border: 1px solid var(--line); padding: 9px 10px; vertical-align: top; }
.legal th { background: #F6F0EC; font-weight: 600; }
.legal .meta { color: var(--mut); font-size: 14px; }
.table-scroll { overflow-x: auto; }

/* Share page */
.share { min-height: 100vh; min-height: 100dvh; background: var(--m); color: var(--cream); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 20px; text-align: center; }
.share .wm { font-size: 44px; }
.share .tag { font-size: 16px; margin: 10px 0 26px; }
.pcard { width: 100%; max-width: 340px; background: var(--card); color: var(--ink); border-radius: 16px; overflow: hidden; text-align: start; margin-bottom: 22px; display: none; }
.pcard.on { display: block; }
.pcard .ph { aspect-ratio: 4 / 5; background: #EFE4DE center / cover no-repeat; }
.pcard .ph.round { aspect-ratio: auto; height: 120px; display: flex; align-items: center; justify-content: center; background: var(--m-tint); }
.pcard .ph.round span { width: 84px; height: 84px; border-radius: 50%; background: #E2CFD6 center / cover no-repeat; border: 3px solid #fff; }
.pcard .bd { padding: 14px 16px 16px; }
.pcard .t { font-weight: 600; font-size: 16px; }
.pcard .s { color: var(--mut); font-size: 14px; margin-top: 2px; }
.pcard .p { font-weight: 700; margin-top: 8px; display: flex; align-items: baseline; gap: 4px; }
.pcard .p .rs { font-family: 'SaudiRiyal', sans-serif; font-size: 1.25em; font-weight: 700; line-height: 1; }
.share .msg { font-size: 15px; margin-bottom: 18px; opacity: .92; }
.share .badges { justify-content: center; margin-top: 4px; }
.share .home { margin-top: 26px; font-size: 14px; color: var(--blush); }

/* Phones */
@media (max-width: 820px) {
  section { padding: 44px 0; }
  .links a.hide-sm { display: none; }
  .hero { grid-template-columns: 1fr; padding: 20px 0 40px; }
  .art { max-width: 340px; margin: 70px auto 0; }
  .seller { grid-template-columns: 1fr; gap: 20px; }
  .seller { padding: 22px; }
  .cards { grid-template-columns: 1fr; }
  .track .card { flex-basis: 84%; }
  .foot { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .links { gap: 14px; }
}

/* Rack drawing, ported from the app's welcome screen (components/WelcomeArt.tsx).
   Every layer covers the same square canvas; the hand is 2x wide and 1.25x tall. */
.art .ly { position: absolute; inset: 0; width: 100%; height: 100%; }
.art .rail { animation: rail .7s cubic-bezier(.4, 0, .2, 1) .1s both; }
.art .g { opacity: 0; animation: drop .5s cubic-bezier(.2, .8, .2, 1) both; }
.art .g0 { transform-origin: 33% 32.75%; animation-delay: .7s; }
.art .g1 { transform-origin: 41.25% 32.75%; animation-delay: .85s; }
.art .g2 { transform-origin: 64.25% 33%; animation-delay: 1s; }
.art .g3 { transform-origin: 72.5% 33.25%; animation-delay: 1.15s; }
.art .dress { transform-origin: 52.5% 21.25%; animation: dress 3.6s linear both; }
.art .dress .ly { transform-origin: 52.5% 21.25%; animation: sway 1.6s ease-in-out 3.6s infinite alternate; }
/* The hand's box is 2x wide; in Arabic it is mirrored around the dress hook so the arm comes in from the left. */
.art .handwrap { position: absolute; left: 0; top: -25%; width: 200%; height: 125%; transform-origin: 26.25% 37%; transform: rotate(11deg); }
html.ar .art .handwrap { transform: scaleX(-1) rotate(11deg); }
.art .hand { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; animation: hand 3.6s linear both; }
.art .spark { opacity: 0; animation: fadein .3s ease-out 3s both; }
.art .spark img { animation: twinkle 1.1s ease-in-out 3.3s infinite; }
@keyframes rail { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes drop {
  0% { opacity: 0; transform: translateY(-4.25%) rotate(-6deg); }
  60% { opacity: 1; transform: translateY(0) rotate(3deg); }
  100% { opacity: 1; transform: translateY(0) rotate(0); }
}
@keyframes dress {
  0%, 40.3% { opacity: 0; transform: translateY(2.75%) scale(.74) rotate(-11deg); }
  47.9% { opacity: 1; transform: translateY(7%) scale(.74) rotate(-2deg); animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
  55.6%, 75% { opacity: 1; transform: translateY(7%) scale(.74) rotate(-5deg); animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
  100% { opacity: 1; transform: translateY(-1.5%) scale(.9) rotate(0); }
}
@keyframes sway { from { transform: rotate(-1.8deg); } to { transform: rotate(1.8deg); } }
@keyframes hand {
  0%, 55.6% { opacity: 0; transform: translate(10%, -5.4%); animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
  75% { opacity: 1; transform: translate(0, 5.6%); animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
  100% { opacity: 1; transform: translate(0, -1.2%); }
}
@keyframes fadein { to { opacity: 1; } }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  .art *, .art { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
  html { scroll-behavior: auto; }
}
html.ar .hero .wm { display: block; text-align: right; }

/* Who we are: mission line above the values */
.who .kicker { color: var(--m); font-size: 14px; font-weight: 600; margin: 40px 0 8px; }
.who .mission { font-size: 22px; line-height: 1.3; margin-bottom: 22px; } /* same as the section headings */
.who .vals .head { color: var(--m); }
.foot .ig { display: inline-flex; align-items: center; color: var(--blush); }
.foot .ig:hover { color: #fff; }
.who > .vals { max-width: none; }
html.ar .pcard .p { direction: ltr; justify-content: flex-end; }

.share { position: relative; }
.share-lang { position: absolute; top: 16px; inset-inline-end: 16px; }

/* Inner pages: the header already leaves 40px below the title, so the first section starts right after it. */
div.top:has(.page-head) + main > section:first-child { padding-top: 0; }
