/* start.css: the "try it" flow (start.html only, loaded after site.css). Every colour, radius and font comes from
   the tokens at the top of site.css. Classes start with ob- so nothing here leaks into other pages. */

.ob-page .stickycta { display: none !important; }   /* the site-wide "Try it free" bar: this page has its own step bar */

/* The page, as in the prototype (imprint-better-onboarding.html): white with a soft yellow and cyan glow,
   under the site's own header. */
.ob-page { background:
  radial-gradient(640px 420px at 0% 0%, rgba(255, 241, 0, 0.16), transparent 65%),
  radial-gradient(760px 480px at 100% 0%, rgba(1, 208, 218, 0.14), transparent 65%), #fff no-repeat; }
.ob-grid { max-width: 1000px; }
.ob-page .top { background: rgba(255, 255, 255, 0.7); }
.ob { padding: 24px 0 72px; }
.ob-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.ob-main { min-width: 0; }

/* Progress: four labelled bars */
.ob-trail { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ob-trail li { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ob-trail .sh { display: none; }
.ob-trail li::before { content: ""; flex: 0 0 100%; height: 4px; border-radius: 2px; background: var(--line); }
.ob-trail li.done::before { background: var(--cyan); }
.ob-trail li.now::before { background: var(--magenta); }
.ob-trail li.now { color: var(--ink); font-weight: 700; }

/* The card */
.ob-card { background: var(--paper); border: 1.5px solid var(--navy); border-radius: 14px; padding: 30px; box-shadow: 6px 6px 0 var(--cyan); }
.ob-step h1, .ob-step h2 { font-family: var(--f-tight); font-size: clamp(28px, 3.2vw, 36px); line-height: 1.06; letter-spacing: -0.045em; font-weight: 700; color: var(--ink); margin: 0 0 8px; outline: none; }
.ob-lede { color: var(--muted); margin: 0 0 8px; font-size: 17px; }
.ob-skip { margin: 8px 0 0; }
.ob-label { display: block; font-weight: 600; font-size: 15px; color: var(--ink); margin: 18px 0 6px; padding: 0; }
.ob-label small { font-weight: 400; color: var(--muted); font-size: 14px; }
.ob-fieldset { border: 0; margin: 0; padding: 14px 0 0; min-width: 0; }
.ob-card input[type=text], .ob-card input[type=email], .ob-card input[type=tel], .ob-card select {
  width: 100%; padding: 12px 13px; border: 1px solid var(--faint); border-radius: var(--r-lg); font: inherit; font-size: 16px; color: var(--ink); background: #fff; }
.ob-card input:focus, .ob-card select:focus, .ob-card button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 1px; }
.ob-row { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 14px; }
.ob-step[data-step="4"] .ob-row { grid-template-columns: 1fr 1fr; }
.ob-fine { font-size: 14px; color: var(--muted); }
.ob-err { color: #b3261e; /* error red, 6.5:1 on white (no token for errors yet) */  font-weight: 600; font-size: 15px; margin: 14px 0 0; }
.ob-ferr { color: #b3261e; font-weight: 600; font-size: 14px; margin: 6px 0 0; }   /* one field's problem, under it */
.ob-card [aria-invalid="true"]:is(input, select), .ob-types[aria-invalid="true"] .ob-type, .ob-chips[aria-invalid="true"] .ob-chip { border-color: #b3261e; }
.ob-check input[aria-invalid="true"] { outline: 2px solid #b3261e; outline-offset: 2px; }
.ob-hp { position: absolute; left: -9999px; width: 1px; height: 1px; }

/* Website scan */
.ob-scan { display: flex; gap: 8px; }
.ob-scan input { flex: 1; min-width: 0; }
.ob-status { margin-top: 8px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.ob-status:empty { display: none; }
.ob-status.warn { color: #7a4f00; }   /* dark amber, 7:1 on white: --warn is too light for text */
.ob-status.ok b { color: var(--pass); }
.ob-spin { width: 16px; height: 16px; border: 2.5px solid var(--line); border-top-color: var(--magenta); border-radius: 50%; animation: ob-spin .8s linear infinite; }
@keyframes ob-spin { to { transform: rotate(360deg); } }
.ob-brand { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; border: 1px solid var(--line-warm); border-radius: var(--r-lg); padding: 12px; margin-top: 10px; }
.ob-logo { width: 56px; height: 56px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 24px; }
.ob-brand b { display: block; color: var(--ink); }
.ob-brand p { margin: 2px 0 4px; font-size: 14px; color: var(--muted); }
.ob-dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; }
/* What the website scan found: their logo, colours to pick from, their photos */
.ob-logo-img { background: #fff; border: 1px solid var(--line); padding: 6px; }
.ob-logo-img img { width: 100%; height: 100%; object-fit: contain; }
.ob-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.ob-sw { width: 40px; height: 40px; border-radius: 10px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.ob-sw[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--navy); }
.ob-photos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 12px; }
.ob-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--line-soft); }
.ob-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ob-topics span { font-size: 13px; font-weight: 600; background: #fff; border: 1px solid var(--cyan); border-radius: 99px; padding: 3px 10px; color: var(--ink); }
.ob-foundbar p { margin: 0; }
.ob-poster strong { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25); }
@media (max-width: 600px) { .ob-photos { grid-template-columns: repeat(3, 1fr); } }

/* Kind of business: tiles, nothing picked to start with */
.ob-guess { background: var(--cyan-100); border-radius: var(--r-lg); padding: 8px 12px; font-size: 14px; margin: 0 0 8px; color: var(--ink); }
.ob-types { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ob-type, .ob-chip { border: 1px solid var(--faint); background: #fff; border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 15px; line-height: 1.25; color: var(--ink); cursor: pointer; text-align: left; }
.ob-type { padding: 14px 14px; display: grid; gap: 4px; }
.ob-type b { font-weight: 500; }
.ob-type small { font-size: 13.5px; color: var(--muted); }
.ob-type:hover, .ob-chip:hover { border-color: var(--navy); }
.ob-type[aria-pressed="true"], .ob-chip[aria-pressed="true"] { border-color: var(--magenta); background: var(--pink-100); font-weight: 600; box-shadow: inset 0 0 0 1px var(--magenta); }
.ob-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ob-type, .ob-chip { min-height: 44px; }   /* a thumb-sized target on phones */

/* Buttons */
.ob-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--magenta); color: #fff; border: 0; border-radius: var(--r-lg); padding: 13px 22px; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.ob-btn:hover { background: var(--magenta-hover); }
.ob-btn:disabled { opacity: .7; cursor: progress; }
.ob-btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--navy); white-space: nowrap; }
.ob-btn-ghost:hover { background: var(--cream); }
.ob-link { background: none; border: 0; color: var(--ink); text-decoration: underline; font: inherit; cursor: pointer; padding: 6px 0; min-height: 44px; min-width: 44px; }
.ob-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; gap: 12px; flex-wrap: wrap; }

/* Step 3: the month and three mock posts */
.ob-foundbar { background: var(--cyan-100); border-radius: var(--r-lg); padding: 10px 14px; font-size: 14px; margin: 8px 0 0; color: var(--ink); }
.ob-plan { display: grid; gap: 8px; margin-top: 14px; }
.ob-post { display: grid; grid-template-columns: 92px 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--line-warm); border-radius: 11px; padding: 10px 12px; }
.ob-date { font-weight: 700; font-size: 14px; color: var(--ink); }
.ob-what b { display: block; color: var(--ink); }
.ob-what span { font-size: 14px; color: var(--muted); }
.ob-src { font-style: normal; font-size: 12px; font-weight: 700; background: var(--cyan); color: var(--ink); padding: 2px 7px; border-radius: 5px; margin-left: 6px; vertical-align: 1px; white-space: nowrap; }
.ob-ok { border: 1.5px solid var(--navy); background: #fff; border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink); white-space: nowrap; min-height: 44px; }
.ob-ok[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.ob-socials { display: grid; grid-template-columns: 1.1fr .8fr 1.1fr; gap: 12px; align-items: start; }
.ob-sp { margin: 0; background: #fff; border: 1px solid var(--line-warm); border-radius: 12px; overflow: hidden; font-size: 14px; }
.ob-sphead { display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.ob-sphead b { flex: 1; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.ob-sphead span:last-child { font-size: 12px; color: var(--muted); }
.ob-chipav { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; }
.ob-poster { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; gap: 4px; }
.ob-poster strong { font-weight: 700; font-size: 22px; line-height: 1.05; letter-spacing: -0.02em; }
.ob-poster small { font-size: 12px; font-weight: 600; opacity: .9; }
.ob-sq { aspect-ratio: 1; }
.ob-wide { aspect-ratio: 1.6; }
.ob-story { aspect-ratio: 9 / 16; justify-content: center; align-items: center; text-align: center; }
.ob-ptag { position: absolute; top: 12px; left: 12px; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.ob-cta { margin-top: 12px; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.ob-sp figcaption { padding: 9px 10px; line-height: 1.45; color: var(--body); }
.ob-fbtext { margin: 0; padding: 0 10px 9px; line-height: 1.45; color: var(--body); }
#obPreviewNote { margin-top: 12px; }

/* Step 4 */
.ob-colour { display: flex; align-items: center; gap: 10px; }
.ob-swatch { width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }
.ob-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ob-planc { border: 1.5px solid var(--faint); border-radius: 12px; padding: 16px; cursor: pointer; background: #fff; text-align: left; font: inherit; color: var(--ink); display: grid; gap: 4px; align-content: start; }
.ob-planc[aria-pressed="true"] { border-color: var(--magenta); box-shadow: inset 0 0 0 2px var(--magenta); }
.ob-planc b { font-size: 17px; }
.ob-price { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.ob-price small { font-size: 14px; font-weight: 400; color: var(--muted); }
.ob-tag { justify-self: start; font-size: 12px; font-weight: 700; background: var(--yellow); color: var(--ink); padding: 2px 8px; border-radius: 5px; }
.ob-call { margin-top: 4px; }
.ob-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 15px; color: var(--body); }
.ob-check input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--magenta); }
.ob-check a { color: var(--magenta); }
.ob-privacy { margin-top: 16px; }

/* Done: the confirm link is on its way */
.ob-done { text-align: center; padding: 18px 0 10px; }
.ob-done .ob-lede { max-width: 30em; margin: 0 auto 12px; }
.ob-done .ob-lede b { color: var(--ink); }
.ob-tick { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--cyan); color: var(--ink); font-size: 28px; font-weight: 700; margin-bottom: 14px; }
.ob-done .ob-fine a { color: var(--magenta); }

/* The side: offer and reassurance */
.ob-side { position: sticky; top: 20px; margin-top: -6px; display: grid; gap: 14px; }
.ob-box { border-radius: 12px; padding: 16px; font-size: 15px; }
.ob-box { background: #fff; border: 1px solid var(--line); padding: 18px; line-height: 1.55; color: var(--body); }
.ob-box h3 { margin: 0 0 8px; font-family: var(--f-tight); font-size: 16px; letter-spacing: -0.02em; color: var(--ink); }
.ob-proof { background: var(--navy); border-color: var(--navy); color: #dce6ef; }
.ob-proof h3 { color: #fff; font-size: 21px; line-height: 1.15; }
.ob-proof span { display: block; margin-top: 10px; color: var(--cyan); font-weight: 700; }
.ob-pick { display: inline-block; margin-top: 8px; color: var(--magenta); font-weight: 700; }
.ob-trust { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; font-size: 14px; color: var(--muted); }
.ob-trust li::before { content: "✓ "; color: var(--pass); font-weight: 700; }

/* Phone step bar (instead of the site's "Try it free" bar) */
.ob-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); display: none; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--muted); }
.ob-bar span:first-child { font-weight: 700; color: var(--ink); }

@media (max-width: 900px) {
  .ob-grid { grid-template-columns: 1fr; }
  .ob-side { position: static; }
  .ob-bar { display: flex; }
  .ob-page .foot { padding-bottom: 56px; }
}
@media (max-width: 600px) {
  .ob { padding: 12px 0 40px; }
  .ob-card { padding: 18px 16px; box-shadow: 4px 4px 0 var(--cyan); }
  .ob-trail { margin-bottom: 10px; gap: 6px; }
  .ob-trail li { font-size: 13px; gap: 4px; }
  .ob-trail .lg { display: none; }
  .ob-trail .sh { display: inline; }
  .ob-step h1, .ob-step h2 { font-size: 26px; }
  /* Step 1 must fit one phone screen with its Next button showing (390 x 844): the intro line goes and
     the tiles tighten. The name and "How many projects or branches?" stack, so neither label is cut off
     (side by side, the second label ran off the screen and the page scrolled sideways). */
  .ob-step[data-step="1"] .ob-lede { display: none; }
  .ob-step[data-step="1"] h1 { font-size: 24px; margin-bottom: 0; }
  .ob-step[data-step="1"] .ob-row { grid-template-columns: 1fr; gap: 0; }
  .ob-label { margin-top: 12px; font-size: 14.5px; }
  .ob-label small { display: none; }
  .ob-label small.ob-opt { display: inline; }   /* "(optional)" on the website box stays; the reason goes */
  .ob-opt .ob-long { display: none; }
  .ob-card input[type=text], .ob-card input[type=email], .ob-card input[type=tel], .ob-card select { padding: 10px 11px; }
  .ob-scan .ob-btn { padding: 10px 14px; }
  .ob-types { grid-template-columns: 1fr 1fr; gap: 6px; }
  .ob-type { font-size: 13.5px; line-height: 1.25; padding: 7px 9px; }
  .ob-type small { display: none; }
  .ob-skip { display: none; }
  .ob-row { grid-template-columns: minmax(0, 1fr) 118px; gap: 10px; }
  .ob-step[data-step="4"] .ob-row, .ob-plans { grid-template-columns: 1fr; }
  .ob-nav { margin-top: 16px; }
  .ob-step[data-step="1"] .ob-nav .ob-fine { display: none; }
  .ob-step[data-step="1"] .ob-nav .ob-btn { width: 100%; justify-content: center; }
  .ob-post { grid-template-columns: 1fr auto; }
  .ob-date { grid-column: 1 / -1; font-size: 13px; }
  .ob-socials { grid-template-columns: repeat(3, 78%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .ob-sp { scroll-snap-align: start; }
}
