/* Dwelltero website. Same tokens and fonts as the app (UX phase 1). */
:root {
  /* the app's design tokens (tokens.css), so the site and app match in light and dark mode */
  --bg: var(--dw-color-surface-page); --surface: var(--dw-color-surface-card); --surface-2: var(--dw-color-surface-sunken); --border: var(--dw-color-border-subtle);
  --text: var(--dw-color-text-primary); --muted: var(--dw-color-text-secondary); --accent: var(--dw-color-action-primary-bg); --accent-2: var(--dw-color-action-primary-bg-hover);
  --accent-soft: var(--dw-color-surface-selected); --on-accent: var(--dw-color-text-on-action);
  --deep: var(--dw-color-surface-inverse); --on-deep: var(--dw-color-text-inverse); --on-deep-muted: color-mix(in srgb, var(--dw-color-text-inverse) 75%, transparent);
  --bad: var(--dw-color-status-danger-text); --warn: var(--dw-color-status-warning-text); --warn-bg: var(--dw-color-status-warning-bg); --info: var(--dw-color-status-info-text); --info-bg: var(--dw-color-status-info-bg);
  --bezel: var(--dw-color-text-primary);
  --radius: var(--dw-radius-xl); --shadow: var(--dw-shadow-2);
  --font: var(--dw-font-sans); --head: var(--dw-font-display);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.15; margin: 0 0 .6rem; letter-spacing: -0.015em; font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }
.ic { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }
section { padding: 64px 0; }
@media (max-width: 640px) { section { padding: 48px 0; } .shead { margin-bottom: 24px; } }
/* one rule for every section: a pill label, then a left-aligned heading and one sentence */
.label { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.label .ic { width: 14px; height: 14px; }
.shead { max-width: 720px; margin-bottom: 36px; }
.shead p { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; min-height: 46px; border-radius: 12px; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; white-space: nowrap; font-size: 1rem; cursor: pointer; font-family: inherit; }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-2); }
.btn.outline { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn.outline:hover { border-color: var(--accent); }
.btn.ghost { color: var(--text); background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.light { background: var(--surface); color: var(--text); }
.btn.big { min-height: 54px; padding: 14px 26px; font-size: 1.05rem; border-radius: 14px; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }

/* header: links on a computer, Log in + menu button on a phone */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.navin { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 800; font-size: 1.2rem; color: var(--text); text-decoration: none; }
.brand img { border-radius: 8px; }
.links { display: none; gap: 24px; }
.links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .97rem; }
.links a:hover, .links a[aria-current] { color: var(--text); }
.navcta { display: flex; gap: 8px; align-items: center; }
.menubtn { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.menubtn .ic { width: 22px; height: 22px; }
.mobilemenu { display: none; border-top: 1px solid var(--border); background: var(--surface); padding: 8px 20px 20px; }
.mobilemenu.open { display: block; }
.mobilemenu a { display: flex; align-items: center; gap: 12px; padding: 14px 4px; min-height: 52px; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; font-weight: 600; }
.mobilemenu a .ic { color: var(--accent); }
.mobilemenu .btn { margin-top: 14px; width: 100%; border-bottom: 0; justify-content: center; }
@media (max-width: 899px) { .navcta .getbtn { display: none; } }
@media (min-width: 900px) { .links { display: flex; } .menubtn, .mobilemenu, .mobilemenu.open { display: none; } }

/* hero */
.hero { padding: 56px 0 48px; overflow: hidden; }
.herogrid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .herogrid { grid-template-columns: 1.05fr 1fr; gap: 56px; } .hero { padding: 72px 0 64px; } }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); letter-spacing: -0.03em; margin-bottom: 16px; }
.hero h1 span { color: var(--accent); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 540px; margin: 0 0 24px; }
.roles { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.roles a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; min-height: 46px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; font-weight: 600; font-size: .97rem; }
.roles a:hover { border-color: var(--accent); color: var(--accent); }
.roles a .ic { color: var(--accent); width: 18px; height: 18px; }
.ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.fine { color: var(--muted); font-size: .92rem; margin: 14px 0 0; }
@media (max-width: 640px) {
  .hero { padding: 28px 0 40px; }
  .hero h1 { font-size: 2.05rem; margin-bottom: 12px; }
  .lead { font-size: 1.05rem; margin-bottom: 18px; }
  .ctas .btn { flex: 1 1 0; min-width: 0; padding-left: 12px; padding-right: 12px; }
  .roles { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px 18px; padding: 0 20px 4px; scrollbar-width: none; }
  .roles::-webkit-scrollbar { display: none; }
  .roles a { flex: 0 0 auto; white-space: nowrap; }
  .herogrid { gap: 28px; }
  .fine { font-size: .85rem; }
}

/* the hero's affordability card: real numbers from an example build, big enough to read */
.demo { position: relative; max-width: 520px; margin: 0 auto; width: 100%; }
.dcard { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow); padding: 24px; }
.dtop { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
.dtop h3 { margin: 0; font-size: 1.25rem; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.dsub { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.dbig { background: var(--deep); color: var(--on-deep); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.dbig .k { color: var(--on-deep-muted); font-size: .95rem; }
.dbig .v { font-family: var(--head); font-weight: 800; font-size: 2.4rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.dbig .v small { font-size: 1rem; color: var(--on-deep-muted); font-weight: 600; }
.drows { display: grid; gap: 10px; font-size: 1rem; }
.drows div { display: flex; justify-content: space-between; gap: 12px; }
.drows span:first-child { color: var(--muted); }
.drows b { font-variant-numeric: tabular-nums; }
.drows .good { color: var(--accent); }
.dmeter { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 4px; }
.dmeter i { display: block; height: 100%; width: 51%; background: var(--accent); border-radius: 999px; }
.dnote { font-size: .8rem; color: var(--muted); margin-top: 14px; }
.callouts { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.callouts li { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .86rem; line-height: 1.3; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.callouts .ic { color: var(--accent); background: var(--accent-soft); border-radius: 8px; padding: 5px; width: 28px; height: 28px; }

/* proof: security facts (and later a founder note and quotes) */
.proof { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 56px 0; }
.facts { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { display: flex; gap: 14px; align-items: flex-start; }
.fact .fi { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fact strong { display: block; font-size: 1.02rem; }
.fact span { color: var(--muted); font-size: .93rem; line-height: 1.45; display: block; }
.prooflink { margin: 24px 0 0; font-size: .95rem; color: var(--muted); }

/* flagship moments: text left, picture right, alternating */
.moment { display: grid; gap: 24px; align-items: center; margin-bottom: 56px; }
.moment:last-child { margin-bottom: 0; }
@media (min-width: 900px) { .moment { grid-template-columns: 1fr 1.25fr; gap: 56px; } .moment.rev .mtext { order: 2; } }
.moment .shot img { width: 100%; }
.mtext p { color: var(--muted); font-size: 1.08rem; }
.points { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.points li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.points li .ic { color: var(--accent); margin-top: 3px; }
.shot { border-radius: 18px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--surface); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.phoneshot { border-radius: 26px; overflow: hidden; border: 6px solid var(--bezel); box-shadow: var(--shadow); max-width: 320px; margin: 0 auto; background: var(--surface); }

/* role cards: four on a computer, swipe on a phone */
.rolecards { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rolecard { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); min-width: 0; }
.rolecard:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.rolecard .ri { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.rolecard .ri .ic { width: 24px; height: 24px; }
.rolecard h3 { font-size: 1.2rem; margin: 4px 0 0; }
.rolecard p { margin: 0; color: var(--muted); font-size: .97rem; flex: 1; }
.rolecard .more { color: var(--accent); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.rolecard .more .ic { width: 16px; height: 16px; }
@media (max-width: 899px) {
  .rolecards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 0 20px 8px; scrollbar-width: none; }
  .rolecards::-webkit-scrollbar { display: none; }
  .rolecard { flex: 0 0 78%; scroll-snap-align: start; }
}

/* how it works */
.steps { display: grid; gap: 16px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.step .n { display: inline-flex; width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: var(--on-accent); align-items: center; justify-content: center; font-weight: 800; margin-bottom: 12px; }
.step p { color: var(--muted); margin: 0; }

/* pricing */
.plans { display: grid; gap: 20px; max-width: 920px; }
@media (min-width: 800px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--accent); }
.pname { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; }
.pname .ic { color: var(--accent); }
.price { font-family: var(--head); font-size: 2.6rem; font-weight: 800; margin: 8px 0 4px; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.pdesc { color: var(--muted); margin: 0 0 16px; }
.plan .points { margin-bottom: 22px; flex: 1; }
.promise { background: var(--accent-soft); border-radius: 12px; padding: 12px 14px; font-size: .93rem; margin-bottom: 18px; }
.promise strong { color: var(--accent); }
/* pricing: the founding-member offer, then one card per role with its plans (D28) */
.founder { display: grid; gap: 16px; align-items: center; background: var(--accent-soft); border: 2px solid var(--accent); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; max-width: 920px; }
.founder h3 { margin: 0 0 6px; }
.founder p { margin: 0; color: var(--text); }
.founder-ic { width: 48px; height: 48px; border-radius: 999px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }
.founder-ic .ic { width: 24px; height: 24px; }
@media (min-width: 800px) { .founder { grid-template-columns: auto 1fr auto; } }
.plans-roles .pdesc { margin-bottom: 12px; }
.tiers { margin: 0 0 22px; flex: 1; display: grid; gap: 0; align-content: start; }
.tier { padding: 12px 0; border-top: 1px solid var(--border); }
.tier dt { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.tier dd { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }
.tier-later dt, .tier-later dd { color: var(--muted); }
.later { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px; color: var(--muted); }
.pricing-fine { max-width: 920px; margin-top: 20px; }

/* early access */
.early { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eagrid { display: grid; gap: 14px; }
@media (min-width: 640px) { .eagrid { grid-template-columns: 1fr 1fr; } }
form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .95rem; }
form input:not([type=checkbox]), form textarea { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); color: var(--text); font-weight: 400; }
form input:focus, form textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.opt { color: var(--muted); font-weight: 400; }
fieldset { border: 0; padding: 0; margin: 18px 0; }
legend { font-weight: 600; font-size: .95rem; margin-bottom: 8px; }
.eakinds { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .eakinds { grid-template-columns: 1fr 1fr; } }
.eakinds label { flex-direction: row; align-items: center; gap: 12px; padding: 14px 16px; min-height: 56px; border: 1.5px solid var(--border); border-radius: 14px; cursor: pointer; font-weight: 600; background: var(--bg); }
.eakinds label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.eakinds input { width: 20px; height: 20px; accent-color: var(--accent); }
.eakinds .ic { color: var(--accent); }
.earow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.wait { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: .95rem; margin: 0 0 20px; }
.wait .ic { color: var(--accent); }
#eamsg.err { color: var(--bad); }
.eadone { background: var(--accent-soft); border-radius: 16px; padding: 22px; }
.eadone h3 { display: flex; gap: 10px; align-items: center; }
.eadone ol { margin: 10px 0 0; padding-left: 20px; }
.eadone li { margin: 4px 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }

/* faq */
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }
.faqmore { margin-top: 14px; }
.faqmore > summary { display: inline-flex; color: var(--accent); font-weight: 700; cursor: pointer; padding: 8px 0; list-style: none; }
.faqmore > summary::-webkit-details-marker { display: none; }
.faqmore[open] > summary { display: none; }

/* final call to action */
.final { background: var(--deep); color: var(--on-deep); text-align: center; }
.final h2 { color: var(--on-deep); }
.final p { color: var(--on-deep-muted); font-size: 1.1rem; margin: 0 0 24px; }

/* role pages */
.rhero { padding: 56px 0 24px; }
.rhero h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); letter-spacing: -0.025em; max-width: 820px; }
.rhero .lead { max-width: 680px; }
.minis { display: grid; gap: 16px; }
@media (min-width: 800px) { .minis { grid-template-columns: repeat(3, 1fr); } }
.mini { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.mini .ri { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.mini p { color: var(--muted); margin: 0; font-size: .97rem; }
.soon { font-size: .75rem; font-weight: 700; color: var(--info); background: var(--info-bg); padding: 2px 8px; border-radius: 6px; letter-spacing: .03em; text-transform: uppercase; vertical-align: 2px; }

/* footer */
.foot { padding: 36px 0; border-top: 1px solid var(--border); }
.footin { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.foot nav a:hover { color: var(--text); }
.copy { color: var(--muted); font-size: .88rem; }
.brand.small { font-size: 1rem; }

.herogrid > * { min-width: 0; }
@media (max-width: 640px) { .rhero .shot { max-width: 300px; margin: 0 auto; border-radius: 26px; border: 6px solid var(--bezel); } }
