/* dardoor.iq landing page. Colours are the app theme (mobile/packages/core/src/theme.tsx) plus the logo's peach
   and orange, which are used for decoration only. Radius rule: buttons and controls 14px, cards 22px, phones 44px. */
:root {
  --bg: #f5f8f6;
  --surface: #ffffff;
  --ink: #102628;
  --muted: #47605f;
  --line: #dbe5e2;
  --primary: #0b4a3a;
  --primary-hover: #0e5d49;
  --on-primary: #ffffff;
  --tint: #e2efe9;
  --warm: #ffe3cf;
  --peach: #ffd3b5;
  --sun: #f96732;
  --deep: #0b4a3a;
  --on-deep: #f2faf7;
  --frame: #14211f;
  --shadow: 0 24px 60px -24px rgb(11 74 58 / 0.35);
  --cloud: #c3d6ff;
  --r-control: 14px;
  --r-card: 22px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1819;
    --surface: #182324;
    --ink: #eaf2f2;
    --muted: #a9bdbe;
    --line: #2b3b3c;
    --primary: #6bc3a3;
    --primary-hover: #85d3b6;
    --on-primary: #06241b;
    --tint: #12332a;
    --warm: #3a2a1f;
    --peach: #5a3b2a;
    --deep: #14463a;
    --frame: #050a0a;
    --shadow: 0 24px 60px -24px rgb(0 0 0 / 0.7);
    --cloud: #2c4266;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Site', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }
[dir='ltr'] h1, [dir='ltr'] h2 { letter-spacing: -0.025em; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.25rem); line-height: 1.12; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.2rem; }
section { padding-block: clamp(4rem, 8vw, 7rem); }
section[id] { scroll-margin-top: 68px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 12px; top: -80px; z-index: 40; background: var(--surface); padding: 10px 16px; border-radius: var(--r-control); }
.skip:focus { top: 12px; }
.icon { width: 1.35em; height: 1.35em; fill: currentColor; flex: none; }
[dir='rtl'] .flip { transform: scaleX(-1); }
.lead { color: var(--muted); font-size: clamp(1.1rem, 1.6vw, 1.25rem); max-width: 34rem; }
.note { color: var(--muted); font-size: 0.92rem; }

/* header */
.top {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.wordmark { width: 138px; height: auto; flex: none; direction: ltr; overflow: visible; font-family: 'Brand', system-ui, sans-serif; fill: currentColor; }
.wordmark-name { font-size: 21px; font-weight: 700; }
.wordmark-line { font-size: 11px; font-weight: 600; fill: var(--muted); }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.menu { display: flex; gap: 26px; margin-inline-start: 20px; }
.menu a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.98rem; }
.menu a:hover { color: var(--ink); }
.langs { display: flex; gap: 4px; margin-inline-start: auto; }
.langs a { text-decoration: none; font-size: 0.9rem; padding: 6px 10px; border-radius: var(--r-control); color: var(--muted); white-space: nowrap; }
.langs a:hover { background: var(--tint); color: var(--ink); }
.langs a[aria-current] { background: var(--tint); color: var(--ink); font-weight: 600; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px; border-radius: var(--r-control);
  background: var(--primary); color: var(--on-primary); text-decoration: none; font-weight: 700; white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.25s;
}
.button:hover { background: var(--primary-hover); transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(0.98); }
.button-small { min-height: 42px; padding: 8px 18px; font-size: 0.95rem; }

/* store buttons */
.stores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 470px; }
.store {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 18px;
  border-radius: var(--r-control); border: 1.5px solid var(--line); background: var(--surface);
  text-decoration: none; line-height: 1.25;
  transition: transform 0.25s var(--ease), border-color 0.25s, background-color 0.25s;
}
.store .icon { width: 26px; height: 26px; }
.store span { display: flex; flex-direction: column; min-width: 0; }
.store strong { font-size: 1.02rem; white-space: nowrap; }
.store small { font-size: 0.8rem; color: var(--muted); }
a.store:hover { transform: translateY(-2px); border-color: var(--primary); }
a.store:active { transform: scale(0.98); }
.store-web { grid-column: 1 / -1; }
a.store-web { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
a.store-web small { color: inherit; opacity: 0.86; }
a.store-web:hover { background: var(--primary-hover); }
.store.is-soon { border-style: dashed; background: transparent; color: var(--muted); }
.stores .is-device { order: -1; grid-column: 1 / -1; }

/* clouds: each lane is as wide as the sky, so its movement is a share of that width. --at is where a cloud rests
   when motion is off; --delay (negative) spreads the moving clouds from the first moment. */
.hero-copy { position: relative; }
.sky {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); height: clamp(96px, 20dvh, 190px);
  overflow: hidden; direction: ltr; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}
