/* ============================================================
   BusinessLogoCreator — "Marks & Grids"
   A Swiss specimen-sheet aesthetic: warm paper, ink black,
   ultramarine + one amber accent, hairline rules, mono labels.
   Display: Bricolage Grotesque · Body: Inter · Labels: mono stack
   ============================================================ */

:root {
  --paper:   #F6F4EE;
  --paper-2: #EFECE1;
  --ink:     #16150F;
  --ink-2:   #55523F;
  --rule:    #DDD8C6;
  --blue:    #2337EC;
  --blue-2:  #1B2BB8;
  --amber:   #FFB01F;
  --error:   #B3261E;
  --ok:      #1F7A5C;
  --font-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --radius: 4px;
  --shadow: 0 1px 0 var(--rule), 0 12px 32px -18px rgba(22, 21, 15, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.015em; margin: 0.35em 0 0.45em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--blue-2); }
em { font-style: italic; }
code { font-family: var(--font-mono); font-size: .85em; background: var(--paper-2); padding: .1em .4em; border-radius: 3px; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 1.4rem; }
.wrap.narrow, .narrow { max-width: 780px; }
.center { text-align: center; }
.maxw { max-width: 62ch; }
.muted { color: var(--ink-2); }
.tiny { font-size: .82rem; color: var(--ink-2); }
.tiny a { color: inherit; }

.mono-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: .6rem;
}
.mono-label a { color: inherit; }

.lede { font-size: 1.13rem; color: var(--ink-2); max-width: 66ch; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 99; }
.skip-link:focus { left: 0; }

