/* squareposh Get started / checkout page (/start/ before a site is paid for):
   pick a template and design, pick a plan, continue to Stripe.
   Dressed like squareposh.com itself: NeulisAlt (the brand face) with the
   theme's display face for accent words (both loaded by builder/start.php
   from the squareposh theme), bone and cocoa tones, hairline cards, pill
   button. An order summary sits beside the plans and follows the choice. */

:root {
  color-scheme: light;
  --bone: #F8F4F4;
  --shell: #FFFFFF;
  --greige: #E0D4CC;
  --stone: #BCA898;
  --ink: #040404;
  --char: #4C4C44;
  --cocoa: #382C24;
  --mute: #786D63;
  --line: rgba(4, 4, 4, .14);
  --line-soft: rgba(4, 4, 4, .08);
  --sans: "NeulisAlt", "Jost", "Helvetica Neue", Arial, sans-serif;
  --display: "Bodoni Moda", Georgia, serif;
  --pill: 100px;
  --gutter: clamp(20px, 4.4vw, 64px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --slow: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
body.gs { margin: 0; background: var(--bone); color: var(--ink); font: 400 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.si { width: 18px; height: 18px; flex: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.it { font-family: var(--display); font-style: normal; font-weight: 400; letter-spacing: .005em; font-size: .94em; }
.gs-skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 10px 16px; border-radius: var(--pill); background: var(--ink); color: var(--bone); font-size: 14px; text-decoration: none; }
.gs-skip:focus { top: 12px; }

/* Top bar */
.gs-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 18px var(--gutter); border-bottom: 1px solid var(--line-soft); }
.gs-brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; text-decoration: none; }
.gs-brand__logo { width: auto; height: 26px; }
.gs-brand__mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--ink); }
.gs-brand__text strong { font-size: 15px; font-weight: 500; }
.gs-top__secure { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--mute); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; }
.gs-top__secure .si { width: 15px; height: 15px; }
.gs-top__link { justify-self: end; color: var(--char); font-size: .9rem; text-decoration: none; text-align: right; }
.gs-top__link strong { font-weight: 500; color: var(--ink); }
.gs-top__link:hover strong { text-decoration: underline; text-underline-offset: 3px; }

/* Page */
.gs-main { width: min(1200px, 100%); margin: 0 auto; padding: clamp(32px, 5vw, 64px) var(--gutter) 96px; }
/* Headline and form on the left, the order summary on the right spanning both rows (sticky). */
.gs-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); grid-template-areas: "intro sum" "form sum"; align-items: start; column-gap: clamp(32px, 5vw, 80px); }
.gs-layout--solo { grid-template-columns: minmax(0, 760px); grid-template-areas: "intro" "form"; justify-content: center; }
.gs-intro { grid-area: intro; min-width: 0; }
.gs-col { grid-area: form; min-width: 0; }
.gs-sum { grid-area: sum; align-self: start; }

.gs-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 clamp(28px, 4vw, 44px); padding: 0; list-style: none; color: var(--mute); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; }
.gs-progress li { display: flex; align-items: center; gap: 10px; }
.gs-progress li + li::before { content: ""; width: 28px; height: 1px; margin-right: 4px; background: var(--line); }
.gs-progress__n { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 50%; font-size: .7rem; letter-spacing: 0; }
.gs-progress li[aria-current] { color: var(--ink); }
.gs-progress li[aria-current] .gs-progress__n { border-color: var(--ink); background: var(--ink); color: var(--bone); }

.gs-head { max-width: 660px; margin-bottom: 30px; }
.gs-head h1, .gs-wait h1 { margin: 0 0 14px; font-size: clamp(2.2rem, 4.6vw, 3.5rem); font-weight: 500; line-height: 1.08; letter-spacing: -.024em; }
.gs-lede { margin: 0; color: var(--mute); font-size: 1.04rem; line-height: 1.8; }
.gs-small { margin: 14px 0 0; color: var(--mute); font-size: .84rem; line-height: 1.6; text-align: center; }
.gs-out { margin: 24px 0 0; font-size: .92rem; text-align: center; }
.gs-out a { color: var(--char); text-underline-offset: 3px; }
.gs-out a:hover { color: var(--ink); }

