/* Hintle — standalone static styles (mirrors the app's design system) */
:root {
  --bg: #101211;
  --surface: #1a1c1b;
  --surface-2: #232624;
  --fg: #ffffff;
  --muted: #a5aea8;
  --primary: #1db954;
  --primary-glow: #24e065;
  --primary-fg: #06210f;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --shadow-card: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 20px 60px -20px rgba(29, 185, 84, 0.45);
  --grad-primary: linear-gradient(135deg, #1db954, #24e065);
  --grad-hero: radial-gradient(ellipse at top, rgba(29, 185, 84, 0.18), transparent 60%);
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); background: var(--surface);
  border-radius: 999px; padding: 6px 14px; font-size: 0.78rem; color: var(--muted);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--primary); box-shadow: 0 0 10px var(--primary); }
.grad-text { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(16, 18, 17, 0.82); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.brand-mark { width: 34px; height: 34px; border-radius: 999px; background: var(--grad-primary); box-shadow: var(--shadow-glow); display: grid; place-items: center; color: var(--primary-fg); font-weight: 700; }
.nav-links { display: none; gap: 26px; font-size: 0.9rem; color: var(--muted); }
.nav-links a:hover { color: var(--fg); }
.nav-links a.active { color: var(--fg); }
.nav-strip { display: flex; gap: 18px; overflow-x: auto; font-size: 0.78rem; color: var(--muted); padding: 8px 24px; border-top: 1px solid var(--border); max-width: 1120px; margin: 0 auto; }
.nav-strip a { white-space: nowrap; }
.nav-strip a.active { color: var(--primary); }
@media (min-width: 900px) { .nav-links { display: flex; } .nav-strip { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border-radius: 999px; padding: 13px 22px; font-size: 0.9rem; font-weight: 600;
  background: var(--primary); color: var(--primary-fg); border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: var(--shadow-glow); }
.btn-ghost { background: var(--surface); color: var(--fg); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); box-shadow: none; }
.btn-sm { padding: 9px 16px; font-size: 0.8rem; }

/* Sections */
section { padding: 56px 0; }
.hero { background: var(--grad-hero); padding: 48px 0 64px; }
.hero-grid { display: grid; gap: 40px; }
.hero-copy .lead:first-child { margin-top: 0; }
/* Mobile source order is lead → panel → copy, so today's hints sit right under
   the H1. On desktop the panel moves into its own right-hand column. */
@media (min-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1.1fr 1fr;
    /* Named areas, not line numbers: if WordPress injects a stray <p> into the
       block it lands in an implicit row below instead of shunting these around.
       min-content on row 1 stops the taller panel from stretching the H1's row
       and opening a gap above the copy. */
    grid-template-areas: "lead panel" "copy panel";
    grid-template-rows: min-content auto;
    align-items: start;
    align-content: start;
    column-gap: 40px;
    row-gap: 20px;
  }
  .hero-grid > .hero-lead  { grid-area: lead; }
  .hero-grid > .hero-copy  { grid-area: copy; }
  .hero-grid > .hero-panel { grid-area: panel; }
}
.band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(26, 28, 27, 0.5); }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 34rem; margin-top: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Cards & grids */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 22px; box-shadow: var(--shadow-card); }
.card-link { display: flex; gap: 14px; align-items: flex-start; transition: transform 0.18s ease, border-color 0.18s ease; }
.card-link:hover { transform: translateY(-3px); border-color: rgba(29, 185, 84, 0.4); }
.icon { width: 40px; height: 40px; flex: none; border-radius: 12px; background: rgba(29, 185, 84, 0.15); color: var(--primary); display: grid; place-items: center; font-size: 1.05rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 22px; }