.lane { position: absolute; left: 0; width: 100%; transform: translateX(var(--at)); }
.cloud { display: block; width: var(--size); aspect-ratio: var(--shape); background: var(--cloud); -webkit-mask: var(--image) center / contain no-repeat; mask: var(--image) center / contain no-repeat; }
.lane-1 { top: 34%; --size: 190px; --shape: 672 / 222; --image: url('/assets/brand/cloud-1.webp'); --at: 52%; --time: 44s; --delay: -29s; }
.lane-2 { top: 4%; --size: 126px; --shape: 543 / 189; --image: url('/assets/brand/cloud-2.webp'); --at: 14%; --time: 34s; --delay: -11s; }
.lane-3 { top: 58%; --size: 106px; --shape: 474 / 171; --image: url('/assets/brand/cloud-3.webp'); --at: 8%; --time: 56s; --delay: -9s; }
.lane-4 { top: 12%; --size: 70px; --shape: 264 / 108; --image: url('/assets/brand/cloud-4.webp'); --at: 74%; --time: 27s; --delay: -21s; }

/* phones */
.phone { background: var(--frame); border-radius: 44px; padding: 9px; box-shadow: var(--shadow); }
.phone::before { content: ''; display: block; height: 26px; background: #f3f7f7; border-radius: 36px 36px 0 0; }
.phone img { width: 100%; height: auto; border-radius: 0 0 36px 36px; }

/* hero */
.hero { padding-block: clamp(2rem, 5vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; align-items: center; gap: 40px; min-height: min(760px, calc(100dvh - 68px - 4rem)); }
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero-art { position: relative; height: min(660px, 74dvh); min-height: 520px; }
.disc { position: absolute; inset: 50% auto auto 50%; width: min(560px, 100%); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: var(--peach); }
.disc::after { content: ''; position: absolute; width: 24%; aspect-ratio: 1; border-radius: 50%; background: var(--sun); top: 7%; right: 8%; }
.hero-art .phone { position: absolute; width: auto; }
.hero-art .phone img { height: calc(100% - 26px); width: auto; aspect-ratio: 780 / 1688; }
.phone-front { height: 94%; top: 6%; left: 15%; z-index: 2; }
.phone-back { height: 82%; top: 2%; right: 7%; rotate: 6deg; }

/* flow: three screens, stepped */
.flow { background: var(--surface); }
.head { display: flex; flex-direction: column; gap: 14px; max-width: 40rem; margin-bottom: 52px; }
.head p { color: var(--muted); font-size: 1.12rem; }
.head-center { margin-inline: auto; text-align: center; align-items: center; margin-bottom: 32px; }
.flow-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); align-items: start; }
.flow-list li { display: flex; flex-direction: column; gap: 10px; }
.flow-list li:nth-child(2) { margin-top: 48px; }
.flow-list li:nth-child(3) { margin-top: 96px; }
.flow-list .phone { width: min(290px, 100%); margin: 0 auto 18px; }
.flow-list h3, .flow-list p { width: min(290px, 100%); margin-inline: auto; }
.flow-list p { color: var(--muted); }

