/*
 * Phone layer (<= 699px) of the Baidu landing pages — loaded after css/landing.css with a
 * media attribute, so desktop and tablet never parse it (inc/landing-pages.php).
 *
 * 2026-10-21: the phone version was only the desktop rules squeezed: css/mobile.css sets
 * .content to 100% on phones (no side gutters anywhere), the three pricing cards stacked to
 * 2 600px (64px rows), the comparison check discs sat outside the screen, the feature tabs of
 * 建站，不只是做一个网站 were three grey lines. This file re-lays each section for a 360–430px
 * screen; see landing-mobile/README.md at the project root.
 */
@media (max-width: 699px) {
	/* ---------- gutters + type scale ---------- */
	.landing .content {
		box-sizing: border-box;
		width: 100%;
		padding-left: 20px;
		padding-right: 20px;
	}

	.landing .content .content {
		padding-left: 0;
		padding-right: 0;
	}

	.landing .heading.head2 {
		margin: 0 auto 1.5rem;
	}

	.landing .heading.head2 h2,
	.lp-vs__head h2,
	.lp-faq__intro h2,
	.lp-cta h2,
	.landing .casesgallery h2,
	.landing .sy-steps h2 {
		font-size: 1.6rem;
		line-height: 1.3;
		letter-spacing: 0;
		margin-bottom: 0.5rem;
		text-wrap: balance;            /* no orphan character on the last line (Chrome 114+, Safari 17.5+) */
	}

	.landing .heading.head2 p.subtitle,
	.lp-vs__head p.subtitle,
	.lp-faq__intro p.subtitle,
	.lp-cta p.subtitle,
	.landing .casesgallery p.subtitle,
	.landing .sy-steps p.subtitle {
		font-size: 0.92rem;
		line-height: 1.65;
		text-wrap: balance;
	}

	/* ---------- header ---------- */
	.lp-head__inner {
		min-height: 3.5rem;
	}

	.landing .sy-btn.lp-head__cta {
		line-height: 2.2rem;
		padding: 0 0.9rem;
		font-size: 0.86rem;
		border-radius: 5px;
	}

	/* ---------- hero: text, full-width button, illustration, 2 x 2 chips ---------- */
	.lp-hero {
		padding: 1.9rem 0 2.2rem;
		background-position: 65% center;
	}

	.lp-hero__grid {
		display: block;
	}

	.lp-hero__eyebrow {
		font-size: 0.7rem;
		letter-spacing: 3px;
		margin-bottom: 0.7rem;
	}

	.lp-hero h1 {
		font-size: 2.05rem;
		line-height: 1.2;
		letter-spacing: 0;
		margin-bottom: 0.55rem;
	}

	.lp-hero__tagline {
		font-size: 0.98rem;
		letter-spacing: 0;
		color: rgba(255, 255, 255, 0.88);
		margin-bottom: 0.8rem;
	}

	.lp-hero__lead {
		font-size: 0.88rem;
		line-height: 1.7;
		letter-spacing: 0;
		color: rgba(255, 255, 255, 0.7);
		margin-bottom: 1.3rem;
		max-width: none;
	}

	.lp-hero__actions {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0.9rem;
	}

	.landing .lp-hero__actions .sy-btn {
		width: 100%;
		line-height: 3.15rem;
		padding: 0 1rem;
		font-size: 1.02rem;
		border-radius: 8px;
	}

	.lp-hero__phone {
		align-self: center;
		font-size: 1.02rem;
		letter-spacing: 1px;
	}

	.lp-hero__art {
		max-width: none;
		margin: 1.7rem -6px 0;
	}

	.lp-hero__badge {
		border-radius: 12px;
		border-width: 1.5px;
		padding: 7% 0 0 9%;
	}

	.lp-hero__badge-label {
		font-size: 0.74rem;
		margin-bottom: 0.25rem;
	}

	.lp-hero__badge-price {
		font-size: 1.55rem;
	}

	.lp-hero__chips {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 0.55rem;
		margin: 1.3rem 0 0;
	}

	.lp-hero__chips li:nth-child(n) {
		display: flex;
		align-items: center;
		height: auto;
		min-height: 2.5rem;
		margin: 0;
		padding: 0.4rem 0.6rem 0.4rem 0.55rem;
		gap: 0.35rem;
		font-size: 0.78rem;
		line-height: 1.3;
		letter-spacing: 0;
		white-space: nowrap;
		border-radius: 999px;
	}

	.lp-hero__chips svg {
		width: 1rem;
		height: 1rem;
	}

	/* ---------- price cards: one card per swipe (scroll-snap), compact rows, dots ---------- */
	.lp-offer {
		padding: 0 0 0.4rem;
	}

	body.lp-offer-below .lp-offer {
		padding-top: 2rem;
	}

	.landing ul.pricelist {
		display: flex;
		flex-wrap: nowrap;
		gap: 12px;
		margin: 0 -20px;
		padding: 8px 20px 1.3rem;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding: 0 20px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.landing ul.pricelist::-webkit-scrollbar {
		display: none;
	}

	.landing ul.pricelist > li {
		flex: 0 0 auto;
		width: calc(100% - 30px);          /* the next card peeks by ~18px */
		scroll-snap-align: start;
		scroll-snap-stop: always;
		margin: 0;
		border-radius: 14px;
		box-shadow: 0 10px 26px rgba(25, 31, 43, 0.12);
	}

	.landing ul.pricelist > li .canvas_animation {
		border-radius: 14px 14px 0 0;
	}

	.landing ul.pricelist h3 {
		font-size: 1.05rem;
		font-weight: 600;
		margin: 0.9rem 0 0.15rem;
	}

	.landing ul.pricelist p.price {
		font-size: 1.9rem;
		margin: 0;
	}

	.landing ul.pricelist p.price span {
		font-size: 1rem;
	}

	.landing ul.pricelist button,
	.landing ul.pricelist > li.active button {
		width: calc(100% - 2.4rem);
		margin: 0.9rem auto 0;
		padding: 0.72rem 1rem;
		font-size: 0.98rem;
		border-radius: 8px;
		background: var(--lp-blue);
		border-color: var(--lp-blue);
		color: #fff;
	}

	.landing ul.pricelist > li ul {
		width: auto;
		margin: 0.9rem 0.9rem 1rem;
	}

	.landing ul.pricelist > li ul li {
		line-height: 1.45;
		font-size: 0.84rem;
		padding: 0.62rem 1.5rem 0.62rem 2rem;
	}

	.landing ul.pricelist > li ul li::before {
		width: 1.5rem;
		height: 1.5rem;
		top: 50%;
		margin-top: -0.75rem;
	}

	.landing ul.pricelist > li ul li::after {
		width: 1.05rem;
		height: 1.05rem;
		top: 50%;
		margin-top: -0.52rem;
	}

	.landing ul.pricelist > li ul li span {
		font-size: 11px;
		line-height: 20px;
		padding: 0 8px;
		margin-left: 6px;
	}

	/* dots + hint created by js/landing.js (setupOfferCarousel) */
	.lp-offer__dots {
		display: flex;
		justify-content: center;
		gap: 0.45rem;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.lp-offer__dots button {
		display: block;
		width: 0.5rem;
		height: 0.5rem;
		padding: 0;
		border: 0;
		border-radius: 999px;
		background: #cfd6e0;
		transition: width 0.25s, background 0.25s;
	}

	.lp-offer__dots button.is-active {
		width: 1.4rem;
		background: var(--lp-blue);
	}

	.lp-offer__hint {
		display: block;
		text-align: center;
		color: #8a8f99;
		font-size: 0.78rem;
		margin: 0.55rem 0 0;
	}

	/* ---------- proofs ---------- */
	.lp-proofs {
		padding: 1.9rem 0 0;
	}

	.lp-proofs__list li {
		justify-content: center;
		padding: 0 0.35rem;
	}

	.lp-proofs__list strong {
		font-size: 1.65rem;
		margin-bottom: 0.3rem;
	}

	.lp-proofs__list strong span {
		font-size: 0.85rem;
	}

	.lp-proofs__list img {
		width: 46px;
		margin-bottom: 0.35rem;
	}

	.lp-proofs__list p {
		font-size: 0.72rem;
		line-height: 1.4;
	}

	/* ---------- comparison: two panels (cheap template vs Sytech) ---------- */
	.lp-vs {
		margin-top: 2.6rem;
	}

	.lp-vs__stage {
		width: auto;
		margin: 0 20px;
		gap: 1.1rem;
	}

	.lp-vs__art {
		width: calc(100% + 40px);
		max-width: none;
		margin: 0 -20px;
	}

	.lp-vs__side {
		gap: 0.75rem;
		padding: 1.1rem 0.9rem 1.2rem;
		border-radius: 16px;
	}

	.lp-vs__side--cons {
		background: #f2f4f8;
	}

	.lp-vs__side--pros {
		background: linear-gradient(180deg, #e8f7fc, #f7fcfe);
		border: 1px solid rgba(53, 186, 230, 0.35);
	}

	.lp-vs__label {
		flex-direction: row;
		align-items: baseline;
		justify-content: space-between;
		gap: 0.6rem;
		white-space: normal;
		margin: 0 0.2rem 0.2rem;
	}

	.lp-vs__label--cons span:first-child {
		font-size: 0.95rem;
		font-weight: 600;
		color: var(--lp-ink);
	}

	.lp-vs__label--cons .lp-price {
		font-size: 1.5rem;
		color: #6b7280;
	}

	.lp-vs__label--pros span:first-child {
		font-size: 1.02rem;
	}

	.lp-vs__label--pros .lp-price {
		font-size: 1.8rem;
		margin-top: 0;
	}

	.lp-vs__cons,
	.lp-vs__pros {
		gap: 0.55rem;
	}

	.lp-vs__cons li {
		min-height: 2.6rem;
		padding: 0.45rem 1rem 0.45rem 3rem;
		font-size: 0.88rem;
		box-shadow: none;
	}

	.lp-vs__cons li::before {
		left: 0.5rem;
		width: 1.8rem;
		height: 1.8rem;
		margin-top: -0.9rem;
		background-size: 0.7rem;
	}

	.lp-vs__pros--card li,
	.lp-vs__pros--line li {
		min-height: 2.6rem;
		padding: 0.5rem 1rem 0.5rem 3rem;
		font-size: 0.88rem;
		border-radius: 12px;
		box-shadow: 0 4px 12px rgba(25, 31, 43, 0.06);
	}

	.lp-vs__pros--card li::before,
	.lp-vs__pros--line li::before {
		left: 0.5rem;
		width: 1.8rem;
		height: 1.8rem;
		margin-top: -0.9rem;
		background-size: 0.85rem;
	}

	.lp-vs__action {
		align-self: stretch;
		min-width: 0;
		margin: 0.2rem 0 0;
	}

	.landing .lp-vs__action .sy-btn {
		width: 100%;
		line-height: 3.1rem;
		font-size: 1rem;
		border-radius: 8px;
	}

	/* ---------- "own" band: the four features as cards under the laptop ---------- */
	.lp-own {
		padding: 3rem 0 3.2rem;
	}

	.lp-own .heading.head2 {
		margin-bottom: 1.3rem;
	}

	.lp-own__grid {
		row-gap: 1.3rem;
	}

	.lp-own__media {
		max-width: none;
		margin: 0 -20px;
	}

	.lp-own__tabs {
		padding-top: 0;
	}

	.lp-own__tab,
	.lp-own__tab.is-active {
		display: grid;
		grid-template-columns: 2.4rem 1fr;
		column-gap: 0.85rem;
		align-items: start;
		margin: 0 0 0.7rem;
		padding: 0.95rem 1rem;
		border: 1px solid rgba(255, 255, 255, 0.1);
		border-radius: 14px;
		background: rgba(255, 255, 255, 0.05);
		transition: border-color 0.3s, background-color 0.3s;
	}

	.lp-own__tab.is-active {
		border-color: rgba(53, 186, 230, 0.7);
		background: rgba(53, 186, 230, 0.08);
	}

	.lp-own__tab .lp-own__icon,
	.lp-own__tab.is-active .lp-own__icon {
		display: block;
		position: static;
		grid-row: 1 / span 2;
		width: 2.4rem;
		height: auto;
		margin-top: 0.15rem;
	}

	.lp-own__tab strong,
	.lp-own__tab.is-active strong {
		font-size: 1rem;
		font-weight: 700;
		color: #fff;
	}

	.lp-own__tab .lp-own__text,
	.lp-own__tab.is-active .lp-own__text {
		display: block;
		margin-top: 0.3rem;
		font-size: 0.85rem;
		line-height: 1.6;
		color: rgba(255, 255, 255, 0.7);
	}

	.lp-own__tab .lp-own__bar,
	.lp-own__tab.is-active .lp-own__bar {
		display: none;
	}

	/* ---------- design cards ---------- */
	.lp-design {
		padding: 3rem 0 2.6rem;
	}

	.lp-design__cards {
		max-width: none;
		row-gap: 1.6rem;
	}

	.lp-design__cards figure {
		border-radius: 16px;
	}

	.lp-design__cards h3 {
		font-size: 1.1rem;
		margin: 0.9rem 0 0.35rem;
	}

	.lp-design__cards p {
		font-size: 0.88rem;
		line-height: 1.6;
	}

	/* ---------- cases, steps, FAQ ---------- */
	.landing .casesgallery {
		padding: 3rem 0 2.4rem;
	}

	.landing .casesgallery .svg2 {
		display: none;                      /* cut by the screen edge, sat on the steps title */
	}

	.landing section.howitworks.lp-steps {
		padding: 2.6rem 0 1rem;
	}

	.lp-faq {
		padding: 3rem 0;
	}

	.lp-faq__grid {
		row-gap: 1.3rem;
	}

	.lp-faq__list summary {
		font-size: 0.98rem;
	}

	/* ---------- form band + contact ---------- */
	.lp-cta {
		padding: 3rem 0;
	}

	.lp-cta p.subtitle {
		margin-bottom: 1.5rem;
	}

	.lp-form {
		padding: 1.4rem 1.1rem 1.3rem;
	}

	.lp-cta__contact {
		flex-direction: column;
		gap: 0;
	}

	.lp-cta__contact li {
		padding: 0.9rem 0;
	}

	.lp-cta__contact li + li {
		padding-top: 1rem;
	}

	.lp-cta__contact li > div {
		flex: 1;
		min-width: 0;
	}

	.lp-cta__contact-main {
		white-space: normal;
		word-break: break-all;
	}
}

/* ---------- trial 2026-11-14 (?hero=leger, ?hero=clair): lightened hero on phones ---------- */
@media (max-width: 699px) {
	.lp-hero--light {
		padding: 2rem 0 2.2rem;
	}

	.lp-hero--light .lp-hero__grid {
		display: block;
	}

	.lp-hero--light h1 {
		font-size: 2.45rem;
		line-height: 1.24;
		letter-spacing: 0;
		margin-bottom: 0.8rem;
	}

	.lp-hero--light .lp-hero__lead {
		font-size: 1rem;
		line-height: 1.7;
		margin-bottom: 1.4rem;
		max-width: none;
	}

	.lp-hero--light .lp-hero__actions {
		gap: 0.9rem;
	}

	.landing .lp-hero--light .lp-hero__actions .sy-btn {
		line-height: 3.3rem;
		padding: 0 1rem;
		font-size: 1.08rem;
	}

	.lp-hero__from {
		align-self: center;
		font-size: 0.95rem;
	}

	.lp-hero__from .lp-price {
		font-size: 1.7rem;
	}

	.lp-hero__note {
		justify-content: center;
		margin-top: 0.6rem;
		font-size: 0.85rem;
	}

	.lp-hero__showcase {
		margin: 2rem 0 0;
	}

	.lp-hero__win {
		border-radius: 8px;
		box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45);
	}

	.lp-hero--bright .lp-hero__win {
		box-shadow: 0 16px 34px rgba(31, 43, 65, 0.2);
	}

	.lp-hero__win::before {
		height: 22px;
		background:
			radial-gradient(circle at 11px 50%, #f12a3f 0 2.6px, transparent 3.2px),
			radial-gradient(circle at 21px 50%, #fdb813 0 2.6px, transparent 3.2px),
			radial-gradient(circle at 31px 50%, #35bae6 0 2.6px, transparent 3.2px),
			#252d3d;
	}

	.lp-hero--bright .lp-hero__win::before {
		background:
			radial-gradient(circle at 11px 50%, #f12a3f 0 2.6px, transparent 3.2px),
			radial-gradient(circle at 21px 50%, #fdb813 0 2.6px, transparent 3.2px),
			radial-gradient(circle at 31px 50%, #35bae6 0 2.6px, transparent 3.2px),
			#f1f4f9;
	}

	.lp-hero__win figcaption {
		top: 3px;
		height: 16px;
		padding: 0 0.9em;
		font-size: 0.66rem;
		line-height: 16px;
		letter-spacing: 0;
	}

	/* four cards, two per row, figure above its label */
	.lp-hero__facts {
		margin-top: 2.2rem;
		gap: 0.7rem;
	}

	.lp-hero__facts li {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
		padding: 1rem 1rem 1.05rem;
		border-radius: 12px;
	}

	.lp-hero__facts strong {
		font-size: 2.1rem;
	}

	.lp-hero__facts p {
		font-size: 0.9rem;
		letter-spacing: 0;
	}

	.lp-hero__facts img {
		height: 2.1rem;
	}
}

/* ---------- trial 2026-11-14 (?hero=accueil): promo strip, home hero and advantages on phones ---------- */
@media (max-width: 699px) {
	/* two lines, no icon; the yellow pill stays */
	.lp-promo__inner {
		flex-wrap: wrap;
		gap: 0.15rem 0.6rem;
		min-height: 0;
		padding: 0.6rem 0;
		font-size: 0.9rem;
		letter-spacing: 0;
	}

	.lp-promo__icon {
		display: none;
	}

	.lp-promo strong {
		flex: 0 0 100%;
	}

	.lp-promo__cta {
		margin-left: 0;
		padding: 0 0.8rem;
		font-size: 0.82rem;
		line-height: 1.7rem;
	}

	.lp-keyfacts {
		padding: 2.4rem 0 0;
	}

	.lp-keyfacts__list {
		row-gap: 1.8rem;
	}

	.lp-keyfacts__list li {
		gap: 0.4rem;
		padding: 0 0.5rem;
	}

	.lp-keyfacts__list strong {
		height: 2.9rem;
		font-size: 2.5rem;
		line-height: 2.9rem;
		letter-spacing: 0;
	}

	.lp-keyfacts__list a {
		height: 2.9rem;
	}

	.lp-keyfacts__list p {
		font-size: 0.92rem;
		letter-spacing: 0;
	}

	body.lp-hero-home .lp-offer {
		padding-top: 2rem;
	}
}

/* test ?hero=accueil&visuel=sites on phones: the windows sit above the text panel, with room under the astronaut */
@media (max-width: 699px) {
	.lp-home-hero__sites .lp-hero__showcase {
		width: 100%;
		margin: 1.4rem 0 1.8rem;
	}

	.lp-home-hero__sites .lp-hero__win {
		border-radius: 8px;
	}
}
