:root {
  /* layout: cool paper page, navy ink and panels, cobalt accent, saffron highlights.
     Large headlines with one italic serif word, pill controls. Single light theme by choice. */
  --bg: #eef1f8;
  --surface: #ffffff;
  --ink: #0f1a3c;
  --muted: #55607c;
  --line: #d6dcec;
  --accent: #1d3fd8;
  --accent-soft: #e3e9fd;
  --saffron: #f4b93a;
  --night: #0c1440;
  --night-soft: #c9d2f5;
  --warn: #7a4a00; --warn-soft: #fbf1d6;
  --stop: #a3261f; --stop-soft: #fbe5e2;
  --ok: #14664a; --ok-soft: #e1f3ea;
  --display: "Reem Kufi", "Trebuchet MS", system-ui, sans-serif;
  --body: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --arabic: "Reem Kufi", "Albert Sans", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
h1 em, h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; color: var(--accent); }
p { margin: 0; }
a { color: var(--accent); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input, select, textarea, button { font: inherit; color: var(--ink); }

/* header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(238, 241, 248, 0.88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head-in { max-width: 1160px; margin: 0 auto; padding: 12px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.brand svg { background: var(--ink); color: var(--saffron); border-radius: 9px; padding: 5px; }
.wordmark { font: 600 1.25rem/1 var(--display); letter-spacing: -0.03em; }
.arabic { font: 600 1.15rem/1 var(--arabic); color: var(--muted); }
.site-head nav { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.site-head nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.93rem; padding: 6px 13px; border-radius: 999px; }
.site-head nav a:hover { background: var(--bg); }
.navbtn { background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 10px 20px; font-weight: 600; font-size: 0.95rem; cursor: pointer; }
.navbtn:hover { background: var(--night); }

/* hero */
.hero { position: relative; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; pointer-events: none; }
.glow.g1 { width: 520px; height: 420px; left: -80px; top: 120px; background: #f6c869; }
.glow.g2 { width: 560px; height: 460px; right: -100px; top: 60px; background: #a9b8ff; }
.hero-in { position: relative; max-width: 1160px; margin: 0 auto; padding: 40px 20px 64px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.eyebrow { font-size: 0.9rem; font-weight: 500; color: var(--muted); border: 1px solid var(--line); background: var(--surface); padding: 5px 14px; border-radius: 999px; }
.hero h1 { font-size: clamp(3rem, 8vw, 5.6rem); font-weight: 600; line-height: 0.94; letter-spacing: -0.04em; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pill { display: inline-block; text-decoration: none; font-weight: 600; padding: 12px 22px; border-radius: 999px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.pill.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.promise { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-size: 0.93rem; color: var(--muted); }
.promise span { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 13px; }
.promise b { color: var(--ink); font-weight: 600; }
.builder { width: 100%; max-width: 820px; margin-top: 22px; background: var(--night); color: #fff; border-radius: 24px; padding: 22px 26px 26px; display: flex; flex-direction: column; gap: 16px; text-align: left; box-shadow: 0 30px 60px -30px rgba(12, 20, 64, 0.5); }
.builder-label { display: flex; justify-content: space-between; gap: 12px; font-size: 0.85rem; font-weight: 500; color: var(--night-soft); padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.builder-label::before { content: "\25CF  Your purchase"; color: #fff; font-weight: 600; }
.sentence { font: 500 1.45rem/1.85 var(--display); letter-spacing: -0.02em; }
.sentence select { font: inherit; color: var(--saffron); background: transparent; border: 0; border-bottom: 2px solid rgba(242, 178, 51, 0.6); border-radius: 0; padding: 0 2px; max-width: 100%; cursor: pointer; }
.sentence select option { color: #0f1a3c; background: #fff; font-family: var(--body); letter-spacing: 0; }
.flags { display: flex; flex-direction: column; gap: 8px; }
.flag { border-radius: 12px; padding: 11px 14px; font-size: 0.93rem; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; background: rgba(255, 255, 255, 0.08); color: #fff; }
.flag .kind { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.flag.stop .kind { background: #ff8f85; color: #3d0b07; }
.flag.warn .kind { background: var(--saffron); color: #3a2500; }
.flag.ok .kind { background: #6fdcae; color: #06301f; }

/* page */
.wrap { max-width: 1160px; margin: 0 auto; padding: 8px 20px 80px; display: flex; flex-direction: column; gap: 92px; }
.wrap > .notice, .wrap > .account { margin-bottom: -52px; }
.notice { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 11px 16px; font-size: 0.88rem; }
.notice strong { color: var(--ink); }
.sec-head, .plain-head { margin-bottom: 26px; }
.sec-head { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; }
.plain-head { display: flex; flex-direction: column; gap: 10px; }
.arch { width: 38px; height: 46px; border-radius: 19px 19px 5px 5px; background: var(--ink); color: #fff; display: grid; place-items: center; font: 600 1.05rem var(--display); padding-top: 6px; }
.sec-head h2, .plain-head h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 600; line-height: 1.02; letter-spacing: -0.035em; }
.sec-head p { grid-column: 2; }
.sec-head p, .plain-head p { color: var(--muted); font-size: 1.02rem; max-width: 40rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.ref { font: 600 0.72rem var(--body); padding: 2px 8px; margin: 0 2px; border-radius: 999px; border: 0; background: var(--accent-soft); color: var(--accent); cursor: pointer; }
.ref:hover { background: var(--accent); color: #fff; }
.small { font-size: 0.87rem; color: var(--muted); }
.go { cursor: pointer; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; padding: 12px 24px; }
.go:disabled { opacity: 0.5; cursor: default; }
.linkbtn { background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; font-weight: 600; padding: 0; }

/* intro cards */
.intro { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.intro .card h3 { font: 600 1.15rem/1.25 var(--display); letter-spacing: -0.02em; margin-bottom: 8px; }
.intro .card p { font-size: 0.97rem; color: var(--muted); }
.how { counter-reset: how; }
.how .card { counter-increment: how; }
.how .card::before { content: counter(how); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 600; margin-bottom: 14px; }

.quote { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.quote blockquote { margin: 0; font: 400 1.35rem/1.3 var(--serif); font-style: italic; letter-spacing: -0.01em; }
.quote figcaption { font-size: 0.92rem; font-weight: 600; }
.quote.placeholder { border-style: dashed; background: transparent; color: var(--muted); }
.quote.placeholder figcaption { font-weight: 400; }

.hero-stories { width: 100%; max-width: 1000px; display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.hero-stories .intro { text-align: left; }
.hero-stories .card { padding: 18px 20px; }
.hero-stories .quote blockquote { font-size: 1.18rem; }
.hero-stories .small { text-align: center; }

/* steps */
.progress { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; margin-bottom: 16px; }
.progress-bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: #2fa877; transition: width 0.2s; }
ol.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; }
ol.steps > li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
ol.steps > li::before { content: counter(s); width: 34px; height: 40px; border-radius: 17px 17px 5px 5px; background: var(--ink); color: #fff; display: grid; place-items: center; font: 600 0.95rem var(--display); padding-top: 4px; font-variant-numeric: tabular-nums; }
ol.steps > li.locked-step { border-style: dashed; background: transparent; }
ol.steps > li.locked-step::before { background: var(--line); color: var(--muted); }
ol.steps > li.locked-step h3 { color: var(--muted); }
.step-body { display: flex; flex-direction: column; gap: 6px; }
.step-body h3 { font: 600 1.08rem/1.3 var(--display); letter-spacing: -0.02em; }
.step-body p { font-size: 0.95rem; color: var(--muted); }
ol.steps { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); }
.step-body .how-list { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 0.95rem; }
.step-body .watch { margin-top: 6px; background: var(--warn-soft); color: var(--warn); border-radius: 12px; padding: 9px 12px; font-size: 0.9rem; }
@media (max-width: 480px) { ol.steps { grid-template-columns: 1fr; } }
label { display: flex; flex-direction: column; gap: 5px; font-size: 0.84rem; font-weight: 500; color: var(--muted); }
label.tick { flex-direction: row; align-items: center; gap: 7px; margin-top: 6px; font-size: 0.87rem; cursor: pointer; color: var(--ink); }
label.tick input { width: 18px; height: 18px; accent-color: #2fa877; }
ol.steps > li.done { opacity: 0.6; }
ol.steps > li.done h3 { text-decoration: line-through; }

/* forms */
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.card input, .card select, .card textarea, .field { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; width: 100%; font-weight: 500; }
textarea { min-height: 60px; resize: vertical; }
details { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
summary { cursor: pointer; font-weight: 600; font-size: 0.93rem; color: var(--accent); margin-bottom: 14px; }
.casefile { display: flex; flex-direction: column; gap: 16px; }
.casefile textarea { min-height: 150px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }

/* costs */
.cost-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
.receipt { background: var(--night); color: #fff; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.receipt .eyebrow { align-self: flex-start; background: rgba(255, 255, 255, 0.1); border: 0; color: #fff; font-size: 0.8rem; }
.big { font: 600 clamp(2.4rem, 6vw, 3.6rem)/1 var(--display); letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.big-sub { color: var(--night-soft); font-size: 0.97rem; margin-top: 6px; }
.bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 2px; }
.bar span { display: block; min-width: 2px; }
.receipt table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 0.95rem; }
.receipt td { padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.receipt td:first-child { display: flex; align-items: center; gap: 9px; }
.receipt td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; }
.receipt .grand { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; font-weight: 600; }

/* ask */
.ask { display: flex; flex-direction: column; gap: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 0.9rem; font-weight: 500; padding: 8px 15px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.ask-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.answer { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; white-space: pre-wrap; font-size: 1rem; }
.escalate { background: var(--warn-soft); color: var(--warn); border-radius: 16px; padding: 14px 18px; font-size: 0.95rem; }
.err { color: var(--stop); font-size: 0.9rem; }
.okmsg { background: var(--ok-soft); color: var(--ok); border-radius: 12px; padding: 12px 14px; font-size: 0.97rem; }

/* gates */
.lockcard { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: space-between; background: var(--night); color: #fff; border-radius: 20px; padding: 20px 24px; margin-top: 14px; }
.lockcard strong { font: 600 1.15rem var(--display); letter-spacing: -0.02em; }
.lockcard p { color: var(--night-soft); font-size: 0.94rem; }
.lockcard .go { background: var(--saffron); color: #2a1b00; }
body.locked [data-paid], body.locked .ref { display: none !important; }
body:not(.locked) [data-lockcard] { display: none !important; }
body.signed-out [data-signed] { display: none !important; }
body:not(.signed-out) [data-signedout] { display: none !important; }
.account { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; background: var(--ok-soft); color: var(--ok); border-radius: 14px; padding: 11px 16px; font-size: 0.92rem; font-weight: 500; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 14px; padding: 28px; }
.plan.main { background: var(--night); color: #fff; border-color: var(--night); }
.plan h3 { font: 600 1.15rem var(--display); letter-spacing: -0.02em; }
.price { font: 600 3rem/1 var(--display); letter-spacing: -0.05em; }
.price small { display: block; margin-top: 8px; font: 400 0.92rem var(--body); letter-spacing: 0; opacity: 0.75; }
.plan ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 7px; font-size: 0.97rem; }
.plan .cta { margin-top: auto; border: 1px solid var(--line); border-radius: 999px; padding: 12px 18px; font-weight: 600; text-align: center; text-decoration: none; background: var(--surface); color: var(--ink); }
.plan .cta.free { background: var(--ink); color: #fff; border-color: var(--ink); }
.plan.main .cta { background: var(--saffron); color: #2a1b00; border-color: var(--saffron); }
.plan .cta.soon { opacity: 0.9; }

/* glossary, faq, library */
.gloss { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 32px; margin: 0; }
.gloss div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.gloss dt { font-weight: 600; }
.gloss dd { margin: 3px 0 0; font-size: 0.95rem; color: var(--muted); }
.faq details { margin: 0; border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:first-of-type { border-top: 0; padding-top: 0; }
.faq summary { color: var(--ink); font-size: 1.1rem; letter-spacing: -0.02em; margin: 0; }
.faq details p { margin-top: 10px; color: var(--muted); max-width: 44rem; }
.lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.entry { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 9px; scroll-margin-top: 96px; }
.entry.hit { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.entry-top { display: flex; align-items: baseline; gap: 10px; }
.entry-id { font: 600 0.8rem var(--display); color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 9px; }
.entry h3 { font: 600 1.08rem/1.3 var(--display); letter-spacing: -0.02em; }
.entry p { font-size: 0.94rem; }
.status { font-size: 0.78rem; font-weight: 600; }
.status.web { color: var(--ok); } .status.mem { color: var(--warn); } .status.flagged { color: var(--stop); }
.src { font-size: 0.82rem; color: var(--muted); overflow-wrap: anywhere; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.87rem; color: var(--muted); margin-bottom: 16px; }
.legend span { display: flex; align-items: center; gap: 6px; }

/* sign-in dialog */
dialog { border: 0; border-radius: 24px; padding: 0; width: min(460px, calc(100% - 32px)); background: var(--surface); color: var(--ink); }
dialog::backdrop { background: rgba(12, 20, 64, 0.6); }
.flow { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.flow h3 { font: 600 1.7rem/1.1 var(--display); letter-spacing: -0.04em; }
.panel { display: flex; flex-direction: column; gap: 14px; }

/* footer */
.site-foot { border-top: 1px solid var(--line); background: var(--surface); }
.site-foot-in { max-width: 1160px; margin: 0 auto; padding: 40px 20px 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; font-size: 0.93rem; color: var(--muted); }
.site-foot h3 { font: 600 0.95rem var(--display); color: var(--ink); margin-bottom: 10px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.site-foot a { color: var(--muted); }
.site-foot .brand { margin-bottom: 12px; }

@media (max-width: 820px) {
  .cost-grid { grid-template-columns: 1fr; }
  .ask-row { grid-template-columns: 1fr; }
  .site-head nav { display: none; }
  .hero-in { padding-top: 48px; }
  .sentence { font-size: 1.2rem; }
  .builder { padding: 18px; border-radius: 20px; }
  .wrap { gap: 68px; }
  .wrap > .notice, .wrap > .account { margin-bottom: -48px; }
}
@media (prefers-reduced-motion: reduce) { .progress-bar span { transition: none; } }

/* Daari brand pass: navy hero with the eight-point star pattern, the arch panel,
   Reem Kufi headlines and a plain coloured accent word. */
h1 em, h2 em { font-family: inherit; font-style: normal; font-weight: inherit; letter-spacing: inherit; color: var(--accent); }
.hero { background-color: var(--night); color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84'%3E%3Cpath d='M42 10 74 42 42 74 10 42Z M19 19H65V65H19Z' fill='none' stroke='%23fff' stroke-opacity='.07' stroke-width='1.2'/%3E%3C/svg%3E"); }
.hero h1 { font-size: clamp(2.8rem, 7.5vw, 5.2rem); line-height: 1.04; letter-spacing: -0.01em; font-weight: 700; }
.hero h1 em { color: var(--saffron); }
.sec-head h2, .plain-head h2 { letter-spacing: -0.01em; line-height: 1.08; }
.hero .eyebrow { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); color: var(--night-soft); }
.hero .lede { color: var(--night-soft); }
.hero .pill { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.hero .pill.dark { background: var(--saffron); color: #2a1b00; border-color: var(--saffron); }
.hero .promise span { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); color: var(--night-soft); }
.hero .promise b { color: #fff; }
.hero-stories .card { background: #fff; color: var(--ink); border-color: transparent; }
.hero-stories .quote.placeholder { background: rgba(255, 255, 255, 0.06); border: 1px dashed rgba(255, 255, 255, 0.35); color: var(--night-soft); }
.hero-stories .small { color: var(--night-soft); }
.quote blockquote { font-family: var(--body); font-style: normal; font-weight: 500; font-size: 1.08rem; line-height: 1.4; }
.hero-stories .quote blockquote { font-size: 1.02rem; }
.builder { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 130px 130px 18px 18px; padding: 58px 30px 28px; box-shadow: none; max-width: 760px; }
.builder-label { display: block; border: 0; padding: 0; text-align: center; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--saffron); }
.builder-label::before { content: none; }
.sentence { text-align: center; letter-spacing: 0; }
.flag { background: #fff; color: var(--ink); }
.wordmark, .big, .price, .flow h3, .step-body h3, .entry h3, .intro .card h3, .lockcard strong, .plan h3, .faq summary { letter-spacing: 0; }
.big, .price { letter-spacing: -0.01em; }
.arch, ol.steps > li::before { border-radius: 50% 50% 5px 5px / 42% 42% 5px 5px; }
@media (max-width: 820px) { .builder { border-radius: 70px 70px 16px 16px; padding: 44px 18px 20px; } }
.wrap { padding-top: 28px; }

.stake { display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 40rem; }
.stake strong { font: 700 clamp(1.9rem, 5vw, 3rem)/1.05 var(--display); color: var(--saffron); font-variant-numeric: tabular-nums; }
.stake span { font-size: 1.12rem; color: #fff; }

.hero-price { font-size: 0.98rem; color: #fff; font-weight: 500; }

/* case page: questions answered with buttons, several properties, the offer */
a.navbtn { text-decoration: none; display: inline-block; }
.pill.big { font-size: 1.08rem; padding: 15px 28px; }
.cta-row { display: flex; justify-content: center; margin-top: 26px; }
.cta-row .pill.dark { background: var(--ink); color: #fff; }
body.mode-draft [data-case] { display: none !important; }
body.mode-case [data-draft] { display: none !important; }
body.no-cases [data-has-cases] { display: none !important; }
.app .wrap { padding-top: 28px; gap: 64px; }
.app .wrap > .notice, .app .wrap > .account, .app .wrap > .okmsg, .app .wrap > #properties { margin-bottom: -44px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { cursor: pointer; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 9px 18px; font-weight: 600; font-size: 0.95rem; }
.tab.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab.add { border-style: dashed; color: var(--accent); }
.q-wrap { display: grid; gap: 14px; }
.name-field input { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-weight: 500; max-width: 520px; }
.q-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: 20px; padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.q-card.answered { border-color: #2fa877; }
.q-head { display: flex; align-items: center; gap: 12px; }
.q-head h3 { font: 600 1.25rem/1.2 var(--display); }
.q-num { width: 32px; height: 38px; border-radius: 50% 50% 5px 5px / 42% 42% 5px 5px; background: var(--ink); color: #fff; display: grid; place-items: center; font: 600 0.95rem var(--display); padding-top: 4px; flex: none; }
.q-card.answered .q-num { background: #2fa877; }
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opt { cursor: pointer; border: 1.5px solid var(--line); background: var(--bg); border-radius: 14px; padding: 13px 18px; font-weight: 600; font-size: 1rem; text-align: left; }
.opt:hover { border-color: var(--ink); }
.opt.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.app .start-row { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; margin-top: 22px; }
.app .start-row .small { color: var(--muted); }
.start-btn { background: var(--saffron); color: #2a1b00; font-size: 1.08rem; padding: 15px 34px; }
.app .flag { background: var(--surface); border: 1px solid var(--line); }
.offer { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; border-color: var(--accent); }
.offer h3 { font: 600 1.2rem var(--display); }
@media (max-width: 820px) { .app .wrap { gap: 52px; } .opt { width: 100%; } }

.sample-head { margin: 34px 0 14px; }
ol.steps.sample { grid-template-columns: minmax(0, 720px); }

.cta-row { flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.hero .cta-note { color: #fff; font-size: 1rem; font-weight: 500; }

.quote .who { display: flex; align-items: center; gap: 10px; }
.quote .avatar { flex: none; border-radius: 50%; }

/* small pictures of the process in each homepage section */
.flow2 { display: grid; gap: 12px; margin-top: 18px; }
.flow-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 16px 18px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); }
.flow-row.bad { border-color: #e9b0aa; }
.flow-row.good { border-color: #9ed6bd; }
.flow-tag { width: 100%; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.flow-row.bad .flow-tag { color: var(--stop); }
.flow-row.good .flow-tag { color: var(--ok); }
.node { padding: 9px 14px; border-radius: 12px; background: var(--bg); font-weight: 600; font-size: 0.94rem; }
.node.bad { background: var(--stop-soft); color: var(--stop); }
.node.good { background: var(--ok-soft); color: var(--ok); }
.arrow::after { content: "\2192"; color: var(--muted); font-weight: 700; }
.mock { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 0.82rem; min-height: 132px; justify-content: center; }
.mock .mq { font-weight: 700; }
.mock .mo { display: flex; flex-wrap: wrap; gap: 6px; }
.mock .mo span { padding: 5px 9px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; }
.mock .mo span.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.mock .ms { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.mock .ms i { width: 16px; height: 16px; border-radius: 50%; background: #2fa877; flex: none; }
.mock .ms.todo i { background: var(--surface); border: 2px solid var(--line); }
.mock .ms.lock { opacity: 0.5; }
.bubble { align-self: flex-end; max-width: 92%; background: var(--ink); color: #fff; border-radius: 12px 12px 2px 12px; padding: 7px 10px; }
.bubble.a { align-self: flex-start; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 12px 12px 12px 2px; }
.how .card::before { display: none; }
.how .card h3::before { content: counter(how) ". "; color: var(--accent); }
.ico { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 12px; }

/* hero: copy on the left, the two-way picture on the right */
.hero-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 44px; align-items: center; width: 100%; text-align: left; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.hero-copy .stake { align-items: flex-start; }
.hero-copy .hero-cta { justify-content: flex-start; }
.hero-copy h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.hero-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 150px 150px 20px 20px; padding: 64px 18px 20px; }
.track { background: #fff; color: var(--ink); border-radius: 16px; padding: 16px 14px; display: flex; flex-direction: column; gap: 12px; }
.track-tag { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.track.bad .track-tag { color: var(--stop); }
.track.good .track-tag { color: var(--ok); }
.track ol { list-style: none; margin: 0 0 0 6px; padding: 0; }
.track li { position: relative; padding: 9px 0 9px 20px; font-weight: 600; font-size: 0.93rem; line-height: 1.3; border-left: 2px solid var(--line); }
.track li:last-child { border-left-color: transparent; }
.track li::before { content: ""; position: absolute; left: -7px; top: 13px; width: 12px; height: 12px; border-radius: 50%; background: #c3cbe0; }
.track.bad li.hit::before, .track.bad li.end::before { background: #e2574c; }
.track.good li.hit::before, .track.good li.end::before { background: #2fa877; }
.track li.end { font-weight: 700; }
.track.bad li.end { color: var(--stop); }
.track.good li.end { color: var(--ok); }
@media (max-width: 900px) {
  .hero-top { grid-template-columns: 1fr; gap: 28px; }
  .hero-visual { border-radius: 60px 60px 18px 18px; padding: 40px 12px 14px; }
}

/* referral link and review prompt */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.places { color: var(--accent); font-weight: 600; margin: 6px 0 0; }
.share-card { display: grid; gap: 14px; }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; }
.share-row input { flex: 1 1 260px; min-width: 0; font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); }
.share-stats { display: flex; flex-wrap: wrap; gap: 12px; }
.share-stats div { flex: 1 1 160px; background: var(--accent-soft); border-radius: 14px; padding: 12px 16px; display: flex; align-items: baseline; gap: 10px; }
.share-stats strong { font-family: var(--display); font-size: 1.6rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.review-card { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.review-card h3 { margin: 0 0 4px; }
.review-card p { margin: 0; }

/* live visitor count */
.live { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; font-weight: 600; margin: 10px 0 0; }
.live::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 4px rgba(47,191,113,.22); flex: none; }
.hero .live { color: #fff; }
.start-row .live { justify-content: center; color: var(--ink); }