/* bento */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; }
.tile-body { display: flex; flex-direction: column; gap: 8px; padding: 26px; }
.tile-body p { color: var(--muted); }
.tile-icon { width: 32px; height: 32px; color: var(--primary); margin-bottom: 6px; }
.tile-photo img { width: 100%; flex: 1; min-height: 200px; object-fit: cover; }
.tile-family { grid-column: span 5; grid-row: span 2; }
.tile-family img { height: 0; min-height: 230px; }
.tile-day { grid-column: span 7; }
.tile-pay { grid-column: span 7; }
.tile-map { grid-column: span 4; }
.tile-id { grid-column: span 4; }
.tile-id img { aspect-ratio: 4 / 3; flex: none; }
.tile-help { grid-column: span 4; }
.tile-day .tile-body, .tile-pay .tile-body, .tile-map .tile-body, .tile-help .tile-body { flex: 1; }
.tile-day .tile-icon, .tile-pay .tile-icon, .tile-map .tile-icon, .tile-help .tile-icon { margin-bottom: auto; }
.tile-day h3, .tile-pay h3, .tile-map h3, .tile-help h3 { margin-top: 18px; }
.tile-warm { background: var(--warm); border-color: transparent; }
.tile-warm p { color: var(--ink); }
.tile-tint { background: var(--tint); border-color: transparent; }
.tile-deep { background: var(--deep); border-color: transparent; color: var(--on-deep); }
.tile-deep p, .tile-deep .tile-icon { color: var(--on-deep); }

/* host */
.host { background: var(--tint); }
.host-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.host-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 28px; margin-block: 14px 12px; }
.points li { display: flex; flex-direction: column; gap: 12px; }
.point-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-control); background: var(--surface); color: var(--primary); }
.points h3 { font-size: 1.08rem; margin-bottom: 4px; }
.points p { color: var(--muted); font-size: 0.98rem; }
.host-art { display: flex; justify-content: center; align-items: flex-start; gap: 18px; }
.host-art .phone { width: min(280px, 48%); }
.host-art .phone-b { margin-top: 72px; }

/* download */
.segment { display: flex; width: fit-content; max-width: 100%; margin: 0 auto 28px; padding: 5px; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.segment button { font: inherit; font-weight: 600; font-size: 0.98rem; border: 0; background: transparent; color: var(--muted); padding: 11px 20px; border-radius: var(--r-control); cursor: pointer; transition: background-color 0.25s, color 0.25s; }
.segment button[aria-pressed='true'] { background: var(--primary); color: var(--on-primary); }
.panel { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 32px; align-items: center; max-width: 880px; margin: 0 auto 18px; padding: clamp(24px, 4vw, 44px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); }
.panel-main { display: flex; flex-direction: column; gap: 20px; }
.panel-main h3 { font-size: 1.45rem; }
.panel-qr { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.panel-qr img { border-radius: var(--r-control); border: 1px solid var(--line); background: #fff; }
.panel-qr p { font-size: 0.9rem; color: var(--muted); max-width: 17rem; }
.text-link { color: var(--primary); font-weight: 600; text-underline-offset: 4px; }
[data-panel][hidden] { display: none; }

/* install */
.install { background: var(--surface); }
.install-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: start; }
.install-grid .head { margin: 0; }
.install-box .segment { margin: 0 0 24px; background: var(--bg); }
.steps { counter-reset: step; display: flex; flex-direction: column; }
.steps li { display: flex; align-items: center; gap: 18px; padding-block: 18px; }
.steps li + li { border-top: 1px solid var(--line); }
.step-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-control); background: var(--tint); color: var(--primary); flex: none; }
.js .nojs { display: none; }

/* faq */
.faq-wrap { max-width: 820px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-control); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary .icon { color: var(--primary); transition: rotate 0.25s var(--ease); }
details[open] summary .icon { rotate: 180deg; }
details p { padding: 0 22px 20px; color: var(--muted); max-width: 62ch; }