/* ─── buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .98rem;
  padding: .72rem 1.5rem;
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--blue-2); border-color: var(--blue-2); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px -8px rgba(35, 55, 236, .6); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: wait; transform: none; }
.btn-big { font-size: 1.08rem; padding: .9rem 1.9rem; }
.btn-small { font-size: .85rem; padding: .45rem 1rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); box-shadow: none; }
.btn[aria-disabled="true"] { opacity: .45; cursor: progress; pointer-events: auto; }
.btn.ready { animation: pulse .5s ease 1; }
@keyframes pulse { 50% { transform: scale(1.04); } }

/* ─── header ──────────────────────────────────────────────── */
.site-header { background: var(--paper); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; justify-content: space-between; padding-top: .9rem; padding-bottom: .9rem; }
.header-rule { height: 2px; background: var(--ink); }
.wordmark { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.wm-mark { width: 30px; height: 30px; }
.wm-text { font-family: var(--font-display); font-weight: 800; font-size: 1.06rem; letter-spacing: -0.01em; }
.wm-accent { color: var(--blue); }

.site-nav { display: flex; align-items: center; }
.nav-toggle-box { display: none; }
.nav-toggle { display: none; }
.nav-list { display: flex; align-items: center; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav-list a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav-list a:hover, .nav-list a.active { color: var(--blue); }
.nav-cta .btn { color: #fff; }

/* ─── sections ────────────────────────────────────────────── */
.section { padding: 4.2rem 0; }
.section-alt { background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

.notice { background: #fff; border: 1px solid var(--rule); border-left: 4px solid var(--amber); padding: .8rem 1.1rem; border-radius: var(--radius); }
.notice.error { border-left-color: var(--error); color: var(--error); }
.notice.ok { border-left-color: var(--ok); }

/* ─── hero ────────────────────────────────────────────────── */
.hero { padding: 4.6rem 0 4rem; border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3.4rem; align-items: center; }
.hero-copy h1 em { color: var(--blue); font-style: italic; }
.hero-cta { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-note { font-size: .88rem; color: var(--ink-2); }
.hero-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.hero-wall figure { margin: 0; }
.hero-wall img { border: 1px solid var(--rule); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-wall figcaption { margin-top: .35rem; text-align: center; }
.hero-wall .mono-label { margin-bottom: 0; font-size: .62rem; }

/* ─── generator form ──────────────────────────────────────── */
.section-generator { border-bottom: 1px solid var(--rule); }
.gen-head { margin-bottom: 2rem; }
.gen-form {
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
}
.gf-row { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.gf-field { display: block; margin-bottom: 1.15rem; }
.gf-grow { flex: 1 1 260px; }
.gf-field > span, .gf-field legend { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; }
.gf-field b { color: var(--blue); }
.gf-field i { color: var(--ink-2); font-weight: 400; }
.gf-field input[type="text"], .gf-field input[type="email"], .gf-field input[type="url"],
.gf-field select, .gf-field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: .65rem .8rem;
}
.gf-field input:focus, .gf-field select:focus, .gf-field textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 0;
  border-color: var(--blue);
  background: #fff;
}
fieldset.gf-field { border: 0; padding: 0; margin: 0 0 1.15rem; }
.style-chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip-radio input { position: absolute; opacity: 0; }
.chip-radio span {
  display: inline-block;
  padding: .5rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  font-size: .88rem;
  cursor: pointer;
  transition: all .12s ease;
}
.chip-radio input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip-radio input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.hp-wrap { position: absolute; left: -5000px; top: -5000px; }
.gf-submit { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: .4rem; }

/* ─── generator status & results ──────────────────────────── */
.gen-status { margin-top: 1.6rem; }
.status-bar { height: 6px; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 999px; overflow: hidden; }
.status-bar span { display: block; height: 100%; width: 0; background: var(--blue); transition: width .8s ease; }
.gen-status p { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-2); margin: .55rem 0 0; }

.gen-results { margin-top: 2.6rem; }
.results-head h3 { font-size: 1.5rem; }

.concept-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; margin-top: 1.6rem; }
.concept-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.concept-img { aspect-ratio: 1; background: #fff; border-bottom: 1px solid var(--rule); display: grid; place-items: center; position: relative; }
.concept-img img { width: 100%; height: 100%; object-fit: contain; }
.img-loading, .img-failed { text-align: center; color: var(--ink-2); font-family: var(--font-mono); font-size: .8rem; padding: 1rem; }
.img-loading span {
  display: block; width: 34px; height: 34px; margin: 0 auto .8rem;
  border: 3px solid var(--rule); border-top-color: var(--blue); border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.img-failed p { margin-bottom: .7rem; }
.concept-body { padding: 1.1rem 1.25rem 1.3rem; }
.concept-body h2 { font-size: 1.2rem; margin: 0 0 .15rem; }
.tag { font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--blue); }
.concept-body p { font-size: .92rem; color: var(--ink-2); margin: .6rem 0 .9rem; }
.palette { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.chip { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); display: inline-block; }
.chip-lg { width: 42px; height: 42px; border-radius: var(--radius); }
.chip-hex { font-family: var(--font-mono); font-size: .68rem; color: var(--ink-2); margin-left: .3rem; }
.fonts { margin: .8rem 0 0 !important; }

.buy-bar {
  margin-top: 2rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 1.3rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.buy-bar strong { font-family: var(--font-display); font-size: 1.15rem; display: block; }
.buy-bar span { font-size: .85rem; opacity: .75; }
.buy-bar .btn { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.buy-bar .btn:hover { background: #ffc14d; border-color: #ffc14d; box-shadow: none; }
#permalink-note { margin-top: 1rem; text-align: center; }

/* ─── features / pricing ──────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; margin-top: 1.8rem; }
.feature-grid article { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.feature-grid h3 { margin-top: 0; }
.feature-grid p { color: var(--ink-2); font-size: .95rem; margin-bottom: 0; }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 1.8rem; align-items: start; }
.price-card { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.6rem; }
.price-card.featured { border: 2px solid var(--blue); box-shadow: var(--shadow); position: relative; }
.price-card h3 { margin-top: 0; }
.price { font-family: var(--font-display); font-size: 2.3rem; font-weight: 800; margin: .2rem 0 .8rem; }
.price span { font-size: .85rem; font-weight: 400; color: var(--ink-2); font-family: var(--font-body); margin-left: .4rem; }
.price-card ul { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.price-card li { padding: .34rem 0 .34rem 1.4rem; position: relative; font-size: .93rem; border-bottom: 1px dashed var(--rule); }
.price-card li:last-child { border-bottom: 0; }
.price-card li::before { content: "→"; position: absolute; left: 0; color: var(--blue); font-family: var(--font-mono); font-size: .8rem; top: .45rem; }

.license-box { margin-top: 3rem; background: #fff; border: 1px solid var(--rule); border-top: 3px solid var(--amber); border-radius: var(--radius); padding: 1.8rem; }

/* ─── steps / honest lists / legal ────────────────────────── */
.steps { margin-top: 1.4rem; }
.step { border-left: 2px solid var(--ink); padding: .2rem 0 1.6rem 1.5rem; position: relative; }
.step::before { content: ""; position: absolute; left: -6px; top: .5rem; width: 10px; height: 10px; background: var(--blue); border-radius: 50%; }
.step h2 { font-size: 1.3rem; margin: .1rem 0 .4rem; }
.step p { color: var(--ink-2); max-width: 66ch; }

.honest-list { list-style: none; margin: 1rem 0; padding: 0; }
.honest-list li { padding: .55rem 0 .55rem 1.6rem; position: relative; border-bottom: 1px dashed var(--rule); }
.honest-list li:last-child { border-bottom: 0; }
.honest-list li::before { content: "¶"; position: absolute; left: 0; color: var(--blue); font-family: var(--font-mono); }

.legal h2 { font-size: 1.2rem; margin-top: 2rem; }

/* ─── idea pages ──────────────────────────────────────────── */
.ideas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin-top: 1.8rem; }
.idea-card { display: block; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.4rem; text-decoration: none; color: var(--ink); transition: transform .1s ease, box-shadow .15s ease; }
.idea-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.idea-card h2 { font-size: 1.25rem; margin: .1rem 0 .4rem; }
.idea-card p { font-size: .88rem; color: var(--ink-2); }
.idea-more { font-family: var(--font-mono); font-size: .75rem; color: var(--blue); }

.idea-list { padding-left: 1.2rem; }
.idea-list li { margin-bottom: .9rem; }
.palette-rows { margin: 1rem 0 1.6rem; }
.palette-row { display: flex; align-items: center; gap: 1.2rem; padding: .7rem 0; border-bottom: 1px dashed var(--rule); flex-wrap: wrap; }
.palette-row .mono-label { min-width: 150px; margin-bottom: 0; }

.do-dont { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; margin: 1.8rem 0; }
.do-dont > div { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.do { border-top: 3px solid var(--ok); }
.dont { border-top: 3px solid var(--error); }
.do-dont p { margin-bottom: 0; font-size: .95rem; }

.idea-next { margin-top: 3rem; }
.idea-next ul { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; }
.idea-next a { display: inline-block; border: 1px solid var(--rule); border-radius: 999px; background: #fff; padding: .35rem .95rem; font-size: .85rem; text-decoration: none; }

.cta-band { margin-top: 3rem; background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 2.2rem; text-align: center; }
.cta-band h2 { color: var(--paper); margin-top: 0; }
.cta-band p { opacity: .75; }
.cta-band .btn { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.cta-band .btn:hover { background: #ffc14d; border-color: #ffc14d; box-shadow: none; }

/* ─── forms (contact / custom) ────────────────────────────── */
.lead-form { background: #fff; border: 1px solid var(--rule); border-top: 3px solid var(--ink); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); margin-top: 1.6rem; }

/* ─── delivery page ───────────────────────────────────────── */
.delivery-box { background: #fff; border: 1px solid var(--rule); border-top: 3px solid var(--ok); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); margin: 1.6rem 0; }
.vec-list { list-style: none; margin: .8rem 0 0; padding: 0; }
.vec-list li { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; font-size: .95rem; border-bottom: 1px dashed var(--rule); }
.vec-list em { color: var(--ink-2); font-style: normal; font-family: var(--font-mono); font-size: .75rem; margin-left: auto; }
.vec-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--rule); flex: 0 0 auto; }
.vec-working .vec-dot { background: var(--amber); animation: blink 1s ease infinite; }
.vec-done .vec-dot { background: var(--ok); }
.vec-failed .vec-dot { background: var(--error); }
@keyframes blink { 50% { opacity: .4; } }
.delivery-main { text-align: center; padding: 1.6rem 0 .6rem; border-bottom: 1px dashed var(--rule); margin-bottom: 1.2rem; }
.file-list { list-style: none; margin: .6rem 0 0; padding: 0; }
.file-list li { padding: .4rem 0; border-bottom: 1px dashed var(--rule); font-size: .92rem; }
.file-list li:last-child { border-bottom: 0; }
.file-list a { margin-left: .7rem; font-family: var(--font-mono); font-size: .8rem; }

/* ─── FAQ ─────────────────────────────────────────────────── */
.faq details { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); margin-bottom: .7rem; padding: 0; }
.faq summary { cursor: pointer; font-weight: 600; padding: 1rem 1.2rem; list-style: none; position: relative; }
.faq summary::after { content: "+"; position: absolute; right: 1.1rem; font-family: var(--font-mono); color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 1.2rem 1.1rem; margin: 0; color: var(--ink-2); }

/* ─── footer ──────────────────────────────────────────────── */
.site-footer { border-top: 2px solid var(--ink); margin-top: 4rem; padding: 2.8rem 0 2rem; background: var(--paper-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.4rem; }
.footer-brand p { font-size: .9rem; color: var(--ink-2); max-width: 42ch; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .45rem; }
.footer-col a { color: var(--ink); text-decoration: none; font-size: .92rem; }
.footer-col a:hover { color: var(--blue); }
.footer-legal { border-top: 1px solid var(--rule); margin-top: 2.2rem; padding-top: 1.2rem; font-size: .8rem; color: var(--ink-2); }

/* ─── responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .price-grid, .ideas-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .section { padding: 3rem 0; }
  .concept-grid, .feature-grid, .price-grid, .ideas-grid, .do-dont { grid-template-columns: 1fr; }
  .buy-bar { flex-direction: column; align-items: flex-start; }

  .nav-toggle { display: block; cursor: pointer; padding: .4rem; }
  .nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--ink); margin: 5px 0; transition: transform .15s ease; }
  .nav-list {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.4rem 1.4rem;
    gap: .9rem;
  }
  .nav-toggle-box:checked ~ .nav-list { display: flex; }
  .site-nav { position: static; }
  .header-row { position: relative; }
}
