/* ==========================================================
   Names That Flow — shared styles
   Palette: ink #26243E | paper #F7F6FB | plum #5D4E8C
            coral #F08A7E | sage #E5EFE9 | gold #F2C14E
   Type:    Bricolage Grotesque (display) + Nunito Sans (body)
   Signature: the rhythm dots — every name shown as its
   syllable pattern, because rhythm IS the product.
   ========================================================== */

:root {
  --ink: #26243E;
  --ink-soft: #55527A;
  --paper: #F7F6FB;
  --plum: #5D4E8C;
  --plum-deep: #453A6B;
  --coral: #F08A7E;
  --coral-deep: #D96B5E;
  --sage: #E5EFE9;
  --gold: #F2C14E;
  --white: #FFFFFF;
  --line: #E4E1F0;
  --radius: 18px;
  --max: 1040px;
  --shadow: 0 10px 30px -12px rgba(38,36,62,0.18);
}

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

body {
  font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Bricolage Grotesque", "Nunito Sans", sans-serif;
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: -0.015em;
  font-weight: 700;
}
h1 { font-size: clamp(1.9rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 2.6rem 0 0.9rem; }
h3 { font-size: 1.18rem; margin: 1.6rem 0 0.5rem; }
p { margin-bottom: 1.05rem; }
a { color: var(--plum); }
a:hover { color: var(--coral-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 740px; }

/* ---------- Header ---------- */
.site-head {
  background: rgba(247,246,251,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 60;
}
.head-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 13px 20px; max-width: var(--max); margin: 0 auto; flex-wrap: wrap;
}
.brand {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 800;
  font-size: 1.18rem; color: var(--ink); text-decoration: none;
  display: flex; align-items: center; gap: 9px;
}
.brand .dots { display: inline-flex; gap: 3px; align-items: flex-end; }
.brand .dots span {
  width: 8px; border-radius: 6px; background: var(--plum); display: inline-block;
}
.brand .dots span:nth-child(1) { height: 8px; }
.brand .dots span:nth-child(2) { height: 15px; background: var(--coral); }
.brand .dots span:nth-child(3) { height: 10px; }
nav.main-nav { display: flex; gap: 2px; flex-wrap: wrap; }
nav.main-nav a {
  text-decoration: none; font-size: 0.84rem; font-weight: 700;
  color: var(--ink-soft); padding: 7px 11px; border-radius: 20px;
}
nav.main-nav a:hover, nav.main-nav a[aria-current="page"] {
  background: var(--white); color: var(--plum); box-shadow: var(--shadow);
}

/* ---------- Hero / tool panel ---------- */
.hero { padding: 46px 0 20px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -160px; right: -120px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #EFE9FA 0%, rgba(239,233,250,0) 70%);
  pointer-events: none;
}
.hero .kicker {
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 800; color: var(--coral-deep); margin-bottom: 12px;
}
.hero h1 { max-width: 700px; }
.hero .lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 620px; margin-top: 14px; }

.tool-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px; margin: 28px 0;
  position: relative;
}
.tool-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
@media (max-width: 700px) { .tool-grid { grid-template-columns: 1fr; } }
.field label {
  display: block; font-size: 0.8rem; font-weight: 800;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 6px;
}
.field input {
  width: 100%; padding: 14px 16px; font-size: 1.05rem;
  font-family: inherit; border: 2px solid var(--line);
  border-radius: 12px; background: var(--paper); color: var(--ink);
}
.field input:focus { border-color: var(--plum); background: var(--white); }
.tool-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--plum); color: var(--white);
  font-weight: 800; font-family: inherit; font-size: 0.98rem;
  text-decoration: none; padding: 14px 26px;
  border-radius: 14px; border: none; cursor: pointer;
}
.btn:hover { background: var(--plum-deep); color: var(--white); }
.btn.coral { background: var(--coral); color: var(--ink); }
.btn.coral:hover { background: var(--coral-deep); color: var(--white); }
.btn.ghost {
  background: transparent; color: var(--plum);
  border: 2px solid var(--line);
}
.btn.ghost:hover { border-color: var(--plum); background: var(--white); }
.btn.small { padding: 9px 16px; font-size: 0.86rem; border-radius: 10px; }

