/* Modulanta marketing site. Logical properties only, so Arabic mirrors itself.
   Tokens follow the product's DESIGN-SYSTEM.md (the ledger look). */
:root {
  --paper: #FAF9F6; --sand: #F3F1EC; --white: #FFFFFF;
  --rule: #E4E1D9; --rule-soft: #EFEDE7; --rule-strong: #D6D2C8;
  --ink: #191C1F; --ink-2: #3B4046; --muted: #5F656B;
  --accent: #1B4D5C; --brand: #0E7490; --tint: #EAF2F4;
  --amber: #B4690E; --green: #3F6B45;
  --night: #0F1A1F; --night-line: #22343D; --night-ink: #E6F1F5; --night-muted: #A9BEC7; --mint: #5EEAD4;
  --radius: 12px;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "IBM Plex Sans", "Segoe UI", Tahoma, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
html[lang=ar] body { font-family: var(--font-ar); line-height: 1.9; }
img, svg { max-width: 100%; }
a { color: var(--brand); }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.muted-ink { color: var(--ink-2); }
.small { font-size: 13px; }
.center { text-align: center; }
.amber { color: var(--amber); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 24px; }
.narrow { max-width: 860px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 20px; border-radius: 8px; font-weight: 500; text-decoration: none; border: 1px solid transparent; font: inherit; font-weight: 500; cursor: pointer; }
.btn-sm { min-height: 40px; padding: 8px 15px; font-size: 15px; }
.btn-lg { padding: 13px 22px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #143C48; color: #fff; }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--rule-strong); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-white { background: #fff; color: var(--accent); font-weight: 600; }
.btn-white:hover { color: var(--ink); }
.btn-outline-light { color: #fff; border-color: #6E9BA8; }
.btn-outline-light:hover { color: #fff; border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--rule); background: rgba(250, 249, 246, .92); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
html { scroll-padding-top: 88px; }
.head-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -0.02em; font-family: var(--font); }
.brand .mark { width: 30px; height: 30px; flex: none; }
.main-nav { display: flex; gap: 4px 24px; font-size: 15px; flex: 1 1 auto; }
.main-nav a { color: var(--ink); text-decoration: none; padding-block: 8px; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--brand); }
.main-nav a[aria-current] { font-weight: 600; }
.head-actions { display: flex; align-items: center; gap: 8px; }
.lang { color: var(--muted); text-decoration: none; padding: 8px 10px; font-size: 15px; }
.lang[lang=ar] { font-family: var(--font-ar); }
.lang[lang=en] { font-family: var(--font); }
@media (max-width: 900px) {
  .head-row { gap: 8px 16px; }
  .head-actions { margin-inline-start: auto; }
  .main-nav { order: 3; flex-basis: 100%; overflow-x: auto; gap: 20px; scrollbar-width: none; border-top: 1px solid var(--rule-soft); padding-top: 4px; }
  .main-nav a { white-space: nowrap; }
}
@media (max-width: 520px) {
  .head-actions .btn-ghost { display: none; }
}

/* Sections */
.sec { padding-block: 96px; border-bottom: 1px solid var(--rule); }
.sec-white { background: var(--white); }
.sec-sand { background: var(--sand); }
.sec-dark { background: var(--night); color: var(--night-ink); border-bottom: 0; }
@media (max-width: 700px) { .sec { padding-block: 64px; } }
.kicker { font-size: 15px; color: var(--brand); font-weight: 600; margin-bottom: 10px; }
.kicker-light { color: var(--mint); }
h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.15; letter-spacing: -0.03em; }
.h2-wide { max-width: 820px; }
.h2-big { font-size: clamp(32px, 4vw, 52px); line-height: 1.08; letter-spacing: -0.035em; }
.h2-sm { font-size: 22px; letter-spacing: -0.015em; margin-top: 48px; }
html[lang=ar] h1, html[lang=ar] h2, html[lang=ar] h3, html[lang=ar] .brand bdi { letter-spacing: 0; }
html[lang=ar] h1, html[lang=ar] h2 { line-height: 1.4; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 44px; }
.sec-head > div { max-width: 660px; }
.sec-side { color: var(--muted); max-width: 400px; }
.center-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.center-head .muted { margin-top: 14px; }
.lede-sm { margin-top: 18px; color: var(--ink-2); font-size: 17px; max-width: 460px; }
.split { display: flex; flex-wrap: wrap; gap: 56px; }
.split-center { align-items: center; }
.split-a { flex: 1 1 380px; min-width: 0; }
.split-b { flex: 1 1 520px; min-width: 0; }

/* Hero */
.hero { border-bottom: 1px solid var(--rule); padding-block: 72px 88px; }
.hero-ind { padding-block: 48px 80px; }
.hero-row { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-ind .hero-row { margin-top: 26px; }
.hero-copy { flex: 1 1 440px; min-width: 0; }
.pill { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); border: 1px solid var(--rule); background: var(--white); border-radius: 999px; padding: 6px 14px; }
.pill-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--brand); flex: none; }
h1 { margin-top: 26px; font-size: clamp(44px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.035em; }
html[lang=ar] h1 { line-height: 1.3; font-weight: 700; }
.h1-ind { margin-top: 0; font-size: clamp(36px, 5vw, 62px); line-height: 1.06; }
.accent { color: var(--brand); }
.lede { margin-top: 22px; font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 560px; }
html[lang=ar] .lede { line-height: 1.9; }
.points { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--muted); }
.crumbs { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: var(--muted); }

