/* GuildNet's public landing page (A3). Colours, type and radii come from
   tokens.css; this file is layout only. */

body { font-size: 17px; line-height: 1.55; }
h1, h2, p { margin: 0; }
h1, h2 { line-height: 1.05; }
.gutter, .top, .hero, .transcript, .irc, .bottom { padding-left: clamp(16px, 6vw, 80px); padding-right: clamp(16px, 6vw, 80px); }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 22px; text-decoration: none; }
.brand:hover { color: var(--text); }
.brand .hash { font-size: 26px; }
.top nav { display: flex; gap: 24px; align-items: center; font-size: 15px; }
.top .quiet { color: var(--muted); text-decoration: none; }
.top .quiet:hover { color: var(--text); }
.top .button { height: 42px; padding: 0 18px; font-weight: 600; }

.hero { padding-top: clamp(40px, 7vw, 72px); padding-bottom: 48px; display: flex; flex-direction: column; gap: 32px; }
.kicker { font-family: var(--mono); font-size: 14px; color: var(--accent); }
h1 { font-size: clamp(42px, 6.6vw, 84px); letter-spacing: -.03em; font-weight: 700; max-width: 1080px; }
.pitch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: end; }
.lede { font-size: 20px; color: var(--muted); }
.signup { display: flex; flex-direction: column; gap: 10px; }
.fine { font-size: 14px; color: var(--faint); }

.waitlist { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; align-items: end; }
.waitlist input { height: 50px; font-size: 16px; }
.waitlist button { height: 50px; padding: 0 22px; font-size: 16px; }
.waitlist .error { grid-column: 1 / -1; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.joined { background: var(--tonal); color: var(--on-tonal); border-radius: var(--radius); padding: 14px 16px; font-weight: 500; }

/* The transcript is a terminal in both themes. */
.transcript { padding-top: 16px; padding-bottom: 64px; }
.window { background: var(--term); border: 1px solid var(--term-edge); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow); }
.titlebar { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid var(--term-line); font-family: var(--mono); font-size: 13px; color: var(--term-faint); }
.titlebar i { width: 10px; height: 10px; border-radius: 5px; background: #3a3f4d; }
.titlebar span { margin-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lines { padding: 20px 26px; font-family: var(--mono); font-size: 15px; line-height: 2; color: var(--term-text); overflow-x: auto; }
.lines b { font-weight: 400; color: var(--term-bright); }
.lines b.agent { color: var(--term-accent); }

/* Three steps between rules. */
.steps { margin: 0 clamp(16px, 6vw, 80px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps article { padding: 36px 32px; display: flex; flex-direction: column; gap: 12px; }
.steps article:first-child { padding-left: 0; }
.steps article:last-child { padding-right: 0; }
.steps article + article { border-left: 1px solid var(--line); }
.steps h2 { font-size: 26px; line-height: 1.15; }
.steps p:not(.kicker) { color: var(--muted); }
.tile { width: 44px; height: 44px; border-radius: 10px; background: var(--tonal); color: var(--on-tonal); display: flex; align-items: center; justify-content: center; }

.irc { padding-top: 72px; padding-bottom: 72px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.irc h2 { font-size: clamp(36px, 4.4vw, 56px); letter-spacing: -.025em; }
.irc p { font-size: 19px; color: var(--muted); margin-bottom: 18px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.chips li { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 6px 12px; font-size: 14px; }

/* The call to action: an accent band. */
.beta { margin: 0 clamp(16px, 6vw, 80px) 64px; padding: 48px; background: var(--accent); color: var(--on-accent); border-radius: var(--radius-card); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.beta h2 { font-size: 40px; letter-spacing: -.02em; margin-bottom: 8px; }
.beta p { font-size: 18px; }
.beta label { color: var(--on-accent); opacity: .9; }
.beta input { border-color: transparent; }
.beta input:focus { outline-color: var(--on-accent); }
.beta button { background: var(--on-accent); color: var(--accent); }
.beta button:hover { background: var(--on-accent); color: var(--accent); opacity: .9; }
.beta .joined { background: var(--on-accent); color: var(--accent); }
.beta .error { background: var(--on-accent); color: var(--danger); }

.bottom { padding-top: 26px; padding-bottom: 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--faint); font-size: 14px; }

@media (max-width: 900px) {
  .pitch, .irc, .beta { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr; }
  .steps article { padding: 28px 0; }
  .steps article + article { border-left: 0; border-top: 1px solid var(--line); }
  .top .quiet { display: none; }
  .beta { padding: 32px 24px; }
  .beta h2 { font-size: 32px; }
}

@media (max-width: 520px) {
  .waitlist { grid-template-columns: 1fr; }
  .top nav { gap: 10px; }
  .top .button { padding: 0 14px; }
  .lines { font-size: 13px; padding: 16px; }
  .lede { font-size: 18px; }
}

/* Plain pages, like privacy. */
.prose { max-width: 720px; padding: 48px clamp(16px, 6vw, 80px) 72px; display: flex; flex-direction: column; gap: 14px; }
.prose h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 8px; }
.prose h2 { font-size: 22px; margin-top: 18px; }
.prose p { color: var(--muted); }
.bottom a { color: var(--faint); }