.gs-note { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 20px; padding: 14px 18px; border: 1px solid var(--line-soft); background: var(--shell); color: var(--char); font-size: .92rem; line-height: 1.6; }
.gs-note p { margin: 0; }
.gs-note a { color: var(--ink); text-underline-offset: 3px; }
.gs-note .si { margin-top: 3px; color: var(--cocoa); }
.gs-note--test { border-color: rgba(56, 44, 36, .18); background: rgba(224, 212, 204, .35); }
.gs-note--ok .si { color: #2f5a36; }
.gs-note--bad { border-color: rgba(155, 44, 31, .3); background: #f8e9e6; color: #7a2216; }
.gs-note--bad .si { color: #9b2c1f; }

/* Steps */
.gs-form { display: grid; gap: 30px; }
.gs-step { min-width: 0; margin: 0; padding: 0; border: 0; }
.gs-step legend { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 0; font-size: .74rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.gs-step__n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--bone); font-size: .7rem; letter-spacing: 0; }

/* The template that was picked */
.gs-tpls { display: grid; gap: 14px; }
.gs-tpl { position: relative; border: 1px solid var(--line); background: var(--shell); transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.gs-tpl.is-on, .gs-tpl:has(.gs-tpl__radio:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.gs-tpl.is-soon { background: transparent; }
.gs-tpl__radio { position: absolute; opacity: 0; pointer-events: none; }
.gs-tpl__radio:focus-visible + .gs-tpl__main { outline: 2px solid var(--ink); outline-offset: 3px; }
.gs-tpl__main { position: relative; display: flex; flex-direction: column; cursor: pointer; }
.gs-tpl.is-soon .gs-tpl__main { cursor: default; }
.gs-tpl__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line-soft); background: var(--greige); }
.gs-tpl__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.gs-tpl__body { display: flex; flex-direction: column; gap: 6px; padding: 20px 64px 8px 22px; }
.gs-tpl__name { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 500; letter-spacing: -.01em; }
.gs-tpl__sum { color: var(--char); font-size: .95rem; line-height: 1.65; }
.gs-tpl__for { color: var(--mute); font-size: .86rem; }
.gs-tpl__check, .gs-plan__check { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 50%; color: transparent; transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease); }
.gs-tpl__check .si, .gs-plan__check .si { width: 14px; height: 14px; }
.gs-tpl.is-on .gs-tpl__check, .gs-tpl:has(.gs-tpl__radio:checked) .gs-tpl__check { border-color: var(--ink); background: var(--ink); color: var(--bone); }
.gs-tpl__img + .gs-tpl__body ~ .gs-tpl__check { top: 14px; right: 14px; background: var(--shell); }
.gs-tpl__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 22px 20px; }
.gs-designs { display: flex; flex-wrap: wrap; gap: 8px; }
.gs-design { position: relative; cursor: pointer; }
.gs-design input { position: absolute; opacity: 0; }
.gs-design span { display: block; padding: 7px 16px; border: 1px solid var(--line); border-radius: var(--pill); font-size: .86rem; transition: background-color .25s, border-color .25s, color .25s; }
.gs-design:hover span { border-color: var(--stone); }
.gs-design input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--bone); }
.gs-design input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.gs-demo { display: inline-flex; align-items: center; gap: 8px; color: var(--char); font-size: .86rem; text-decoration: none; }
.gs-demo:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.gs-demo .si { width: 16px; height: 16px; }

.gs-badge { display: inline-block; padding: 4px 10px; border-radius: var(--pill); background: var(--greige); color: var(--cocoa); font-size: .62rem; font-weight: 500; letter-spacing: .16em; line-height: 1.4; text-transform: uppercase; }
.gs-badge--new, .gs-badge--save { background: var(--cocoa); color: var(--bone); }

