:root {
  --blue: #2f6bff;
  --ink: #142033;
  --muted: #5d6b86;
  --line: #e6ebf4;
  --bg: #f3f6fb;
  --card: #fff;
  --felt: #17603a;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: "Avenir Next", "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--blue); }
button, input, textarea { font: inherit; }
.top { display: flex; align-items: center; gap: 16px; height: 64px; padding: 0 28px; background: #fff; border-bottom: 1px solid var(--line); }
.brand { font-weight: 800; font-size: 22px; letter-spacing: -.03em; color: var(--blue); text-decoration: none; }
.tag { color: var(--muted); font-size: 13px; }
#nav { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.stage { display: grid; grid-template-columns: 1.15fr .85fr; min-height: calc(100vh - 64px); }
.hero { background: var(--ink); color: #fff; padding: 72px 64px; display: flex; flex-direction: column; justify-content: center; }
.mark { font-weight: 800; letter-spacing: .18em; font-size: 13px; color: #9eb6ff; }
.hero h1 { font-size: 64px; line-height: .95; letter-spacing: -.04em; margin: 18px 0; max-width: 520px; }
.hero p { max-width: 460px; color: #c9d3e6; font-size: 18px; }
.hero ul { padding: 0; margin: 28px 0; list-style: none; }
.hero li { padding: 8px 0 8px 18px; border-left: 3px solid var(--felt); margin: 8px 0; }
.hero a { color: #fff; }
.auth { display: flex; flex-direction: column; justify-content: center; padding: 40px; }
.switch { display: flex; gap: 8px; margin-bottom: 16px; }
.switch button { background: transparent; color: var(--muted); border: 0; padding: 8px 4px; cursor: pointer; }
.switch button.on { color: var(--ink); font-weight: 800; box-shadow: inset 0 -2px 0 var(--blue); }
.panel { background: #fff; border-radius: 20px; padding: 28px; box-shadow: 0 20px 50px rgba(20, 32, 51, .06); }
.panel h2 { margin: 0 0 8px; font-size: 28px; letter-spacing: -.03em; }
label { display: block; margin: 14px 0 0; font-size: 13px; color: var(--muted); }
input, textarea { width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; }
.check { display: flex; gap: 8px; align-items: center; color: var(--ink); }
.check input { width: auto; }
.panel button, #feed button, .ghost { border: 0; border-radius: 999px; padding: 10px 16px; cursor: pointer; }
.panel > button, #composer button[type="submit"], #reply button { background: var(--blue); color: #fff; margin-top: 16px; }
.error { color: #d64545; min-height: 1.2em; }
#feed, #verify { max-width: 680px; margin: 0 auto; padding: 24px 16px 64px; }
#verify .panel, #verify form { max-width: 420px; }
.tabs { display: flex; gap: 18px; margin-bottom: 8px; }
.tabs button { background: transparent; border: 0; color: var(--muted); padding: 10px 0; cursor: pointer; }
.tabs button.on { color: var(--ink); font-weight: 800; box-shadow: inset 0 -2px 0 var(--blue); }
#composer, #reply { background: #fff; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 16px 0; box-shadow: none; }
#composer textarea, #reply textarea { border: 0; background: transparent; font-size: 18px; padding: 8px 0; }
.post { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 16px 0; }
.post h3 { margin: 0 0 6px; }
.post img, .post video { width: min(100%, 420px); border-radius: 16px; margin-top: 8px; }
.embed { border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin-top: 8px; }
.actions { display: flex; gap: 8px; }
.actions button, button.ghost, .file { background: transparent; color: var(--muted); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.file input { display: none; }
.muted { color: var(--muted); }
.auth-modal { position: fixed; inset: 0; z-index: 40; background: rgba(17, 24, 39, .45); display: grid; place-items: center; padding: 16px; }
.auth-card { position: relative; width: min(420px, 100%); background: #fff; border-radius: 20px; padding: 28px 28px 8px; box-shadow: 0 20px 50px rgba(20, 32, 51, .12); }
.auth-modal .panel { width: 100%; max-height: min(90vh, 760px); overflow: auto; background: transparent; box-shadow: none; padding: 0 0 16px; }
.auth-modal .switch { display: flex; gap: 16px; }
.auth-close { position: absolute; top: 12px; right: 12px; z-index: 2; border: 0; background: #fff; border-radius: 999px; width: 36px; height: 36px; cursor: pointer; font-size: 18px; }
#tanitim-note:not([hidden]) { display: block; margin-top: 12px; color: #d64545; font-size: 14px; }
@media (max-width: 900px) {
  .stage { grid-template-columns: 1fr; }
  .hero { padding: 36px 24px; }
  .hero h1 { font-size: 42px; }
  .auth { padding: 24px; }
}