/* Product composite */
.composite { flex: 1 1 560px; min-width: 0; position: relative; padding-bottom: 40px; }
.window { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(25, 28, 31, .28); overflow: hidden; }
.window-solo { flex: 1 1 520px; min-width: 0; }
.win-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--rule-soft); font-size: 13.5px; }
.win-bar .mark { width: 18px; height: 18px; }
.win-bar b { font-weight: 500; }
.win-main { display: flex; }
.win-side { list-style: none; margin: 0; padding: 14px 10px; flex: 0 0 140px; border-inline-end: 1px solid var(--rule-soft); font-size: 13.5px; color: var(--ink-2); }
.win-side li { padding: 6px 10px; border-radius: 6px; }
.win-side li.on { background: var(--tint); color: var(--accent); font-weight: 600; }
@media (max-width: 560px) { .win-side { display: none; } }
.mock-body { flex: 1 1 auto; min-width: 0; padding: 20px 22px 22px; }
.mock-date { font-size: 13px; color: var(--muted); }
.mock-sum { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; margin-top: 4px; }
html[lang=ar] .mock-sum { letter-spacing: 0; line-height: 1.6; }
.ledger { margin-top: 16px; font-size: 13.5px; }
.lrow { display: grid; grid-template-columns: 52px minmax(0, 1.1fr) minmax(0, 1fr) minmax(76px, auto); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--rule-soft); align-items: baseline; }
.lrow:last-child { border-bottom: 0; }
.lhead { color: var(--muted); border-bottom-color: var(--rule); padding-block: 6px; }
.lrow > :last-child { text-align: end; }
.time { color: var(--accent); font-weight: 600; text-align: start; }
.st { font-weight: 500; }
.st-ok { color: var(--green); }
.st-due { color: var(--amber); }
.st-open { color: var(--muted); }
.phone { width: 220px; background: #000; border-radius: 34px; padding: 9px; border: 1px solid #2A3B44; box-shadow: 0 30px 50px -20px rgba(15, 26, 31, .5); }
.phone .screen { background: var(--paper); color: var(--ink); border-radius: 26px; padding: 20px 15px 16px; min-height: 360px; display: flex; flex-direction: column; font-size: 13px; }
.composite .window { margin-inline-start: 64px; }
.composite { padding-bottom: 150px; }
.phone-float { position: absolute; inset-inline-start: -16px; bottom: 0; width: 200px; }
.phone-float .screen { min-height: 320px; }
.ph-title { font-size: 16px; font-weight: 600; line-height: 1.35; margin-top: 4px; }
.ph-big { font-size: 27px; font-weight: 600; letter-spacing: -0.02em; margin-top: 6px; }
.ph-list { margin-top: 12px; border-top: 1px solid var(--rule); }
.ph-list > div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--rule-soft); }
.phones .ph-list > div { justify-content: flex-start; }
.ph-btn { margin-top: auto; background: var(--accent); color: #fff; text-align: center; border-radius: 8px; font-weight: 500; padding: 10px; }
@media (max-width: 760px) { .phone-float { display: none; } .composite { padding-bottom: 0; } .composite .window { margin-inline-start: 0; } }

/* Strip */
.strip { background: var(--sand); border-bottom: 1px solid var(--rule); }
.strip-row { display: flex; flex-wrap: wrap; gap: 10px 36px; padding-block: 20px; font-size: 14.5px; color: var(--ink-2); }

/* Why */
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); margin-top: 52px; border-top: 1px solid var(--ink); }
.why-col { padding: 26px 28px 26px; border-bottom: 1px solid var(--rule); }
.why-col + .why-col { border-inline-start: 1px solid var(--rule); }
.why-us { background: var(--white); }
.why-label { font-size: 14px; color: var(--muted); }
.why-us .why-label { color: var(--brand); font-weight: 600; }
.why-col h3 { font-size: 21px; margin-top: 6px; letter-spacing: -0.015em; }
.why-col p { margin-top: 10px; color: var(--ink-2); }
@media (max-width: 860px) { .why-col + .why-col { border-inline-start: 0; } .why-col { padding-inline: 0; } .why-us { padding-inline: 20px; } }

