/* Home, lower half: method, why, testimonials, FAQ, latest articles. */

/* ---------- Shared two-column intro (method, FAQ) ---------- */
.od-method__inner,
.od-faq__inner { display: grid; grid-template-columns: minmax(0, 440fr) minmax(0, 700fr); column-gap: 60px; align-items: start; }
.od-method__intro,
.od-faq__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; position: sticky; top: calc(var(--od-header-h) + 40px); }
.od-method__title,
.od-faq__title { font-size: var(--od-fs-h3); line-height: 1.3; font-weight: 600; text-wrap: balance; }
.od-method__text,
.od-faq__text { font-size: var(--od-fs-b2); color: var(--od-grey-600); max-width: 400px; }
.od-method__intro .od-btn,
.od-faq__intro .od-btn { margin-top: 12px; }

/* ---------- Method timeline ---------- */
.od-method__steps { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.od-method__step { position: relative; padding: 0 0 80px 68px; }
.od-method__step:last-child { padding-bottom: 0; }
.od-method__step::before { content: ""; position: absolute; left: 13.5px; top: 14px; bottom: -14px; width: 1px; background: var(--od-brand); opacity: 0.55; }
.od-method__step:last-child::before { content: none; }
.od-method__marker { position: absolute; left: 0; top: 8px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid currentColor; background: var(--od-white); color: var(--od-brand); }
.od-method__marker::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: currentColor; }
.od-method__num { font-size: var(--od-fs-b1); line-height: 1.6; color: var(--od-brand); }
.od-method__corner { position: absolute; right: 0; top: 14px; width: 8px; height: 8px; border-top: 2px solid var(--od-brand); border-right: 2px solid var(--od-brand); }
.od-method__name { display: flex; align-items: center; gap: 12px; margin-top: 28px; font-size: var(--od-fs-h3); line-height: 1.3; font-weight: 500; }
.od-method__name::after { content: ""; flex: none; width: 1em; height: 4px; margin-top: 0.1em; background: var(--od-brand); }
.od-method__desc { margin-top: 20px; font-size: var(--od-fs-b3); color: var(--od-grey-500); }
.od-method__list { display: flex; flex-direction: column; gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; font-size: var(--od-fs-b3); color: var(--od-grey-700); }

@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.od-method__marker { animation: od-method-on linear both; animation-timeline: view(); animation-range: entry 100% cover 45%; }
		.od-method__step::before { animation: od-method-line linear both; animation-timeline: view(); animation-range: entry 30% cover 55%; }
	}
}
@keyframes od-method-on { from { color: var(--od-grey-300); } 90% { color: var(--od-grey-300); } to { color: var(--od-brand); } }
@keyframes od-method-line { from { background: var(--od-grey-200); opacity: 1; } to { background: var(--od-brand); opacity: 0.55; } }

