.start-page .page-content {
  display: block;
  min-height: 0;
  padding: 30px 0 48px;
}

.start-page .start-container {
  width: min(calc(100% - 40px), 1180px);
  margin: 0 auto;
}

.start-intro {
  max-width: 740px;
  margin: 0 auto 32px;
  text-align: center;
}

.start-eyebrow,
.start-step-label {
  margin: 0 0 8px;
  color: var(--auth-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.4;
  text-transform: none;
}

.start-intro h1 {
  margin: 0;
  color: var(--auth-text);
  font-family: var(--q-font-display);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.04;
}

.start-intro > p:last-child {
  max-width: 520px;
  margin: 14px auto 0;
  color: var(--auth-muted);
  font-size: 15px;
  line-height: 1.55;
}

.start-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .85fr);
  align-items: start;
  gap: clamp(24px, 4vw, 54px);
}

.start-editor,
.start-preview-column { min-width: 0; }

.start-editor {
  display: grid;
  gap: 18px;
}

.start-step {
  min-width: 0;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--auth-line);
  border-radius: 8px;
  background: var(--auth-panel);
  box-shadow: none;
}

.start-step h2,
.start-preview-heading h2 {
  margin: 0;
  color: var(--auth-text);
  font-family: var(--q-font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.start-field { margin-top: 19px; }

.start-field > label {
  display: block;
  margin-bottom: 8px;
  color: var(--auth-text);
  font-size: 13px;
  font-weight: 700;
}

.start-field > label span,
.start-help { color: var(--auth-muted); font-weight: 500; }

.start-field input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--auth-line);
  border-radius: 8px;
  outline: none;
  background: var(--auth-panel);
  color: var(--auth-text);
  font: inherit;
  font-size: 15px;
}

.start-field input::placeholder { color: var(--auth-muted); opacity: 1; }
.start-field input:focus { border-color: var(--auth-accent); box-shadow: 0 0 0 3px rgb(166 69 50 / 26%); }
.start-field input[aria-invalid="true"] { border-color: var(--q-color-brick); }

.start-address-input {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 50px;
  padding-left: 13px;
  border: 1px solid var(--auth-line);
  border-radius: 8px;
  background: var(--auth-panel);
  color: var(--auth-muted);
  font-size: 13px;
  white-space: nowrap;
}

.start-address-input:focus-within { border-color: var(--auth-accent); box-shadow: 0 0 0 3px rgb(166 69 50 / 26%); }
.start-address-input input { min-width: 0; padding-left: 4px; border: 0; background: transparent; box-shadow: none; }
.start-address-input input:focus { border: 0; box-shadow: none; }
.start-help,
.start-status { margin: 7px 0 0; font-size: 12px; line-height: 1.45; }
.start-status { min-height: 17px; color: var(--auth-muted); }

.start-look-step { padding-right: 0; padding-left: 0; }
.start-look-step > :not(.start-look-list) { margin-right: clamp(20px, 3vw, 30px); margin-left: clamp(20px, 3vw, 30px); }
.start-section-copy { margin-top: 8px; margin-bottom: 14px; color: var(--auth-muted); font-size: 13px; }

.start-look-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  min-width: 0;
  padding: 2px clamp(20px, 3vw, 30px) 9px;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--q-color-line-strong) transparent;
  scrollbar-width: thin;
}

.start-look-choice {
  display: grid;
  flex: 0 0 94px;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 44px;
  padding: 6px 6px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--auth-text);
  font: inherit;
  cursor: pointer;
  scroll-snap-align: start;
}

.start-look-choice:hover { background: var(--q-color-ground); }
.start-look-choice:focus-visible { outline: 2px solid var(--auth-accent); outline-offset: 2px; }
.start-look-choice[aria-pressed="true"] { border-color: var(--auth-accent); background: var(--q-color-brick-soft); }

.start-look-choice img {
  display: block;
  width: 76px;
  height: 94px;
  border: 1px solid var(--auth-line);
  border-radius: 12px;
  background: var(--auth-panel);
  object-fit: cover;
}

.start-look-label {
  max-width: 100%;
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.start-look-badge {
  padding: 2px 7px;
  border: 1px solid var(--auth-line);
  border-radius: var(--q-radius-badge);
  color: var(--auth-accent);
  font-size: 10px;
  line-height: 1.3;
}

.start-look-badge-pro { border-color: var(--q-color-line-strong); color: var(--q-color-amber); }
.start-pro-note { margin-top: 12px; color: var(--auth-muted); font-size: 12px; line-height: 1.5; }
.start-look-status { margin-top: 6px; }

.start-preview-column {
  position: sticky;
  top: 18px;
  display: grid;
  justify-items: center;
  padding: 20px;
  border: 1px solid var(--auth-line);
  border-radius: 8px;
  background: var(--auth-panel);
  box-shadow: none;
}

.start-preview-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 14px;
}

.start-preview-heading .start-step-label { margin-bottom: 3px; }
.start-preview-heading h2 { font-size: 17px; }

.start-preview-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid var(--auth-line);
  border-radius: 4px;
  background: var(--q-color-ground);
  color: var(--auth-muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.3;
}

.start-preview-status span { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--q-color-line-strong); }

