/* Demo sign-up page (/start). Builds on home.css: same tokens, header, buttons and type. */

/* ── Header: logo, WhatsApp Business, practice name. The partner mark stays visible on phones here. ── */
.start-nav { justify-content: flex-start; }
.nav-practice { margin-left: auto; margin-right: calc(24px - var(--wrap-left)); font: 500 15px/20px var(--font); color: var(--ink-2); white-space: nowrap; }
@media (max-width: 719px) {
  .start-nav .partner { display: inline-flex; margin-left: 12px; }
  .start-nav .partner .divider { margin-right: 12px; height: 26px; }
  .start-nav .partner img { height: 22px; }
  .nav-practice { display: none; }
}
@media (max-width: 400px) { .start-nav .partner img { height: 19px; } }
@media (max-width: 340px) { .start-nav .partner { display: none; } }

/* ── Layout ── */
.start-main { padding-top: 28px; padding-bottom: 24px; }
.start-grid { display: grid; gap: 44px; }
.start-copy > * + * { margin-top: 18px; }
.start-copy .display-lg { margin-top: 14px; }
.start-copy .body-lg { max-width: 520px; }
@media (min-width: 1024px) {
  .start-main { padding-top: 56px; padding-bottom: 48px; }
  .start-grid { grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 72px; align-items: start; }
  .start-phone { position: sticky; top: calc(var(--nav-h) + 32px); }
}
@media (min-width: 1240px) { .start-grid { gap: 112px; } }

/* ── "Demo" pill: small, teal on teal-tint, with a quietly pulsing dot ── */
.demo-pill { display: inline-flex; align-items: center; gap: 9px; height: 30px; padding: 0 12px 0 11px; border-radius: 999px; background: var(--teal-tint); color: var(--teal); font: 600 13px/1 var(--font); letter-spacing: .01em; }
.demo-pill .dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex: none; }
.demo-pill .dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--teal); opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .demo-pill .dot::after { animation: pulse 2s var(--ease) infinite; } }
@keyframes pulse { 0% { transform: scale(.55); opacity: .75; } 70%, 100% { transform: scale(1.45); opacity: 0; } }

/* ── Trust line under the copy ── */
.trust { list-style: none; margin: 0; padding: 0; margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; line-height: 20px; color: var(--ink-2); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 7px; height: 11px; margin: 0 4px 3px 3px; border: solid var(--teal); border-width: 0 2px 2px 0; transform: rotate(45deg); flex: none; }

/* ── The card ── */
.start-card { margin-top: 30px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px 24px 24px; box-shadow: var(--shadow-float); }
@media (max-width: 599px) { .start-card { padding: 22px 18px 20px; margin-left: -6px; margin-right: -6px; } }
.f { display: block; margin-top: 18px; }
.f:first-child { margin-top: 0; }
.f-label { display: flex; justify-content: space-between; align-items: baseline; font: 500 15px/20px var(--font); color: var(--ink); margin-bottom: 8px; }
.f-opt { font-weight: 400; font-size: 14px; color: var(--ink-2); }
.f-input { display: block; width: 100%; height: 56px; padding: 0 16px; border: 1px solid var(--grey-ui-line); border-radius: 12px; background: var(--white); color: var(--ink); font: 400 17px/24px var(--font); transition: border-color .15s ease, box-shadow .15s ease; -webkit-appearance: none; appearance: none; }
.f-input::placeholder { color: #98A59F; }
.f-input:hover { border-color: #B8C3BC; }
.f-input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint); }
.f-hint { font-size: 14px; line-height: 1.45; color: var(--ink-2); margin: 8px 0 0; }
.f-hint.center { text-align: center; margin-top: 14px; }
.f-hint b { font-weight: 600; color: var(--ink); }
.f-err { color: var(--error); font-size: 14.5px; line-height: 1.45; margin: 12px 0 0; }

