/* =============================================
   Infofant — App CSS
   ============================================= */

:root {
  --c-blue:    #5E9CFF;
  --c-violet:  #7B7CFB;
  --c-purple:  #8A63F5;
  --c-green-1: #57DD8E;
  --c-green-2: #28C281;
  --c-green-3: #11A98E;
  --c-red-1:   #FF8A66;
  --c-red-2:   #F65E66;
  --c-red-3:   #E8467E;
  --c-accent:  #33356E;
  --c-eye:     #6E6CF6;

  --grad-neutral: linear-gradient(135deg, #5E9CFF 0%, #7B7CFB 52%, #8A63F5 100%);
  --grad-audio:   linear-gradient(135deg, #57DD8E 0%, #28C281 52%, #11A98E 100%);
  --grad-read:    linear-gradient(135deg, #FF8A66 0%, #F65E66 52%, #E8467E 100%);

  --bg:         #F5F6FA;
  --bg-white:   #FFFFFF;
  --bg-gray:    #F0F2F8;
  --text:       #12142A;
  --text-2:     #3D4060;
  --text-muted: #6B7280;
  --border:     #E2E5EF;

  --radius:    16px;
  --radius-sm: 10px;
  --radius-xs: 6px;

  --shadow-sm: 0 1px 4px rgba(20,25,60,.06);
  --shadow:    0 2px 12px rgba(20,25,60,.09);
  --shadow-md: 0 4px 24px rgba(20,25,60,.12);
  --shadow-lg: 0 8px 40px rgba(20,25,60,.15);

  --header-h: 64px;
  --max-w: 1140px;
  --max-w-narrow: 720px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: -apple-system, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--c-violet); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ---- BODY DOTGRID ---- */
body {
  background-color: var(--bg);
  background-image: radial-gradient(circle, #c8cde8 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ---- HEADER ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.header-logo { display: flex; align-items: center; flex-shrink: 0; }
.header-logo:hover { text-decoration: none; }
.header-center-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex: 1;
  justify-content: center;
}
.header-center-nav a {
  padding: .45rem .9rem;
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: background .15s, color .15s;
}
.header-center-nav a:hover {
  background: var(--bg-gray);
  color: var(--text);
  text-decoration: none;
}
.header-actions { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity .15s, transform .1s, box-shadow .15s;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -.01em;
  font-size: .9rem;
  padding: .55rem 1.3rem;
}
.btn:hover { opacity: .88; text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }

.btn-primary {
  background: var(--grad-neutral);
  color: #fff;
  box-shadow: 0 2px 12px rgba(123,124,251,.35);
}
.btn-primary:hover { box-shadow: 0 4px 20px rgba(123,124,251,.45); opacity: 1; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--c-violet); color: var(--c-violet); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover { background: var(--bg-gray); color: var(--text); }

.btn-audio { background: var(--grad-audio); color: #fff; }
.btn-secondary { background: var(--bg-gray); color: var(--text); }

.btn-lg { padding: .8rem 2rem; font-size: 1rem; }
.btn-sm { padding: .4rem 1rem; font-size: .84rem; }
.btn-block { width: 100%; padding: .8rem; }

/* ---- ALERTS ---- */
.alert {
  padding: .8rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  margin-bottom: 1rem;
}
.alert-error   { background: #FEE2E2; color: #991B1B; }
.alert-success { background: #D1FAE5; color: #065F46; }

/* ==============================
   LANDING PAGE
   ============================== */

/* HERO */
.hero {
  background: linear-gradient(160deg, #ffffff 25%, #eef0ff 65%, #e4e8ff 100%);
  padding: 5rem 1.5rem 4rem;
  overflow: hidden;
  position: relative;
}

/* Gradient-Blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: .85;
}
.hero-blob-1 {
  width: 560px;
  height: 560px;
  top: -160px;
  right: -100px;
  background: radial-gradient(circle, rgba(94,156,255,.5) 0%, rgba(138,99,245,.25) 60%, transparent 80%);
}
.hero-blob-2 {
  width: 380px;
  height: 380px;
  bottom: -120px;
  left: -60px;
  background: radial-gradient(circle, rgba(87,221,142,.4) 0%, rgba(40,194,129,.16) 60%, transparent 80%);
}

/* Elefant-Wasserzeichen */
.hero-watermark {
  position: absolute;
  bottom: -30px;
  right: 38%;
  width: 320px;
  height: 320px;
  opacity: .045;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 860px) {
  .hero-blob-1 {
    width: 260px; height: 260px;
    top: -60px; right: -60px;
  }
  .hero-blob-2 { display: none; }
  .hero-watermark { display: none; }
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: #fff;
  color: var(--c-violet);
  font-size: .8rem;
  font-weight: 700;
  padding: .35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
  border: 1px solid #dce0f5;
  box-shadow: var(--shadow-sm);
}
/* Mini-Equalizer im Badge */
.badge-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 13px;
}
.badge-eq span {
  width: 3px;
  border-radius: 2px;
  background: var(--grad-neutral);
  animation: eq-bounce 1.1s ease-in-out infinite;
}
.badge-eq span:nth-child(2) { animation-delay: .25s; }
.badge-eq span:nth-child(3) { animation-delay: .5s; }
@keyframes eq-bounce {
  0%, 100% { height: 5px; }
  50%      { height: 13px; }
}
.hero-text h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.1rem;
}
.h1-grad {
  background: var(--grad-neutral);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.hero-note { display: flex; gap: .5rem; flex-wrap: wrap; }
.note-pill {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-2);
  background: rgba(255,255,255,.75);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: .22rem .75rem;
}
.note-pill::before {
  content: "✓ ";
  color: var(--c-green-2);
  font-weight: 800;
}

/* App-Preview Mockup */
.hero-preview {
  background: var(--bg-gray);
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
@media (min-width: 861px) {
  .hero-preview { animation: hero-float 7s ease-in-out infinite; }
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-preview { animation: none; }
  .badge-eq span { animation: none; height: 9px; }
}
.preview-chrome {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: .7rem 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.preview-dots { display: flex; gap: .35rem; }
.preview-dots span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--border);
}
.preview-dots span:nth-child(1) { background: #FC605B; }
.preview-dots span:nth-child(2) { background: #FDBC40; }
.preview-dots span:nth-child(3) { background: #34CA49; }
.preview-url {
  font-size: .78rem;
  color: var(--text-muted);
  background: var(--bg-gray);
  padding: .2rem .7rem;
  border-radius: 50px;
  border: 1px solid var(--border);
  flex: 1;
  text-align: center;
}
.preview-body { padding: 1.1rem; }
.preview-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.preview-label { font-size: .82rem; font-weight: 700; color: var(--text-muted); }
.preview-play-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--grad-audio);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: .35rem .85rem;
  font-size: .78rem;
  font-weight: 700;
  cursor: default;
}
.preview-items { display: flex; flex-direction: column; gap: .9rem; }
.preview-item {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
}
.preview-dot-wrap { padding-top: .35rem; }
.pdot {
  display: block;
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pdot-pol  { background: var(--c-blue); }
.pdot-eco  { background: var(--c-green-2); }
.pdot-tech { background: var(--c-violet); }
.preview-item p { font-size: .82rem; color: var(--text-2); line-height: 1.5; margin-bottom: .2rem; }
.preview-src { font-size: .72rem; color: var(--text-muted); }
.preview-item-muted p { color: var(--text-muted); }
.preview-footer {
  margin-top: 1rem;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
  font-size: .78rem;
  color: var(--text-muted);
  text-align: center;
}


/* APP MOCKUP SECTION */
.preview-section {
  background: linear-gradient(160deg, #1a1c2e 0%, #2d2f52 100%);
  padding: 3.5rem 1.5rem 0;
  text-align: center;
  overflow: hidden;
}
.preview-section-label {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.45);
  margin-bottom: 1.75rem;
}
.app-window {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -4px 0 rgba(255,255,255,.08), 0 24px 80px rgba(0,0,0,.5);
  overflow: hidden;
  text-align: left;
}
.aw-chrome {
  background: #f0f2f5;
  border-bottom: 1px solid #dde0e8;
  padding: .6rem 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.aw-dots { display: flex; gap: .35rem; }
.aw-dots span {
  width: 11px; height: 11px; border-radius: 50%;
}
.aw-dots span:nth-child(1) { background: #FC605B; }
.aw-dots span:nth-child(2) { background: #FDBC40; }
.aw-dots span:nth-child(3) { background: #34CA49; }
.aw-url {
  flex: 1;
  text-align: center;
  font-size: .78rem;
  color: #8a90a8;
  background: #fff;
  border: 1px solid #dde0e8;
  border-radius: 50px;
  padding: .2rem .9rem;
}
.aw-spacer { width: 52px; }

.aw-body {
  display: flex;
  height: 340px;
  overflow: hidden;
}
.aw-sidebar {
  width: 160px;
  flex-shrink: 0;
  background: var(--bg-gray);
  border-right: 1px solid var(--border);
  padding: 1.1rem .9rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.aw-sidenav { display: flex; flex-direction: column; gap: .3rem; }
.aw-navitem {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: .45rem .75rem;
  border-radius: var(--radius-xs);
  cursor: default;
}
.aw-navitem.active {
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.aw-main {
  flex: 1;
  overflow: hidden;
  padding: 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.aw-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.aw-topbar h2 { font-size: 1.05rem; font-weight: 800; }
.aw-btn-gen {
  font-size: .78rem;
  font-weight: 700;
  background: var(--grad-neutral);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: .35rem .9rem;
  cursor: default;
}
.aw-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.aw-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1rem;
  gap: .75rem;
}
.aw-card-date { display: block; font-size: .82rem; font-weight: 700; }
.aw-card-meta { display: block; font-size: .73rem; color: var(--text-muted); }
.aw-card-actions { display: flex; gap: .4rem; align-items: center; flex-shrink: 0; }
.aw-play {
  display: inline-flex; align-items: center; gap: .3rem;
  background: var(--grad-audio); color: #fff;
  border: none; border-radius: 50px;
  padding: .28rem .7rem; font-size: .72rem; font-weight: 700; cursor: default;
}
.aw-read {
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 50px;
  padding: .28rem .7rem; font-size: .72rem; font-weight: 600; cursor: default;
}
.aw-card-items {
  border-top: 1px solid var(--border);
  padding: .6rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.aw-item { display: flex; gap: .65rem; align-items: flex-start; }
.aw-dot {
  display: block;
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: .45rem;
}
.aw-item p { font-size: .78rem; color: var(--text-2); line-height: 1.5; margin: 0 0 .15rem; }
.aw-src { font-size: .68rem; color: var(--text-muted); }
.aw-card-closed .aw-card-header { opacity: .5; }

@media (max-width: 640px) {
  .aw-sidebar { display: none; }
  .aw-body { height: auto; }
  .preview-section { padding: 2.5rem 1rem 0; }
}

/* PILLARS */
.pillars {
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 1.5rem;
}
.pillars-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.pillar { display: flex; flex-direction: column; gap: .85rem; }
.pillar-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pillar h3 { font-size: 1rem; font-weight: 700; }
.pillar p { font-size: .9rem; color: var(--text-muted); line-height: 1.65; margin: 0; }

@media (max-width: 700px) {
  .pillars-inner { grid-template-columns: 1fr; gap: 2rem; }
}

/* SECTIONS */
.section { padding: 5rem 1.5rem; background: var(--bg-white); }
.section-gray { background: var(--bg-gray); }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-inner-narrow { max-width: var(--max-w-narrow); margin: 0 auto; }
.text-center { text-align: center; }

.section-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--c-violet);
  margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--text);
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 3rem;
  line-height: 1.7;
}

/* FEATURES GRID */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}
.feature-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow .2s, transform .2s;
}
.section-gray .feature-card { background: var(--bg-white); }
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-icon-wrap {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.feature-card p { font-size: .9rem; color: var(--text-muted); line-height: 1.65; }

/* HOW IT WORKS */
.steps-list { list-style: none; display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2.5rem; }
.step-item {
  display: flex;
  gap: 1.25rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.step-num-wrap { flex-shrink: 0; }
.step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--grad-neutral);
  color: #fff;
  font-weight: 800;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(123,124,251,.3);
}
.step-content h3 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.step-content p { font-size: .9rem; color: var(--text-muted); margin: 0; line-height: 1.65; }

/* PRICING */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 680px;
}
.pricing-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
}
.pricing-card-pro {
  border-color: var(--c-violet);
  box-shadow: 0 0 0 3px rgba(123,124,251,.12);
}
.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-neutral);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  padding: .2rem .9rem;
  border-radius: 50px;
  white-space: nowrap;
}
.pricing-header { margin-bottom: 1.5rem; }
.pricing-header h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: .3rem; }
.pricing-price { display: flex; align-items: baseline; gap: .2rem; }
.price-num { font-size: 2.2rem; font-weight: 900; letter-spacing: -.04em; }
.price-period { font-size: .9rem; color: var(--text-muted); }
.pricing-features { list-style: none; margin-bottom: 1.75rem; display: flex; flex-direction: column; gap: .65rem; }
.pricing-features li { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--text-2); }
.check-icon { width: 18px; height: 18px; color: var(--c-green-2); flex-shrink: 0; }

/* ABOUT */
.about-text {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 1rem;
  line-height: 1.75;
}

/* CTA FINAL */
.cta-section {
  background: linear-gradient(135deg, #33356E 0%, #5E9CFF 100%);
  padding: 5rem 1.5rem;
  text-align: center;
  color: #fff;
}
.cta-inner { max-width: 540px; margin: 0 auto; }
.cta-inner img { margin-bottom: 1.5rem; filter: brightness(0) invert(1); opacity: .9; }
.cta-inner h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; margin-bottom: .75rem; letter-spacing: -.03em; }
.cta-inner p { font-size: 1rem; opacity: .8; margin-bottom: 2rem; }
.cta-inner .btn-primary { background: #fff; color: var(--c-accent); box-shadow: 0 4px 20px rgba(0,0,0,.2); }
.cta-inner .btn-primary:hover { opacity: .92; }

/* FOOTER */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,.6);
  padding: 2.5rem 1.5rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}
.footer-brand { display: flex; align-items: center; gap: .75rem; }
.footer-brand img { filter: brightness(0) invert(1); opacity: .7; }
.footer-tagline { font-size: .85rem; color: rgba(255,255,255,.5); }
.footer-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; justify-content: center; }
.footer-nav a { font-size: .88rem; color: rgba(255,255,255,.55); transition: color .15s; }
.footer-nav a:hover { color: #fff; text-decoration: none; }
.footer-copy { font-size: .82rem; }
.footer-ai-hint { font-size: .75rem; opacity: .45; }

/* ==============================
   AUTH PAGES
   ============================== */
.auth-wrap {
  min-height: calc(100vh - var(--header-h) - 100px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 1rem;
}
.auth-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem 2.25rem;
  width: 100%;
  max-width: 420px;
  text-align: center;
}
.auth-mark { margin-bottom: 1.25rem; }
.auth-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: .3rem; }
.auth-subtitle { color: var(--text-muted); font-size: .9rem; margin-bottom: 1.75rem; }
.auth-form { text-align: left; }
.auth-switch { margin-top: 1.25rem; font-size: .88rem; color: var(--text-muted); }

/* FORMS */
.form-field { margin-bottom: 1.1rem; }
.form-field label {
  display: block;
  font-size: .84rem;
  font-weight: 600;
  margin-bottom: .4rem;
  color: var(--text);
}
.form-field .hint { font-weight: 400; color: var(--text-muted); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  background: var(--bg-gray);
  color: var(--text);
  outline: none;
  transition: border-color .15s, background .15s;
  font-family: inherit;
}
.form-field input:focus,
.form-field select:focus {
  border-color: var(--c-violet);
  background: var(--bg-white);
}
.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-row .form-field { flex: 1; min-width: 140px; }

/* TOPIC / DAY CHIPS */
.topic-grid { display: flex; flex-wrap: wrap; gap: .6rem; }
.topic-chip {
  padding: .5rem 1.1rem;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--bg-white);
  cursor: pointer;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-2);
  transition: all .15s;
}
.topic-chip.active {
  background: var(--grad-neutral);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 8px rgba(123,124,251,.3);
}
.weekday-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.day-chip {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg-white);
  cursor: pointer;
  font-size: .84rem;
  font-weight: 700;
  color: var(--text-2);
  transition: all .15s;
}
.day-chip.active {
  background: var(--grad-neutral);
  border-color: transparent;
  color: #fff;
}

