/* Design prompt generator: the free tool page. Builds on /style.css. */

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
code { font-family: var(--mono); font-size: .88em; }
.setup-card code, .how-list code, .output-how code, .faq-list code { padding: 2px 7px; border-radius: 7px; background: var(--surface-2); color: var(--text); font-weight: 600; overflow-wrap: anywhere; }

/* Hero and form */
.tool-hero { padding-block: clamp(56px, 8vw, 104px) 32px; }
.tool-hero .pill { margin-bottom: 24px; }
.tool-hero .big-title { margin-bottom: 20px; }
.tool-lead { max-width: 780px; font-size: clamp(20px, 2vw, 24px); line-height: 1.45; font-weight: 600; color: var(--muted); }
.tool-form { display: flex; gap: 12px; max-width: 760px; margin-top: 36px; }
.tool-input { flex: 1; min-width: 0; display: flex; align-items: center; min-height: 64px; padding: 0 8px 0 20px; border-radius: 18px; background: var(--surface); border: 2px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.tool-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-subtle); }
.tool-scheme { color: var(--muted); font-size: 20px; font-weight: 600; user-select: none; }
.tool-input input { flex: 1; min-width: 0; height: 60px; padding: 0 4px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 21px; font-weight: 650; font-family: inherit; }
.tool-input input::placeholder { color: var(--muted); opacity: .6; }
.tool-form .button { min-height: 64px; padding-inline: 26px; border-radius: 18px; font-size: 19px; background: var(--brand); border-color: var(--brand); color: var(--on-brand); white-space: nowrap; }
.tool-form .button:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.tool-form .button:disabled { cursor: progress; opacity: .85; transform: none; }
.tool-spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 3px solid currentColor; border-right-color: transparent; animation: tool-spin .7s linear infinite; }
.tool-form.busy .tool-spinner { display: inline-block; }
@keyframes tool-spin { to { transform: rotate(360deg); } }
.tool-try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; color: var(--muted); font-size: 17px; font-weight: 600; }
.tool-try button { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 16px; font-weight: 650; cursor: pointer; transition: border-color .2s, color .2s; }
.tool-try button:hover { border-color: var(--brand); color: var(--brand-text); }
.tool-status { min-height: 28px; margin-top: 16px; font-size: 18px; font-weight: 650; color: var(--muted); }
.tool-status.error { color: var(--brand-text); }

/* Result */
.tool-result { padding-block: 24px 40px; scroll-margin-top: 24px; }
.result-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 20px; }
.result-head h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; overflow-wrap: anywhere; }
.result-meta { color: var(--muted); font-size: 18px; font-weight: 650; }
.result-note { margin-bottom: 20px; padding: 14px 18px; border-radius: 14px; background: var(--brand-subtle); color: var(--brand-text); font-size: 17px; font-weight: 650; }
.result-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; }
.result-card { min-width: 0; padding: 24px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); }
.result-card h3 { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.result-card h3 span { color: var(--muted); font-size: 14px; font-weight: 600; }
.result-card h3:not(:first-child) { margin-top: 24px; }
.swatch-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.swatch-chip { width: 100%; display: grid; grid-template-columns: 36px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); text-align: left; cursor: pointer; transition: border-color .2s; }
.swatch-chip:hover { border-color: var(--brand); }
.swatch-dot { grid-row: span 2; width: 36px; height: 36px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(127, 127, 127, .3); }
.swatch-role { font-size: 13px; font-weight: 650; color: var(--muted); line-height: 1.2; }
.swatch-hex { font: 650 15px/1.3 var(--mono); }
.font-list { display: grid; gap: 2px; }
.font-list li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.font-list li:last-child { border-bottom: 0; }
.font-list span { color: var(--muted); font-weight: 600; }
.font-list b { font-weight: 650; text-align: right; overflow-wrap: anywhere; }

