/* DAOx app-factory template — deep-blue brand system */
@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@500;700;900&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --bg: #eef2f6;
  --card: #ffffff;
  --border: #d7e0e8;
  --ink: #16202a;
  --muted: #4e5d6b;
  --brand: #1a5f96;
  --brand-deep: #0b2a47;
  --brand-bright: #2b7cb8;
  --brand-mid: #1b5a8b;
  --brand-tint: #e8eff5;
  --gradient: linear-gradient(121deg, #0b2a47, #1b5a8b);
  --ok: #1f8a4c;
  --err: #b3261e;
  --radius: 16px;
  --shadow: 0 2px 6px rgba(11, 42, 71, .08), 0 10px 30px rgba(11, 42, 71, .12);
  --sans: "Source Sans 3", -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font: 16.5px/1.7 var(--serif);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }

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

h1, h2, h3 { font-family: var(--sans); color: var(--ink); letter-spacing: -.2px; }

/* ---------- nav ---------- */
.nav {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  position: sticky; top: 0; z-index: 10;
}
.nav .wrap { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--sans); font-weight: 800; font-size: 20px; color: var(--ink); letter-spacing: -.3px; }
.logo em { font-style: normal; color: var(--brand-mid); }
.logo:hover { text-decoration: none; }
.nav nav { display: flex; gap: 22px; align-items: center; }
.nav nav a { font-family: var(--sans); color: var(--muted); font-weight: 600; font-size: 15px; }
.nav nav a:hover { color: var(--brand); text-decoration: none; }
.badge {
  font-family: var(--sans);
  background: var(--brand-tint); color: var(--brand);
  border: 1px solid #c3d6e5; border-radius: 999px;
  padding: 3px 14px; font-size: 13px; font-weight: 700;
}

/* ---------- hero (brand gradient band) ---------- */
.hero {
  background: var(--gradient);
  text-align: center;
  padding: 88px 24px 130px;
  color: #fff;
}
.eyebrow {
  display: inline-block; margin-bottom: 20px;
  font-family: var(--sans);
  color: #fff; background: rgba(255, 255, 255, .14);
  border: 1.5px solid rgba(255, 255, 255, .75);
  border-radius: 999px; padding: 5px 18px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 56px);
  line-height: 1.1; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; color: #fff;
  max-width: 780px; margin: 0 auto;
}
.tagline {
  font-size: 20px; color: #f2fbff;
  max-width: 640px; margin: 20px auto 0;
}
.tagline em { font-style: italic; }
.sub { color: rgba(255, 255, 255, .85); margin-top: 12px; font-size: 15.5px; }