/* ---------- Why companies choose Odduel ---------- */
.od-why__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(292px, auto); gap: 16px; }
.od-why__card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px; overflow: hidden; background: var(--od-grey-40); isolation: isolate; }
.od-why__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.od-why__title { font-size: var(--od-fs-h5); line-height: 1.4; font-weight: 600; text-wrap: balance; }
.od-why__title--sm { font-size: var(--od-fs-h6); }
.od-why__text { font-size: var(--od-fs-b3); color: var(--od-grey-700); }
.od-why__accent { font-size: var(--od-fs-b2); font-weight: 500; color: var(--od-brand); }
.od-why__foot { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.od-why__icon { width: 28px; height: 28px; }
.od-why__stat { font-size: var(--od-fs-h1); line-height: 1.1; font-weight: 600; letter-spacing: var(--od-track-display); color: var(--od-grey-800); }
.od-why__stat span { margin-left: 0.15em; font-size: 0.45em; font-weight: 500; letter-spacing: 0; color: var(--od-grey-500); }

/* placement, desktop: rows 1-2, 3-4, 5-6 */
.od-why__card--one-roof { grid-column: 1 / 3; grid-row: 1 / 3; }
.od-why__card--figure { grid-column: 3 / 5; grid-row: 1; }
.od-why__card--grow { grid-column: 3 / 5; grid-row: 2; }
.od-why__card--people { grid-column: 5 / 7; grid-row: 1 / 3; }
.od-why__card--after { grid-column: 1 / 4; grid-row: 3; }
.od-why__card--stat-a { grid-column: 1 / 2; grid-row: 4; }
.od-why__card--stat-b { grid-column: 2 / 4; grid-row: 4; }
.od-why__card--goals { grid-column: 4 / 7; grid-row: 3 / 5; }
.od-why__card--lead { grid-column: 1 / 3; grid-row: 5 / 7; }
.od-why__card--plan { grid-column: 3 / 5; grid-row: 5 / 7; }
.od-why__card--costs { grid-column: 5 / 7; grid-row: 5; }
.od-why__card--own { grid-column: 5 / 7; grid-row: 6; }
/* the two small figures share the left half equally */
@media (min-width: 1025px) {
	.od-why__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
	.od-why__card--one-roof, .od-why__card--lead { grid-column: 1 / 5; }
	.od-why__card--figure, .od-why__card--grow, .od-why__card--plan { grid-column: 5 / 9; }
	.od-why__card--people, .od-why__card--costs, .od-why__card--own { grid-column: 9 / 13; }
	.od-why__card--after { grid-column: 1 / 7; }
	.od-why__card--stat-a { grid-column: 1 / 4; }
	.od-why__card--stat-b { grid-column: 4 / 7; }
	.od-why__card--goals { grid-column: 7 / 13; }
}

.od-why__card--brand { background: var(--od-brand); color: var(--od-white); gap: 4px; }
.od-why__card--brand .od-why__icon { filter: brightness(0) invert(1); margin-bottom: 8px; }
.od-why__card--brand .od-why__stat,
.od-why__card--brand .od-why__stat span,
.od-why__card--brand .od-why__text { color: var(--od-white); }
.od-why__card--brand .od-why__text { font-size: var(--od-fs-b4); max-width: 340px; }

.od-why__card--stat { align-items: center; justify-content: center; text-align: center; gap: 12px; }
.od-why__card--stat .od-why__text { font-size: var(--od-fs-b4); }

.od-why__card--people { align-items: center; text-align: center; gap: 12px; padding-top: 48px; }
.od-why__fan { display: flex; flex-direction: column; align-items: center; margin-bottom: 8px; }
.od-why__fan-icons { display: flex; justify-content: space-between; width: 300px; max-width: 100%; }
.od-why__fan-lines { width: 264px; max-width: 88%; height: auto; margin-top: 12px; }
.od-why__fan-stack { margin-top: 12px; }
.od-why__card--people .od-why__text { max-width: 330px; }

.od-why__card--goals .od-why__bg { object-position: 50% 100%; }
.od-why__card--after .od-why__bg { object-position: 50% 62%; }
.od-why__card--costs .od-why__bg { object-position: 50% 58%; }
.od-why__card--goals .od-why__text { max-width: 540px; }
/* keep longer copy clear of the photo subject */
.od-why__card--after .od-why__text { max-width: 320px; }
.od-why__card--grow .od-why__text { max-width: 270px; }
.od-why__card--own .od-why__bg,
.od-why__card--grow .od-why__bg,
.od-why__card--lead .od-why__bg,
.od-why__card--plan .od-why__bg { object-position: 50% 100%; }
.od-why__badge { align-self: flex-start; padding: 3px 11px; border: 1px solid var(--od-grey-700); font-size: var(--od-fs-b3); font-weight: 500; color: var(--od-grey-800); }
.od-why__minis { display: flex; gap: 14px; margin-top: 4px; filter: grayscale(1) brightness(0.9); opacity: 0.7; }
.od-why__swatches { display: flex; gap: 12px; margin-top: 8px; }
.od-why__swatches span { width: 12px; height: 12px; background: var(--od-brand); }
.od-why__swatches span:nth-child(2) { background: var(--od-black); }
.od-why__swatches span:nth-child(3) { background: var(--od-grey-500); }
.od-why__swatches span:nth-child(4) { background: var(--od-grey-200); }
.od-why__swatches span:nth-child(5) { background: var(--od-white); }

/* ---------- Testimonials ---------- */
.od-voices__body { display: flex; flex-direction: column; gap: 48px; }
.od-voices__featured { display: grid; grid-template-columns: 100px minmax(0, 400fr) minmax(0, 700fr); }
.od-voices__ruler { width: 60px; background: repeating-linear-gradient(180deg, var(--od-grey-200) 0 1px, transparent 1px 19px); }
.od-voices__portrait { position: relative; min-height: 555px; overflow: hidden; background: var(--od-grey-40); }
.od-voices__portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.od-voices__panel { position: relative; display: flex; flex-direction: column; gap: 20px; padding: 48px; background: var(--od-grey-20) url(../../img/home-bottom-testi-quote-mark.svg) no-repeat right 0 top -30px / 300px; }
.od-voices__stars { display: flex; gap: 12px; filter: grayscale(1); opacity: 0.45; }
.od-voices__panel .od-testimonials { flex: 1; }
.od-testimonials--featured .od-testimonial { height: 100%; gap: 0; }
.od-testimonials--featured .od-testimonial__quote { font-size: var(--od-fs-h4); line-height: 1.4; font-weight: 500; color: var(--od-grey-900); padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--od-grey-300); }
.od-testimonials--featured .od-testimonial__author { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: auto; }
.od-testimonials--featured .od-testimonial__avatar { display: none; }
.od-testimonials--featured .od-testimonial__name { font-size: var(--od-fs-b1); font-weight: 500; color: var(--od-grey-800); }
.od-testimonials--featured .od-testimonial__role { font-size: var(--od-fs-b3); color: var(--od-grey-500); }

