/* Template landing pages, the cleaner card layout (gallery/landing-cards.php, ?layout=cards).
   Built on the squareposh theme's tokens (--bone, --shell, --ink, --mute, --line…) and its
   .container, .btn and .it classes; everything of ours is prefixed sqlc-. */

.sqlc { background: var(--bone); }
.sqlc-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.sqlc-h1 { margin: 0; font-size: clamp(1.9rem, 2.9vw, 2.8rem); line-height: 1.08; letter-spacing: -.01em; }
.sqlc-h2 { margin: 0; font-size: clamp(1.7rem, 2.4vw, 2.4rem); line-height: 1.1; letter-spacing: -.01em; }
.sqlc-lead { max-width: 52ch; margin: 18px 0 0; color: var(--char); font-size: 1.05rem; line-height: 1.7; }
.sqlc-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 32px; margin-bottom: clamp(22px, 3vw, 34px); }
.sqlc-head p { margin: 0; color: var(--mute); font-size: .98rem; }
.sqlc-head p a { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }
.sqlc-head--center { justify-content: center; text-align: center; }
.sqlc-sub { margin: clamp(36px, 4vw, 52px) 0 18px; font-size: 1.1rem; font-weight: 500; }
.sqlc-note { margin: -12px 0 18px; color: var(--mute); font-size: .9rem; }

/* ---------- Sections: calm spacing, alternating bone and white ---------- */
.sqlc-section { padding: clamp(56px, 6vw, 88px) 0; }
.sqlc-section--white { background: var(--shell); }
.sqlc-section--white .sqlc-card { background: var(--bone); border-color: transparent; }

/* ---------- Cards ---------- */
.sqlc-card { position: relative; border: 1px solid var(--line-soft); border-radius: 22px; background: var(--shell); }
.sqlc-card--link { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 10px 10px 16px; color: var(--ink); text-decoration: none; transition: transform .4s var(--slow), box-shadow .4s var(--slow); }
.sqlc-card--link:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -30px rgba(56, 44, 36, .45); }
.sqlc-card--link:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.sqlc-card__shot { display: block; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 14px; background: var(--greige); }
.sqlc-card__shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.sqlc-card__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 6px; }
.sqlc-card__name { padding: 0 6px; font-size: 1rem; font-weight: 500; }
.sqlc-card__row .sqlc-card__name { padding: 0; }
.sqlc-card__go { display: inline-flex; align-items: center; gap: 6px; color: var(--mute); font-size: .88rem; }
.sqlc-card__go svg { width: 14px; height: 14px; transition: transform .3s var(--slow); }
.sqlc-card--link:hover .sqlc-card__go { color: var(--ink); }
.sqlc-card--link:hover .sqlc-card__go svg { transform: translateX(3px); }

.sqlc-grid { display: grid; gap: clamp(14px, 1.8vw, 22px); margin: 0; padding: 0; list-style: none; }
.sqlc-grid--looks { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
@media (max-width: 900px) { .sqlc-grid--looks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sqlc-grid--looks { grid-template-columns: minmax(0, 1fr); } }
.sqlc-grid--feats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sqlc-grid--pages { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.sqlc-card--page { padding: 8px 8px 12px; gap: 10px; }
.sqlc-card--page .sqlc-card__shot { border-radius: 10px; }
.sqlc-card--page .sqlc-card__name { font-size: .92rem; }

.sqlc-card--feat { padding: 22px 22px 24px; }
.sqlc-card--feat h3 { margin: 14px 0 0; font-size: 1.02rem; font-weight: 500; line-height: 1.35; }
.sqlc-card--feat p { margin: 8px 0 0; color: var(--mute); font-size: .93rem; line-height: 1.6; }
.sqlc-card__tick { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--shell); }
.sqlc-card__tick svg { width: 17px; height: 17px; }
@media (max-width: 1100px) { .sqlc-grid--feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .sqlc-grid--feats { grid-template-columns: minmax(0, 1fr); }
  .sqlc-grid--pages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Chips (price, who it's for, builder facts) ---------- */
.sqlc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.sqlc-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line-soft); border-radius: var(--pill); background: var(--shell); color: var(--char); font-size: .88rem; line-height: 1.35; }
.sqlc-chips strong { color: var(--ink); font-weight: 600; }
.sqlc-chips svg { flex: none; width: 16px; height: 16px; }
.sqlc-chips--facts { justify-content: center; margin-top: 22px; }

/* ---------- Hero ---------- */
.sqlc-hero { padding: clamp(112px, 11vw, 150px) 0 clamp(52px, 6vw, 84px); overflow: hidden; }
.sqlc-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.sqlc-crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; color: var(--mute); font-size: .86rem; }
.sqlc-crumbs li + li::before { content: "/"; margin-right: 8px; }
.sqlc-crumbs a { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }
.sqlc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.sqlc-hero__media { position: relative; padding: 0 7% 8% 0; }
.sqlc-shot { overflow: hidden; border: 1px solid var(--line-soft); border-radius: 18px; background: var(--shell); box-shadow: 0 34px 70px -40px rgba(56, 44, 36, .5); }
.sqlc-shot img { display: block; width: 100%; height: auto; }
.sqlc-phone { position: absolute; right: 0; bottom: 0; width: 24%; aspect-ratio: 390 / 780; overflow: hidden; border: 5px solid var(--ink); border-radius: 24px; background: var(--ink); box-shadow: 0 26px 50px -24px rgba(4, 4, 4, .5); }
.sqlc-phone img { display: block; width: 100%; height: 100%; border-radius: 19px; object-fit: cover; object-position: top center; }
@media (max-width: 960px) {
  .sqlc-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .sqlc-hero__media { padding: 0 8% 11% 0; }
  .sqlc-phone { width: 26%; }
}

