/* DevShare's site: the icon's black and off-white, the Mac app's blue for links. */
:root {
  color-scheme: light dark;
  --ground: #f4f3f1;
  --card: #ffffff;
  --ink: #1e1d1b;
  --muted: #6f6c68;
  --line: #dedbd7;
  --accent: #2f6fed;
  --ok: #1f8a4c;
  --code-ground: #1e1d1b;
  --code-ink: #f4f3f1;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wide: 68rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #171615;
    --card: #232221;
    --ink: #eceae7;
    --muted: #a09c97;
    --line: #353331;
    --accent: #6f9bff;
    --ok: #5cc58a;
    --code-ground: #0f0e0e;
    --code-ink: #eceae7;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 0.15em; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
code, pre { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }

/* The bar */
.bar {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: inherit; text-decoration: none; font-weight: 650; letter-spacing: -0.01em; }
.brand img { border-radius: 7px; box-shadow: 0 0 0 1px var(--line); }
.bar nav { display: flex; gap: 1.25rem; font-size: 0.95rem; }
.bar nav a { color: var(--muted); text-decoration: none; }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--ink); }

/* Sections */
main { display: block; }
section { max-width: var(--wide); margin: 0 auto; padding: 4.5rem 1.25rem; }
section + section { border-top: 1px solid var(--line); }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; }
h2 { font-size: 1.9rem; margin: 0 0 1.5rem; }
h3 { font-size: 1.08rem; margin: 0 0 0.5rem; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; }
.actions .button, .closing .button { padding: 0.7rem 1.3rem; font-weight: 600; }

.closing .soon { margin: 0 0 1.25rem; }
.hero-shot img, .demo img {
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 18px 40px -18px rgba(0, 0, 0, 0.25);
}
figure { margin: 0; }

/* The hero: the logo and the name on the left, what it does on the right, the screens below */
.lead { font-size: 1.15rem; }
.hero { padding-top: 3.5rem; }
.hero-text { display: flex; justify-content: center; margin-bottom: 4rem; }
.section-lead { max-width: 40rem; margin: -0.5rem 0 2rem; color: var(--muted); }
.identity { display: flex; align-items: center; gap: 2rem; }
.hero-logo { flex: none; width: 152px; height: 152px; border-radius: 22%; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 16px 36px -14px rgba(0, 0, 0, 0.35); }
.hero h1 { font-size: clamp(2.8rem, 5.2vw, 4.4rem); line-height: 1; margin: 0 0 0.6rem; letter-spacing: -0.035em; }
.tagline { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.3; color: var(--muted); margin: 0; letter-spacing: -0.01em; white-space: nowrap; }
.hero .lead { font-size: 1.15rem; margin: 0 0 1.5rem; }
.keywords { list-style: none; margin: 1.1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.keywords li { font-family: var(--mono); font-size: 0.74rem; padding: 0.28rem 0.65rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--muted); }
.actions { align-items: center; }
.soon { color: var(--muted); font-size: 0.88rem; }
.closing .soon { display: block; margin: 0 0 1.25rem; }
/* The bar's logo would repeat the hero's on the home page. */
.page-home .bar .brand { visibility: hidden; }

/* On a phone or an iPad upright: the logo large and centred, everything under it centred. */
@media (max-width: 1024px) {
  .hero { padding-top: 2rem; }
  .hero-text { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; text-align: center; max-width: 40rem; margin-left: auto; margin-right: auto; }
  .identity { flex-direction: column; gap: 1.1rem; }
  .hero-logo { width: 120px; height: 120px; }
  .tagline { white-space: normal; }
  .keywords, .actions { justify-content: center; }
  .actions .soon { flex-basis: 100%; }
}