/* Pack cards */
.pack-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pack-grid { grid-template-columns: 1fr; } }
.pack-grid .pack-card-other { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.pack-card-other p { flex: 1 1 260px; }
.pack-card { display: flex; flex-direction: column; gap: 10px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 26px; color: var(--ink); text-decoration: none; transition: border-color .15s, background .15s; }
.pack-card:hover { border-color: var(--brand); background: var(--white); color: var(--ink); }
.pack-dot { width: 12px; height: 12px; border-radius: 3px; background: var(--brand); }
.pack-card h3 { font-size: 20px; letter-spacing: -0.015em; }
.pack-card p { color: var(--ink-2); font-size: 15px; flex: 1 1 auto; }
.pack-more { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 500; font-size: 15px; }
html[dir=rtl] .chev { transform: scaleX(-1); }
.pack-card-other { background: var(--white); border-style: dashed; border-color: var(--rule-strong); }

/* Layers */
.layers { display: flex; flex-direction: column; gap: 10px; }
.layer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; background: var(--white); border: 1px solid var(--rule); border-radius: 10px; padding: 20px 24px; }
.layer-l4 { background: var(--accent); border-color: var(--accent); color: #fff; }
.layer-l1 { background: var(--sand); }
.layer-code { font-family: var(--mono); font-size: 13px; color: var(--brand); width: 28px; }
.layer-l4 .layer-code { color: #BFE0E7; }
.layer-name { font-weight: 600; font-size: 18px; width: 150px; }
.layer-desc { flex: 1 1 240px; color: var(--ink-2); }
.layer-l4 .layer-desc { color: #D7E7EB; }

/* Modules table */
.scroll-x { overflow-x: auto; }
.mtable { min-width: 720px; border-top: 1px solid var(--ink); font-size: 15.5px; }
.mrow { display: grid; grid-template-columns: 230px minmax(0, 1fr) 120px; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--rule-soft); }
.mhead { color: var(--muted); font-size: 14px; border-bottom-color: var(--rule); padding-block: 12px; }
.mname { font-weight: 600; }
.mrow > :last-child { text-align: end; }
.mplan.addon { color: var(--brand); }

/* App section */
.lede-dark { margin-top: 20px; color: var(--night-muted); font-size: 18px; max-width: 480px; }
.app-points { list-style: none; padding: 0; margin: 34px 0 0; border-top: 1px solid var(--night-line); }
.app-points li { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 15px 0; border-bottom: 1px solid var(--night-line); color: var(--night-muted); }
.ap-t { font-weight: 600; color: var(--night-ink); width: 170px; flex: none; }
.store { display: inline-flex; flex-direction: column; line-height: 1.25; text-decoration: none; color: var(--night-ink); border: 1px solid #3A5260; border-radius: 10px; padding: 9px 18px; min-height: 48px; }
.store small { font-size: 12px; }
.store b { font-size: 17px; font-weight: 600; }
.store:hover { color: #fff; border-color: #fff; }
.store-light { background: var(--night-ink); color: var(--night); border-color: var(--night-ink); }
.store-light:hover { color: var(--night); background: #fff; }
.fine { margin-top: 18px; font-size: 13.5px; color: #7F98A3; }
.phones { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; }
.phones .phone { width: 236px; }
.phones .screen { min-height: 440px; }
.phone-low { margin-top: 48px; }
.pay-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 18px 0 10px; }
.pay-grid span { border: 1px solid var(--rule); border-radius: 8px; padding: 11px; text-align: center; background: var(--white); }
.pay-grid .on { border: 2px solid var(--accent); padding: 10px; background: var(--tint); font-weight: 600; color: var(--accent); }
@media (max-width: 560px) { .phone-low { margin-top: 0; } }

/* Cards */
.cards4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 48px; }
.cards2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 44px; }
.sec-head + .cards2 { margin-top: 0; }
.card { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; }
.card-lg { padding: 32px; }
.card-quiet { background: var(--paper); }
.card .big { font-size: 28px; color: var(--accent); font-weight: 600; letter-spacing: -0.02em; line-height: 1.4; }
.card .big [lang=ar] { font-family: var(--font-ar); letter-spacing: 0; }
.card h3 { font-size: 19px; margin-top: 14px; }
.card-lg h3 { font-size: 24px; letter-spacing: -0.02em; margin-top: 6px; }
.card p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.card-lg p { font-size: 16px; }
.card > a { display: inline-block; margin-top: 18px; font-weight: 500; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; border-top: 1px solid var(--rule); }
.ticks li { padding: 12px 0 12px 0; padding-inline-start: 26px; border-bottom: 1px solid var(--rule-soft); position: relative; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 1.15em; width: 10px; height: 10px; border-radius: 3px; background: var(--brand); }
html[lang=ar] .ticks li::before { top: 1.35em; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.plan { display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: var(--radius); padding: 32px; background: var(--paper); }
.plan-featured { border: 2px solid var(--accent); padding: 31px; background: var(--white); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.plan h3 { font-size: 20px; }
.plan > .muted { margin-top: 6px; font-size: 15px; }
.badge { font-size: 12.5px; font-weight: 600; color: var(--accent); background: var(--tint); border-radius: 999px; padding: 3px 10px; }
.price { font-size: 36px; font-weight: 600; letter-spacing: -0.03em; margin-top: 22px; }
.price span { font-size: 15px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.price-ask { font-size: 26px; color: var(--accent); }
html[lang=ar] .price { letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 26px; border-top: 1px solid var(--rule); font-size: 15px; flex: 1 1 auto; }
.plan li { padding: 11px 0; border-bottom: 1px solid var(--rule-soft); }
.addons { margin-top: 40px; border-top: 1px solid var(--ink); }
.arow { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule-soft); }
.ahead { color: var(--muted); font-size: 14px; border-top: 0; }
.agrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); column-gap: 40px; font-size: 15px; }
.agrid .arow > :last-child { color: var(--muted); }

/* Security */
.sgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); column-gap: 32px; border-top: 1px solid var(--ink); align-self: start; }
.srow { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.srow h3 { font-size: 17px; }
.srow p { margin-top: 6px; font-size: 15px; }

/* FAQ */
.faq { margin-top: 32px; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); padding: 20px 0; }
.faq summary { font-weight: 600; font-size: 18px; cursor: pointer; }
.faq details p { margin-top: 10px; color: var(--ink-2); }

/* CTA band */
.cta-band { background: var(--accent); color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; padding-block: 88px; }
.cta-row h2 { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.1; }
.cta-row p { margin-top: 14px; color: #D7E7EB; font-size: 18px; max-width: 620px; }
.cta-row .btn-row { margin-top: 0; }

/* Footer */
.site-foot { background: var(--night); color: var(--night-muted); font-size: 14.5px; }
.site-foot .wrap { padding-block: 64px 32px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 2.2fr 1fr 1fr; gap: 32px; }
.foot-links.foot-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand, .foot-inds { grid-column: 1 / -1; } }

.site-foot .brand { color: var(--night-ink); }
.foot-brand p { margin-top: 14px; max-width: 340px; }
.site-foot h2 { font-size: 15px; letter-spacing: 0; color: var(--night-ink); margin-bottom: 12px; line-height: 1.4; }
.foot-links { display: flex; flex-direction: column; gap: 8px; }
.site-foot a { color: var(--night-muted); text-decoration: none; }
.site-foot a:hover { color: #fff; }
.foot-brand a { color: var(--mint); }
.foot-legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--night-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13.5px; color: #7F98A3; }

/* Industry page */
.timeline { border-top: 1px solid var(--ink); margin-top: 18px; }
.trow { display: grid; grid-template-columns: 90px minmax(0, 300px) minmax(0, 1fr); gap: 12px 40px; padding: 26px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.t-time { font-family: var(--mono); font-size: 14px; color: var(--brand); text-align: start; }
.trow h3 { font-size: 20px; letter-spacing: -0.01em; }
.trow p { color: var(--ink-2); }
@media (max-width: 760px) { .trow { grid-template-columns: 1fr; gap: 6px; } }
.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.steps li { display: flex; align-items: center; gap: 16px; background: var(--white); border: 1px solid var(--rule); border-radius: 10px; padding: 18px 20px; font-weight: 500; }
.step-n { width: 32px; height: 32px; flex: none; border-radius: 8px; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.chips a { color: var(--ink); text-decoration: none; border: 1px solid var(--rule); background: var(--paper); border-radius: 8px; padding: 10px 16px; }
.chips a:hover { border-color: var(--brand); color: var(--brand); }
.sec-white .h2-sm { margin-top: 0; }

/* Themes */
.themes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.theme { border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.theme-prev { height: 210px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.theme-cap { padding: 16px 22px; }
.tp-name { font-weight: 600; font-size: 20px; font-family: var(--font); }
.tp-lines { display: flex; flex-direction: column; gap: 12px; }
.tp-lines span { display: block; height: 1px; }
.tp-btn { width: 110px; height: 34px; border-radius: 6px; margin-top: auto; }
.theme-linen { background: var(--paper); border-bottom: 1px solid var(--rule); }
.theme-linen .tp-name { color: var(--accent); }
.theme-linen .tp-lines span { background: var(--rule); }
.theme-linen .tp-btn { background: var(--accent); }
.theme-noir { background: #121315; }
.theme-noir .tp-name { color: #E7B9D9; }
.theme-noir .tp-lines span { background: #2C2D30; }
.theme-noir .tp-btn { background: #6B2E5F; }
.theme-bloom { background: #F6EEEF; align-items: center; }
.theme-bloom .tp-name { color: #A3485A; }
.theme-bloom .tp-lines { width: 70%; }
.theme-bloom .tp-lines span { background: #E9D3D7; }
.theme-bloom .tp-btn { background: #A3485A; border-radius: 999px; }

/* Demo, sign in, prose */
.demo-list { margin-top: 36px; border-top: 1px solid var(--ink); }
.demo-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 4px; min-height: 56px; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; font-size: 17px; }
.demo-opt:hover { color: var(--brand); background: var(--white); }
.ways { margin: 18px 0 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.ways > div { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--rule-soft); }
.ways dt { width: 180px; color: var(--muted); }
.ways dd { margin: 0; }
.signin { margin: 32px 0 24px; max-width: 520px; }
.signin label { display: block; font-weight: 600; margin-bottom: 8px; }
.addr { display: flex; align-items: stretch; border: 1px solid var(--rule-strong); border-radius: 8px; background: var(--white); overflow: hidden; }
.addr:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--tint); }
.addr input { flex: 1 1 auto; min-width: 0; border: 0; font: inherit; font-size: 17px; padding: 12px 14px; outline: none; background: transparent; }
.addr span { display: flex; align-items: center; padding-inline: 14px; color: var(--muted); background: var(--sand); border-inline-start: 1px solid var(--rule); font-family: var(--font); }
.signin .small { margin: 8px 0 20px; }
.prose p { margin-top: 18px; font-size: 17px; max-width: 680px; }

/* Sign in: two steps */
.steps-mini { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--muted); font-weight: 500; }
.steps-mini li { display: flex; align-items: center; gap: 10px; }
.steps-mini span { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--rule-strong); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.steps-mini .on { color: var(--ink); }
.steps-mini .on span { background: var(--accent); border-color: var(--accent); color: #fff; }
.recent { margin-top: 28px; max-width: 520px; }
.recent-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.recent-biz { display: flex; align-items: center; min-height: 52px; padding: 12px 16px; border: 1px solid var(--rule); border-radius: 8px; background: var(--white); color: var(--muted); text-decoration: none; font-family: var(--font); font-size: 16px; }
.recent-biz b { color: var(--ink); font-weight: 600; }
.recent-biz:hover { border-color: var(--brand); }
.recent:not([hidden]) + .signin { margin-top: 24px; }
.pin-note { max-width: 520px; color: var(--ink-2); margin-bottom: 14px; padding: 14px 16px; background: var(--white); border: 1px solid var(--rule); border-radius: 8px; font-size: 15px; }
