:root {
  color-scheme: light;
  --navy: #07172a;
  --ink: #102a43;
  --muted: #526b83;
  --line: #cfe1ec;
  --teal: #16a6c7;
  --purple: #7c3aed;
  --gold: #f4b942;
  --paper: #ffffff;
  --wash: #f4f9fc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: linear-gradient(135deg, #eef9fd 0%, #fff 48%, #f7f2ff 100%); min-height: 100vh; }
a { color: inherit; }
button, input { font: inherit; }

.lock-header {
  min-height: 84px;
  padding: 14px clamp(18px, 4vw, 64px);
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand img { width: 52px; height: 52px; border-radius: 50%; }
.brand span { display: grid; gap: 2px; }
.brand strong { font-family: Georgia, serif; font-size: 1.22rem; }
.brand small { color: #c9d8e5; }
.back-link { color: #fff; font-weight: 800; text-decoration: none; border: 1px solid #5c7892; border-radius: 999px; padding: 10px 16px; }

.lock-main { width: min(1180px, calc(100% - 28px)); margin: 28px auto 60px; display: grid; gap: 22px; }
.intro-card, .creator-grid, .setup-section, .limitation-card { background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 14px 38px rgba(19, 50, 77, .10); }
.intro-card { padding: clamp(24px, 4vw, 46px); text-align: center; }
.eyebrow { margin: 0 0 8px; color: var(--teal); font-weight: 900; letter-spacing: .09em; text-transform: uppercase; font-size: .79rem; }
h1, h2 { margin: 0; font-family: Georgia, serif; }
h1 { font-size: clamp(2rem, 5vw, 3.55rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); }
.intro-card > p:last-child { color: var(--muted); max-width: 760px; margin: 16px auto 0; line-height: 1.65; font-size: 1.05rem; }

.creator-grid { padding: clamp(20px, 4vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, .8fr); gap: clamp(26px, 5vw, 60px); align-items: center; }
.creator-controls { min-width: 0; }
.device-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin: 22px 0; }
.device-option { border: 1px solid #bdd4e2; background: #f6fbfd; color: var(--ink); padding: 12px 8px; border-radius: 14px; font-weight: 800; cursor: pointer; }
.device-option.is-selected { color: #fff; border-color: transparent; background: linear-gradient(110deg, var(--teal), var(--purple)); box-shadow: 0 8px 20px rgba(22,166,199,.25); }
.scripture-summary { border-left: 5px solid var(--gold); background: #fff9e9; border-radius: 12px; padding: 18px; display: grid; gap: 7px; }
.scripture-summary span, .scripture-summary small { color: var(--muted); }
.scripture-summary strong { font-size: 1.45rem; }
.scripture-summary p { margin: 0; line-height: 1.55; }
.creator-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.primary-button, .secondary-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; text-align: center; border-radius: 13px; padding: 11px 16px; font-weight: 900; text-decoration: none; cursor: pointer; }
.primary-button { color: #fff; border: 0; background: linear-gradient(110deg, var(--teal), var(--purple)); }
.secondary-button { color: var(--ink); border: 1px solid #acd8e5; background: #effbfe; }
.status { min-height: 1.25em; color: var(--muted); }

.preview-column { display: grid; justify-items: center; gap: 12px; }
.wallpaper-preview-frame { overflow: hidden; background: var(--navy); border: 8px solid #14283d; box-shadow: 0 18px 38px rgba(7, 23, 42, .22); transition: width .2s ease, aspect-ratio .2s ease, border-radius .2s ease; }
.wallpaper-preview-frame img { width: 100%; height: 100%; display: block; object-fit: cover; }
.device-iphone { width: min(300px, 78vw); aspect-ratio: 1290 / 2796; border-radius: 42px; }
.device-ipad { width: min(390px, 82vw); aspect-ratio: 2048 / 2732; border-radius: 34px; }
.device-android { width: min(285px, 76vw); aspect-ratio: 1440 / 3200; border-radius: 38px; }
.device-desktop { width: min(500px, 88vw); aspect-ratio: 16 / 9; border-radius: 18px; }
.preview-note { margin: 0; color: var(--muted); font-size: .85rem; text-align: center; }

.setup-section { padding: clamp(22px, 4vw, 42px); }
.setup-list { display: grid; gap: 12px; margin-top: 22px; }
.setup-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.setup-card summary { cursor: pointer; list-style: none; padding: 18px; display: grid; grid-template-columns: 38px auto 1fr; align-items: center; gap: 10px; }
.setup-card summary::-webkit-details-marker { display: none; }
.setup-card summary > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e8f8fc; color: var(--teal); font-weight: 900; }
.setup-card summary > small { justify-self: end; color: var(--muted); }
.setup-card[open] summary { border-bottom: 1px solid var(--line); background: #f8fcfe; }
.setup-content { padding: 20px; color: #334e68; line-height: 1.6; }
.setup-content ol { padding-left: 24px; }
.setup-content li + li { margin-top: 7px; }
.copy-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 8px; }
.copy-row input { min-width: 0; border: 1px solid #bad0df; border-radius: 12px; padding: 12px; color: #24455e; background: #f8fbfd; }
.setup-caution { border-left: 4px solid var(--gold); background: #fff8e5; padding: 10px 12px; border-radius: 8px; }
.limitation-card { padding: 20px 24px; border-color: #f6b7a2; background: #fff3ef; }
.limitation-card p { margin: 6px 0 0; color: #63483f; }

@media (max-width: 820px) {
  .creator-grid { grid-template-columns: 1fr; }
  .preview-column { grid-row: 1; }
  .device-options { grid-template-columns: repeat(2, 1fr); }
  .creator-actions { grid-template-columns: 1fr; }
  .setup-card summary { grid-template-columns: 38px 1fr; }
  .setup-card summary > small { grid-column: 2; justify-self: start; }
}

@media (max-width: 520px) {
  .lock-header { align-items: flex-start; }
  .brand small { display: none; }
  .back-link { padding: 8px 11px; font-size: .85rem; }
  .lock-main { width: min(100% - 18px, 1180px); margin-top: 14px; }
  .copy-row { grid-template-columns: 1fr; }
}