.consent { display: flex; align-items: flex-start; gap: 12px; margin-top: 22px; font-size: 14px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.consent input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 1px 0 0; border: 1.5px solid #B8C3BC; border-radius: 6px; background: var(--white); display: grid; place-items: center; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.consent input:checked { background: var(--teal); border-color: var(--teal); }
.consent input:checked::after { content: ""; width: 6px; height: 11px; margin-bottom: 2px; border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.consent input:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.consent a { color: var(--teal); font-weight: 500; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.btn-wide { width: 100%; height: 56px; margin-top: 22px; font-size: 17px; gap: 9px; }
.wa-glyph { width: 22px; height: 22px; flex: none; margin: 0 -2px 0 2px; }

/* Step 2 (after submit) inside the same card */
.done { text-align: center; padding: 6px 0 2px; }
.done > * + * { margin-top: 14px; }
.done-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--teal-tint); color: var(--teal); }
.done-icon svg { width: 28px; height: 28px; }
.done .btn-wide { margin-top: 22px; }

/* ── Phone column ── */
.start-phone { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.phone-caption { font-size: 14px; line-height: 1.45; color: var(--ink-2); text-align: center; max-width: 340px; }
.phone-img { width: min(100%, 420px); height: auto; filter: drop-shadow(0 28px 44px rgba(32, 59, 54, .16)); }
@media (max-width: 1023px) { .start-phone { margin-top: 12px; } .phone-img { width: min(76%, 340px); } }

/* Flat phone drawn in code (used until the mockup image is supplied) */
.phone-frame { width: min(100%, 340px); aspect-ratio: 9 / 19; border-radius: 46px; background: #15181c; padding: 11px; box-shadow: 0 28px 44px rgba(32, 59, 54, .16), inset 0 0 0 1.5px rgba(255, 255, 255, .06); }
@media (max-width: 1023px) { .phone-frame { width: min(72%, 300px); } }
.phone-screen { height: 100%; border-radius: 36px; overflow: hidden; background: #E5DDD5; display: flex; flex-direction: column; }
.phone-status { position: relative; display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 8px 24px 0; background: #008069; color: #fff; font: 600 14px/1 var(--font); }
.phone-island { position: absolute; left: 50%; top: 9px; width: 96px; height: 28px; margin-left: -48px; border-radius: 16px; background: #15181c; }
.phone-signal { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.phone-signal i { width: 3px; background: #fff; border-radius: 1px; display: block; }
.phone-signal i:nth-child(1) { height: 5px; } .phone-signal i:nth-child(2) { height: 8px; } .phone-signal i:nth-child(3) { height: 11px; }
.phone-screen .wa { flex: 1; min-height: 0; border-radius: 0; display: flex; flex-direction: column; font-size: 13px; }
.phone-screen .wa-body { flex: 1; min-height: 0; overflow: hidden; justify-content: flex-end; padding: 10px 10px 12px; gap: 5px; }
.phone-screen .wa-head b { font-size: 14px; } .phone-screen .wa-head small { font-size: 11px; }
.phone-screen .wa-reply { font-size: 13px; padding: 7px 9px; }
.phone-screen .wa-day { font-size: 11px; }
.phone-input { display: flex; align-items: center; height: 58px; padding: 0 14px 6px; background: #F0F2F5; }
.phone-input span { flex: 1; height: 38px; display: flex; align-items: center; padding: 0 14px; border-radius: 19px; background: #fff; color: #8696A0; font-size: 14px; }

/* WhatsApp look inside the phone (native styling on purpose, so people recognise it) */
.wa { background: #E5DDD5; border-radius: 16px; overflow: hidden; color: #111B21; font-size: 14px; line-height: 1.35; }
.wa-head { background: #008069; color: #fff; display: flex; align-items: center; gap: 10px; padding: 10px 14px 12px; }
.wa-avatar { width: 34px; height: 34px; border-radius: 50%; background: #DFE5E7; color: #54656F; display: grid; place-items: center; font-weight: 600; font-size: 12px; flex: none; }
.wa-head b { display: block; font-weight: 600; font-size: 15px; line-height: 1.2; }
.wa-head small { display: block; font-size: 12px; opacity: .85; margin-top: 1px; }
.wa-body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.wa-day { align-self: center; background: #fff; color: #54656F; font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 8px; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); margin-bottom: 4px; }
.wa-msg { max-width: 86%; padding: 6px 8px 5px 9px; border-radius: 8px; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
.wa-msg.in { align-self: flex-start; background: #fff; border-top-left-radius: 0; }
.wa-msg.out { align-self: flex-end; background: #D9FDD3; border-top-right-radius: 0; }
.wa-meta { display: flex; justify-content: flex-end; align-items: center; gap: 3px; font-size: 11px; color: #667781; margin-top: 3px; line-height: 1; }
.wa-meta svg { width: 16px; height: 11px; color: #53BDEB; }
.wa-replies { align-self: flex-start; width: 86%; display: flex; flex-direction: column; gap: 3px; }
.wa-reply { background: #fff; border-radius: 8px; padding: 9px 10px; text-align: center; color: #027EB5; font-weight: 500; font-size: 14px; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); display: flex; align-items: center; justify-content: center; gap: 6px; }
.wa-reply svg { width: 14px; height: 14px; }
@media (prefers-reduced-motion: no-preference) {
  .wa.armed .wa-body > * { opacity: 0; }
  .wa.play .wa-body > * { animation: wa-in .38s var(--ease) both; }
  .wa-body > :nth-child(1) { animation-delay: .1s; }
  .wa-body > :nth-child(2) { animation-delay: .35s; }
  .wa-body > :nth-child(3) { animation-delay: .95s; }
  .wa-body > :nth-child(4) { animation-delay: 1.65s; }
  .wa-body > :nth-child(5) { animation-delay: 2.35s; }
  .wa-body > :nth-child(6) { animation-delay: 2.7s; }
  @keyframes wa-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* ── Footer ── */
.start-foot { margin-top: 56px; padding-top: 22px; padding-bottom: 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.start-foot p { max-width: 560px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.start-foot a { color: var(--ink-2); text-decoration-color: var(--line); text-underline-offset: 3px; white-space: nowrap; }
.start-foot a:hover { color: var(--ink); text-decoration-color: var(--ink); }
