:root {
  --bg: #F4F5F6;
  --surface: #FFFFFF;
  --ink: #23252A;
  --muted: #5B5F66;
  --line: #E2E4E8;
  --accent: #2B2D31;
  --radius: 22px;
  --display: 'Reem Kufi', 'IBM Plex Sans Arabic', sans-serif;
  --body: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.8;
}
a { color: var(--ink); }
a:hover { color: var(--muted); }
img { max-width: 100%; display: block; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.logo { font-family: var(--display); font-weight: 700; font-size: 30px; text-decoration: none; color: var(--ink); line-height: 1; }
.logo.small { font-size: 22px; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a { text-decoration: none; font-weight: 500; font-size: 16px; padding: 10px 0; }

/* hero */
.hero { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; padding-top: 48px; padding-bottom: 32px; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.3fr 1fr; padding-top: 72px; padding-bottom: 48px; } }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 6vw, 64px); line-height: 1.25; margin: 0 0 16px; }
.hero p { font-size: clamp(17px, 2vw, 20px); color: var(--ink); margin: 0; max-width: 640px; }

.hero-art { position: relative; height: 340px; }
@media (min-width: 900px) { .hero-art { height: 400px; } }
.phone {
  position: absolute; width: 170px; height: 340px; border-radius: 30px;
  background: #16181C; padding: 8px; box-shadow: 0 30px 50px -20px rgba(20, 24, 30, 0.35);
}
.phone .screen { width: 100%; height: 100%; border-radius: 23px; background: #FAFAFB; padding: 18px 14px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.phone-back { left: 8%; top: 40px; transform: rotate(-6deg); }
.phone-front { left: 34%; top: 0; transform: rotate(3deg); }
@media (max-width: 899px) { .phone-back { left: 18%; } .phone-front { left: 42%; } }
.mini-logo { font-family: var(--display); font-weight: 700; font-size: 18px; text-align: center; margin-bottom: 4px; }
.mini-tag { width: 50%; height: 12px; border-radius: 6px; background: var(--line); align-self: flex-end; }
.mini-line { height: 7px; border-radius: 4px; background: #DADDE2; align-self: flex-end; }
.w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; }
.mini-img { height: 110px; border-radius: 12px; background: #EEF0F2 center / contain no-repeat; }
.mini-btn { height: 22px; width: 60%; border-radius: 11px; background: var(--accent); margin: 6px auto 0; }

/* newsletter cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px 28px; }
.nl-card { display: flex; flex-direction: column; gap: 10px; cursor: pointer; transition: border-color .2s; }
.nl-card:has(input:checked) { border-color: var(--accent); }
.card-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.card-top input { width: 24px; height: 24px; accent-color: var(--accent); margin: 0; cursor: pointer; }
.schedule { font-size: 14px; color: var(--muted); }
.card-icon { color: var(--accent); }
.card-title { font-family: var(--display); font-weight: 700; font-size: 32px; line-height: 1.3; text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; }
.card-desc { color: var(--muted); font-size: 16px; }

/* signup */
.signup { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; max-width: 640px; }
.signup input[type=email] {
  flex: 1 1 260px; min-height: 56px; padding: 0 20px; border-radius: 999px;
  border: 1px solid #C9CDD3; background: var(--surface); font: inherit; color: var(--ink); text-align: right;
}
.signup input[type=email]:focus { outline: 3px solid rgba(43, 45, 49, .25); outline-offset: 2px; border-color: var(--accent); }
.signup button {
  min-height: 56px; padding: 0 34px; border: 0; border-radius: 999px; background: var(--accent); color: #FFFFFF;
  font: inherit; font-weight: 600; cursor: pointer;
}
.signup button:hover { background: #000000; }
.signup button:disabled { opacity: .6; cursor: progress; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; }
.form-status { min-height: 28px; margin: 12px 0 0; font-weight: 500; }
.form-status.ok { color: #1F6B45; }
.form-status.err { color: #A3262F; }
.consent { font-size: 14px; color: var(--muted); margin: 4px 0 0; max-width: 640px; }

/* shelf */
.shelf { padding-top: 72px; }
.section-head h2 { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 4.5vw, 44px); margin: 0; line-height: 1.3; }
.section-head p { color: var(--muted); margin: 4px 0 28px; }
.shelf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.product { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.product-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.product-img img { position: absolute; inset: 20px; width: calc(100% - 40px); height: calc(100% - 40px); max-width: none; object-fit: contain; }
.product-body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-brand { font-size: 14px; color: var(--muted); }
.product-name { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.35; margin: 0; }
.product-note { color: var(--muted); font-size: 15px; flex: 1; }
.product-btn {
  margin-top: 14px; display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  border-radius: 999px; background: var(--accent); color: #FFFFFF; text-decoration: none; font-weight: 600;
}
.product-btn:hover { background: #000000; color: #FFFFFF; }
.empty { color: var(--muted); }

/* faq */
.faq { padding-top: 72px; padding-bottom: 72px; max-width: 820px; margin-inline: auto; }
.faq h2 { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 4vw, 38px); margin: 0 0 16px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; min-height: 44px; display: flex; align-items: center; }
.faq details p { margin: 6px 0 0; color: var(--muted); }

/* footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; min-height: 80px; font-size: 15px; color: var(--muted); }
.footer-row a { color: var(--muted); }

/* simple pages (confirm / unsubscribe) */
.notice { max-width: 640px; margin: 96px auto; padding: 0 16px; text-align: center; }
.notice h1 { font-family: var(--display); font-weight: 700; font-size: 40px; margin: 0 0 12px; }
.notice p { color: var(--muted); }

/* article */
.article { max-width: 760px; padding-block: 48px 72px; }
.article-head { display: flex; flex-direction: column; gap: 10px; }
.article-meta { display: flex; gap: 8px; color: var(--muted); font-size: 15px; margin: 0; }
.article h1 { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 6vw, 56px); line-height: 1.3; margin: 0; text-wrap: balance; }
.dek { font-size: clamp(18px, 2.2vw, 21px); margin: 0; color: var(--ink); }
.article-hero { position: relative; margin: 32px 0 8px; border-radius: var(--radius); aspect-ratio: 16 / 10; max-width: 100%; overflow: hidden; }
.article-hero img { position: absolute; inset: 28px; width: calc(100% - 56px); height: calc(100% - 56px); max-width: none; object-fit: contain; }
.article-body { font-size: 19px; line-height: 2; }
.article-body h2 { font-family: var(--display); font-weight: 700; font-size: 30px; margin: 40px 0 8px; line-height: 1.4; }
.article-body p { margin: 0 0 14px; }
.article-body ul, .article-body ol { margin: 0 0 14px; padding-inline-start: 24px; display: flex; flex-direction: column; gap: 6px; }
.article-body .steps li::marker { font-family: var(--display); font-weight: 700; }
.tip { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; font-weight: 500; }

.buy-box { margin-top: 48px; display: grid; grid-template-columns: 1fr; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .buy-box { grid-template-columns: 220px 1fr; } }
.buy-img { display: flex; align-items: center; justify-content: center; padding: 20px; min-height: 200px; }
.buy-img img { max-height: 200px; width: auto; }
.buy-info { padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.code-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0 4px; padding: 12px 14px; border: 1.5px dashed #B9BEC6; border-radius: 14px; }
.code-label { color: var(--muted); font-size: 15px; flex: 1 1 160px; }
.code { font-family: 'IBM Plex Sans Arabic', monospace; font-weight: 600; font-size: 22px; letter-spacing: .12em; }
.copy-btn { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--accent); background: transparent; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }
.copy-btn:hover { background: var(--accent); color: #FFFFFF; }
.buy-btn { margin-top: 8px; display: inline-flex; align-items: center; justify-content: center; min-height: 54px; border-radius: 999px; background: var(--accent); color: #FFFFFF; text-decoration: none; font-weight: 600; font-size: 18px; }
.buy-btn:hover { background: #000000; color: #FFFFFF; }
.buy-btn.is-off { background: var(--line); color: var(--muted); }
.nl-promo { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.nl-promo p { margin: 0; font-weight: 500; }
.link-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--accent); text-decoration: none; font-weight: 600; }
:focus-visible { outline: 3px solid rgba(43, 45, 49, .35); outline-offset: 3px; }
