/* IceBreaker AI generator styles */
:root {
  --bg: #f5f7fb;
  --bg-alt: #ffffff;
  --ink: #1b2433;
  --muted: #526079;
  --line: #dbe2ee;
  --brand: #1f4fbf;
  --brand-2: #2d6cdf;
  --accent: #e8f0ff;
  --good: #0f7a4d;
  --bad: #a83232;
  --radius: 14px;
  --shadow: 0 6px 18px rgba(20, 40, 80, 0.06);
  --shadow-lg: 0 16px 40px rgba(20, 40, 80, 0.10);
  --maxw: 1160px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-flex; background: var(--accent); border-radius: 10px; padding: 4px; }
.site-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-nav a { color: var(--ink); font-weight: 500; padding: 6px 4px; }
.site-nav a:hover { color: var(--brand); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; padding: 11px 18px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s;
  font-size: 15px;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.mini {
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  padding: 6px 10px; border-radius: 8px; font-size: 13px; cursor: pointer;
}
.mini:hover { border-color: var(--brand); color: var(--brand); }

/* Hero */
.hero-gen { padding: 56px 0 32px; }
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.eyebrow { color: var(--brand); font-weight: 600; margin: 0 0 8px; text-transform: uppercase; letter-spacing: .04em; font-size: 13px; }
.hero-text h1 { font-size: 36px; line-height: 1.15; margin: 0 0 14px; }
.lede { color: var(--muted); font-size: 17px; margin: 0 0 18px; max-width: 520px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 18px; }
.hero-points { list-style: none; padding: 0; margin: 0; color: var(--muted); }
.hero-points li { padding-left: 22px; position: relative; margin-bottom: 6px; }
.hero-points li::before { content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 12px; background: var(--brand); border-radius: 50%; opacity: .7; }

.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.card-row { display: flex; gap: 6px; margin-bottom: 14px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #ddd; }
.dot-r { background: #ff6b6b; } .dot-y { background: #f5b73e; } .dot-g { background: #4caf71; }
.card-line { height: 10px; background: var(--accent); border-radius: 6px; margin-bottom: 10px; }
.card-line.sm { width: 60%; }
.card-tag { font-size: 12px; color: var(--muted); margin: 14px 0 8px; text-transform: uppercase; letter-spacing: .05em; }
.card-hook { background: var(--accent); padding: 10px 12px; border-radius: 8px; margin-bottom: 8px; font-size: 14px; }
.card-hook.alt { background: #fff; border: 1px solid var(--line); }

/* Generator */
.gen-section { padding: 32px 0 56px; }
.gen-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }
.gen-head h2 { margin: 0 0 6px; font-size: 26px; }
.gen-head p { color: var(--muted); margin: 0 0 18px; }

.gen-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field > label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.field input[type="url"], .field input[type="text"], .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; font-family: inherit; background: #fff;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--brand-2); border-color: var(--brand-2); }
.hint { color: var(--muted); font-size: 13px; margin: 6px 0 0; }

.tone-field { border: none; padding: 0; margin: 0 0 16px; }
.tone-field legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; padding: 0; }
.tone-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tone-pill { display: inline-flex; align-items: center; }
.tone-pill input { position: absolute; opacity: 0; pointer-events: none; }
.tone-pill span {
  display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; cursor: pointer; font-size: 14px; font-weight: 500;
}
.tone-pill input:checked + span { background: var(--brand); color: #fff; border-color: var(--brand); }
.tone-pill input:focus-visible + span { outline: 2px solid var(--brand-2); }

.preset-block { margin-bottom: 18px; }
.preset-title { font-size: 14px; font-weight: 600; margin: 0 0 8px; }
.preset-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-size: 14px; cursor: pointer; font-weight: 500;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }

.actions-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.result-block { margin-top: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.result-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.result-head h3 { margin: 0; font-size: 18px; }
.result-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.empty-state { color: var(--muted); padding: 16px; background: var(--bg); border-radius: 10px; text-align: center; margin-bottom: 12px; }
.hook-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hook-item {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.hook-text { font-size: 15px; }
.hook-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.hook-copy { white-space: nowrap; }

.result-explain { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.result-explain h4 { margin: 0 0 6px; font-size: 15px; }
.result-explain p { color: var(--muted); margin: 0; font-size: 14px; }

.result-error { margin-top: 14px; padding: 10px 12px; border-left: 3px solid var(--bad); background: #fdeaea; color: #6a1a1a; border-radius: 6px; font-size: 14px; }

/* Side */
.gen-side { display: grid; gap: 16px; position: sticky; top: 16px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.side-card h3 { margin: 0 0 10px; font-size: 16px; }
.side-card.subtle { background: var(--accent); border-color: transparent; }
.checklist, .bullets { list-style: none; padding: 0; margin: 0; }
.checklist li, .bullets li { position: relative; padding-left: 22px; margin-bottom: 8px; font-size: 14px; color: var(--ink); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 6px; width: 12px; height: 12px; border: 2px solid var(--brand); border-radius: 3px; }
.bullets li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; background: var(--brand); border-radius: 50%; opacity: .7; }

/* Content sections */
.content-section { padding: 56px 0; }
.alt-bg { background: #fff; }
.section-head { text-align: center; margin-bottom: 28px; }
.section-head h2 { font-size: 28px; margin: 0 0 8px; }
.section-head p { color: var(--muted); max-width: 640px; margin: 0 auto; }

.ex-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.ex-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.ex-label { font-size: 12px; color: var(--brand); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 6px; font-weight: 700; }
.ex-meta { color: var(--muted); margin: 0 0 12px; font-size: 14px; }
.ex-bad, .ex-good { padding: 10px 12px; border-radius: 8px; font-size: 14px; margin: 0 0 8px; }
.ex-bad { background: #fdeaea; border: 1px solid #f3c2c2; }
.ex-good { background: #e8f5ee; border: 1px solid #b9dec6; }
.tag-bad, .tag-good { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; margin-right: 6px; letter-spacing: .04em; }
.tag-bad { color: var(--bad); } .tag-good { color: var(--good); }

.scenario { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.scenario h3 { margin: 0 0 10px; }
.scenario p { color: var(--muted); margin: 0 0 14px; }
.scenario-steps { margin: 0 0 12px; padding-left: 22px; }
.scenario-steps li { margin-bottom: 8px; }
.scenario-note { color: var(--muted); font-size: 14px; margin: 0; }

.mistake-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mistake { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.mistake h3 { margin: 0 0 8px; font-size: 16px; }
.mistake p { color: var(--muted); margin: 0; font-size: 14px; }

.scen-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.scen { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.scen h3 { margin: 0 0 8px; font-size: 16px; }
.scen p { color: var(--muted); margin: 0; font-size: 14px; }

.assumptions { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.assumptions h3 { margin: 0 0 10px; }
.assumptions ul { margin: 0; padding-left: 20px; color: var(--muted); }
.assumptions li { margin-bottom: 6px; }

/* History */
.history-controls { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.history-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.history-item {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
}
.history-item p { margin: 0; font-size: 15px; }
.history-item .meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.empty-history { color: var(--muted); text-align: center; padding: 20px; }

.btn.danger { color: var(--bad); border-color: #f3c2c2; }
.btn.danger:hover { background: #fdeaea; }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 28px 0; margin-top: 24px; }
.footer-inner { display: grid; gap: 8px; text-align: center; }
.footer-inner p { margin: 0; color: var(--muted); font-size: 14px; }
.footer-nav { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; font-size: 14px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-size: 14px; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; z-index: 50;
}
.toast.show { opacity: 1; transform: translate(-50%, -6px); }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 30px; }
  .gen-grid { grid-template-columns: 1fr; }
  .gen-side { position: static; }
  .ex-grid { grid-template-columns: 1fr; }
  .mistake-grid { grid-template-columns: 1fr; }
  .scen-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .nav-wrap { flex-direction: column; align-items: flex-start; }
  .site-nav { gap: 12px; }
  .hero-cta .btn { width: 100%; }
  .actions-row .btn { width: 100%; }
  .scen-grid { grid-template-columns: 1fr; }
  .hook-item, .history-item { grid-template-columns: 1fr; }
  .hook-copy { white-space: normal; }
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