/* A small interface drawn in the extracted style */
.style-preview { min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: 26px; background: var(--p-canvas); color: var(--p-text); border: 1px solid var(--line); font-family: var(--p-body); overflow: hidden; }
.sp-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.sp-logo { width: 26px; height: 26px; border-radius: min(var(--p-control), 8px); background: var(--p-accent); }
.sp-link { width: 54px; height: 9px; border-radius: 5px; background: var(--p-muted); opacity: .45; }
.sp-cta { margin-left: auto; padding: 7px 14px; border-radius: var(--p-control); border: 1px solid var(--p-border); font-size: 13px; font-weight: 600; }
.sp-kicker { color: var(--p-accent); font-size: 14px; font-weight: 650; }
.sp-title { font-family: var(--p-heading); font-weight: var(--p-weight); font-size: clamp(30px, 3.6vw, 44px); line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }
.sp-body { max-width: 440px; color: var(--p-muted); font-size: 16px; line-height: 1.5; }
.sp-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sp-button, .sp-ghost { padding: 11px 18px; border-radius: var(--p-control); font-size: 15px; font-weight: 600; }
.sp-button { background: var(--p-accent); color: var(--p-on-accent); }
.sp-ghost { border: 1px solid var(--p-border); }
.sp-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.sp-card { display: grid; gap: 4px; padding: 16px; border-radius: var(--p-radius); background: var(--p-surface); border: 1px solid var(--p-border); box-shadow: var(--p-shadow); }
.sp-card b { font-family: var(--p-heading); font-weight: var(--p-weight); font-size: 17px; }
.sp-card span { color: var(--p-muted); font-size: 14px; }

/* Outputs */
.outputs { margin-top: 28px; }
.output-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 6px; border-radius: 18px; background: var(--surface-2); scrollbar-width: none; }
.output-tabs::-webkit-scrollbar { display: none; }
.output-tabs button { flex: none; padding: 10px 16px; border: 0; border-radius: 13px; background: transparent; color: var(--muted); font-size: 17px; font-weight: 700; cursor: pointer; transition: background-color .2s, color .2s; }
.output-tabs button:hover { color: var(--text); }
.output-tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.output-tabs button:focus-visible { outline: 3px solid var(--brand); outline-offset: 1px; }
.output-panel { margin-top: 14px; }
.output-what { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding: 6px 6px 6px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.output-what[hidden] { display: none; }
.output-what span { flex: none; font-size: 16px; font-weight: 700; color: var(--muted); }
.output-what input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 0; border-radius: 11px; background: var(--bg); color: var(--text); font-size: 17px; font-weight: 600; font-family: inherit; outline: 0; }
.output-what input:focus { box-shadow: 0 0 0 2px var(--brand); }
.output-panel .code-window pre { max-height: 460px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.tool-copy { flex: none; padding: 5px 13px; border-radius: 8px; border: 1px solid #45443E; background: #2A2A27; color: #E8E5DD; font: 600 13px -apple-system, BlinkMacSystemFont, sans-serif; cursor: pointer; }
#output-download { margin-left: auto; }
.tool-copy:hover { border-color: var(--brand); }
.tool-copy-main { background: var(--brand); border-color: var(--brand); color: #FFFFFF; padding-inline: 18px; }
.tool-copy-main:hover { background: var(--brand-hover); }
.output-how { margin-top: 14px; max-width: 900px; color: var(--muted); font-size: 17px; font-weight: 600; line-height: 1.55; }

/* The one call to action */
.upsell { display: flex; align-items: center; gap: 28px; margin-top: 32px; padding: 30px 32px; border-radius: 28px; background: var(--surface); border: 2px solid var(--brand); }
.upsell h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; letter-spacing: -.02em; font-weight: 800; }
.upsell p { margin-top: 10px; max-width: 680px; color: var(--muted); font-size: 18px; }
.upsell .button { flex: none; margin-left: auto; background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.upsell .button:hover { background: var(--brand-hover); border-color: var(--brand-hover); }

/* Content sections */
.get-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.get-grid .setup-card p { margin: 0; font-size: 18px; }
.how-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; counter-reset: how; }
.how-list li { position: relative; padding: 28px 28px 28px 84px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); counter-increment: how; }
.how-list li::before { content: counter(how); position: absolute; left: 28px; top: 26px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #FFFFFF; font-size: 19px; font-weight: 800; }
.how-list h3 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.how-list p { color: var(--muted); font-size: 18px; }
.how-why { max-width: 860px; margin-top: 32px; font-size: clamp(19px, 1.8vw, 22px); font-weight: 600; line-height: 1.5; }
.compare { overflow-x: auto; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); }
.compare table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 18px; }
.compare th, .compare td { padding: 16px 22px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: 19px; font-weight: 800; }
.compare thead th:last-child { color: var(--brand-text); }
.compare tbody th { font-weight: 700; }
.compare td { color: var(--muted); font-weight: 600; }
.compare td.yes { color: var(--text); }
.compare td a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.compare-foot { margin-top: 22px; color: var(--muted); font-size: 18px; font-weight: 600; }
.compare-foot a { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 1000px) {
  .result-grid { grid-template-columns: 1fr; }
  .get-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .how-list { grid-template-columns: 1fr; }
  .upsell { flex-direction: column; align-items: stretch; padding: 24px; }
  .upsell .button { margin-left: 0; }
}
@media (max-width: 640px) {
  .tool-form { flex-direction: column; }
  .tool-input { min-height: 58px; padding-left: 16px; }
  .tool-scheme { font-size: 17px; }
  .tool-input input { height: 54px; font-size: 18px; }
  .tool-form .button { min-height: 58px; }
  .get-grid { grid-template-columns: 1fr; }
  .result-card, .style-preview { padding: 18px; border-radius: 22px; }
  .swatch-list { grid-template-columns: 1fr 1fr; }
  .output-what { flex-direction: column; align-items: stretch; gap: 6px; padding: 12px; }
  .output-what span { font-size: 15px; }
  .how-list li { padding: 22px 22px 22px 72px; }
  .how-list li::before { left: 20px; top: 20px; }
  .compare th, .compare td { padding: 12px 14px; font-size: 16px; }
}