/* ==============================
   ONBOARDING
   ============================== */
.onboarding-wrap {
  min-height: calc(100vh - var(--header-h) - 100px);
  display: flex;
  justify-content: center;
  padding: 3rem 1rem;
}
.onboarding-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem 2.25rem;
  width: 100%;
  max-width: 520px;
  text-align: center;
}
.onboarding-card h1 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: .3rem;
}

/* ==============================
   DASHBOARD
   ============================== */
.dashboard-wrap { max-width: 800px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
}
.dashboard-header h1 { font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; }

.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--text-muted);
}
.empty-state img { opacity: .3; margin-bottom: 1.5rem; }
.empty-state h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: .5rem; color: var(--text); }
.empty-state p { font-size: .95rem; max-width: 360px; margin: 0 auto; }

.briefing-list { display: flex; flex-direction: column; gap: 1.25rem; }
.briefing-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .2s;
}
.briefing-card:hover { box-shadow: var(--shadow); }

.briefing-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.briefing-meta { display: flex; flex-direction: column; gap: .2rem; }
.briefing-date { font-weight: 700; font-size: .95rem; }
.briefing-stats { font-size: .82rem; color: var(--text-muted); }
.briefing-actions { display: flex; gap: .5rem; align-items: center; }

.audio-player {
  padding: .85rem 1.4rem;
  background: var(--bg-gray);
  border-top: 1px solid var(--border);
}
.audio-player audio { width: 100%; outline: none; }

