/* The start flow's layout (start-flow.js). Each site's page sets the colours and type:
   --bg --text --soft --mute --line --card --accent --on-accent --head (a font stack) --radius */
.start { max-width: 720px; margin: 0 auto; padding: 32px 20px 64px; }
.start h1 { margin: 0 0 10px; font-family: var(--head); font-size: clamp(40px, 9vw, 64px); line-height: 0.95; }
.start .lede { margin: 0 0 28px; color: var(--soft); font-size: 18px; }
.start .one { margin: 0 0 24px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); font-size: 15px; color: var(--soft); }
.start .one b { color: var(--text); }
.apps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.apps a { width: 100%; min-height: 88px; padding: 16px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 6px; text-align: left; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--text); font: inherit; text-decoration: none; cursor: pointer; }
.apps a { transition: border-color .15s, background-color .15s; }
.apps a:hover { border-color: var(--accent); }
.apps a:active { transform: translateY(1px); }
.apps a:focus-visible, .go:focus-visible, .guide .back:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.go:active { transform: translateY(1px); }
.apps b { font-size: 18px; }
.apps span { font-size: 13px; color: var(--mute); }
.guide h2 { margin: 0 0 8px; font-family: var(--head); font-size: clamp(32px, 7vw, 48px); line-height: 1; }
.guide .back { margin: 0 0 20px; padding: 0; border: 0; background: none; color: var(--mute); font: inherit; font-size: 15px; cursor: pointer; }
.guide ol { margin: 24px 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.guide li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; font-size: 17px; }
.guide li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 15px; }
.guide li p { margin: 4px 0 0; }
.guide li small { display: block; margin-top: 4px; color: var(--mute); font-size: 14px; }
.address { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.address code { padding: 10px 12px; border-radius: 8px; background: var(--card); border: 1px dashed var(--line); font: 600 15px/1.2 ui-monospace, "SF Mono", Menlo, monospace; overflow-wrap: anywhere; }
.go { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border: 0; border-radius: var(--radius); background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.go.plain { background: var(--card); color: var(--text); border: 1px solid var(--line); }
.waiting { margin: 24px 0 0; padding: 16px; border-radius: var(--radius); background: var(--card); display: flex; gap: 12px; align-items: center; font-size: 15px; color: var(--soft); }
.waiting::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: start-pulse 1.4s ease-in-out infinite; }
.waiting.is-done { color: var(--text); font-weight: 700; }
@keyframes start-pulse { 50% { opacity: 0.25; } }
.alt { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; color: var(--mute); }
.pick { position: relative; overflow: hidden; }
.pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.note { min-height: 1.4em; margin: 10px 0 0; font-size: 14px; color: var(--soft); }
textarea { width: 100%; min-height: 180px; margin: 0 0 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--text); font: 15px/1.4 ui-monospace, "SF Mono", Menlo, monospace; box-sizing: border-box; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; font-size: 15px; color: var(--soft); }
.consent input { margin-top: 3px; width: 18px; height: 18px; }
.signup { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.signup input { flex: 1 1 200px; min-height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--text); font: inherit; }
/* The iMessage guide's pay-now form (start/index.html): only while ordering is open. */
.prepay { margin: 24px 0 0; }
.prepay > p { margin: 0 0 16px; font-size: 17px; color: var(--soft); }
.prepay form { display: grid; gap: 14px; }
.prepay fieldset { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.prepay legend { margin: 0 0 8px; padding: 0; font-size: 14px; color: var(--mute); }
.choice { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); background: var(--card); cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice small { font-size: 13px; color: var(--mute); }
.prepay label:not(.choice) { display: grid; gap: 6px; font-size: 14px; color: var(--mute); }
.prepay input:not([type=radio]) { min-height: 48px; padding: 0 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: 16px; }
.prepay textarea { min-height: 80px; font: inherit; font-size: 16px; }
.gift-fields:not([hidden]) { display: grid; gap: 14px; }
.prepay .fine { margin: 0; font-size: 13px; color: var(--mute); }
.prepay .hp { position: absolute; left: -9999px; }
.alt-head { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; color: var(--mute); }
@media (prefers-reduced-motion: reduce) { .waiting::before { animation: none; } }
/* The Windows helper's block (js/helper.js): its code shows once there is one, its status once it says something. */
.address[hidden], .go[hidden], .guide ol[hidden], .guide li small[hidden] { display: none; }
.waiting:empty { display: none; }
/* iMessage's two computers, side by side in weight: a Mac, a Windows PC. */
.guide .way { margin: 28px 0 0; font-size: 19px; font-weight: 700; letter-spacing: 0; }
.guide .way + ol, .guide .way + [data-helper] > ol { margin-top: 12px; }