/* ---------- product card (overlaps the gradient) ---------- */
.product { padding: 0 24px 56px; margin-top: -72px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
}
.card.center { text-align: center; }
label {
  display: block; font-family: var(--sans); font-size: 13.5px; font-weight: 700;
  color: var(--ink); margin: 18px 0 6px; letter-spacing: .2px;
}
label:first-child { margin-top: 0; }
input, textarea, select {
  width: 100%; background: #f7fcfe; color: var(--ink);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; font: 15px/1.6 var(--sans);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus {
  outline: none; border-color: var(--brand-mid);
  box-shadow: 0 0 0 3px rgba(27, 90, 139, .2);
  background: #fff;
}
::placeholder { color: #93a8b3; }

.btn {
  display: inline-block; margin-top: 20px; cursor: pointer;
  font-family: var(--serif);
  background: var(--card); color: var(--brand);
  border: 2px solid var(--brand); border-radius: 999px;
  padding: 10px 26px; font-size: 16px; font-weight: 600;
  transition: background .15s, color .15s, box-shadow .15s;
}
.btn:hover { background: var(--brand-tint); text-decoration: none; }
.btn.primary {
  background: var(--gradient); border: none; color: #fff;
  width: 100%; padding: 15px 26px; font-size: 17.5px;
  box-shadow: 0 6px 18px rgba(11, 42, 71, .35);
}
.btn.primary:hover { filter: brightness(1.07); }
.btn:disabled { opacity: .55; cursor: wait; }

.status { margin-top: 16px; font-size: 14.5px; color: var(--muted); }
.status.err { color: var(--err); font-weight: 600; }
.status.ok { color: var(--ok); font-weight: 600; }

.result {
  margin-top: 20px; padding: 26px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 15.5px;
}

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 20px 24px 56px; }
.step {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 22px;
  text-align: center;
}
.step span {
  display: inline-flex; width: 38px; height: 38px;
  align-items: center; justify-content: center;
  font-family: var(--sans);
  background: var(--gradient); color: #fff;
  border-radius: 50%; font-weight: 800; font-size: 16px;
}
.step h3 { margin: 14px 0 6px; font-size: 19px; font-weight: 700; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- pricing ---------- */
.pricing { text-align: center; padding: 24px 24px 56px; }
.pricing h2 { font-size: 32px; font-weight: 700; }
.pricing .sub { color: var(--muted); }
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.pack {
  position: relative;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 32px 20px 28px;
}
.pack.featured { border: 2px solid var(--brand-mid); }
.pack.featured::before {
  content: "Most popular";
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  font-family: var(--sans);
  background: var(--gradient); color: #fff;
  border-radius: 999px; padding: 2px 16px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .4px; white-space: nowrap;
}
.pack h3 { font-size: 16px; color: var(--muted); font-weight: 600; }
.pack .price { font-family: var(--sans); font-size: 40px; font-weight: 800; letter-spacing: -1px; margin: 12px 0 2px; }
.pack .per { color: var(--muted); font-size: 13px; }
.pack .btn { padding: 8px 30px; }

/* ---------- faq ---------- */
.faq { padding: 24px 24px 72px; }
.faq h2 { text-align: center; font-size: 32px; font-weight: 700; margin-bottom: 26px; }
details {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 22px; margin-bottom: 12px;
  box-shadow: var(--shadow);
}
summary { cursor: pointer; font-family: var(--sans); font-weight: 700; font-size: 16px; }
summary::marker { color: var(--brand-mid); }
details p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 34px 0; color: var(--muted); font-size: 14px; text-align: center;
  background: var(--card);
  font-family: var(--sans);
}

@media (max-width: 680px) {
  .hero { padding: 56px 20px 110px; }
  .steps, .packs { grid-template-columns: 1fr; }
  .card { padding: 24px 18px; }
  
}

/* ---------- print the result ---------- */
@media print {
  body * { visibility: hidden; }
  #result, #result * { visibility: visible; }
  #result { position: absolute; left: 0; top: 0; width: 100%; border: none; box-shadow: none; background: #fff; color: #000; }
}

/* ---------- typography: no widows ---------- */
h1, h2, h3, h4, summary { text-wrap: balance; }
p, li, .tagline, .sub { text-wrap: pretty; }

/* ---------- font generator ---------- */
[hidden] { display: none !important; }
#fancyInput { font-size: 22px; padding: 16px 18px; text-align: center; }
.stylegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 16px; }
.stylecell { border: 1px solid var(--border); border-radius: 12px; background: var(--card);
  padding: 12px 14px; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 4px;
  transition: transform .12s ease, box-shadow .12s ease; }