.briefing-items {
  border-top: 1px solid var(--border);
}
.briefing-item {
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--border);
}
.briefing-item:last-child { border-bottom: none; }
.briefing-item p {
  font-size: .94rem;
  line-height: 1.7;
  margin-bottom: .45rem;
  color: var(--text-2);
}
.source-link {
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 500;
}
.source-link:hover { color: var(--c-violet); }
.update-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  background: var(--grad-audio);
  color: #fff;
  padding: .15rem .6rem;
  border-radius: 50px;
  margin-bottom: .5rem;
}

/* ==============================
   SETTINGS
   ============================== */
.settings-wrap { max-width: 720px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.settings-wrap > h1 {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 2rem;
}
.settings-section {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.settings-section h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: 1.25rem; }
.settings-section .btn { margin-top: 1.1rem; }
.settings-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.25rem; }
.settings-section-header h2 { margin-bottom: 0; }
.settings-hint { font-size: .875rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.slot-card { background: var(--bg-gray); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; }
.slot-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.slot-time-label { font-weight: 700; font-size: 1rem; color: var(--text-dark); }
.domain-list { list-style: none; margin-top: .75rem; display: flex; flex-direction: column; gap: .4rem; }
.domain-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .45rem .85rem;
  background: var(--bg-gray);
  border-radius: var(--radius-xs);
  font-size: .9rem;
}

