* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg); color: var(--text);
  min-height: 100vh;
}

main {
  max-width: 960px; margin: 0 auto;
  padding: 40px 20px 56px;
  display: flex; flex-direction: column; gap: 28px;
}

/* ---------- header ---------- */
header {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 14px;
  padding-top: 12px;
}
.wordmark {
  font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 2rem;
  color: var(--text);
}
.underline {
  width: 56px; height: 3px; border-radius: 2px; background: var(--accent);
}
h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1;
  text-transform: none; letter-spacing: -0.01em;
  max-width: 20ch;
}
p.sub { color: var(--muted); font-size: 1.05rem; line-height: 1.5; max-width: 52ch; }

/* ---------- screenshots ---------- */
.shots {
  display: flex; flex-direction: column; gap: 16px;
}
.shots img {
  width: 100%; height: auto;
  border: 1px solid var(--hairline); border-radius: 12px;
  display: block;
}
@media (min-width: 900px) {
  .shots { flex-direction: row; align-items: flex-start; }
  .shots img:first-child { flex: 1 1 66%; min-width: 0; }
  .shots img:last-child { flex: 0 0 auto; width: 33%; max-width: 280px; }
}

/* ---------- cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px;
  padding: 24px; display: flex; flex-direction: column; gap: 16px;
}
/* Author rules that set `display` unconditionally outrank the UA
   `[hidden] { display: none }` rule (author beats user-agent regardless of
   specificity) — .card sets display: flex above, so #create/#success's
   `hidden` attribute would silently do nothing without this override (same
   pitfall documented in control.css and display.css). */
.card[hidden] { display: none; }

form { display: flex; flex-direction: column; gap: 16px; }
label {
  display: flex; flex-direction: column; gap: 6px;
  font: 600 0.9rem var(--font-body); color: var(--text);
}
label.consent {
  flex-direction: row; align-items: center; gap: 10px;
  font-weight: 500; color: var(--muted);
}
label.consent input { flex: none; width: 18px; height: 18px; }

input {
  font: 600 1rem var(--font-body);
  background: var(--bg); color: var(--text);
  border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 0 14px; min-height: 48px;
  touch-action: manipulation;
}
input:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent);
}

button {
  font: 700 1.05rem var(--font-display); letter-spacing: 0.03em; text-transform: uppercase;
  border: 1px solid var(--accent); border-radius: var(--radius);
  background: var(--accent); color: #09090b;
  min-height: 52px; padding: 14px; touch-action: manipulation; cursor: pointer;
  transition: transform 120ms ease-out;
}
button:active { transform: scale(0.97); }
button:disabled { opacity: 0.5; pointer-events: none; }

.error { color: var(--st-rest); font: 600 0.9rem var(--font-body); }

/* ---------- success ---------- */
.linkrow {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 10px 12px; background: var(--bg);
}
.linkrow code {
  flex: 1 1 auto; min-width: 0;
  font-family: var(--font-body); font-size: 0.9rem; color: var(--text);
  word-break: break-all;
}
.linkrow button {
  flex: none; min-height: 40px; padding: 8px 16px; font-size: 0.85rem;
  background: var(--surface-2); color: var(--text); border-color: var(--hairline);
}

/* ---------- find-my-room ---------- */
#find summary {
  cursor: pointer; list-style: none;
}
#find summary::-webkit-details-marker { display: none; }
#find details[open] summary { margin-bottom: 4px; }
#find form { margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--hairline); }
#find-results {
  list-style: none; display: flex; flex-direction: column; gap: 8px;
}
#find-results li {
  border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 10px 12px; font: 600 0.9rem var(--font-body); color: var(--muted);
}
#find-results a { color: var(--accent); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 4px; }
.faq details {
  border-top: 1px solid var(--hairline); padding: 14px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--hairline); }
.faq summary {
  cursor: pointer; list-style: none;
  font: 700 1rem var(--font-body); color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin-top: 10px; color: var(--muted); line-height: 1.5; }

/* ---------- footer ---------- */
footer {
  text-align: center; padding-top: 8px;
  font-family: var(--font-display); font-weight: 500; font-size: 0.72rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
footer a { color: var(--muted); }
