/* Sitewright. A drafting table: cool paper, graphite ink, construction lines, one signal orange. */
:root {
  --paper: #f4f6f7; --sheet: #ffffff; --ink: #1e2226; --soft: #575e66; --line: rgba(30, 34, 38, .16); --guide: rgba(30, 34, 38, .22);
  --signal: #e8501a; --signal-d: #bf3d0d; --dark: #1e2226; --dsoft: #b3bac1; --dline: rgba(255, 255, 255, .16);
  /* semantic colours: one meaning each, separate from the brand orange */
  --ok: #17663a; --warn: #7a5200; --err: #b3261e; --info: #23527f; --info-bg: #e6eef6; --ok-dark: #86d9a2; --warn-dark: #f0c670;
  --head: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gut: clamp(20px, 4.5vw, 64px); --r: 8px; --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
iframe { border: 0; display: block; }
:focus-visible { outline: 2.5px solid var(--signal-d); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--signal); color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r); }
.skip:focus { top: 12px; }
.wrap { width: min(1280px, 100% - 2 * var(--gut)); margin-inline: auto; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; font-stretch: 88%; letter-spacing: -.012em; text-wrap: balance; }
h2 { font-size: clamp(27px, 2.7vw, 40px); line-height: 1.08; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; background: var(--ink); color: #fff; border: 0; border-radius: var(--r); font: 600 15.5px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, transform .1s; }
.btn:hover { background: #000; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.tlink { display: inline-block; min-height: 44px; padding: 17px 0 3px; background: none; border: 0; border-bottom: 1.5px solid currentColor; font: 600 15px/1.3 var(--body); text-decoration: none; cursor: pointer; transition: color .15s; }
.tlink:hover { color: var(--signal-d); }

/* header */
.head { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 12px var(--gut); background: rgba(244, 246, 247, .96); border-bottom: 1px solid var(--line); }
.logo, .foot-logo { display: inline-flex; align-items: center; gap: 10px; font: 800 22px/1 var(--head); font-stretch: 84%; text-decoration: none; padding: 11px 0; }
.logo-mark { width: 22px; height: 16px; border: 2.5px solid currentColor; border-radius: 3px; position: relative; flex: none; }
.logo-mark::after { content: ""; position: absolute; right: -6px; top: -6px; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); }
.head-links { display: flex; gap: clamp(16px, 2.6vw, 38px); }
.head-links a { font-size: 15.5px; font-weight: 500; text-decoration: none; padding: 12px 0; background: linear-gradient(var(--signal), var(--signal)) no-repeat left 84% / 0 2px; transition: background-size .2s var(--ease); }
.head-links a:hover { background-size: 100% 2px; }
.head-right { display: flex; justify-content: flex-end; gap: 10px; }
.menu-btn { display: none; min-height: 44px; padding: 0 16px; background: none; border: 1.5px solid var(--ink); border-radius: var(--r); font-weight: 600; cursor: pointer; }
.sheet { position: fixed; inset: 0; z-index: 25; background: var(--paper); padding: 100px var(--gut) 40px; }
.sheet[hidden] { display: none; }
.sheet nav { display: grid; }
.sheet a { font: 700 28px/1.1 var(--head); font-stretch: 88%; text-decoration: none; padding: 16px 0; border-bottom: 1px solid var(--line); }

/* 1. opening screen */
.hero { position: relative; min-height: calc(100svh - 69px); display: grid; align-items: center; padding: clamp(28px, 6vh, 72px) var(--gut); overflow: hidden; }
.hero-in { width: min(860px, 100%); margin-inline: auto; text-align: center; }
.hero h1 { font-size: clamp(36px, 5.1vw, 72px); line-height: 1.02; font-stretch: 82%; font-weight: 800; animation: rise .6s var(--ease) backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }
.composer { position: relative; margin-top: clamp(26px, 4.5vh, 44px); background: var(--sheet); border-radius: 14px; box-shadow: 0 0 0 1.5px var(--ink), 0 26px 54px -22px rgba(30, 34, 38, .4); text-align: left; animation: card .7s var(--ease) .15s backwards; }
@keyframes card { from { opacity: 0; transform: translateY(26px); } }
/* construction lines running off the edges of the card, as on a drawing */
.guide { position: absolute; background: var(--guide); pointer-events: none; z-index: -1; animation: draw .9s var(--ease) .5s backwards; }
.guide-h { left: -100vw; right: -100vw; top: 0; height: 1px; transform-origin: center; }
.guide-b { top: auto; bottom: 0; }
.guide-v { top: -100vh; bottom: -100vh; left: 0; width: 1px; }
.guide-r { left: auto; right: 0; }
@keyframes draw { from { opacity: 0; } }
.c-input { padding: 18px 20px 6px; }
#idea { width: 100%; min-height: 64px; max-height: 220px; resize: none; border: 0; outline: 0; background: none; font-size: 20px; line-height: 1.4; }
#idea::placeholder { color: #7b838b; }
.composer:focus-within { box-shadow: 0 0 0 2.5px var(--signal-d), 0 26px 54px -22px rgba(30, 34, 38, .4); }
.c-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 12px 14px; border-top: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 44px; padding: 0 13px; background: var(--paper); border: 1.5px solid transparent; border-radius: var(--r); font-size: 14.5px; font-weight: 500; cursor: pointer; transition: border-color .15s, background-color .15s; }
.chip:hover { border-color: var(--ink); }
.chip:active { background: #e3e7ea; }
.c-right { display: flex; align-items: center; gap: 8px; flex: none; }
#kind { min-height: 44px; max-width: 13.5rem; padding: 0 28px 0 10px; border: 0; background: transparent; font-size: 14.5px; font-weight: 500; cursor: pointer; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 13px) 19px, calc(100% - 8px) 19px; background-size: 5px 5px; background-repeat: no-repeat; border-radius: var(--r); }
#kind:hover { background-color: var(--paper); }
.attach { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; border-radius: var(--r); cursor: pointer; color: var(--soft); transition: color .15s, background-color .15s; }
.attach:hover { color: var(--ink); background: var(--paper); }
.send { position: relative; min-height: 52px; padding: 0 24px; background: var(--signal-d); color: #fff; border: 0; border-radius: 10px; font: 700 16.5px/1 var(--body); cursor: pointer; white-space: nowrap; box-shadow: 0 3px 0 #86290a; transition: background-color .15s, transform .1s, box-shadow .1s; animation: pop .5s var(--ease) .55s backwards; }
@keyframes pop { from { opacity: 0; transform: scale(.8); } }
.send:hover { background: #a8350b; }
.send:active { transform: translateY(3px); box-shadow: 0 0 0 #86290a; }
.send[aria-busy="true"] { pointer-events: none; }
.send[aria-busy="true"] span { opacity: .4; }
.send[aria-busy="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 7px; height: 3px; background: #fff; border-radius: 2px; transform-origin: left; animation: load .6s linear infinite alternate; }
@keyframes load { from { transform: scaleX(.1); } to { transform: scaleX(1); } }
.c-file { padding: 0 20px 12px; font-size: 14px; color: var(--info); }
.c-file[hidden] { display: none; }
.err { color: var(--err); font-size: 14.5px; font-weight: 500; padding: 0 0 8px 22px; position: relative; }
.err:empty { display: none; }
.err::before { content: "!"; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--err); color: #fff; font: 700 11px/16px var(--body); text-align: center; }
.proto { margin: 18px auto 0; max-width: 44rem; padding: 10px 14px; background: var(--info-bg); color: var(--info); border-radius: var(--r); font-size: 14.5px; text-align: left; animation: rise .6s var(--ease) .7s backwards; }
.proto b { font-weight: 600; }
.proof { margin: 14px auto 0; max-width: 40rem; font-size: 15px; color: var(--soft); animation: rise .6s var(--ease) .8s backwards; }

/* 2. examples and preview */
.examples { padding-block: clamp(48px, 6vw, 84px); }
.ex-head { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 48px; align-items: end; margin-bottom: 26px; }
.ex-head p { color: var(--soft); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.6vw, 36px); }
.thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sheet); border-radius: 10px; box-shadow: 0 0 0 1.5px var(--ink); cursor: pointer; }
.thumb iframe { position: absolute; left: 0; top: 0; width: 1440px; height: 900px; transform-origin: 0 0; transform: scale(var(--s, .4)); pointer-events: none; }
.thumb::after { content: "Preview"; position: absolute; left: 12px; bottom: 12px; padding: 8px 12px; background: var(--ink); color: #fff; border-radius: 6px; font-size: 14px; font-weight: 600; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s var(--ease); }
.thumb:hover::after { opacity: 1; transform: none; }
.tile-text { padding-top: 14px; }
.tile-text h3 { font-size: 23px; }
.tile-text p { color: var(--soft); margin-top: 3px; }
.tile-actions { display: flex; flex-wrap: wrap; gap: 4px 26px; color: var(--ink) !important; }
.viewer { margin-top: clamp(30px, 4vw, 52px); scroll-margin-top: 84px; outline: 0; }
.viewer[hidden] { display: none; }
.viewer-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px 28px; margin-bottom: 14px; }
.viewer-bar h3 { font-size: 23px; }
.viewer-note { margin-top: 6px; padding: 8px 12px; background: var(--info-bg); color: var(--info); border-radius: var(--r); font-size: 14.5px; max-width: 46rem; overflow-wrap: anywhere; }
.viewer-tools[hidden] { display: none; }
.viewer-note.is-ok { background: #e3f1e8; color: var(--ok); }
.viewer-note.is-err { background: #fbe9e7; color: var(--err); }
/* the build screen: a list of steps beside the page as it is drawn */
.stagebox { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; }
.stagebox.is-building { grid-template-columns: minmax(0, 21rem) minmax(0, 1fr); }
.build { background: var(--sheet); border-radius: 10px; box-shadow: 0 0 0 1.5px var(--ink); padding: 20px 20px 18px; }
.build[hidden] { display: none; }
.build-now { font: 700 22px/1.2 var(--head); font-stretch: 88%; }
.build-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 6px; font-size: 14.5px; color: var(--soft); font-variant-numeric: tabular-nums; }
.build-steps { margin-top: 16px; border-top: 1.5px solid var(--ink); }
.build-steps > li { position: relative; padding: 10px 0 10px 32px; border-bottom: 1px solid var(--line); color: var(--soft); font-size: 15.5px; transition: color .2s; }
.build-steps > li::before { content: ""; position: absolute; left: 3px; top: 14px; width: 14px; height: 14px; border: 1.5px solid var(--guide); border-radius: 50%; transition: background-color .2s, border-color .2s; }
.build-steps > li.is-done { color: var(--ink); }
.build-steps > li.is-done::before { background: var(--ok); border-color: var(--ok); }
.build-steps > li.is-done::after { content: ""; position: absolute; left: 7px; top: 17px; width: 6px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.build-steps > li.is-now { color: var(--ink); font-weight: 600; }
.build-steps > li.is-now::before { border: 4.5px solid var(--signal); }
.build-steps > li.is-skipped { text-decoration: line-through; }
.build-sections { margin-top: 4px; font-weight: 400; }
.build-sections li { position: relative; padding: 3px 0 3px 14px; font-size: 14.5px; color: var(--soft); animation: sec-in .35s var(--ease); }
.build-sections li::before { content: ""; position: absolute; left: 0; top: 13px; width: 7px; border-top: 1.5px solid var(--signal-d); }
@keyframes sec-in { from { opacity: 0; transform: translateX(-6px); } }
.build-fine { margin-top: 12px; font-size: 13.5px; color: var(--soft); }
.frame.is-drawing::before { display: none; }
.frame.is-blank::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 39px, rgba(30, 34, 38, .07) 39px 40px), repeating-linear-gradient(90deg, transparent 0 39px, rgba(30, 34, 38, .07) 39px 40px); }
.wait { position: absolute; z-index: 3; left: 0; right: 0; top: 96px; margin: 0 auto; width: fit-content; max-width: calc(100% - 32px); padding: 12px 16px; background: var(--ink); color: #fff; border-radius: var(--r); font-size: 15.5px; font-weight: 500; text-align: center; }
.wait[hidden] { display: none; }
.viewer-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.seg { display: inline-flex; background: var(--sheet); border-radius: var(--r); box-shadow: 0 0 0 1.5px var(--ink); overflow: hidden; }
.seg button { min-height: 44px; padding: 0 14px; background: none; border: 0; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: background-color .15s, color .15s; }
.seg button:hover { background: var(--paper); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.frame { position: relative; height: min(74vh, 720px); background: var(--sheet); border-radius: 10px; box-shadow: 0 0 0 1.5px var(--ink); overflow: hidden; margin-inline: auto; transition: width .35s var(--ease); width: 100%; }
.frame.is-phone { width: min(390px, 100%); }
.frame iframe { width: 100%; height: 100%; }
/* skeleton shown only while the sample is still arriving */
.frame.is-loading::before { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, #e9edf0 0 64px, transparent 64px), linear-gradient(100deg, #f1f3f5 30%, #e3e8eb 50%, #f1f3f5 70%) 0 0 / 250% 100%; animation: skel 1.1s linear infinite; }
@keyframes skel { to { background-position: 0 0, -250% 0; } }

/* 3. the standard */
.dark { background: var(--dark); color: #fff; padding-block: clamp(52px, 6vw, 84px); }
.std-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.steps { margin-top: 26px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 14px 0 14px 52px; border-top: 1px solid var(--dline); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 13px; width: 34px; height: 34px; border: 2px solid var(--signal); border-radius: 50%; display: grid; place-items: center; font: 700 16px/1 var(--head); }
.steps b { display: block; font: 700 19px/1.25 var(--head); font-stretch: 90%; }
.steps span { display: block; color: var(--dsoft); font-size: 15.5px; }
.rules li { padding: 14px 0; border-top: 1px solid var(--dline); color: var(--dsoft); font-size: 15.5px; }
.rules li:last-child { border-bottom: 1px solid var(--dline); }
.rules b { display: block; color: #fff; font: 700 19px/1.25 var(--head); font-stretch: 90%; margin-bottom: 2px; }

/* 4. status */
.status { padding-block: clamp(48px, 6vw, 80px); }
.st-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px clamp(24px, 5vw, 80px); margin-top: 22px; }
.st-grid h3 { display: flex; align-items: center; gap: 9px; font-size: 19px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.st-grid h3::before { content: ""; width: 11px; height: 11px; border-radius: 3px; flex: none; }
.st-ok { color: var(--ok); } .st-ok::before { background: var(--ok); }
.st-wait { color: var(--warn); } .st-wait::before { background: var(--warn); }
.st-grid li { padding: 11px 0; border-bottom: 1px solid var(--line); }
.st-note { grid-column: 1 / -1; color: var(--soft); font-size: 15.5px; max-width: 46rem; }

/* footer */
.foot { background: var(--dark); color: #fff; padding-block: clamp(40px, 5vw, 60px) 28px; font-size: 15px; border-top: 1px solid var(--dline); }
.foot-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 28px clamp(24px, 5vw, 80px); }
.foot-logo { font-size: 26px; margin-bottom: 8px; }
.foot h3 { font: 600 13px/1.2 var(--body); font-stretch: 100%; letter-spacing: 0; color: var(--dsoft); margin-bottom: 10px; }
.foot p { margin-bottom: 6px; color: #e4e8eb; max-width: 24rem; }
.foot a { text-decoration: none; display: inline-block; padding: 11px 0; }
.foot p:has(a) { margin-bottom: 0; }
.foot a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-base { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--dline); }
.foot-base p { font-size: 13.5px; color: var(--dsoft); max-width: 50rem; margin: 0; }

@media (max-width: 980px) {
  .head { grid-template-columns: 1fr auto; }
  .head-links { display: none; }
  .menu-btn { display: block; }
  .c-tools { flex-direction: column; align-items: stretch; }
  .c-right { justify-content: space-between; }
  .ex-head, .std-grid { grid-template-columns: 1fr; }
  .stagebox.is-building { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16.5px; }
  .hero { padding-block: 28px 40px; min-height: 0; }
  .hero h1 { font-size: clamp(34px, 10.5vw, 48px); }
  #idea { font-size: 18px; min-height: 84px; }
  .head-right .btn { display: none; }
  .c-right { flex-wrap: wrap; }
  #kind { flex: 1 1 auto; max-width: none; }
  .send { flex: 1 1 100%; }
  .tiles, .st-grid, .foot-cols { grid-template-columns: 1fr; }
  .viewer-tools { width: 100%; }
  .stagebox.is-building .frame { height: 46vh; }
  .seg { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .frame.is-loading::before { animation: none; }
}
@media print { .head, .composer, .foot, .viewer { display: none; } .dark { background: #fff; color: #000; } }