.od-voices__carousel { position: relative; }
.od-voices__carousel .od-testimonials--carousel { gap: 32px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); }
.od-testimonials--carousel .od-testimonial { justify-content: space-between; gap: 48px; min-height: 520px; padding: 32px; background: var(--od-grey-20) url(../../img/home-bottom-testi-quote-mark.svg) no-repeat right 0 top -20px / 240px; }
.od-testimonials--carousel .od-testimonial__quote { font-size: var(--od-fs-b1); line-height: 1.6; font-weight: 500; color: var(--od-grey-900); }
.od-testimonials--carousel .od-testimonial__author { display: flex; flex-direction: column; align-items: stretch; }
.od-testimonials--carousel .od-testimonial__avatar { width: 64px; height: 64px; margin-bottom: 20px; }
.od-testimonials--carousel .od-testimonial__name { font-size: var(--od-fs-b2); font-weight: 500; color: var(--od-grey-800); padding-bottom: 4px; border-bottom: 1px solid var(--od-grey-50); }
.od-testimonials--carousel .od-testimonial__role { padding-top: 12px; font-size: var(--od-fs-b3); color: var(--od-grey-500); }
.od-voices__nav { display: none; justify-content: center; gap: 12px; margin-top: 32px; }
.od-voices__arrow { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--od-grey-900); cursor: pointer; transition: background-color 0.3s var(--od-ease); }
.od-voices__arrow:hover, .od-voices__arrow:focus-visible { background: var(--od-brand); }

/* ---------- FAQ ---------- */
.od-faq__list { display: flex; flex-direction: column; }
.od-faq__item { border-bottom: 1px solid var(--od-grey-200); }
.od-faq__item:last-child { border-bottom: 0; }
.od-faq__q { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; font-size: var(--od-fs-b1); line-height: 1.6; font-weight: 500; color: var(--od-grey-900); cursor: pointer; list-style: none; transition: color 0.3s var(--od-ease); }
.od-faq__item:first-child .od-faq__q { padding-top: 0; }
.od-faq__q::-webkit-details-marker { display: none; }
.od-faq__q::after { content: ""; flex: none; width: 28px; height: 28px; background: linear-gradient(var(--od-brand), var(--od-brand)) center / 100% 1.5px no-repeat, linear-gradient(var(--od-brand), var(--od-brand)) center / 1.5px 100% no-repeat; transition: transform 0.4s var(--od-ease); }
.od-faq__item[open]:not(.is-closing) .od-faq__q::after { transform: rotate(45deg); }
.od-faq__q:hover { color: var(--od-brand); }
.od-faq__q:focus-visible { outline: 2px solid var(--od-brand); outline-offset: 4px; }
.od-faq__item[open] .od-faq__q { padding-bottom: 12px; }
.od-faq__item { overflow: hidden; }
.od-faq__a { max-width: 620px; padding-bottom: 24px; font-size: var(--od-fs-b2); color: var(--od-grey-600); }