/* Stats / streak */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px; text-align: center; }
.stat b { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--primary); }
.stat span { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* Tiles */
.tiles { display: flex; gap: 8px; justify-content: center; margin: 6px 0 4px; }
.tile {
  width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--primary-fg);
  background: var(--grad-primary); animation: pop 0.35s ease both;
}
.tile.blank { background: var(--surface-2); color: transparent; border: 1px solid var(--border); animation: none; }
@keyframes pop { from { transform: scale(0.6) rotateX(80deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* Hints */
.hint { width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 20px; transition: border-color 0.18s ease, transform 0.18s ease; }
.hint:hover { border-color: rgba(29, 185, 84, 0.45); transform: translateY(-2px); }
.hint-head { display: flex; justify-content: space-between; gap: 10px; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.hint-head .label { color: var(--primary); }
.hint-value { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-top: 10px; }
.hint.locked .hint-value { color: var(--muted); filter: blur(0.2px); }
.hint-detail { color: var(--muted); font-size: 0.88rem; margin-top: 8px; }

/* Reveal */
.reveal { text-align: center; }
.answer-word { font-family: var(--font-display); font-size: clamp(2rem, 8vw, 3.4rem); letter-spacing: 0.25em; color: var(--primary); }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); }
th { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--surface-2); }
td.word { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.2em; color: var(--primary); }

/* Inputs */
input, textarea {
  font: inherit; color: var(--fg); background: var(--bg);
  border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; width: 100%;
}
input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(29, 185, 84, 0.25); }
.slot { width: 56px; height: 56px; text-align: center; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; text-transform: uppercase; padding: 0; }
.slot.green { border-color: rgba(29, 185, 84, 0.45); background: rgba(29, 185, 84, 0.1); color: var(--primary); }
.slots { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.field-label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.chip { display: inline-block; border-radius: 8px; background: rgba(29, 185, 84, 0.15); color: var(--primary); padding: 6px 12px; font-weight: 600; letter-spacing: 0.18em; font-family: var(--font-display); font-size: 0.85rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* FAQ */
.faq { border: 1px solid var(--border); background: var(--surface); border-radius: 16px; padding: 16px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; font-family: var(--font-display); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--primary); }
.faq[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin-top: 10px; font-size: 0.92rem; }

/* Newsletter */
.newsletter { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 36px; text-align: center; }
.newsletter form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.newsletter input { max-width: 320px; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--muted); font-size: 0.88rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
footer a:hover { color: var(--primary); }
.fade { animation: fade 0.5s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Inline icons (masked SVG, so they inherit the current text colour) */
.ico {
  width: 16px; height: 16px; flex: none; display: inline-block; background: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}
.ico-bulb {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 22h4'/%3E%3Cpath d='M15.09 14c.18-.98.65-1.74 1.41-2.5A4.65 4.65 0 0 0 18 8 6 6 0 0 0 6 8c0 1 .23 2.23 1.5 3.5A4.61 4.61 0 0 1 8.91 14'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 22h4'/%3E%3Cpath d='M15.09 14c.18-.98.65-1.74 1.41-2.5A4.65 4.65 0 0 0 18 8 6 6 0 0 0 6 8c0 1 .23 2.23 1.5 3.5A4.61 4.61 0 0 1 8.91 14'/%3E%3C/svg%3E");
}
.ico-shield {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
}
.ico-eye {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

/* Puzzle panel — the hero's hint card (home page) */
.puzzle-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow-card); overflow: hidden; }
.puzzle-panel-head { padding: 22px 24px; border-bottom: 1px solid var(--border); }
.puzzle-panel-body { padding: 22px 24px; }
.puzzle-panel-foot { padding: 20px 24px 24px; border-top: 1px solid var(--border); text-align: center; }
.puzzle-meta { display: flex; align-items: center; gap: 13px; }
.puzzle-meta .dot { width: 10px; height: 10px; flex: none; border-radius: 999px; background: var(--primary); box-shadow: 0 0 12px var(--primary); }
.puzzle-meta .kicker { display: block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.puzzle-meta h2 { font-size: 1.05rem; font-weight: 600; margin-top: 3px; }
.puzzle-note { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.85rem; }

/* Hints inside the panel sit tighter than on the full hints page */
.puzzle-panel .grid { gap: 12px; }
.puzzle-panel .hint { padding: 16px; border-radius: 16px; position: relative; overflow: hidden; }
.puzzle-panel .hint-value { font-size: 1.05rem; }
.puzzle-panel .hint.locked .hint-value { display: flex; align-items: center; gap: 9px; font-size: 0.95rem; }
.puzzle-panel .hint.locked .hint-value::before {
  content: ""; width: 17px; height: 17px; flex: none; background: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.88 9.88a3 3 0 1 0 4.24 4.24'/%3E%3Cpath d='M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68'/%3E%3Cpath d='M6.61 6.61A13.5 13.5 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61'/%3E%3Cline x1='2' x2='22' y1='2' y2='22'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.88 9.88a3 3 0 1 0 4.24 4.24'/%3E%3Cpath d='M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68'/%3E%3Cpath d='M6.61 6.61A13.5 13.5 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61'/%3E%3Cline x1='2' x2='22' y1='2' y2='22'/%3E%3C/svg%3E");
}
.puzzle-panel .hint:not(.locked)::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 3px;
  border-radius: 3px 3px 0 0; background: var(--grad-primary);
}
.puzzle-panel .hint-detail { font-size: 0.84rem; }

/* In-place answer reveal inside the panel footer */
.answer-inline { text-align: center; }
.answer-inline .tiles { margin-top: 12px; }
.answer-inline strong { color: var(--primary); letter-spacing: 0.12em; }
