:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --ink: #1d1d1b;
  --muted: #66645e;
  --line: #dedbd2;
  --accent: #0f5f56;
  --accent-ink: #ffffff;
  --chosen: #e3f0ed;
  --radius: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141413; --surface: #1d1d1b; --ink: #f1efe8; --muted: #a8a59c; --line: #34332f;
    --accent: #5fc2b2; --accent-ink: #0d1f1c; --chosen: #1d3a35; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141413; --surface: #1d1d1b; --ink: #f1efe8; --muted: #a8a59c; --line: #34332f;
  --accent: #5fc2b2; --accent-ink: #0d1f1c; --chosen: #1d3a35; color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", "Noto Sans Arabic", Tahoma, sans-serif;
}
[dir="rtl"] body { font-family: "Noto Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif; }
.bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface);
  position: sticky; top: 0; z-index: 5;
}
.brand { font-weight: 650; }
main { max-width: 1200px; margin: 0 auto; padding: 16px 16px 140px; }
h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); line-height: 1.2; margin: 12px 0; }
h2 { font-size: 1.15rem; margin: 0 0 8px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 16px 0; }
.link { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; padding: 6px 4px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border-radius: 999px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  font: inherit; font-weight: 600; cursor: pointer;
}
.button.secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.button:disabled { opacity: .45; cursor: not-allowed; }
.button:focus-visible, .link:focus-visible, .seg button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
fieldset { border: 0; padding: 0; margin: 0 0 16px; }
legend { font-weight: 600; margin-bottom: 8px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button, .seg label {
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; display: inline-flex; align-items: center;
}
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked), .seg button[aria-pressed="true"] { background: var(--chosen); border-color: var(--accent); }
.progress { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 8px 0 16px; }
.progress span { display: block; height: 100%; background: var(--accent); transition: width .25s; }
.views { margin: 12px 0; }
.compare { display: grid; gap: 16px; grid-template-columns: 1fr; }
.design { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.design h3 { margin: 0; padding: 10px 14px; font-size: 1rem; border-bottom: 1px solid var(--line); }
.shot { max-height: 72vh; overflow-y: auto; background: #fff; }
.shot img { display: block; width: 100%; height: auto; }
.shot.phone img { max-width: 390px; margin: 0 auto; }
.only-one { display: block; }
@media (min-width: 900px) {
  .compare { grid-template-columns: 1fr 1fr; }
  .switch { display: none; }
  .compare .design[hidden] { display: block; }
}
.decide {
  position: fixed; inset: auto 0 0 0; background: var(--surface); border-top: 1px solid var(--line);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); z-index: 5;
}
.decide .inner { max-width: 1200px; margin: 0 auto; display: grid; gap: 8px; grid-template-columns: 1fr auto 1fr; align-items: center; }
.decide .hint { grid-column: 1 / -1; font-size: .9rem; color: var(--muted); text-align: center; margin: 0; }
.decide .button { width: 100%; padding: 0 10px; }
.notice { font-size: .9rem; color: var(--muted); }
details summary { cursor: pointer; color: var(--accent); }