/* ---------- The builder: one card, steps beside the screenshot ---------- */
.sqlc-tour { padding: clamp(14px, 2vw, 22px); }
.sqlc-tour.is-tabs { display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 28px); align-items: start; }
.sqlc-tour__tabs { display: flex; flex-direction: column; gap: 6px; }
.sqlc-tour__tabs [role="tab"] { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-radius: 14px; background: transparent; color: var(--char); font: inherit; font-size: .95rem; line-height: 1.35; text-align: left; cursor: pointer; transition: background-color .25s ease, color .25s ease; }
.sqlc-tour__tabs [role="tab"]:hover { background: var(--bone); color: var(--ink); }
.sqlc-tour__tabs [role="tab"][aria-selected="true"] { background: var(--ink); color: var(--shell); }
.sqlc-tour__tabs [role="tab"]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sqlc-tour__n { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--bone); color: var(--ink); font-size: .8rem; font-weight: 600; }
.sqlc-tour__tabs [aria-selected="true"] .sqlc-tour__n { background: rgba(255, 255, 255, .16); color: var(--shell); }
.sqlc-tour__panels figure { margin: 0; }
.sqlc-tour__panel + .sqlc-tour__panel { margin-top: 28px; }
.sqlc-tour.is-tabs .sqlc-tour__panel + .sqlc-tour__panel { margin-top: 0; }
.sqlc-tour__panels .sqlc-shot { box-shadow: none; border-radius: 14px; }
.sqlc-tour__panels figcaption { max-width: 70ch; margin: 14px 4px 2px; color: var(--mute); font-size: .95rem; line-height: 1.6; }
.sqlc-tour__panels figcaption strong { color: var(--ink); font-weight: 500; }
.sqlc-tour__step { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Phones and tablets: the steps are one row of numbered circles (the chosen step’s title and words are under its picture). */
@media (max-width: 900px) {
  .sqlc-tour.is-tabs { grid-template-columns: minmax(0, 1fr); }
  .sqlc-tour__tabs { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 2px 0 4px; }
  .sqlc-tour__tabs [role="tab"] { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border-radius: 50%; background: var(--bone); color: var(--ink); }
  .sqlc-tour__tabs [role="tab"][aria-selected="true"] { background: var(--ink); color: var(--shell); }
  .sqlc-tour__n, .sqlc-tour__tabs [aria-selected="true"] .sqlc-tour__n { width: auto; height: auto; background: none; color: inherit; font-size: 1rem; }
  .sqlc-tour__t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* Phones and tablets: the screenshots swipe (landing.js adds .is-swipe); the next one peeks in at the edge. */
.sqlc-tour.is-swipe .sqlc-tour__panels { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sqlc-tour.is-swipe .sqlc-tour__panels::-webkit-scrollbar { display: none; }
.sqlc-tour.is-swipe .sqlc-tour__panel { flex: 0 0 88%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.sqlc-tour.is-swipe .sqlc-tour__panel + .sqlc-tour__panel { margin-top: 0; }
.sqlc-tour.is-swipe .sqlc-tour__panel:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; border-radius: 14px; }

/* ---------- Price: the plans side by side, what's included underneath ---------- */
.sqlc-head--stack { flex-direction: column; align-items: center; gap: 10px; }
.sqlc-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: center; gap: 20px; margin: 0; padding: 0; list-style: none; }
.sqlc-plans--one { grid-template-columns: minmax(0, 360px); }
.sqlc-plan { position: relative; display: flex; flex-direction: column; align-items: center; padding: 30px 26px 26px; border: 1px solid var(--line); border-radius: 22px; background: var(--shell); text-align: center; }
.sqlc-plan--best { border: 2px solid var(--ink); }
.sqlc-plan h3 { margin: 0; color: var(--char); font-size: .95rem; font-weight: 600; }
.sqlc-plan .sqlc-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.sqlc-plan__price { margin: 12px 0 0; line-height: 1.1; }
.sqlc-plan__price strong { color: var(--ink); font-size: clamp(2.3rem, 3.2vw, 2.8rem); font-weight: 500; letter-spacing: -.01em; }
.sqlc-plan__price span { color: var(--mute); font-size: 1rem; }
.sqlc-plan__note { margin: 8px 0 22px; color: var(--mute); font-size: .93rem; line-height: 1.5; }
.sqlc-plan .btn { width: 100%; justify-content: center; margin-top: auto; }
.sqlc-tag { padding: 4px 12px; border-radius: var(--pill); background: var(--cocoa); color: var(--bone); font-size: .72rem; font-weight: 600; letter-spacing: .04em; }
.sqlc-price__soon { max-width: 60ch; margin: 0 auto 18px; color: var(--char); text-align: center; }
.sqlc-actions--center { justify-content: center; }
.sqlc-incl { max-width: 780px; margin: clamp(36px, 4vw, 52px) auto 0; padding-top: clamp(28px, 3vw, 36px); border-top: 1px solid var(--line-soft); }
.sqlc-incl__h { margin: 0 0 18px; font-size: 1rem; font-weight: 500; text-align: center; }
.sqlc-incl__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 40px; margin: 0; padding: 0; list-style: none; }
.sqlc-incl__list li { display: flex; align-items: flex-start; gap: 10px; color: var(--char); font-size: .92rem; line-height: 1.5; }
.sqlc-incl__list svg { flex: none; width: 17px; height: 17px; margin-top: .2em; }
@media (max-width: 560px) {
  .sqlc-plans { grid-template-columns: minmax(0, 1fr); }
  .sqlc-incl__list { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Questions ---------- */
.sqlc-faq { max-width: 960px; }
.sqlc-faq__list { padding: 6px clamp(18px, 2.6vw, 30px); }
.sqlc-faq__list details { border-bottom: 1px solid var(--line-soft); }
.sqlc-faq__list details:last-child { border-bottom: 0; }
.sqlc-faq__list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 1rem; font-weight: 500; cursor: pointer; list-style: none; }
.sqlc-faq__list summary::-webkit-details-marker { display: none; }
.sqlc-faq__list summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--bone); font-size: 1.1rem; line-height: 1; transition: transform .25s ease; }
.sqlc-faq__list details[open] summary::after { transform: rotate(45deg); }
.sqlc-faq__list summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.sqlc-faq__list p { margin: 0 0 18px; color: var(--char); font-size: .96rem; line-height: 1.7; }
.sqlc-faq__list p a { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }

/* ---------- Closing ---------- */
.sqlc-cta { padding-top: 0; }
.sqlc-cta__card { padding: clamp(32px, 5vw, 60px); text-align: center; }
.sqlc-cta__card .sqlc-actions { justify-content: center; }
.sqlc-cta__more { margin: 20px 0 0; color: var(--mute); font-size: .92rem; }
.sqlc-cta__more a { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }
/* "Need a custom option?" under the price. */
.sqlc-custom { max-width: 760px; margin: 28px auto 0; padding: 16px 22px; border: 1px dashed var(--line, rgba(0, 0, 0, .2)); border-radius: 16px; color: var(--ink, #2b2622); font-size: .98rem; line-height: 1.6; text-align: center; }
.sqlc-custom a { font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }
