:root { --ink: #16202b; --muted: #5a6573; --brand: #1f4e79; --accent: #e0a526; --paper: #faf8f4; --line: #e4dfd5; }
* { box-sizing: border-box; }
body { margin: 0; font: 17px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--paper); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.wrap { width: min(1100px, 100% - 2.5rem); margin-inline: auto; }
.top { padding: 1.2rem 0; }
.logo { font-size: 1.1rem; font-weight: 700; color: inherit; text-decoration: none; }
h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); line-height: 1.05; margin: 0 0 .4em; max-width: 16ch; }
.muted { color: var(--muted); }
.hero { padding: clamp(2rem, 8vw, 6rem) 0 3rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 56ch; }
.claim { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.6rem; max-width: 640px; }
.claim input { flex: 1 1 260px; font: inherit; padding: .9rem 1.1rem; border: 2px solid var(--line); border-radius: 12px; background: #fff; }
.claim input:focus { outline: none; border-color: var(--brand); }
.claim button, .button { font: inherit; font-weight: 650; padding: .9rem 1.4rem; border: 0; border-radius: 12px;
  background: var(--brand); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; }
.button.ghost { background: #fff; color: var(--ink); border: 2px solid var(--line); padding: .7rem 1.2rem; }
button:disabled { opacity: .6; cursor: wait; }
.error { color: #a32020; }
.steps { display: grid; gap: 1.5rem; padding: 3rem 0 5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid var(--line); }
.steps p { color: var(--muted); margin: 0; }

.share-head { padding: clamp(1.5rem, 5vw, 3.5rem) 0 1rem; }
.failed { padding-bottom: 2rem; }
.log { color: var(--muted); padding-left: 1.2rem; }
.log li:last-child { color: var(--ink); font-weight: 600; }
.viewer { padding-bottom: 2rem; }
.viewer-bar { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.viewer-bar .button.ghost { margin-left: auto; }
.tabs { display: inline-flex; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.tabs button { font: inherit; font-weight: 600; border: 0; background: none; padding: .55rem 1rem; cursor: pointer; }
.tabs button[aria-selected="true"], .tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.stage { width: min(1300px, 100% - 2.5rem); margin-inline: auto; transition: width .2s; }
.stage.phone { width: 400px; max-width: calc(100% - 2.5rem); }
.stage iframe { width: 100%; height: 78vh; border: 1px solid var(--line); border-radius: 14px; background: #fff;
  box-shadow: 0 10px 40px rgba(22, 32, 43, .12); }
.mine { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; padding: 3rem 0 5rem; border-top: 1px solid var(--line); margin-top: 2rem; }
.mine h2 { margin-top: 0; font-size: 1.9rem; }
.claim-form { display: grid; gap: .8rem; }
.claim-form label { display: grid; gap: .3rem; font-weight: 600; font-size: .95rem; }
.claim-form input, .claim-form textarea { font: inherit; font-weight: 400; padding: .7rem .9rem; border: 2px solid var(--line); border-radius: 10px; background: #fff; }
.claim-form .button { justify-self: start; }
@media (max-width: 760px) { .mine { grid-template-columns: 1fr; } .viewer-bar .button { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .stage { transition: none; } }

/* Signed-in owners */
.top { display: flex; justify-content: space-between; align-items: center; }
.auth { display: flex; gap: .75rem; align-items: center; }
.links { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; padding: 3rem 0 2rem; border-top: 1px solid var(--line); margin-top: 2rem; }
.links h2 { margin-top: 0; font-size: 1.9rem; }
.link-list, .site-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.link-list li { display: flex; gap: .5rem; align-items: center; }
.link-list input { flex: 1; min-width: 0; font: inherit; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: inherit; }
.site-list a { font-size: 1.2rem; }
@media (max-width: 760px) { .links { grid-template-columns: 1fr; } }

/* building: a three-step progress card beside the site they have today */
.build { padding-bottom: 3rem; }
.build-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2rem; align-items: start; background: #fff;
  border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.2rem, 3vw, 2rem); box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 10px 30px rgba(0,0,0,.05); }
.eyebrow { margin: 0 0 .3rem; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.build-main h2 { margin: 0 0 .4rem; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.2; }
.bar { height: 8px; border-radius: 999px; background: #ece8df; overflow: hidden; margin: 1.2rem 0 1.4rem; }
.bar span { display: block; height: 100%; width: 3%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), #3b82c4);
  transition: width .8s ease; }
.build-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.build-steps li { display: grid; grid-template-columns: 26px 1fr; gap: .7rem; align-items: start; color: var(--muted); }
.build-steps li b { display: block; color: inherit; font-weight: 650; }
.build-steps small { font-size: .9rem; }
.build-steps .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #d8d2c6; margin-top: 2px; position: relative; }
.build-steps li.now { color: var(--ink); }
.build-steps li.now .dot { border-color: var(--brand); border-top-color: transparent; animation: spin 1s linear infinite; }
.build-steps li.done .dot { background: #2f7d4f; border-color: #2f7d4f; }
.build-steps li.done .dot::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff;
  border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes spin { to { transform: rotate(360deg); } }
.build-log { margin-top: 1.4rem; font-size: .9rem; }
.build-log summary { cursor: pointer; color: var(--muted); }
.build-before { margin: 0; }
.before-frame { position: relative; aspect-ratio: 16 / 11; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #f3f1ec; }
.before-frame iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; pointer-events: none; }
.before-wait { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .95rem;
  background: linear-gradient(110deg, #f0ede6 30%, #f8f6f1 50%, #f0ede6 70%) 0 0 / 300% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -300% 0; } }
.build-before figcaption { margin-top: .6rem; color: var(--muted); font-size: .9rem; }
@media (max-width: 820px) { .build-card { grid-template-columns: 1fr; } }
