/* Master Roblox Builder — buyer start page.
   Uses the tokens, buttons, top bar and footer from ../masterRobloxBuilder.css.
   One vertical island trail: each step is a graphite card on a small island. */

.s-hero { max-width: 1000px; margin: 0 auto; padding: 14px var(--gut) 0; }
.s-hero-in { position: relative; margin-top: 26px; text-align: center; }
.s-logo { width: min(400px, 82%); margin: 0 auto -8px; position: relative; z-index: 2; filter: drop-shadow(0 14px 24px rgba(0,0,0,.55)); }
.s-hero-card {
  position: relative; z-index: 2; max-width: 640px; margin: 0 auto;
  padding: 26px 28px 30px; border-radius: 24px;
  background: var(--g2); box-shadow: inset 0 0 0 1px var(--g4), 0 24px 44px rgba(0,0,0,.45);
}
.s-hero-card::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 2px; border-radius: 2px; background: var(--foil); }
.s-hero-card h1 { font-size: clamp(36px, 5vw, 56px); }
.s-hero-card p:not(.kicker) { margin-top: 10px; font-size: 19px; color: #d3d9e2; }
.s-hero-ground { display: block; width: min(720px, 92%); height: 80px; margin: -14px auto 0; position: relative; z-index: 1; }

/* the trail */
.trail {
  list-style: none; position: relative;
  max-width: 920px; margin: 0 auto; padding: 70px var(--gut) 10px;
}
.trail::before { /* dotted coin trail down the left side */
  content: ""; position: absolute; left: calc(var(--gut) + 10px); top: 0; bottom: 40px; width: 24px;
  background: var(--dot) center top / 24px 22px repeat-y;
  filter: drop-shadow(0 0 4px rgba(126,233,255,.5));
}
.step { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 26px; margin-bottom: 44px; }
.step > .num { grid-column: 1; grid-row: 1; margin-top: 22px; position: relative; z-index: 2; }
.card {
  grid-column: 2; grid-row: 1; position: relative; z-index: 2; min-width: 0;
  padding: 24px 26px 26px; border-radius: 20px;
  background: var(--g3); box-shadow: inset 0 0 0 1px var(--g4), 0 18px 34px rgba(0,0,0,.4);
}
.card h2 { font-size: clamp(24px, 2.6vw, 30px); }
.card > p:not(.step-label):not(.note) { margin-top: 8px; font-size: 17.5px; color: #d6dbe3; }
.step-label { font: 600 11.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; }
.note { margin-top: 14px; font-size: 15.5px; color: var(--mute); padding-left: 12px; box-shadow: inset 2px 0 0 #4a5262; }
.card > .btn { margin-top: 18px; }
.ground { grid-column: 2; grid-row: 2; display: block; width: 88%; height: 50px; margin: -8px auto 0; position: relative; z-index: 1; }

/* step 2: prompt */
.prompt-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; }
.prompt-head p { margin-top: 6px; font-size: 17px; color: #d6dbe3; }
.copy-status { min-height: 1.5em; margin-top: 10px; font-size: 15.5px; font-weight: 500; color: var(--mute); }
.copy-status[data-state="ok"] { color: var(--ok); }
.copy-status[data-state="error"] { color: var(--warn); }
.ticket {
  position: relative; margin-top: 10px; padding: 18px 22px 22px; border-radius: 14px;
  background: var(--paper); color: #1d2026;
  box-shadow: 0 0 0 4px #c9ced6, 0 0 0 5px #7d8592, 0 14px 26px rgba(0,0,0,.4);
}
.ticket-label { font: 700 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #5b4e33; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 2px dashed #cbbfa6; }
.prompt-text { margin: 0; font: 400 15px/1.7 var(--mono); color: #1d2026; white-space: pre-wrap; overflow-wrap: anywhere; }
.prompt-text:focus-visible { outline: 3px solid #1a7f99; outline-offset: 6px; }
.prompt-text::selection { background: #bdefff; }

/* step 3: folder -> assistant */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1.4fr); align-items: center; margin-top: 18px; }
.folder {
  position: relative; min-height: 96px; padding: 34px 14px 14px; border-radius: 4px 14px 14px 14px;
  background: var(--silver); color: var(--steel-ink); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px #6c7380, 0 10px 18px rgba(0,0,0,.4);
}
.folder-tab { position: absolute; left: 0; top: -12px; width: 46%; height: 16px; border-radius: 8px 8px 0 0; background: #d2d7de; box-shadow: 0 0 0 1px #6c7380; clip-path: inset(-2px -2px 0 -2px); }
.folder-name { display: block; font: 600 14px/1.3 var(--mono); overflow-wrap: anywhere; }
.flow-arrow { position: relative; height: 24px; margin: 0 14px 0 8px; background: var(--dot) left center / 22px 24px repeat-x; }
.flow-arrow::after { content: ""; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); border: 10px solid transparent; border-left: 14px solid #e7eaee; border-right: 0; }
.term { border-radius: 12px; overflow: hidden; background: #0c0e12; box-shadow: 0 0 0 1px #3a414e, 0 10px 18px rgba(0,0,0,.4); }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #20252d; font-size: 13.5px; font-weight: 600; color: #cfd5de; }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #4a5262; }
.term-bar span { margin-left: 6px; }
.term-line { padding: 14px; font: 500 14.5px/1.4 var(--mono); color: #e9eef5; }
.term-line b { color: var(--cyan); margin-right: 6px; }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 4px; vertical-align: -3px; background: var(--cyan); }
@media (prefers-reduced-motion: no-preference) { .caret { animation: blink 1.1s steps(1) infinite; } }
@keyframes blink { 50% { opacity: 0; } }

/* step 4: topics */
.topics { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: q; }
.topics li {
  counter-increment: q; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 8px; border-radius: 999px; font-size: 16px; font-weight: 500;
  background: #262c35; box-shadow: inset 0 0 0 1px #3c4452;
}
.topics li::before {
  content: counter(q); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  font: 700 13px/1 var(--display); color: var(--steel-ink); background: var(--silver);
}

/* step 5: checks */
.checks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 32px; font-size: 17px; color: #e3e7ed; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 21px; height: 21px; border-radius: 6px;
  background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.5' fill='none' stroke='%230f1115' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* step 6: production chain */
.chain { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; }
.chain li {
  position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 8px 12px; border-radius: 10px;
  font-size: 15px; font-weight: 600; color: var(--steel-ink); background: var(--plate);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px #6c7380, 0 4px 0 #4e5561;
}
.chain li:not(:last-child) { margin-right: 26px; }
.chain li:not(:last-child)::after {
  content: ""; position: absolute; right: -20px; top: 50%; transform: translateY(-50%);
  border: 7px solid transparent; border-left: 11px solid #c7ccd4; border-right: 0;
}
.chain li:nth-child(4) { background: var(--brush) padding-box, var(--silver-base) padding-box, var(--foil) border-box; border: 2px solid transparent; }

/* later: coming back + updates */
.side-isles {
  max-width: 920px; margin: 30px auto 0; padding: 0 var(--gut) 80px;
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 26px; align-items: start;
}
.isle { display: flex; flex-direction: column; }
.isle .card { grid-column: auto; }
.isle .card > p { margin-top: 8px; font-size: 17px; color: #d6dbe3; }
.isle .ground { width: 84%; }
.card-plate { color: var(--steel-ink); background: var(--silver); box-shadow: inset 0 2px 0 #fff, inset 0 -3px 0 rgba(0,0,0,.18), 0 0 0 1px #6c7380, 0 18px 34px rgba(0,0,0,.4); }
.card.card-plate > p:not(.step-label):not(.note) { color: var(--steel-mute); }

.versions { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.version {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 12px; align-items: start;
  padding: 12px 14px; border-radius: 12px; background: #262c35; box-shadow: inset 0 0 0 1px #3c4452;
}
.version-n { font: 600 13px/1.4 var(--mono); color: #fff; padding: 2px 8px; border-radius: 6px; background: #14171c; white-space: nowrap; }
.version-text { font-size: 15.5px; line-height: 1.4; color: #d6dbe3; }
.version-status { font: 600 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); padding: 3px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px #4a5262; white-space: nowrap; }
.version.is-latest { box-shadow: inset 0 0 0 1px #4a5262, inset 4px 0 0 var(--cyan); background: #2a313b; }
.version.is-latest .version-status { color: var(--steel-ink); background: var(--foil); box-shadow: none; }
.version-empty { padding: 14px; border-radius: 12px; font-size: 15.5px; color: var(--mute); border: 1.5px dashed #4a5262; }
.versions:empty::before { content: "Version history appears here at release."; display: block; padding: 14px; border-radius: 12px; border: 1.5px dashed #4a5262; color: var(--mute); font-size: 15.5px; }

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .s-hero-card { padding: 22px 18px 24px; }
  .s-hero-card p:not(.kicker) { font-size: 17px; }
  .s-hero-ground { height: 56px; }
  .trail { padding-top: 50px; }
  .trail::before { left: calc(var(--gut) + 4px); }
  .step { grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; margin-bottom: 34px; }
  .step > .num { width: 32px; height: 32px; font-size: 16px; margin-top: 18px; }
  .card { padding: 20px 16px 22px; border-radius: 18px; }
  .card > .btn, .prompt-head .btn { width: 100%; }
  .ground { height: 40px; }
  .ticket { padding: 16px 14px 18px; }
  .prompt-text { font-size: 13.5px; line-height: 1.65; }
  .flow { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .flow-arrow { justify-self: center; width: 24px; height: 52px; margin: 8px 0 20px; background: var(--dot) center top / 24px 22px repeat-y; }
  .flow-arrow::after { right: auto; left: 50%; top: auto; bottom: -14px; transform: translateX(-50%); border: 10px solid transparent; border-top: 14px solid #e7eaee; border-bottom: 0; }
  .chain { flex-direction: column; align-items: flex-start; gap: 22px; }
  .chain li:not(:last-child) { margin-right: 0; }
  .chain li:not(:last-child)::after { right: auto; left: 22px; top: auto; bottom: -19px; transform: none; border: 7px solid transparent; border-top: 11px solid #c7ccd4; border-bottom: 0; }
  .side-isles { grid-template-columns: minmax(0, 1fr); padding-bottom: 60px; }
  .version { grid-template-columns: auto minmax(0, 1fr); }
  .version-text { grid-column: 1 / -1; grid-row: 2; }
  .version-status { justify-self: start; }
}