/* /design/ pages: one site's design, and the index of them */
.design-hero { padding-bottom: 24px; }
.design-crumbs { margin-bottom: 18px; color: var(--muted); font-size: 17px; font-weight: 650; }
.design-crumbs a { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.design-hero .big-title { font-size: clamp(38px, 5.2vw, 72px); }
.design-facts { display: grid; gap: 20px; padding-top: 48px; }
.design-facts article { padding: 28px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); }
.design-facts h2 { margin-bottom: 12px; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -.025em; font-weight: 800; }
.design-facts p { max-width: 860px; color: var(--muted); font-size: 18px; }
.design-facts p + p, .design-facts table + p { margin-top: 14px; }
.design-facts code { padding: 2px 7px; border-radius: 7px; background: var(--surface-2); color: var(--text); font-weight: 600; }
.design-facts a { color: var(--text); text-decoration: underline; text-underline-offset: 4px; font-weight: 650; }
.design-colors { width: 100%; max-width: 760px; border-collapse: collapse; font-size: 17px; }
.design-colors td, .design-colors th { padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.design-colors tr:last-child td, .design-colors tr:last-child th { border-bottom: 0; }
.design-colors th { font-weight: 700; white-space: nowrap; }
.design-colors td:last-child { color: var(--muted); font-weight: 600; }
.design-colors .swatch-dot { display: block; width: 30px; height: 30px; border-radius: 8px; }
.design-more { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.design-more a { display: inline-block; padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); text-decoration: none !important; font-size: 16px; }
.design-more a:hover { border-color: var(--brand); color: var(--brand-text); }
.design-source { color: var(--muted); font-size: 15px; font-weight: 600; }
.design-index { padding-bottom: 80px; }
.design-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.design-card { display: grid; gap: 4px; padding: 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.design-card:hover { transform: translateY(-3px); border-color: var(--brand); }
.design-card b { margin-top: 8px; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.design-card span:last-child { color: var(--muted); font-size: 15px; font-weight: 600; }
.design-strip { display: flex; height: 44px; overflow: hidden; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(127, 127, 127, .25); }
.design-strip i { flex: 1; }
.popular-list { display: flex; flex-wrap: wrap; gap: 10px; }
.popular-list a { display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 17px; font-weight: 700; transition: border-color .2s, color .2s; }
.popular-list a:hover { border-color: var(--brand); color: var(--brand-text); }
@media (max-width: 640px) {
  .design-facts article { padding: 20px; border-radius: 22px; }
  .design-colors td:last-child { display: none; }
  .design-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}