.start-device-frame {
  width: min(100%, 350px);
  padding: 8px;
  overflow: hidden;
  border: 1px solid var(--q-color-line-strong);
  border-radius: 12px;
  background: var(--auth-panel);
  box-shadow: none;
}

.start-device-frame { --preview-height: 596px; }
.start-device-frame > div { position: relative; height: var(--preview-height); overflow: hidden; border-radius: 12px; background: var(--q-color-surface); }
/* The preview renders at a real phone width (390px) and scales to the frame, so it matches the published page. */
.start-device-frame iframe {
  display: block;
  width: 390px;
  height: calc(var(--preview-height) / var(--preview-scale, 1));
  border: 0;
  background: var(--q-color-surface);
  transform: scale(var(--preview-scale, 1));
  transform-origin: 0 0;
}

.auth-access-page.start-page .start-claim-link,
.start-page .start-claim-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: min(100%, 350px);
  min-height: 54px;
  margin-top: 18px;
  padding: 10px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--auth-accent);
  color: var(--q-color-ink-inverse);
  box-shadow: none;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
  text-align: center;
}

.start-page .start-claim-link:hover,
.start-page .start-claim-link:focus-visible { background: var(--q-color-brick-dark); }
.start-page .start-claim-link.is-disabled { background: var(--auth-muted); box-shadow: none; cursor: not-allowed; }
.start-claim-help { margin: 10px 0 0; color: var(--auth-muted); font-size: 11px; line-height: 1.45; text-align: center; }
.start-page .auth-access-footer { padding-top: 4px; }

@media (max-width: 760px) {
  .start-page .page-content { padding-top: 20px; }
  .start-page .start-container { width: min(calc(100% - 32px), 560px); }
  .start-intro { margin-bottom: 22px; text-align: left; }
  .start-intro h1 { font-size: clamp(31px, 9vw, 42px); }
  .start-intro > p:last-child { margin-left: 0; font-size: 14px; }
  .start-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .start-editor { gap: 14px; }
  .start-step { padding: 20px; border-radius: 8px; }
  .start-look-step { padding-right: 0; padding-left: 0; }
  .start-look-step > :not(.start-look-list) { margin-right: 20px; margin-left: 20px; }
  .start-look-list { padding-right: 20px; padding-left: 20px; }
  .start-preview-column { position: static; padding: 16px; border-radius: 8px; }
  .start-device-frame { width: min(100%, 350px); }
  .start-device-frame { --preview-height: 560px; }
  .start-page .start-claim-link { width: min(100%, 350px); }
}

@media (max-width: 360px) {
  .start-page .start-container { width: min(calc(100% - 24px), 560px); }
  .start-step { padding: 17px; }
  .start-look-step { padding-right: 0; padding-left: 0; }
  .start-look-step > :not(.start-look-list) { margin-right: 17px; margin-left: 17px; }
  .start-look-list { padding-right: 17px; padding-left: 17px; }
  .start-address-input { padding-left: 9px; font-size: 11px; }
  .start-address-input input { padding-right: 8px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .start-look-list { scroll-behavior: auto; }
}

@media (min-width: 761px) {
  .start-page .page-content { padding: 18px 0 24px; }
  .start-intro { margin-bottom: 22px; }
  .start-intro h1 { font-size: clamp(32px, 3.6vw, 44px); }
  .start-layout { gap: 24px; }
  .start-editor { gap: 12px; }
  .start-step { padding: 20px; }
  .start-device-frame { --preview-height: 430px; }
}

.start-page .auth-access-header { position: sticky; top: 0; z-index: 20; background: var(--q-color-ground); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

@media (max-width: 760px) {
  .start-layout > *, .start-editor > * { min-width: 0; max-width: 100%; }
  .start-look-list { overflow-x: auto; overscroll-behavior-inline: contain; }
}

/* Starter layout chooser. */
.start-layout-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.start-layout-chip {
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid var(--auth-border, #ded9d1);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.start-layout-chip[aria-pressed="true"] {
  border-color: var(--auth-ink, #252421);
  background: var(--auth-ink, #252421);
  color: #fff;
}

.start-layout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.start-layout-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--auth-border, #ded9d1);
  border-radius: 14px;
  background: var(--auth-panel, #fff);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.start-layout-card[aria-pressed="true"] {
  border-color: var(--auth-ink, #252421);
  box-shadow: 0 0 0 1px var(--auth-ink, #252421);
}

.start-layout-card img {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 9px;
  object-fit: cover;
  background: #f0ede8;
}

.start-layout-copy,
.start-layout-copy strong,
.start-layout-copy > span {
  display: block;
  min-width: 0;
}

.start-layout-copy strong {
  font-size: 14px;
}

.start-layout-copy > span {
  margin-top: 4px;
  color: var(--auth-muted, #706d68);
  font-size: 12px;
  line-height: 1.4;
}

.start-layout-copy .start-look-badge {
  display: inline-flex;
  margin-top: 7px;
}

.start-status:empty {
  display: none;
}

@media (max-width: 720px) {
  .start-layout-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 420px) {
  .start-layout-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .start-layout-card img {
    width: 72px;
    height: 76px;
  }
}