/* footer */
.foot { border-top: 1px solid var(--line); background: var(--surface); padding-block: 56px calc(28px + env(safe-area-inset-bottom)); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.foot h2 { font-size: 1rem; margin-bottom: 12px; }
.foot li { margin-bottom: 8px; }
.foot li a { color: var(--muted); text-decoration: none; }
.foot li a:hover { color: var(--ink); text-decoration: underline; }
.foot li a.company { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.45; }
.foot li a.company small { color: var(--primary); font-size: 0.88rem; font-weight: 600; }
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.foot-brand p { color: var(--muted); }
.foot-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.foot-end .langs { margin: 0; }

/* terms and privacy */
.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.legal-wrap { max-width: 780px; display: flex; flex-direction: column; gap: 16px; }
.legal h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.legal .lead { max-width: none; }
.clause { padding-block: 22px 0; display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 88px; }
.clause h2 { font-size: 1.35rem; }
.clause ul { list-style: disc; padding-inline-start: 1.3em; display: flex; flex-direction: column; gap: 6px; }
.legal .text-link { margin-top: 28px; }
.draft { background: var(--warm); border-radius: var(--r-control); padding: 14px 18px; font-weight: 600; }
mark { background: var(--warm); color: inherit; border-radius: 4px; padding: 0 4px; }

/* motion: content is visible without JavaScript and for people who ask for less motion */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; translate: 0 26px; transition: opacity 0.7s var(--ease), translate 0.7s var(--ease); }
  .js .reveal.is-in { opacity: 1; translate: 0 0; }
  .hero-copy > * { animation: rise 0.8s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .phone-front { animation: rise 1s var(--ease) 0.15s both; }
  .phone-back { animation: rise 1s var(--ease) 0.3s both; }
  .hero-copy > .sky { animation: none; }
  .lane { animation: drift var(--time) linear var(--delay) infinite; }
}
@keyframes drift { from { transform: translateX(calc(-1 * var(--size))); } to { transform: translateX(100%); } }
@keyframes rise { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

/* tablet */
@media (max-width: 1040px) {
  .menu { display: none; }
}
@media (max-width: 899px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 36px; }
  .sky { position: relative; order: -1; bottom: auto; height: 58px; margin-block: -8px -6px; }
  .lane { --size: 76px; }
  .lane-1 { top: 22%; --size: 108px; }
  .lane-2 { top: 0; --size: 78px; }
  .lane-3 { top: 48%; --size: 62px; }
  .lane-4 { top: 6%; --size: 46px; }
  .hero-art { height: auto; aspect-ratio: 1 / 1.08; min-height: 0; max-width: 520px; width: 100%; margin-inline: auto; }
  .flow-list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 22px; margin-inline: -20px; padding: 4px 20px 24px; scroll-padding-inline: 20px; }
  .flow-list li { flex: 0 0 min(290px, 76vw); scroll-snap-align: center; }
  .flow-list li:nth-child(n) { margin-top: 0; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento > .tile { grid-column: span 1; grid-row: auto; }
  .bento > .tile-family, .bento > .tile-help { grid-column: 1 / -1; }
  .tile-family img { height: auto; min-height: 0; aspect-ratio: 16 / 10; flex: none; }
  .host-grid, .install-grid { grid-template-columns: 1fr; gap: 40px; }
  .panel { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

/* phone */
@media (max-width: 599px) {
  body { font-size: 1rem; }
  .top-row { flex-wrap: wrap; gap: 8px 12px; padding-block: 8px; }
  .top-cta { margin-inline-start: auto; }
  .top .langs { order: 3; width: 100%; margin: 0; justify-content: center; }
  .top { position: static; }
  section[id] { scroll-margin-top: 0; }
  .hero { padding-top: 1.5rem; }
  .hero-copy { gap: 18px; text-align: start; }
  .head { margin-bottom: 34px; }
  .bento { grid-template-columns: 1fr; }
  .bento > .tile { grid-column: 1 / -1; }
  .points { grid-template-columns: 1fr; gap: 20px; }
  .points li { flex-direction: row; align-items: flex-start; }
  .host-copy .button { align-self: stretch; }
  .segment:not(.segment-small) { flex-direction: column; width: 100%; }
  .panel { padding: 20px; }
  .panel-qr img { display: none; }
  .panel-qr p { display: none; }
  .store { padding-inline: 14px; gap: 10px; }
}
@media (max-width: 420px) {
  .brand { gap: 8px; }
  .brand img { width: 38px; height: 38px; }
  .wordmark { width: 112px; }
  .store { padding-inline: 10px; gap: 8px; }
  .store .icon { width: 22px; height: 22px; }
  .store strong { font-size: 0.95rem; }
}
@media (max-width: 360px) {
  .wordmark { width: 102px; }
  .brand img { width: 34px; height: 34px; }
  .top-cta { padding-inline: 12px; font-size: 0.88rem; }
}
