/* Google-clean + Dieter Rams white */
:root{
  --bg: #fafafa;
  --ink: #111;
  --muted: #6d6d72;
  --line: #e9e9ec;
  --card: #fff;
  --radius: 22px;
  --shadow: 0 18px 36px rgba(0,0,0,0.06);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, system-ui, "Segoe UI", Inter, Roboto, Arial;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a{color:var(--ink); text-decoration:none}
a:hover{text-decoration:underline}
.link-red{color:#c30000; font-weight:600}
.link-plain{opacity:.85}
.link-plain:hover{opacity:1}

/* Header */
.site-header{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  position: sticky; top:0; z-index:50;
}
.brand{display:flex; align-items:center; gap:10px; font-weight:600;}
.dot{width:10px; height:10px; border-radius:50%; background:#111; display:inline-block}
.nav .btn{ font-size: 14px; padding: 8px 14px }

/* Hero centered with dynamic viewport sizing */
.hero{
  display:flex; align-items:center; justify-content:center;
  min-height: calc(100svh - 120px);
  padding: 0 20px;
}
.hero-inner{ text-align:center; max-width: 840px; width:100% }
.hero-inner h1{ font-size: 46px; letter-spacing:-.02em; margin:0 0 8px 0 }
.sub{ color: var(--muted); margin: 0 0 16px 0 }

/* Card */
.search-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.typer{
  background: #fdfdfd;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 92px;
  font-size: 28px;
  padding: 12px 14px;
  text-align: left;
  outline: none;
  -webkit-user-select: text; user-select: text; -webkit-overflow-scrolling: touch;
}
.typer:empty::before{content:"Type here…"; color:#b6b6bc}

.controls{display:flex; gap:12px; flex-wrap:wrap; justify-content:center; margin: 12px 0 6px 0}
.toggle{display:flex; align-items:center; gap:8px; font-size:13px; color:var(--muted)}
.toggle input{accent-color:#111}

.streams{
  display:grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 8px;
}
@media (max-width: 900px){ .streams{grid-template-columns: 1fr 1fr} }
.stream{border:1px solid var(--line); border-radius:14px; padding:12px; background: #fff}
.stream-title{font-size:12px; color:#8b8b90; text-transform:uppercase; letter-spacing:.2px; margin-bottom:6px}
.stream-body{font-size:18px; min-height: 44px; word-break: break-word}
.mono{font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace}
.small{font-size:14px}

.cta-row{display:flex; gap:12px; justify-content:center; margin: 12px 0 0 0}
.btn{
  appearance:none; border:1px solid #111; background:#111; color:#fff;
  border-radius: 999px; font-weight:600; padding:10px 14px; cursor:pointer;
}
.btn.small{padding:8px 14px; font-weight:600}
.btn.pink{ background: #ff2d87; border-color:#ff2d87; color:#fff; transition: transform .08s ease, box-shadow .18s ease }
.btn.pink:hover{ transform: translateY(-1px); box-shadow: 0 6px 16px rgba(255,45,135,.25) }

.meta.subtle{color:var(--muted); font-size:12px; margin-top:10px}

.link-row{
  display:flex; gap:10px; justify-content:center; align-items:center;
  margin-top: 10px; font-size:14px;
}
.link-row .sep{ color: var(--muted) }

/* Features */
.feature-band{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  text-align:center;
}
@media (max-width: 900px){
  .feature-band{grid-template-columns: 1fr; gap: 20px}
}
.feature .icon{ font-size: 22px; line-height:1; margin-bottom:6px }
.feature-title{ margin:0 0 6px 0; font-size: 18px; font-weight:600 }
.feature p{ margin:0; color: var(--muted); font-size: 15px }

/* Footer — fixed on desktop, static on mobile */
.site-footer{
  border-top:1px solid var(--line);
  background:#fff;
  position: fixed; left:0; right:0; bottom:0; z-index: 40;
}
.foot-inner{ max-width:1080px; margin:0 auto; padding: 16px 20px; color: var(--muted); min-height:64px; display:flex; align-items:center; justify-content:center }

/* Mobile adjustments */
@media (max-width: 720px){
  .hero{ min-height: auto; padding: 32px 14px 24px; }
  .site-footer{ position: static; }
  body{ padding-bottom: env(safe-area-inset-bottom, 16px); }
  .streams{ grid-template-columns: 1fr; gap: 8px }
  .typer{ font-size: 20px; min-height: 84px }
}

/* ZTML mood — subtle borders */
[data-ztml-mood="love"] .search-card{ border-color:#ff5277 }
[data-ztml-mood="warm"] .search-card{ border-color:#ff9900 }
[data-ztml-mood="cool"] .search-card{ border-color:#4aa3ff }
[data-ztml-mood="focus"] .search-card{ border-color:#82c766 }