/* Plans */
.gs-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gs-plan { position: relative; display: block; padding: 26px 26px 24px; border: 1px solid var(--line); background: var(--shell); cursor: pointer; transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.gs-plan:hover { border-color: var(--stone); }
.gs-plan input { position: absolute; opacity: 0; }
.gs-plan:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.gs-plan:has(input:checked) .gs-plan__check { border-color: var(--ink); background: var(--ink); color: var(--bone); }
.gs-plan:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.gs-plan__body { display: flex; flex-direction: column; gap: 6px; }
.gs-plan__name { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-right: 36px; font-size: .76rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.gs-plan__price { margin-top: 12px; color: var(--mute); font-size: .95rem; }
.gs-plan__price strong { margin-right: 6px; color: var(--ink); font-size: clamp(2.4rem, 4vw, 3rem); font-weight: 400; line-height: 1; letter-spacing: -.03em; }
.gs-plan__note { color: var(--mute); font-size: .88rem; }

/* What's included, and the button */
/* The tint lowers contrast, so grey text inside takes the theme's deeper grey (as .bg-greige does) to keep 4.5:1. */
.gs-pay { --mute: #635A52; padding: clamp(20px, 3vw, 30px); border: 1px solid var(--line-soft); background: rgba(224, 212, 204, .28); }
.gs-incl { display: grid; margin: 0 0 22px; padding: 0; list-style: none; color: var(--char); font-size: .95rem; }
.gs-incl li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.gs-incl li:first-child { padding-top: 0; }
.gs-incl .si { width: 17px; height: 17px; margin-top: 4px; color: var(--cocoa); }
.gs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 60px; padding: 16px 26px; border: 1px solid var(--ink); border-radius: var(--pill); background: var(--ink); color: var(--shell); font-size: .8rem; font-weight: 400; letter-spacing: .18em; line-height: 1.2; text-transform: uppercase; cursor: pointer; transition: background-color .35s var(--ease), border-color .35s var(--ease); }
.gs-btn .si { width: 16px; height: 16px; }
.gs-btn:hover { border-color: var(--cocoa); background: var(--cocoa); }
.gs-btn:disabled { border-color: var(--stone); background: var(--stone); color: var(--ink); cursor: default; }
.gs-btn.is-busy { border-color: var(--char); background: var(--char); cursor: progress; }

/* Order summary */
.gs-sum { position: sticky; top: 28px; }
.gs-sum__card { border: 1px solid var(--line); background: var(--shell); }
.gs-sum__img { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line-soft); background: var(--greige); }
.gs-sum__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.gs-sum__body { padding: 24px 24px 22px; }
.gs-sum__h { margin: 0 0 14px; font-size: .7rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
.gs-sum__tpl { margin: 0; font-size: 1.3rem; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; }
.gs-sum__sub { margin: 4px 0 0; color: var(--mute); font-size: .9rem; }
.gs-sum__rows { margin: 20px 0 0; }
.gs-sum__rows div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line-soft); font-size: .93rem; }
.gs-sum__rows dt { color: var(--mute); }
.gs-sum__rows dd { margin: 0; text-align: right; }
.gs-sum__rows .gs-sum__total { padding-top: 14px; border-top-color: var(--line); font-size: 1.08rem; font-weight: 500; }
.gs-sum__rows .gs-sum__total dt { color: var(--ink); }
.gs-sum__fine { margin: 6px 0 0; color: var(--mute); font-size: .8rem; line-height: 1.55; }
.gs-sum__trust { display: grid; gap: 10px; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line-soft); list-style: none; color: var(--char); font-size: .86rem; }
.gs-sum__trust li { display: flex; align-items: flex-start; gap: 10px; }
.gs-sum__trust .si { width: 16px; height: 16px; margin-top: 3px; color: var(--cocoa); }

/* Waiting for Stripe */
.gs-wait { max-width: 580px; margin: 8vh auto 0; padding: clamp(32px, 5vw, 48px) clamp(24px, 4vw, 40px); border: 1px solid var(--line); background: var(--shell); text-align: center; }
.gs-wait .gs-lede { font-size: 1rem; }
.gs-spin { display: block; width: 34px; height: 34px; margin: 0 auto 22px; border: 2px solid var(--greige); border-top-color: var(--cocoa); border-radius: 50%; animation: gs-spin .9s linear infinite; }
@keyframes gs-spin { to { transform: rotate(360deg); } }

@media (max-width: 960px) {
  /* The summary moves up, right under the headline and above the plans. */
  .gs-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "sum" "form"; }
  .gs-sum { position: static; margin-bottom: 30px; }
  .gs-sum__card { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); }
  .gs-sum__img { height: 100%; aspect-ratio: auto; border-right: 1px solid var(--line-soft); border-bottom: 0; }
  .gs-sum__trust { display: none; }
}
@media (max-width: 640px) {
  .gs-top { grid-template-columns: 1fr auto; }
  .gs-top__secure { display: none; }
  .gs-top__link { font-size: .82rem; }
  .gs-brand__logo { height: 22px; }
  /* Only the current step's name shows; the others stay for screen readers. */
  .gs-progress { gap: 8px; }
  .gs-progress li + li::before { width: 12px; margin-right: 0; }
  .gs-progress li:not([aria-current]) .gs-progress__t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .gs-plans { grid-template-columns: minmax(0, 1fr); }
  .gs-btn { gap: 10px; padding: 16px 18px; font-size: .74rem; letter-spacing: .1em; }
  .gs-sum__card { display: block; }
  .gs-sum__img, .gs-sum__fine { display: none; }
  .gs-sum__body { padding: 18px 20px 12px; }
  .gs-sum__tpl { font-size: 1.12rem; }
  .gs-sum__rows { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .gs-spin { animation-duration: 2.4s; }
  .gs-tpl, .gs-plan, .gs-tpl__check, .gs-plan__check, .gs-btn, .gs-design span { transition: none; }
}
