/* ===== Reset ===== */
*{box-sizing:border-box;margin:0;padding:0}
:root{
  --bg:#ffffff;
  --text:#0b0d12;
  --muted:#5b6475;
  --border:#e7e9ee;
  --card:#ffffff;
  --soft:#f6f7fb;
  --accent:#111827;
  --accent2:#2563eb;
  --radius:18px;
  --shadow: 0 12px 30px rgba(10, 14, 25, 0.08);
}
html,body{height:100%}
body{
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height:1.6;
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
a{color:inherit}
.container{max-width:1120px;margin:0 auto;padding:28px 16px}
.kicker{
  display:inline-flex;align-items:center;gap:8px;
  font-weight:800;font-size:0.82rem;letter-spacing:0.12em;
  text-transform:uppercase;color:var(--accent2);
}
hr.sep{border:0;border-top:1px solid var(--border);margin:28px 0}

/* ===== Header ===== */
.site-header{
  position:sticky;top:0;z-index:30;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
.site-header .wrap{
  max-width:1120px;margin:0 auto;
  padding:14px 16px;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
}
.site-header h1{font-size:1.05rem;margin:0;letter-spacing:0.2px}
.site-header nav{display:flex;flex-wrap:wrap;gap:10px}
.site-header nav a{
  text-decoration:none;
  padding:8px 10px;border-radius:999px;
  border:1px solid var(--border);
  background: rgba(246,247,251,0.9);
  font-weight:700;
  font-size:0.92rem;
}
.site-header nav a:hover{background:var(--soft)}

/* ===== Hero ===== */
.hero{
  padding:32px 0 18px;
  display:grid;
  gap:18px;
}
.hero h2{
  font-size:2.1rem;
  line-height:1.15;
  letter-spacing:-0.02em;
  margin:10px 0 10px;
}
.hero p{
  color:var(--muted);
  max-width:58ch;
  font-size:1.05rem;
}
.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.cta{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:12px 16px;
  border-radius:999px;
  background:var(--accent);
  color:#fff;
  text-decoration:none;
  font-weight:800;
  box-shadow: 0 10px 22px rgba(17,24,39,0.18);
}
.cta.secondary{
  background:#fff;color:var(--accent);
  border:1px solid var(--border);
  box-shadow:none;
}
.subtle{
  font-size:0.92rem;color:var(--muted);
}

/* ===== Cards / grid ===== */
.grid{display:grid;gap:14px;margin-top:20px}
.card{
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:16px;
  background:var(--card);
  box-shadow: var(--shadow);
}
.card h3{font-size:1.05rem;margin-bottom:6px}
.card p{color:var(--muted);font-size:0.98rem}
.bullets{margin-top:10px;padding-left:18px;color:var(--muted)}
.bullets li{margin:6px 0}

/* ===== Home: “No Chords” rotator ===== */
.rotator-wrap{
  border:1px solid var(--border);
  background:var(--soft);
  border-radius:var(--radius);
  padding:16px;
  box-shadow: var(--shadow);
}
.rotator{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
  min-height:240px;
  justify-content:center;
}
.prohibit{
  width:88px;height:88px;
  display:flex;align-items:center;justify-content:center;
}
.rotate-stack{
  position:relative;
  width:100%;
  max-width:420px;
  min-height:120px;
  display:flex;align-items:center;justify-content:center;
}
.slide{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  opacity:0;
  transform: translateY(10px) scale(0.99);
  filter: blur(1px);
  animation: rotateSlides 9s infinite;
}
.slide:nth-child(1){animation-delay:0s}
.slide:nth-child(2){animation-delay:3s}
.slide:nth-child(3){animation-delay:6s}

@keyframes rotateSlides{
  0%{opacity:0;transform:translateY(10px) scale(0.99);filter:blur(1px)}
  10%{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}
  33%{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}
  43%{opacity:0;transform:translateY(-8px) scale(0.99);filter:blur(1px)}
  100%{opacity:0}
}

.slide .label{
  font-size:1.35rem;
  font-weight:900;
  letter-spacing:-0.01em;
}
.slide .mini{
  color:var(--muted);
  font-weight:800;
  font-size:0.95rem;
}
.svg-card{
  width:168px;height:96px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,0.06);
  background:#fff;
  box-shadow: 0 10px 20px rgba(10,14,25,0.06);
  display:flex;align-items:center;justify-content:center;
}

/* ===== Page typography ===== */
.page h2{font-size:1.9rem;line-height:1.2;margin:10px 0 12px}
.page p{color:var(--muted);font-size:1.02rem;margin:10px 0;max-width:70ch}
.page .section{margin-top:22px}
.callout{
  border:1px solid var(--border);
  background:linear-gradient(180deg, #ffffff, #f7f9ff);
  border-radius:var(--radius);
  padding:16px;
}

/* ===== Footer ===== */
.footer{
  padding:26px 16px;
  border-top:1px solid var(--border);
  color:var(--muted);
  text-align:center;
  font-size:0.9rem;
}

/* ===== Responsive ===== */
@media(min-width:768px){
  .container{padding:44px 20px}
  .hero{
    grid-template-columns: 1.2fr 0.8fr;
    align-items:center;
    gap:26px;
    padding:58px 0 24px;
  }
  .hero h2{font-size:2.6rem}
  .grid{grid-template-columns:repeat(3,1fr)}
  .rotator{min-height:300px}
  .prohibit{width:104px;height:104px}
}

.site-header nav a .nav-full{display:inline}

@media(max-width:767px){
  .site-header nav a .nav-full{display:none}
  .site-header nav a .nav-short{display:inline; text-transform:lowercase}
}

/* ===== Mobile tuning (v3.0) ===== */
@media (max-width: 420px){
  .site-header .wrap{
    gap: 10px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .site-header nav{
    gap: 8px;
  }
  .site-header nav a{
    padding: 8px 10px;
    font-size: 0.92rem;
  }
}

/* Make brand text as tall as header (with small pad) */
.site-header .wrap{
  align-items: center;
}
.site-header h1.brand{
  margin: 0;
  line-height: 1;
  display: flex;
  align-items: center;
}
.site-header h1.brand a{
  display: inline-flex;
  align-items: center;
  font-size: clamp(1.2rem, 3.2vw, 1.55rem);
  padding: 2px 0;
}

@media (max-width: 767px){
  .site-header h1.brand a{
    font-size: clamp(1.35rem, 6.2vw, 2.1rem);
    padding: 2px 0;
  }
  .site-header nav{
    justify-content: flex-end;
  }
  .site-header nav a{
    padding: 7px 9px;
  }
  .site-header nav a .nav-short{
    font-weight: 700;
    letter-spacing: 0.1px;
  }
}


/* ===== Nav: tight fit + active state (v3.0) ===== */
.site-header nav{
  flex-wrap: nowrap;           /* keep on one line */
  gap: 8px;
}
.site-header nav a{
  white-space: nowrap;
  padding: 7px 10px;
  font-size: 0.98rem;
}
.site-header nav a.is-active{
  box-shadow: inset 0 0 0 2px var(--accent);
  background: rgba(0,0,0,0.02);
}

/* Very small phones (e.g., iPhone SE) */
@media (max-width: 360px){
  .site-header .wrap{
    gap: 8px;
  }
  .site-header nav{
    gap: 6px;
  }
  .site-header nav a{
    padding: 6px 7px;
    font-size: 0.86rem;
    border-radius: 999px;
  }
  /* slightly reduce brand to preserve nav fit */
  .site-header h1.brand a{
    font-size: clamp(1.15rem, 5.4vw, 1.7rem);
  }
}

/* Extreme narrow (safety) */
@media (max-width: 320px){
  .site-header nav a{
    padding: 6px 6px;
    font-size: 0.82rem;
  }
}


/* ===== Brand size equals nav buttons (v3.0) ===== */
.site-header .wrap{
  align-items: stretch; /* allow children to fill height */
}

.site-header h1.brand{
  display: flex;
  align-items: center;
}

.site-header h1.brand a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100% - 2px); /* at least nav button height */
  padding: 6px 4px;            /* small pad, matches nav visual weight */
  font-weight: 800;
}

/* Keep balance on very small phones */
@media (max-width: 360px){
  .site-header h1.brand a{
    padding: 6px 2px;
  }
}


/* ===== Brand text equals nav pill height (v3.0) ===== */
.site-header nav a{
  line-height: 1; /* pills are driven by padding */
}

.site-header h1.brand a{
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.site-header h1.brand a span,
.site-header h1.brand a{
  /* Match text cap-height visually to pill height */
  font-size: calc(1em + 0.25rem);
}

/* Small phones: keep exact parity */
@media (max-width: 360px){
  .site-header h1.brand a span,
  .site-header h1.brand a{
    font-size: calc(1em + 0.18rem);
  }
}


/* ===== Brand pill (equal height to nav pills, taller text) ===== */
:root{
  --nc-pill-h: 40px;
}
.site-header nav a{
  height: var(--nc-pill-h);
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.site-header h1.brand a{
  height: var(--nc-pill-h);
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(246,247,251,0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-weight: 900;
  font-size: 1.35rem; /* intentionally taller than nav text */
}

/* Keep nav text readable; brand stays taller */
.site-header nav a{
  font-size: 0.92rem;
  font-weight: 700;
}

/* Very small phones: shrink pill height slightly to keep 5 items on one line */
@media (max-width: 360px){
  :root{ --nc-pill-h: 36px; }
  .site-header nav a{ padding: 0 7px; font-size: 0.84rem; }
  .site-header h1.brand a{ padding: 0 8px; font-size: 1.18rem; }
}
@media (max-width: 320px){
  :root{ --nc-pill-h: 34px; }
  .site-header nav a{ padding: 0 6px; font-size: 0.80rem; }
  .site-header h1.brand a{ padding: 0 7px; font-size: 1.12rem; }
}


/* ===== Brand: text-only, as tall as pills (override) ===== */
.site-header h1.brand a{
  /* keep same height as pills */
  height: var(--nc-pill-h);
  /* remove pill visuals */
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;

  /* text-only alignment */
  padding: 0 2px !important; /* tiny pad so it doesn't touch edges */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;

  /* make text fill the pill height visually */
  font-weight: 900;
  font-size: calc(var(--nc-pill-h) * 0.72);
}

@media (max-width: 360px){
  .site-header h1.brand a{
    font-size: calc(var(--nc-pill-h) * 0.74);
    padding: 0 1px !important;
  }
}

/* ===== App container spacing ===== */
.app-container{
  padding-top: 18px;
  padding-bottom: 28px;
}