/* ==============================
   LEGAL PAGES
   ============================== */
.legal-page {
  padding: 3rem 1.5rem 5rem;
}
.legal-inner {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2.5rem;
}
.legal-inner h1 {
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: -.03em;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.legal-inner h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: .65rem;
  color: var(--text);
}
.legal-inner p,
.legal-inner ul {
  font-size: .95rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.legal-inner ul { padding-left: 1.5rem; }
.legal-inner li { margin-bottom: .4rem; }
.legal-inner code {
  background: var(--bg-gray);
  padding: .1rem .4rem;
  border-radius: 4px;
  font-size: .88rem;
}
.legal-date {
  margin-top: 2rem;
  font-size: .85rem !important;
  color: var(--text-muted) !important;
}

/* ==============================
   HAMBURGER / MOBILE NAV
   ============================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: .25rem;
  padding: .75rem 1.25rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--bg-white);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  display: block;
  padding: .65rem .75rem;
  border-radius: var(--radius-xs);
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-2);
}
.mobile-nav a:hover { background: var(--bg-gray); text-decoration: none; color: var(--text); }

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-preview { width: 100%; max-width: 460px; margin: 0 auto; }
  .header-center-nav { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 600px) {
  .header-inner { gap: .75rem; padding: 0 1rem; }
  .header-actions .btn-ghost { display: none; }
  .hero { padding: 3rem 1.25rem 3.5rem; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .hero-text h1 { font-size: 2.1rem; }
  .section { padding: 3.5rem 1.25rem; }
  .pricing-grid { grid-template-columns: 1fr; }
  .dashboard-header { flex-direction: column; align-items: flex-start; }
  .briefing-card-header { flex-direction: column; align-items: flex-start; }
  .form-row { flex-direction: column; }
  .legal-inner { padding: 1.75rem 1.25rem; }
}