/* ---------- Latest articles ---------- */
.od-latest__grid { width: 100%; }
.od-latest .od-posts--grid { align-items: start; }
.od-latest .od-post-card__media:has(.od-media__placeholder) .od-media__placeholder { visibility: hidden; }
.od-latest .od-post-card:nth-child(3n + 1) .od-post-card__media:has(.od-media__placeholder) { background: var(--od-grey-40) url(../../img/home-bottom-blog-headset.webp) center / cover no-repeat; }
.od-latest .od-post-card:nth-child(3n + 2) .od-post-card__media:has(.od-media__placeholder) { background: var(--od-grey-40) url(../../img/home-bottom-blog-portrait.webp) center / cover no-repeat; }
.od-latest .od-post-card:nth-child(3n) .od-post-card__media:has(.od-media__placeholder) { background: var(--od-grey-40) url(../../img/home-bottom-blog-car.webp) center / cover no-repeat; }
.od-latest .od-post-card__media { aspect-ratio: 387 / 337; }
.od-latest .od-post-card:nth-child(3n + 2) .od-post-card__media { aspect-ratio: 387 / 237; }
.od-latest .od-post-card:nth-child(3n) .od-post-card__media { aspect-ratio: 1; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
	.od-method__inner { grid-template-columns: minmax(0, 300fr) minmax(0, 414fr); column-gap: 32px; }
	.od-faq__inner { grid-template-columns: minmax(0, 260fr) minmax(0, 440fr); column-gap: 46px; }
	.od-method__step { padding-left: 60px; }
	.od-why__card--grow .od-why__text { max-width: 220px; }
	.od-latest .od-posts--grid { row-gap: 60px; }

	.od-why__grid { grid-auto-rows: minmax(260px, auto); }
	.od-why__card--one-roof { grid-column: 1 / 4; grid-row: 1 / 3; }
	.od-why__card--figure { grid-column: 4 / 7; grid-row: 1; }
	.od-why__card--grow { grid-column: 4 / 7; grid-row: 2; }
	.od-why__card--people { grid-column: 1 / 7; grid-row: 3; padding-bottom: 40px; }
	.od-why__card--after { grid-column: 1 / 7; grid-row: 4; }
	.od-why__card--stat-a { grid-column: 1 / 4; grid-row: 5; }
	.od-why__card--stat-b { grid-column: 4 / 7; grid-row: 5; }
	.od-why__card--goals { grid-column: 1 / 7; grid-row: 6 / 8; }
	.od-why__card--lead { grid-column: 1 / 4; grid-row: 8 / 10; }
	.od-why__card--plan { grid-column: 4 / 7; grid-row: 8 / 10; }
	.od-why__card--costs { grid-column: 1 / 4; grid-row: 10; }
	.od-why__card--own { grid-column: 4 / 7; grid-row: 10; }

	.od-voices__featured { grid-template-columns: minmax(0, 300fr) minmax(0, 446fr); }
	.od-voices__ruler { display: none; }
	.od-voices__portrait { min-height: 420px; }
	.od-voices__panel { padding: 32px; background-size: 200px; }
	.od-voices__nav { display: flex; }
	.od-testimonials--carousel .od-testimonial { min-height: 420px; }
	.od-voices__carousel .od-testimonials--carousel { gap: 20px; -webkit-mask-image: none; mask-image: none; }

	.od-faq__q { padding: 20px 0; }
	.od-faq__a { padding-bottom: 20px; }
}

/* ---------- Narrow tablet: intro above the list ---------- */
@media (max-width: 700px) {
	.od-method__inner,
	.od-faq__inner { grid-template-columns: minmax(0, 1fr); row-gap: 56px; }
	.od-method__intro,
	.od-faq__intro { position: static; }
	.od-method__text,
	.od-faq__text { max-width: 520px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
	.od-method__inner,
	.od-faq__inner { row-gap: 40px; }
	.od-method__step { padding: 0 0 56px 44px; }
	.od-method__marker { top: 4px; width: 24px; height: 24px; }
	.od-method__marker::after { inset: 6px; }
	.od-method__step::before { left: 11.5px; }
	.od-method__name { margin-top: 16px; }
	.od-method__name::after { height: 3px; }
	.od-method__desc { margin-top: 12px; }
	.od-method__list { margin-top: 20px; gap: 12px; }

	.od-why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: 12px; }
	.od-why__card { grid-column: 1 / -1; grid-row: auto; padding: 20px; min-height: 260px; }
	.od-why__card--one-roof, .od-why__card--goals, .od-why__card--lead, .od-why__card--plan { min-height: 460px; }
	.od-why__card--stat { grid-column: auto; min-height: 220px; padding: 20px 12px; }
	.od-why__card--figure { min-height: 0; }
	/* photo sits in the lower part of the card and fades in under the copy */
	.od-why__card--after { min-height: 300px; }
	.od-why__card--goals { min-height: 500px; }
	.od-why__card--after .od-why__bg, .od-why__card--goals .od-why__bg { top: auto; bottom: 0; height: 66%; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%); mask-image: linear-gradient(180deg, transparent 0, #000 22%); }
	.od-why__card--after .od-why__text { max-width: none; }
	.od-why__card--grow .od-why__text { max-width: 230px; }
	.od-latest .od-posts--grid { row-gap: 40px; }

	.od-voices__body { gap: 32px; }
	.od-voices__featured { grid-template-columns: minmax(0, 1fr); }
	.od-voices__portrait { min-height: 0; aspect-ratio: 350 / 380; }
	.od-voices__panel { padding: 24px 20px; background-size: 160px; }
	.od-testimonials--carousel .od-testimonial { min-height: 380px; padding: 24px 20px; gap: 32px; background-size: 160px; }
	.od-voices__nav { margin-top: 24px; }

	.od-faq__q { padding: 16px 0; gap: 16px; }
	.od-faq__q::after { width: 22px; height: 22px; }
	.od-faq__a { padding-bottom: 16px; }
}
