/* NOAN's own pages (/ and /launch): a desktop site that folds down to a phone.
   The event app keeps app.css and its phone-width column. */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100dvh; background: var(--bg); color: var(--text); font-family: var(--f-sans, system-ui, sans-serif); -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: var(--voice-bg); opacity: .7; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hidden { display: none !important; }
a { color: inherit; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 32px; }

/* top bar: the NOAN mark with "Events" beside it */
.topbar { border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); }
.brand .mark { height: 26px; display: flex; color: var(--text); }
.brand .mark svg { height: 100%; width: auto; }
.brand .word { padding-left: 14px; border-left: 1px solid var(--line); font-size: 20px; font-weight: 600; letter-spacing: -.01em; line-height: 26px; }
.navlink { font-size: 15px; font-weight: 500; color: var(--dim); text-decoration: none; }
.navlink:hover { color: var(--text); }

main { flex: 1; }
h1 { font-family: var(--f-head); font-weight: var(--head-w); text-transform: var(--head-case); letter-spacing: var(--head-track); line-height: .98; margin: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; height: 48px; padding: 0 24px; font-size: 15px; font-weight: 600; text-decoration: none; background: var(--accent); color: var(--on-accent); }
.btn.big { height: 56px; padding: 0 32px; font-size: 17px; }
.btn.ghost { background: transparent; color: var(--text); box-shadow: 0 0 0 1px var(--line) inset; }
.linkbtn { background: none; border: 0; color: var(--dim); font-size: 14px; padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; }

/* the front page */
.hero { padding-top: clamp(48px, 9vh, 112px); padding-bottom: 80px; }
.hero h1 { font-size: clamp(48px, 7vw, 96px); max-width: 14ch; }
.hero h1 span { color: var(--accent); }
.hero .lead { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; color: var(--dim); max-width: 600px; margin: 28px 0 36px; }
.steps { list-style: none; margin: 96px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 20px; border-top: 1px solid var(--line); color: var(--dim); font-size: 15px; line-height: 1.5; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--f-head); font-size: 28px; color: var(--accent); margin-bottom: 10px; }
.steps b { display: block; color: var(--text); font-size: 17px; margin-bottom: 4px; }

/* sign-in and the event list */
.page { padding-top: 64px; padding-bottom: 80px; }
.card { background: color-mix(in oklab, var(--surface), transparent 10%); border: 1px solid var(--line); border-radius: 20px; padding: 40px; }
.narrow { max-width: 460px; margin: 0 auto; }
.narrow h1 { font-size: 44px; margin-bottom: 12px; }
.narrow > p { color: var(--dim); margin: 0 0 28px; font-size: 16px; line-height: 1.5; }
.si-form { display: flex; flex-direction: column; gap: 10px; }
.si-form label { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); }
.si-form input { height: 50px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 17px var(--f-sans); padding: 0 16px; outline: 0; }
.si-form input:focus { border-color: var(--accent); }
.si-form .btn { margin-top: 6px; }
.si-msg { min-height: 22px; margin: 14px 0 0; font-size: 14px; }

.panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.panel-head h1 { font-size: 56px; }
.panel-head p { color: var(--dim); margin: 10px 0 0; }
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.event { padding: 28px; display: flex; flex-direction: column; }
.event h2 { font-family: var(--f-head); font-weight: var(--head-w); text-transform: var(--head-case); letter-spacing: var(--head-track); font-size: 26px; margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.pill { font-family: var(--f-sans); text-transform: uppercase; font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; background: var(--live); color: var(--bg); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0 0 22px; font-size: 14px; }
.facts dt { color: var(--dim); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts a { color: var(--link); }
.tag-edit { display: flex; flex-direction: column; gap: 10px; margin: 0 0 22px; }
.tag-edit label { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); }
.tag-edit select, .tag-edit input { height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 15px var(--f-sans); padding: 0 14px; outline: 0; }
.tag-edit select:focus, .tag-edit input:focus { border-color: var(--accent); }
.tag-edit .note { color: var(--dim); font-size: 13px; line-height: 1.45; margin: 0; }
.tag-edit .row { display: flex; align-items: center; gap: 16px; }
.tag-edit .row .btn { margin-top: 0; }
.logo-preview { height: 56px; display: flex; align-items: center; padding: 10px 14px; border: 1px dashed var(--line); border-radius: 12px; color: var(--text); }
.logo-preview svg, .logo-preview img { height: 100%; width: auto; max-width: 220px; object-fit: contain; }
.logo-preview .wordmark { font-family: var(--f-head); font-size: 22px; }
.danger { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.btn.ghost.danger-btn { color: var(--warn); box-shadow: 0 0 0 1px var(--warn) inset; }
.tag-edit .si-msg { margin: 0; min-height: 0; }
.facts .linkbtn { padding: 0 0 0 6px; font-size: 13px; }
.pill.draft { background: var(--dim); }
.pill.paused { background: var(--warn); }
.facts .notes { margin: 0; padding-left: 18px; color: var(--dim); line-height: 1.45; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.actions .btn { margin-top: 0; }
.event > .si-msg { margin: 10px 0 0; min-height: 0; }
.new-event { margin-bottom: 24px; }
.new-event h2 { font-family: var(--f-head); font-weight: var(--head-w); text-transform: var(--head-case); font-size: 26px; margin: 0 0 6px; }
.new-event > p { color: var(--dim); margin: 0 0 22px; }
.new-event .fields { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.new-event label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); }
.new-event input { height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 15px var(--f-sans); padding: 0 14px; outline: 0; text-transform: none; letter-spacing: 0; min-width: 0; }
.new-event input:focus { border-color: var(--accent); }
.new-event .prefix { display: flex; align-items: center; gap: 2px; font: 14px var(--f-sans); text-transform: none; letter-spacing: 0; color: var(--dim); }
.new-event .prefix input { flex: 1; }
.new-event .row { display: flex; align-items: center; gap: 16px; }
.new-event .si-msg { margin: 12px 0 0; }
.event .btn { align-self: flex-start; margin-top: auto; height: 40px; font-size: 14px; }

@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .topbar .wrap { height: 60px; }
  .brand .mark { height: 20px; }
  .brand .word { font-size: 16px; line-height: 20px; padding-left: 10px; }
  .steps { grid-template-columns: 1fr; margin-top: 56px; }
  .card { padding: 28px 22px; }
  .panel-head { flex-direction: column; align-items: flex-start; }
  .panel-head h1 { font-size: 40px; }
  .events { grid-template-columns: 1fr; }
  .new-event .fields { grid-template-columns: 1fr; }
}