/* ---------- Results ---------- */
.result { margin-top: 26px; display: none; }
.result.show { display: block; animation: rise 0.45s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.score-row {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  padding: 22px; background: var(--paper); border-radius: 14px;
}
.score-ring {
  width: 108px; height: 108px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  background: conic-gradient(var(--gold) calc(var(--pct,0)*1%), var(--line) 0);
}
.score-ring .inner {
  width: 84px; height: 84px; border-radius: 50%; background: var(--white);
  display: grid; place-items: center;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.7rem; font-weight: 800; color: var(--ink);
}
.rhythm { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.rhythm .word { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.rhythm .beats { display: flex; gap: 4px; }
.rhythm .beats i {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--plum); display: inline-block;
  animation: pop 0.3s ease both;
}
.rhythm .word:nth-child(2) .beats i { background: var(--coral); }
.rhythm .word:nth-child(3) .beats i { background: var(--gold); }
.rhythm .label { font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .result.show, .rhythm .beats i { animation: none; }
}

.checks { margin-top: 16px; display: grid; gap: 8px; }
.check {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 12px; padding: 13px 16px; font-size: 0.94rem;
}
.check .icon {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 900;
  color: var(--white); margin-top: 1px;
}
.check.pass .icon { background: #4CA57A; }
.check.warn .icon { background: var(--coral-deep); }
.check strong { display: block; }
.check span { color: var(--ink-soft); font-size: 0.88rem; }

/* ---------- Content & cards ---------- */
main { padding-bottom: 60px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 1.6rem 0; }
.tool-link-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
  text-decoration: none; color: var(--ink);
  box-shadow: 0 4px 14px -8px rgba(38,36,62,0.12);
  transition: transform 0.15s ease;
}
.tool-link-card:hover { transform: translateY(-3px); color: var(--ink); }
.tool-link-card h3 { margin-top: 8px; }
.tool-link-card p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }
.tool-link-card .emoji { font-size: 1.5rem; }

.name-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0.8rem 0 1.2rem; }
.name-pill {
  background: var(--white); border: 1.5px solid var(--line);
  padding: 8px 16px; border-radius: 30px; font-weight: 700;
  font-size: 0.95rem; cursor: pointer; font-family: inherit; color: var(--ink);
}
.name-pill:hover { border-color: var(--plum); color: var(--plum); }

.callout {
  border-left: 5px solid var(--coral); background: var(--white);
  padding: 16px 20px; border-radius: 0 14px 14px 0; margin: 1.4rem 0;
  font-size: 0.95rem;
}

/* ---------- FAQ ---------- */
details.faq {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 12px; margin-bottom: 10px;
}
details.faq summary {
  cursor: pointer; font-weight: 800; padding: 16px 18px;
  list-style: none; position: relative; padding-right: 42px;
}
details.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 14px;
  color: var(--coral-deep); font-size: 1.35rem; font-weight: 400;
}
details.faq[open] summary::after { content: "–"; }
details.faq .faq-body { padding: 0 18px 16px; font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- Ad slots ---------- */
.ad-slot {
  min-height: 100px; margin: 2rem 0;
  border: 2px dashed var(--line); border-radius: 12px;
  display: grid; place-items: center;
  color: #B9B5D0; font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 700;
}

/* ---------- Footer ---------- */
.site-foot {
  background: var(--ink); color: #C9C5E2;
  padding: 44px 0 30px; font-size: 0.86rem; margin-top: 50px;
}
.site-foot a { color: #F3C9C2; }
.foot-grid {
  display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between;
  max-width: var(--max); margin: 0 auto; padding: 0 20px;
}
.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 7px; }
.foot-note {
  max-width: var(--max); margin: 26px auto 0; padding: 18px 20px 0;
  border-top: 1px solid #3A3760;
}

/* ---------- Consent banner ---------- */
#consent-banner {
  position: fixed; bottom: 14px; left: 14px; right: 14px; z-index: 100;
  background: var(--ink); color: #E8E6F5;
  border-radius: 14px; padding: 18px 20px;
  display: none; gap: 14px; align-items: center; flex-wrap: wrap;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  font-size: 0.88rem; max-width: 720px; margin: 0 auto;
}
#consent-banner.show { display: flex; }
#consent-banner p { margin: 0; flex: 1 1 300px; }
#consent-banner a { color: #F3C9C2; }

ul.content-list { margin: 0 0 1.1rem 1.3rem; }
ul.content-list li { margin-bottom: 0.5rem; }
.updated { font-size: 0.82rem; color: var(--ink-soft); margin: 0.4rem 0 1.4rem; }
img { max-width: 100%; height: auto; }