.stylecell:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(11,42,71,.15); }
.stylecell.copied { border-color: #1f8a4c; box-shadow: 0 0 0 2px rgba(31,138,76,.3); }
.stylecell.copied::after { content: "copied ✓"; font: 700 10.5px var(--sans); color: #1f8a4c; }
.sout { font-size: 17px; word-break: break-all; line-height: 1.5; }
.sname { font: 600 10.5px var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: .8px; }
.wmh { font-family: var(--sans); font-size: 22px; }
.wmsub { font: 400 14px var(--sans); color: var(--muted); margin: 4px 0 10px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row2 label, .card > label { font: 600 12.5px var(--sans); color: var(--muted); display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.wordmark { display: block; width: 100%; border-radius: 14px; margin-top: 18px; box-shadow: 0 8px 30px rgba(11,42,71,.2); }
.wmbtns { text-align: center; margin-top: 10px; }
.btn.mini { width: auto; display: inline-block; margin-top: 6px; padding: 8px 18px; font-size: 13.5px; text-decoration: none; }
@media (max-width: 680px) { .nav { position: static; } .row2 { grid-template-columns: 1fr; }
  #fancyInput, input, select { font-size: 16px; } .stylegrid { grid-template-columns: 1fr 1fr; } .sout { font-size: 15px; } }

/* ================= GEN-ALPHA CANDY SKIN ================= */
:root {
  --bg: #12102a;
  --card: #1c1940;
  --border: rgba(110, 231, 255, .25);
  --ink: #f6f4ff;
  --muted: #9d95c9;
  --brand: #6ee7ff;
  --brand-deep: #3aa8d8;
  --brand-bright: #ff8ad8;
  --brand-mid: #7cf7a3;
  --brand-tint: rgba(110, 231, 255, .1);
  --gradient: linear-gradient(90deg, #7cf7a3, #6ee7ff 35%, #ff8ad8 70%, #ffe066);
  --display: "Unbounded", "Segoe UI", sans-serif;
  --sans: "Nunito", "Segoe UI", sans-serif;
  --serif: "Nunito", Georgia, serif;
  --radius: 16px;
}
body { background: radial-gradient(80% 50% at 50% 0%, #241d54 0%, #12102a 65%), #12102a; color: var(--ink); font: 16.5px/1.7 var(--sans); }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(2px 2px at 12% 18%, rgba(124,247,163,.8), transparent 60%),
    radial-gradient(1.5px 1.5px at 36% 6%, rgba(255,224,102,.8), transparent 60%),
    radial-gradient(2px 2px at 62% 12%, rgba(255,138,216,.8), transparent 60%),
    radial-gradient(1.5px 1.5px at 85% 22%, rgba(110,231,255,.8), transparent 60%); }
main, header { position: relative; z-index: 1; }
.nav { background: rgba(14, 12, 36, .85); border-bottom: 1px solid var(--border); }
.nav .logo { font-family: var(--display) !important; font-weight: 900; font-size: 15px;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.nav .logo .jp { font-size: 10px; color: var(--muted); -webkit-text-fill-color: var(--muted); letter-spacing: 2px; }
.nav .logo .logo-spark { -webkit-text-fill-color: initial; }
.nav nav a { color: var(--muted) !important; }
.ticker { position: relative; z-index: 1; overflow: hidden; background: rgba(16,14,40,.9); border-bottom: 1px solid rgba(255,138,216,.2); }
.ticker-track { display: flex; white-space: nowrap; animation: tick 26s linear infinite; }
.ticker-track span { font: 700 10.5px var(--display); letter-spacing: 2.5px; color: var(--muted); padding: 7px 0; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

.hero { background: transparent; color: var(--ink); padding: 54px 24px 40px; }
.hero h1 { font-family: var(--display); font-weight: 900; color: var(--ink); text-transform: none; letter-spacing: 0; }
.hero h1 .rainbow { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline { color: var(--muted); }
.card { background: var(--card); border: 2px solid var(--border); box-shadow: 8px 8px 0 rgba(124, 247, 163, .12); color: var(--ink); }
#fancyInput { background: #120f2e; color: var(--ink); border: 2px solid rgba(255,138,216,.4); border-radius: 16px; caret-color: #ff8ad8; }
#fancyInput:focus { border-color: #6ee7ff; box-shadow: 0 0 0 4px rgba(110,231,255,.2); outline: none; }
input, select { background: #120f2e; color: var(--ink); border-color: var(--border); }
input::placeholder { color: #6b6394; }
select option { background: #120f2e; color: var(--ink); }
.stylecell { background: #211d4d; border: 2px solid rgba(110,231,255,.2); border-radius: 14px; color: var(--ink); }
.stylecell:nth-child(3n) { border-color: rgba(255,138,216,.25); }
.stylecell:nth-child(3n+1) { border-color: rgba(124,247,163,.25); }
.stylecell:hover { transform: translateY(-3px) rotate(-.6deg); box-shadow: 5px 5px 0 rgba(255,138,216,.25); }
.stylecell.copied { border-color: #7cf7a3; box-shadow: 0 0 0 3px rgba(124,247,163,.35); }
.stylecell.copied::after { color: #7cf7a3; content: "copied! ✨"; }
.sname { color: var(--muted); }
.btn.primary { background: var(--gradient); color: #12102a; font-family: var(--display); font-weight: 700;
  border: none; box-shadow: 4px 4px 0 rgba(110,231,255,.35); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 4px 4px 0 rgba(255,138,216,.4); }
.btn { border: 1px solid var(--border); background: rgba(255,255,255,.05); color: var(--ink); }
.wmh, .pricing h2, .faq h2 { font-family: var(--display); font-weight: 700;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
details, .step, .pack { background: var(--card); border: 1px solid var(--border); color: var(--muted); }
summary { color: var(--ink); }
.step span { background: var(--gradient); color: #12102a; font-family: var(--display); font-weight: 900; transform: rotate(-3deg); }
.steps .step h3, .pack h3 { color: var(--ink); }
.status.err { color: #ff9e9e; } .status.ok { color: #7cf7a3; }
.adbox { margin: 18px auto 0; min-height: 0; width: 100%; max-width: 970px; }
.adbox:empty { display: none; }
footer, .footer, .footer a { color: #6b6394 !important; }
@media (max-width: 680px) { .hero h1 { font-size: 28px; } }
.countbadge { text-align: center; font: 700 11.5px var(--display); letter-spacing: 2px; color: var(--muted); text-transform: uppercase; margin-top: 10px; }

/* ================= layout polish ================= */
.product { padding-top: 28px; }
.product .card { padding: 0; overflow: visible; background: transparent; border: none; box-shadow: none; }
.composer {
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(180deg, #12102a 78%, rgba(18,16,42,0));
  padding: 14px 4px 16px; margin-bottom: 6px;
}
#fancyInput { width: 100%; font-size: 24px; font-family: var(--display); font-weight: 700;
  padding: 18px 20px; border-radius: 18px; border: 2px solid rgba(255,138,216,.45);
  box-shadow: 0 0 40px rgba(255,138,216,.12); }
#fancyInput:focus { border-color: #6ee7ff; box-shadow: 0 0 0 4px rgba(110,231,255,.18), 0 0 50px rgba(110,231,255,.2); }
.countbadge { margin-top: 9px; }

/* category chips */
.catbar { display: flex; gap: 7px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.chip { border: 1.5px solid rgba(110,231,255,.28); background: rgba(255,255,255,.04); color: var(--muted);
  border-radius: 999px; padding: 7px 14px; font: 700 12.5px var(--sans); cursor: pointer;
  transition: transform .12s ease, background .12s ease, color .12s ease; }
.chip i { font-style: normal; opacity: .55; font-size: 11px; margin-left: 3px; }
.chip:hover { transform: translateY(-1px); color: var(--ink); }
.chip.on { background: var(--gradient); color: #12102a; border-color: transparent; box-shadow: 0 4px 14px rgba(255,138,216,.3); }
.chip.on i { opacity: .7; }
.stylesearch { width: 100%; max-width: 380px; display: block; margin: 12px auto 0;
  border-radius: 999px; padding: 10px 18px; font-size: 14px; text-align: center; }

/* cards: output is the hero, name is a quiet tag */
.stylegrid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-top: 6px; }
.stylecell { padding: 16px 16px 12px; gap: 10px; min-height: 96px; justify-content: space-between;
  background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.015)); }
.sout { font-size: 19px; line-height: 1.45; color: var(--ink); }
.srow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sname { font-size: 10px; letter-spacing: 1.2px; }
.scopy { font: 700 10px var(--sans); letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--brand); opacity: 0; transition: opacity .15s ease; }
.stylecell:hover .scopy { opacity: 1; }
.stylecell.copied .scopy { opacity: 1; color: #7cf7a3; }
.nores { grid-column: 1/-1; text-align: center; color: var(--muted); padding: 40px 10px; font-size: 15px; }

/* toast */
#toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
  background: var(--gradient); color: #12102a; font: 700 13.5px var(--sans);
  padding: 11px 22px; border-radius: 999px; box-shadow: 0 8px 30px rgba(0,0,0,.35);
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 90; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* quieter supporting sections so the tool dominates */
.steps { padding-top: 34px; }
.hero { padding-bottom: 20px; }
@media (max-width: 680px) {
  .composer { padding: 10px 2px 12px; }
  #fancyInput { font-size: 19px; padding: 14px 16px; }
  .stylegrid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .stylecell { padding: 12px 12px 10px; min-height: 84px; }
  .sout { font-size: 16px; }
  .scopy { opacity: 1; }
  .chip { padding: 6px 11px; font-size: 11.5px; }
}

/* hero gives way to the tool */
.hero { padding: 34px 24px 6px; }
.hero h1 { font-size: clamp(30px, 6vw, 52px); line-height: 1.05; }
.tagline { font-size: 15.5px; margin-top: 14px; }
.composer { padding-top: 18px; }
.composer::before { content: ""; position: absolute; inset: -40px 0 auto; height: 40px;
  background: linear-gradient(180deg, rgba(18,16,42,0), #12102a); pointer-events: none; }
.composer { position: sticky; }
@media (max-width: 680px) { .hero { padding: 22px 16px 4px; } .tagline { font-size: 14px; } }

/* 1. headline always fully visible — sticky bar starts below it */
.composer { top: 8px; }
.stylesearch { display: none; }
.hero { padding: 40px 24px 10px; }
.hero h1 { position: relative; z-index: 25; }
.composer::before { display: none; }
.composer { background: linear-gradient(180deg, #12102a 70%, rgba(18,16,42,.96) 88%, rgba(18,16,42,0)); }
@media (max-width: 680px) { .composer { top: 4px; } }

/* chips carry the count — tighter top */
.composer { padding-top: 14px; padding-bottom: 12px; }
.catbar { margin-top: 14px; }
.chip-drop { border-color: rgba(255,224,102,.55); color: #ffe066; }
.chip-drop.on { color: #12102a; }
.countbadge { display: none; }

/* hero text must clear the sticky composer completely */
.hero { padding: 40px 24px 22px; position: relative; z-index: 24; }
.tagline { position: relative; z-index: 24; background: transparent; }
.composer { z-index: 20; }
.chip { white-space: nowrap; }
@media (max-width: 680px) { .hero { padding: 24px 16px 16px; } }
.tagline { max-width: 620px; margin-left: auto; margin-right: auto; }
.hero { padding-bottom: 26px; }

/* sharing */
.chip-share { border-style: dashed; border-color: rgba(255,224,102,.5); color: #ffe066; margin-left: 4px; }
.chip-share:hover { background: var(--gradient); color: #12102a; border-style: solid; border-color: transparent; }
.sacts { display: flex; align-items: center; gap: 9px; }
.sact { font-size: 13px; opacity: .45; cursor: pointer; transition: opacity .12s ease, transform .12s ease; }
.sact:hover { opacity: 1; transform: scale(1.25); }
@media (hover: none) { .sact { opacity: .8; font-size: 15px; } }

/* ================= calm pass ================= */
/* one card language, not a rainbow of borders */
.stylecell, .stylecell:nth-child(3n), .stylecell:nth-child(3n+1) {
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.035);
}
.stylecell:hover { border-color: rgba(110,231,255,.45); transform: translateY(-2px); box-shadow: none; }
.stylecell.copied { border-color: #7cf7a3; box-shadow: none; }

/* actions recede until wanted */
.sacts { gap: 12px; }
.sact { opacity: 0; font-size: 12.5px; }
.stylecell:hover .sact { opacity: .5; }
.sact:hover { opacity: 1 !important; }
@media (hover: none) { .sact { opacity: .35; } }

/* quieter name tags */
.sname { opacity: .55; letter-spacing: 1px; }
.stylecell:hover .sname { opacity: .8; }

/* airier grid + generous page rhythm */
.stylegrid { gap: 14px; }
.stylecell { min-height: 92px; padding: 18px 18px 13px; }
.faq { padding-top: 46px; }
.chip { border-color: rgba(255,255,255,.14); }
.chip:hover { border-color: rgba(110,231,255,.4); }

/* the trade: share → unlock */
.chip-locked { border-style: dashed; border-color: rgba(255,224,102,.5); color: #ffe066; }
.chip-locked:hover { background: rgba(255,224,102,.14); }