/* How it works */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); column-gap: 2rem; row-gap: 0; }
.steps li { counter-increment: step; display: grid; grid-row: span 4; grid-template-rows: subgrid; }
.steps li::before { content: "0" counter(step); font-family: var(--mono); color: var(--muted); font-size: 0.85rem; margin-bottom: 0.6rem; }
.steps p { margin-bottom: 1.25rem; }
pre {
  margin: 0.5rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  background: var(--code-ground);
  color: var(--code-ink);
  font-size: 0.86rem;
  line-height: 1.6;
  overflow-x: auto;
}
pre .dim { opacity: 0.55; }
.steps pre { min-height: 6.4em; }
pre .ok { color: #5cc58a; }

/* The guest */
.guest { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 4.5rem; align-items: center; }
.phone img { border-radius: 2.2rem; border: 8px solid var(--ink); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.35); }

/* Features */
.features dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; }
.features dl > div { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.features dt { font-weight: 650; margin-bottom: 0.3rem; }
.features dd { margin: 0; color: var(--muted); }

.demo { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; align-items: center; }
.private { max-width: 44rem; margin-left: auto; margin-right: auto; text-align: center; }
.closing { text-align: center; padding-bottom: 5.5rem; }
.closing h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.guest .lead, .demo .lead { font-size: 1.15rem; }
.button:hover { opacity: 0.85; }

/* The invitation */
.invitation { max-width: 32rem; margin: 10vh auto 0; padding: 0 1.25rem; }
.invitation h1 { font-size: 1.3rem; margin: 0 0 1.5rem; }
.invitation .code { font: 2.2rem var(--mono); letter-spacing: 0.08em; margin: 0 0 1.5rem; }
.invitation code { font-size: 0.9em; word-break: break-all; }
.button {
  font: inherit;
  padding: 0.4rem 1rem;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: none;
  color: inherit;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}
.button.primary, .ios #app { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.ios #app { font-size: 1.1rem; padding: 0.6rem 1.25rem; }
.ios .computer { opacity: 0.6; font-size: 0.9rem; }

/* Privacy, support: one column of text */
.text { max-width: 40rem; margin: 0 auto; padding: 2.5rem 1.25rem 2rem; }
.text h1 { font-size: 2rem; margin: 0 0 0.5rem; }
.text h2 { font-size: 1.15rem; margin: 2.25rem 0 0.6rem; letter-spacing: -0.01em; }
.text p, .text li { margin: 0 0 0.75rem; }
.text ul { padding-left: 1.2rem; }
.text table { border-collapse: collapse; width: 100%; font-size: 0.95em; }
.text th, .text td { text-align: left; vertical-align: top; padding: 0.45rem 0.6rem 0.45rem 0; border-bottom: 1px solid var(--line); }
.text .muted { color: var(--muted); }

/* The foot */
.foot {
  max-width: var(--wide);
  margin: 2rem auto 0;
  padding: 1.5rem 1.25rem 2.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
.foot nav a { color: var(--muted); }
/* Glitch Art's signature: black, in a white container, on any page. */
.foot .ga-credits { background: #fff; padding: 6px 10px; border-radius: 10px; }

@media (max-width: 860px) {
  .guest, .demo { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .steps, .features dl { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-rows: none; row-gap: 2rem; }
  .steps li { grid-row: auto; grid-template-rows: none; }
  .guest .phone { max-width: 15rem; margin: 0 auto; }
  section { padding: 3rem 1.25rem; }
  h2 { font-size: 1.6rem; }
}
@media (max-width: 480px) {
  .bar nav a[href="/#how"] { display: none; }
}

/* Mac, iPad, Duo and iPhone together: one composition, scaled with the page. */
.devices { position: relative; aspect-ratio: 16 / 8.4; margin: 0; }
.device { position: absolute; }
.device .screen { position: relative; background: #121212; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 28px 60px -24px rgba(0, 0, 0, 0.45); }
.device img { width: 100%; }
.mac { left: 10%; top: 0; width: 68%; }
.mac .screen { padding: 1.6%; border-radius: 16px 16px 4px 4px; }
.mac img { border-radius: 4px; }
.mac .base { height: 0.9vw; max-height: 12px; min-height: 5px; margin: 0 -7%; background: linear-gradient(#d8d6d2, #a9a6a1); border-radius: 0 0 14px 14px; }
.ipad { left: 2%; bottom: 0; width: 19%; }
.ipad .screen { padding: 3.6%; border-radius: 22px; }
.ipad img { border-radius: 10px; }
.duo { right: 14%; bottom: 0; width: 28%; }
.duo .screen { padding: 2.4%; border-radius: 26px; }
.duo img { border-radius: 16px; }
.duo .screen::after { content: ""; position: absolute; top: 2.4%; bottom: 2.4%; left: 50%; width: 1px; background: rgba(255, 255, 255, 0.16); }
.iphone { right: 1%; bottom: 3%; width: 12%; }
.iphone .screen { padding: 4.5%; border-radius: 26px; }
.iphone img { border-radius: 20px; }
@media (max-width: 860px) {
  .ipad .screen, .duo .screen { border-radius: 12px; }
  .ipad img, .duo img { border-radius: 6px; }
  .iphone .screen { border-radius: 14px; }
  .iphone img { border-radius: 10px; }
}
.lead .host { font-size: 0.92em; white-space: nowrap; }
.platforms { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 1.6rem; margin: 2.25rem 0 0; font-family: var(--mono); font-size: 0.85rem; color: var(--muted); letter-spacing: 0.04em; }

/* The three kinds of project */
.kind-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.kind { padding: 1.5rem; border-radius: 14px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; }
.kind svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1rem; }
.kind p { color: var(--muted); flex: 1; }
.kind code { font-size: 0.82rem; color: var(--muted); }
@media (max-width: 860px) {
  .kind-list { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
}

/* A computer: the bar, the hero and the screens fit the window's height, the screens taking what is left. */
@media (min-width: 1025px) {
  :root { --bar-h: 4.6rem; --logo: clamp(84px, 14vh, 200px); --hero-gap: clamp(1.25rem, 4.5vh, 4rem); --platforms-h: 3.4rem; }
  .hero { max-width: 120rem; min-height: calc(100vh - var(--bar-h)); min-height: calc(100svh - var(--bar-h)); padding-top: clamp(0.5rem, 2.5vh, 2.5rem); padding-bottom: clamp(0.75rem, 3vh, 2.5rem); display: flex; flex-direction: column; justify-content: center; }
  .hero-text { margin-bottom: var(--hero-gap); }
  .hero-logo { width: var(--logo); height: var(--logo); }
  .identity { gap: calc(var(--logo) * 0.2); }
  .hero h1 { font-size: calc(var(--logo) * 0.5); }
  .tagline { font-size: max(1.05rem, calc(var(--logo) * 0.145)); }
  .devices { width: min(100%, calc((100svh - var(--bar-h) - var(--logo) - var(--hero-gap) - var(--platforms-h) - clamp(1.25rem, 5.5vh, 5rem)) * 16 / 8.4)); margin: 0 auto; }
  .platforms { margin-top: 1.5rem; }
}

/* The steps as cards */
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem 1.4rem 1.4rem; }
.steps li::before { margin-bottom: 0.4rem; }
.steps h3 { margin-bottom: 0.35rem; }
.steps p { color: var(--muted); font-size: 0.97rem; }
.steps pre { min-height: 0; margin: 0; font-size: 0.82rem; white-space: pre; }

/* The guest's iPhone: its toolbar's buttons, the one picked circled in red */
.guest { grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); }
.phone .shot { position: relative; border-radius: 2.2rem; }
.phone .shot img { border: 0; box-shadow: none; border-radius: 0; }
.phone { border-radius: 2.2rem; border: 8px solid var(--ink); overflow: hidden; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.35); }
.phone img { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.hot, .spot { position: absolute; top: 94%; left: var(--x); width: calc(var(--w) + 3%); height: 6.6%; transform: translate(-50%, -50%); border-radius: 999px; }
.hot { border: 0; background: transparent; cursor: pointer; padding: 0; }
.spot { pointer-events: none; border: 3px solid #e5484d; box-shadow: 0 0 0 5px rgba(229, 72, 77, 0.22); opacity: 0; transition: left 0.35s ease, width 0.35s ease; }
.spot.on { opacity: 1; animation: spot-in 0.45s ease; }
@keyframes spot-in { from { transform: translate(-50%, -50%) scale(1.5); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.feature-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.75rem; }
.feature-tabs button { display: inline-flex; align-items: center; gap: 0.45rem; font: inherit; font-size: 0.95rem; padding: 0.5rem 0.95rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.feature-tabs button[aria-selected="true"] { border-color: #e5484d; box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.15); }
.feature-tabs svg, .feature-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.feature-tabs svg .fill, .feature-icon .fill { fill: currentColor; stroke: none; }
.feature-text { min-height: 9rem; }
.feature-text h3 { font-size: 1.35rem; margin: 0 0 0.6rem; }
.feature-text p { font-size: 1.1rem; color: var(--muted); max-width: 34rem; }

/* The features with their icons */
.feature-icon { width: 24px; height: 24px; margin-bottom: 0.6rem; color: var(--ink); }
@media (max-width: 860px) {
  .guest { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .guest .phone { width: min(16rem, 70vw); margin: 0 auto; }
  .feature-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .feature-tabs button { justify-content: center; }
  .feature-text { min-height: 11rem; }
}

/* The iPhone's carousel: the features' words stacked, the one shown fading in */
.feature-text { display: grid; min-height: 0; }
.feature-text > div { grid-area: 1 / 1; opacity: 0; transform: translateY(8px); transition: opacity 0.45s ease, transform 0.45s ease; pointer-events: none; }
.feature-text > div.shown { opacity: 1; transform: none; pointer-events: auto; }
.feature-text h3 { display: flex; align-items: center; gap: 0.6rem; }
.feature-text h3 svg { width: 26px; height: 26px; flex: none; fill: none; stroke: #e5484d; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature-text h3 svg .fill { fill: #e5484d; stroke: none; }
.dots { display: flex; gap: 0.55rem; margin: 1.5rem 0 0; }
.dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; transition: width 0.3s ease, background 0.3s ease; }
.dots button[aria-current="true"] { width: 26px; border-radius: 5px; background: #e5484d; }
.guest .guest-text h2 { margin-bottom: 1.5rem; }
@media (max-width: 860px) { .feature-text { min-height: 0; } .dots { justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .feature-text > div { transition: none; } }

/* No rules between sections or features: the spacing separates them. */
section + section { border-top: 0; }
.foot { border-top: 0; }
.features dl { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.25rem 2.5rem; }
.features dl > div { border-top: 0; padding: 0; }
.feature-icon { box-sizing: content-box; width: 22px; height: 22px; padding: 9px; margin-bottom: 0.9rem; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
@media (max-width: 860px) { .features dl { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.75rem 1.5rem; } }
@media (max-width: 480px) { .features dl { grid-template-columns: minmax(0, 1fr); } }

/* The foot's links: an icon each, "・" between them */
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.35rem; }
.foot-links a { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }
.foot-links svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.foot-links svg.mark { fill: currentColor; stroke: none; }
.foot-links svg .fill { fill: currentColor; stroke: none; }
.foot-links .sep { color: var(--muted); opacity: 0.55; }

/* The carousel's dots: a larger area to tap than the dot drawn; the phone's buttons and the dots outlined when reached by the keyboard. */
.dots button { position: relative; }
.dots button::after { content: ""; position: absolute; inset: -8px -4px; }
.hot:focus-visible, .dots button:focus-visible { outline: 3px solid #e5484d; outline-offset: 2px; }
