/* Smile Check: shared page shell. Screen content keeps the styles from the approved design. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: #F9F9F9; color: #000000; font-family: 'Inter', Arial, sans-serif; }
a { color: #000000; }
a:hover { color: #000000; }
img { max-width: 100%; }
button, input, textarea { font-family: 'Inter', Arial, sans-serif; }
button { -webkit-tap-highlight-color: transparent; }

/* One phone-width column, centred on tablets. Wide screens get their own layout further down. */
.page, .screen {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
}
.screen[hidden], [hidden] { display: none !important; }
@media (min-width: 481px) {
  .page, .screen { box-shadow: 0 0 0 1px #E2DFDF; }
}

:focus-visible { outline: 2px solid #000000; outline-offset: 2px; }
h1:focus { outline: none; }

/* Form fields */
.field:focus-within { border-color: #000000 !important; }
.field input:focus { outline: none; }
textarea::placeholder { color: rgba(0,0,0,0.64); opacity: 1; }
textarea:focus { outline: none; border-color: #000000 !important; }
input::placeholder { color: rgba(0,0,0,0.45); opacity: 1; }
.trap { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }

/* States the design does not draw */
[aria-disabled="true"], button:disabled { opacity: 0.4; cursor: default !important; }
/* Goals step: once all four photos are in, "Change My Photos" steps back to an outline so Next is the main action */
#photos-open.is-done { background: #FFFFFF !important; color: #000000 !important; }
.opt:active, .tile:active { border-color: #000000 !important; }
@media (hover: hover) {
  .opt:hover, .tile:hover { border-color: #000000 !important; }
}
.faq-q svg { flex: none; }

/* Submit loader: which mark each line shows, and the ring or tick above them */
@keyframes sc-spin { to { transform: rotate(360deg); } }
@keyframes sc-pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
#ld-ring[data-state="working"] .ld-done, #ld-ring[data-state="done"] .ld-working,
.ld-row[data-state="done"] .ld-i-active, .ld-row[data-state="done"] .ld-i-pending,
.ld-row[data-state="active"] .ld-i-done, .ld-row[data-state="active"] .ld-i-pending,
.ld-row[data-state="pending"] .ld-i-done, .ld-row[data-state="pending"] .ld-i-active { display: none !important; }
.ld-label { color: #000000; font-weight: 500; }
.ld-row[data-state="active"] .ld-label { font-weight: 700; }
.ld-row[data-state="pending"] .ld-label { color: rgba(0,0,0,0.64); }
.sr { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .ld-working, .ld-done, .ld-i-active, .ld-i-done { animation: none !important; }
}

/* Before-and-after viewer on the landing page */
.zoomable { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 20px; box-sizing: border-box;
  background: rgba(0,0,0,0.94); color: #FFFFFF;
}
.lightbox figure { position: relative; margin: 0; width: 100%; max-width: 480px; }
.lightbox img { display: block; width: 100%; height: auto; max-height: 36vh; object-fit: contain; border-radius: 10px; background: #000000; }
.lightbox figcaption {
  position: absolute; top: 8px; left: 8px; padding: 3px 8px; border-radius: 999px;
  background: #FFFFFF; color: #000000;
  font-family: 'Archivo', Arial, sans-serif; font-weight: 600; font-size: 10px; line-height: 1.3; text-transform: uppercase;
}
.lightbox p { margin: 0; font-size: 14px; line-height: 1.4; text-align: center; }
.lightbox button {
  padding: 14px 28px; border: 0; border-radius: 999px; background: #FFFFFF; color: #000000;
  font-weight: 700; font-size: 15px; line-height: 1.3; cursor: pointer;
}
.lightbox :focus-visible { outline-color: #FFFFFF; }

/* ------------------------------------------------------------------ wide screens (900px and up)
   Same pages, laid out as on the desktop artboards. The phone styles are inline on each element, so the rules
   here need !important to take over. Wrappers added by the build are invisible to layout on a phone. */
.l-col, .l-hero-text, .q-top, .q-card { display: contents; }
@media (max-width: 899.98px) {
  .d-only { display: none !important; }
}

@media (min-width: 900px) {
  .m-only { display: none !important; }
  .page.landing, .page.booked, .screen { max-width: none; box-shadow: none; }
  .landing .eyebrow, .booked .eyebrow, .screen .eyebrow { font-size: 13px !important; letter-spacing: 0.8px !important; }

  /* Landing: bars */
  .l-banner { padding: 12px 24px !important; font-size: 14px !important; letter-spacing: 0.3px !important; }
  .l-header { padding: 18px max(40px, calc(50% - 600px)) !important; }
  .l-header > img { width: 112px !important; height: 36px !important; }
  .l-header > div { gap: 28px !important; }
  .l-header [data-member-link] { font-size: 15px !important; }
  .l-header [data-cta] { padding: 16px 28px !important; font-size: 15px !important; }

  /* Landing: shared */
  .l-sec { padding: 96px max(40px, calc(50% - 600px)) !important; }
  .l-head { gap: 10px !important; margin: 0 !important; }
  .l-sec h2 { font-size: clamp(38px, 3.34vw, 48px) !important; line-height: 0.98 !important; letter-spacing: -0.02em !important; text-wrap: balance; }
  .l-cta { display: inline-block !important; padding: 22px 48px !important; font-size: 18px !important; white-space: nowrap; }

  /* Hero: copy left, photo right */
  .l-hero { display: grid !important; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 56px; align-items: center; padding-top: 64px !important; padding-bottom: 72px !important; }
  .l-hero-body { display: contents !important; }
  .l-hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; grid-column: 1; grid-row: 1; }
  .l-hero-text h1 { font-size: clamp(46px, 4.45vw, 64px) !important; letter-spacing: -0.02em !important; }
  .l-hero-text p { max-width: 540px; font-size: 19px !important; line-height: 1.5 !important; }
  .l-hero-photo { grid-column: 2; grid-row: 1; height: 440px !important; border-radius: 28px; overflow: hidden; }

  /* How it works: four cards */
  .l-how { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px !important; row-gap: 40px !important; }
  .l-how > .l-head { grid-column: 1 / -1; }
  .l-step { display: flex !important; flex-direction: column; gap: 14px !important; padding: 28px; border-radius: 20px; background: #F9F9F9; }
  .l-step > span { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: #000000; color: #FFFFFF; font-size: 22px !important; }
  .l-step > div { gap: 14px !important; }
  .l-step > div > span:first-child { font-size: 20px !important; line-height: 1.25 !important; }
  .l-step > div > span:last-child { font-size: 16px !important; line-height: 1.5 !important; }

  /* Real results: every set on show, two to a row */
  .l-results { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px !important; }
  .l-results > .l-head { grid-column: 1; margin-bottom: 12px !important; }
  .l-intro { grid-column: 2; align-self: end; justify-self: end; max-width: 440px; margin-bottom: 12px !important; font-size: 17px !important; line-height: 1.5 !important; }
  .landing .more-result[hidden] { display: flex !important; }
  .landing .l-results .more-result.more-member, .landing #more-results { display: none !important; }
  .landing .zoomable { gap: 14px !important; padding: 14px !important; border-radius: 20px !important; }
  .landing .zoomable > div:first-child { gap: 8px !important; }
  .landing .zoomable > div:first-child > div { height: 176px !important; border-radius: 12px !important; }
  .landing .zoomable > div:first-child span { top: 10px !important; left: 10px !important; padding: 4px 10px !important; font-size: 11px !important; }
  .landing .zoomable > div:last-child { gap: 12px !important; padding: 0 4px 2px !important; }
  .landing .zoomable > div:last-child > span:first-child { font-size: 17px !important; }
  .landing .zoomable > div:last-child > span:last-child { flex: none; font-size: 15px !important; white-space: nowrap; }
  .landing .l-orphan { grid-column: 1 / -1; justify-self: center; box-sizing: border-box; width: calc(50% - 12px); }

  /* Member story: quote and result left; score, reviews and button right */
  .l-story { display: grid !important; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr); gap: 80px !important; align-items: start; }
  .l-story-main, .l-story-side { display: flex; flex-direction: column; gap: 20px; }
  .l-quote { font-size: clamp(26px, 2.36vw, 34px) !important; line-height: 1.22 !important; letter-spacing: -0.5px !important; }
  .landing .l-story-result { margin-top: 12px; border: 1.5px solid #E2DFDF; }
  .landing .l-story-result > div:first-child > div { height: 230px !important; }
  .l-score { gap: 20px !important; padding: 24px 28px !important; border-radius: 20px !important; }
  .l-score > span { font-size: 56px !important; letter-spacing: -1.1px !important; }
  .l-score > div > span:first-child { font-size: 18px !important; }
  .l-score > div > span:last-child { font-size: 15px !important; }
  .l-review { gap: 12px !important; padding: 24px !important; border-radius: 20px !important; }
  .l-review > span:first-child { font-size: 17px !important; line-height: 1.5 !important; }
  .l-story-side .l-cta { display: block !important; }

  /* Why members choose Wally: three cards */
  .l-why { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px !important; row-gap: 40px !important; }
  .l-why > .l-head { grid-column: 1 / -1; }
  .l-card { gap: 10px !important; padding: 32px !important; border-radius: 20px !important; }
  .l-card > span:first-child { font-size: 22px !important; line-height: 1.25 !important; }
  .l-card > span:last-child { font-size: 16px !important; line-height: 1.5 !important; }

  /* Price: number left, what is included right; then the price facts in one row, and the small print */
  .l-price { display: grid !important; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr); column-gap: 80px !important; row-gap: 48px !important; align-items: center; }
  .l-price-main { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; grid-column: 1; grid-row: 1; }
  .l-price-main > span { padding: 8px 16px !important; font-size: 13px !important; }
  .l-price-num { font-size: clamp(72px, 7.2vw, 104px) !important; letter-spacing: -0.02em !important; }
  .l-price-num s { font-size: 40px !important; font-weight: 600 !important; letter-spacing: -0.8px !important; }
  .l-price .l-checks { grid-column: 2; grid-row: 1; display: block !important; columns: 2; column-gap: 40px; }
  .l-price .l-checks > div { break-inside: avoid; margin-bottom: 18px; gap: 12px !important; font-size: 17px !important; font-weight: 700 !important; color: #FFFFFF !important; }
  .l-checks svg { width: 20px; height: 20px; margin-top: 3px !important; }
  .l-strip { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(5, minmax(0, 1fr)) !important; border-radius: 20px !important; }
  .l-strip > div { grid-column: auto !important; gap: 4px !important; padding: 20px !important; }
  .l-strip > div > span:first-child { font-size: 22px !important; }
  .l-strip > div > span:first-child s { font-size: 15px !important; font-weight: 400 !important; }
  .l-strip > div > span:last-child { font-size: 14px !important; line-height: 1.4 !important; }
  .l-small { grid-column: 1 / -1; grid-row: 3; font-size: 15px !important; line-height: 1.55 !important; }

  /* Who is Wally */
  .l-who { display: grid !important; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 80px !important; align-items: center; }
  .l-who-main { display: flex; flex-direction: column; gap: 24px; }
  .l-who-side { display: flex; flex-direction: column; gap: 20px; }
  .l-lede { font-size: 18px !important; line-height: 1.55 !important; }
  .l-who .l-checks { gap: 12px !important; }
  .l-who .l-checks > div { gap: 12px !important; font-size: 17px !important; }
  .l-stats { gap: 12px !important; }
  .l-stats > div { gap: 4px !important; padding: 24px 8px !important; border-radius: 20px !important; }
  .l-stats > div > span:first-child { font-size: clamp(22px, 2.1vw, 30px) !important; letter-spacing: -0.5px !important; }
  .l-stats > div > span:last-child { font-size: 14px !important; line-height: 1.35 !important; }
  .l-callout { padding: 22px 26px !important; border-radius: 20px !important; font-size: 17px !important; line-height: 1.5 !important; }

  /* Questions */
  .l-faq { display: grid !important; grid-template-columns: minmax(0, 5fr) minmax(0, 9fr); gap: 80px !important; align-items: start; }
  .l-faq-list { display: flex; flex-direction: column; }
  .faq-q { gap: 16px !important; padding: 24px 0 !important; font-size: 19px !important; }
  .faq-q svg { width: 22px; height: 22px; }
  .l-faq-list > p { max-width: 620px; padding: 0 0 24px !important; font-size: 17px !important; line-height: 1.55 !important; }

  /* Closing and footer */
  .l-closing { align-items: center; gap: 22px !important; text-align: center; }
  .l-closing h2 { max-width: 860px; font-size: clamp(42px, 3.9vw, 56px) !important; }
  .l-closing p { max-width: 640px; font-size: 19px !important; line-height: 1.5 !important; }
  .l-footer { display: grid !important; grid-template-columns: minmax(0, 3fr) minmax(0, 8.2fr); gap: 80px !important; padding: 48px max(40px, calc(50% - 600px)) !important; }
  .l-foot-main, .l-foot-side { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
  .l-foot-main a, .l-foot-main span { font-size: 15px !important; }
  .l-foot-side p, .l-foot-side span { font-size: 13px !important; line-height: 1.6 !important; }

  /* Before-and-after viewer: the two photos side by side */
  .lightbox { display: grid; grid-template-columns: repeat(2, minmax(0, 520px)); justify-content: center; align-content: center; gap: 16px; }
  .lightbox figure { max-width: none; }
  .lightbox img { max-height: 70vh; }
  .lightbox p, .lightbox button { grid-column: 1 / -1; justify-self: center; }
  .lightbox p { font-size: 17px; }

  /* Quiz: logo and progress in a top bar, the question in a card */
  .screen { background: #F9F9F9 !important; }
  .q-top { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; min-height: 32px; padding: 16px 40px; background: #FFFFFF; border-bottom: 1px solid #E2DFDF; }
  .q-head { display: contents !important; }
  .q-head > [data-nav], .q-head > div { display: none !important; }
  .q-head > img { justify-self: start; width: 100px !important; height: 32px !important; }
  .q-prog { width: 520px; gap: 7px !important; padding: 0 !important; }
  .q-prog > div:first-child { gap: 8px !important; }
  .q-prog > div:first-child div { height: 6px !important; }
  .q-prog > div:last-child { font-size: 12px !important; letter-spacing: 0.5px !important; }
  .q-card { display: flex; flex-direction: column; gap: 16px; width: 760px; max-width: calc(100% - 48px); box-sizing: border-box; margin: 40px auto; padding: 36px 56px 44px; border: 1px solid #E2DFDF; border-radius: 28px; background: #FFFFFF; }
  .q-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0; border: 0; background: none; color: #000000; font-weight: 600; font-size: 14px; line-height: 1.3; cursor: pointer; }
  .q-body { gap: 16px !important; padding: 0 !important; }
  .q-body h1 { font-size: 44px !important; letter-spacing: -0.9px !important; }
  .q-body > p { font-size: 16px !important; }
  .q-gap { display: none !important; }
  .q-cta { padding: 0 !important; }
  .opt, [data-multi] { padding: 18px 20px !important; border-radius: 16px !important; font-size: 17px !important; }
  .q-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 12px !important; }
  .tile { gap: 10px !important; padding: 16px 6px !important; border-radius: 16px !important; font-size: 15px !important; }
  #s-history .q-cta, #s-goals .q-cta { display: flex; justify-content: flex-end; }
  #s-goals .q-cta { flex-direction: row !important; align-items: center; gap: 20px !important; }
  #photos-hint { font-size: 14px !important; text-align: right !important; }
  #s-history .q-cta > button, #s-goals .q-cta > button { width: auto !important; padding: 19px 64px !important; font-size: 17px !important; }

  /* Goals and the four required photos */
  #goals-text { height: 104px !important; padding: 16px 18px !important; border-radius: 16px !important; font-size: 17px !important; }
  .q-photo-card { display: grid !important; grid-template-columns: minmax(0, 1fr) 288px; grid-template-rows: auto auto auto 1fr; column-gap: 28px; row-gap: 10px !important; align-items: start; padding: 24px !important; border-radius: 20px !important; }
  .q-photo-card > * { grid-column: 1; }
  .q-photo-card h2 { font-size: 24px !important; letter-spacing: -0.48px !important; }
  .q-photo-card p { font-size: 15px !important; }
  .q-photo-tiles { grid-column: 2 !important; grid-row: 1 / span 4; align-self: center; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px 12px !important; }
  .q-photo-tiles img { height: 84px !important; border-radius: 12px !important; }
  .q-photo-tiles button, .q-photo-tiles button > span { font-size: 13px !important; }
  #photos-open { justify-self: start; width: auto !important; margin-top: 6px; padding: 14px 28px !important; font-size: 16px !important; }

  /* Photo step: example on the left; upload on the right */
  #s-photos .q-card { display: grid; grid-template-columns: 280px minmax(0, 1fr); column-gap: 36px; row-gap: 14px; align-items: start; }
  #s-photos .q-back { grid-column: 1 / -1; justify-self: start; }
  #s-photos .q-body { display: contents !important; }
  #s-photos .q-body > *, #s-photos .q-cta { grid-column: 2; }
  #s-photos .ph-example-box { grid-column: 1; grid-row: 2 / span 5; height: 280px !important; border-radius: 20px !important; }
  #ph-title { font-size: 40px !important; }
  #ph-tip { font-size: 16px !important; line-height: 1.5 !important; }
  #ph-strip span { font-size: 12px !important; }
  #ph-take { display: none !important; }
  #ph-pick { padding: 18px 24px !important; border: 0 !important; background: #000000 !important; color: #FFFFFF !important; font-size: 17px !important; font-weight: 700 !important; }

  /* Contact details: fields two by two */
  #lead-form { gap: 16px; }
  #s-details .q-body { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px !important; }
  #s-details .q-body > h1, #s-details .q-body > p { grid-column: 1 / -1; }
  #s-details .q-body > p { margin: 4px 0 8px !important; font-size: 17px !important; line-height: 1.5 !important; }
  .field { gap: 3px !important; padding: 12px 16px !important; border-radius: 14px !important; }
  .field > span { font-size: 12px !important; }
  .field input { font-size: 17px !important; }
  #lead-submit { padding: 19px !important; font-size: 17px !important; }
  #s-details .q-cta p { font-size: 13px !important; line-height: 1.5 !important; text-wrap: balance; }

  /* Submit loader, centered in the card */
  #s-loading .q-card { align-items: center; padding: 64px 56px 56px; }
  #s-loading .q-body { flex: none !important; padding: 0 !important; gap: 0 !important; }
  #s-loading .q-body h1 { margin-top: 32px !important; }
  #ld-ring, #ld-ring > span { width: 104px !important; height: 104px !important; }
  #s-loading .ld-steps { align-self: center !important; width: 440px; max-width: 100%; box-sizing: border-box; margin-top: 32px !important; padding: 26px 28px !important; }
  #s-loading .ld-steps > div { gap: 20px !important; }
  .ld-row > span:first-child, .ld-row > span:first-child > span { width: 30px !important; height: 30px !important; }
  .ld-label { font-size: 17px !important; }
  #s-loading .q-body > p { margin-top: 20px !important; font-size: 14px !important; }

  /* Booked */
  .b-header { padding: 20px max(40px, calc(50% - 600px)) !important; border-bottom: 1px solid #E2DFDF; }
  .b-header > img { width: 112px !important; height: 36px !important; }
  .b-band { gap: 16px !important; padding: 64px max(40px, calc(50% - 600px)) !important; }
  .b-band > span { padding: 8px 16px !important; font-size: 13px !important; }
  .b-band h1 { font-size: clamp(52px, 5vw, 72px) !important; letter-spacing: -0.02em !important; }
  .b-band p { max-width: 640px; font-size: 19px !important; line-height: 1.5 !important; }
  .b-next { display: grid !important; grid-template-columns: minmax(0, 1fr) 400px; gap: 80px !important; align-items: start; padding: 56px max(40px, calc(50% - 600px)) !important; }
  .b-steps { display: flex; flex-direction: column; gap: 22px; }
  .b-step { gap: 16px !important; }
  .b-step > span { width: 26px !important; height: 26px !important; margin-top: 1px; }
  .b-step > div { gap: 3px !important; }
  .b-step > div > span:first-child { font-size: 19px !important; }
  .b-step > div > span:last-child { font-size: 15px !important; }
  .b-card { gap: 8px !important; margin-top: 0 !important; padding: 28px !important; border-radius: 20px !important; }
  .b-card > span:first-child { font-size: 19px !important; }
  .b-card > span:last-child { font-size: 16px !important; line-height: 1.5 !important; }
}

/* Between a tablet and a small laptop: the four steps go two by two, and Who is Wally stacks */
@media (min-width: 900px) and (max-width: 1099.98px) {
  .l-how { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .l-who { grid-template-columns: minmax(0, 1fr); gap: 40px !important; }
  .l-strip > div > span:first-child { font-size: 19px !important; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
