/* StyleGauge: shared components and homepage sections. Values mirror the prototype HTML. */

.sg-main.sg-main > * { margin-block: 0; }

/* ---------- Layout helpers ---------- */
.sg-wrap { max-width: var(--sg-container); margin-left: auto; margin-right: auto; padding-left: var(--sg-gutter); padding-right: var(--sg-gutter); }
.sg-section { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.sg-section--lg { padding-top: clamp(56px, 7vw, 112px); padding-bottom: clamp(56px, 7vw, 112px); }
.sg-stack-16, .sg-stack-28, .sg-stack-40, .sg-stack-44 { display: flex; flex-direction: column; }
.sg-stack-16 { gap: 16px; }
.sg-stack-28 { gap: 28px; }
.sg-stack-40 { gap: 40px; }
.sg-stack-44 { gap: 44px; }
.sg-maxw-440 { max-width: 440px; }
.sg-maxw-500 { max-width: 500px; }
.sg-maxw-620 { max-width: 620px; }
.sg-maxw-640 { max-width: 640px; }

.sg-band--white { background: var(--sg-white); border-top: 1px solid var(--sg-border); border-bottom: 1px solid var(--sg-border); }
.sg-band--top { border-bottom: 0; }
.sg-band--ink { background: var(--sg-ink); color: var(--sg-bg); }

.sg-grid { display: grid; }
.sg-grid--300 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.sg-grid--fill { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.sg-grid--articles { gap: 32px 20px; }
.sg-grid--280 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 28px 20px; }
.sg-grid--460 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 20px; }

.sg-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; }
.sg-split-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px 64px; align-items: end; }
.sg-split-head__side { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }

/* ---------- Type ---------- */
.sg-eyebrow { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; color: var(--sg-accent); }
.sg-eyebrow--soft { color: #9fb4ee; }
.sg-accent { font-family: var(--sg-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.sg-h2 { margin: 0; font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -0.03em; font-weight: 600; line-height: 1.08; text-wrap: balance; }
.sg-h2-xl { margin: 0; font-size: clamp(34px, 4.4vw, 60px); letter-spacing: -0.035em; font-weight: 600; line-height: 1.02; }
.sg-intro { margin: 0; font-size: 16px; line-height: 1.55; color: var(--sg-muted); text-wrap: pretty; }
.sg-intro--relaxed { line-height: 1.6; }
.sg-label-sm { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; color: var(--sg-muted-2); }
.sg-textlink { font-size: 15px; font-weight: 600; border-bottom: 1px solid var(--sg-ink); padding-bottom: 2px; }

/* ---------- Buttons and badges ---------- */
.sg-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.sg-btn {
	display: inline-block; padding: 15px 24px; border-radius: 999px;
	font-weight: 600; font-size: 15px; white-space: nowrap;
	background: var(--sg-ink); color: var(--sg-bg);
}
.sg-btn:hover { color: var(--sg-bg); }
.sg-btn--outline { background: transparent; color: var(--sg-ink); border: 1px solid var(--sg-ink); }
.sg-btn--outline:hover { color: var(--sg-accent); }
.sg-btn--light { background: var(--sg-bg); color: var(--sg-ink); }
.sg-btn--light:hover { color: var(--sg-ink); }
.sg-btn--ghost-light { background: transparent; color: var(--sg-bg); border: 1px solid rgba(247, 245, 241, 0.5); }
.sg-btn--ghost-light:hover { color: var(--sg-bg); }

.sg-badge { font-size: 12px; font-weight: 600; color: var(--sg-accent); background: var(--sg-accent-tint); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.sg-badge--sm { font-size: 11px; padding: 3px 8px; }
.sg-badge--outline { color: var(--sg-muted-2); background: none; border: 1px solid var(--sg-border-strong); padding: 3px 10px; }

/* ---------- Image frame (aspect ratio owned by the frame, image covers it) ---------- */
.sg-frame { position: relative; width: 100%; overflow: hidden; border-radius: 4px; background: #ebe7df; }
.sg-frame__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.sg-frame--fill { height: 100%; }

/* ---------- Hero (split) ---------- */
.sg-hero {
	max-width: var(--sg-container); margin: 0 auto;
	padding: clamp(32px, 6vw, 72px) var(--sg-gutter) clamp(40px, 6vw, 80px);
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
	gap: clamp(32px, 5vw, 72px); align-items: center;
}
.sg-hero__text { display: flex; flex-direction: column; gap: 28px; max-width: 600px; }
.sg-hero__title { margin: 0; font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; text-wrap: balance; }
.sg-hero__lead { margin: 0; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; color: var(--sg-muted); max-width: 520px; text-wrap: pretty; }
.sg-hero__links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--sg-border); padding-top: 20px; gap: 16px; }
.sg-hero__links a { display: flex; flex-direction: column; gap: 4px; }
.sg-hero__link-t { font-size: 15px; font-weight: 600; }
.sg-hero__link-d { font-size: 13px; color: var(--sg-muted-2); }
.sg-hero__media { position: relative; aspect-ratio: 4 / 5; max-height: 720px; width: 100%; }
.sg-hero__card {
	position: absolute; left: clamp(-24px, -2vw, 0px); bottom: 28px; width: min(300px, 80%);
	background: var(--sg-white); border: 1px solid var(--sg-border); border-radius: 6px; padding: 18px;
	box-shadow: 0 18px 40px -20px rgba(19, 32, 59, 0.35);
	display: flex; flex-direction: column; gap: 12px;
}
.sg-hero__card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sg-hero__card-title { font-size: 14px; font-weight: 600; }
.sg-hero__swatches { display: flex; gap: 6px; }
.sg-hero__swatches span { flex: 1; height: 28px; border-radius: 2px; }
.sg-hero__swatches span.is-light { border: 1px solid var(--sg-border); }
.sg-hero__card-caption { font-size: 12px; color: var(--sg-muted-2); line-height: 1.5; }

/* ---------- Audience card ---------- */
.sg-aud-card { display: flex; flex-direction: column; gap: 18px; }
.sg-aud-card__body { display: flex; flex-direction: column; gap: 8px; }
.sg-aud-card__row { display: flex; justify-content: space-between; align-items: baseline; }
.sg-aud-card__title { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.sg-aud-card__link { font-size: 14px; color: var(--sg-accent); font-weight: 600; }
.sg-aud-card__text { font-size: 14px; color: var(--sg-muted-2); line-height: 1.5; }

/* ---------- Country card ---------- */
.sg-country-card { display: flex; flex-direction: column; gap: 14px; }
.sg-country-card__media { position: relative; }
.sg-country-card__num {
	position: absolute; top: 12px; left: 12px; pointer-events: none;
	background: var(--sg-bg); color: var(--sg-ink);
	font-size: 11px; font-weight: 600; letter-spacing: 0.12em; padding: 5px 9px; border-radius: 2px;
}
.sg-country-card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--sg-border); padding-bottom: 14px; }
.sg-country-card__name { font-family: var(--sg-serif); font-size: 32px; line-height: 1; }
.sg-country-card__cities { font-size: 13px; color: var(--sg-muted-2); text-align: right; }
.sg-country-card__note { font-size: 14px; color: var(--sg-muted); line-height: 1.5; }

/* ---------- Outfit Generator preview ---------- */
.sg-og-preview { background: var(--sg-bg); border: 1px solid var(--sg-border); border-radius: 6px; padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; gap: 24px; }
.sg-og-preview__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sg-og-preview__title { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.sg-og-preview__panel { display: flex; flex-direction: column; gap: 24px; }
.sg-og-preview__panel[hidden] { display: none; }
.sg-og-preview__why { margin: 0; font-size: 13px; color: var(--sg-muted-2); }

.sg-segmented { display: flex; gap: 4px; background: #ebe7df; padding: 4px; border-radius: 999px; align-self: flex-start; }
.sg-segmented__btn {
	border: 0; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600;
	padding: 9px 18px; border-radius: 999px; white-space: nowrap;
	background: transparent; color: var(--sg-ink);
}
.sg-segmented__btn[aria-pressed="true"] { background: var(--sg-ink); color: var(--sg-bg); }

.sg-og-inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.sg-og-input { background: var(--sg-white); border: 1px solid var(--sg-border); border-radius: 4px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.sg-og-input__k { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; color: var(--sg-muted-2); }
.sg-og-input__v { font-size: 14px; font-weight: 600; }

/* Outfit list: colour swatch + name + role */
.sg-outfit-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--sg-border); }
.sg-outfit-list__item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--sg-border); }
.sg-outfit-list__swatch { width: 32px; height: 32px; border-radius: 3px; border: 1px solid rgba(19, 32, 59, 0.12); flex: 0 0 auto; }
.sg-outfit-list__name { font-size: 15px; font-weight: 500; flex: 1; }
.sg-outfit-list__role { font-size: 12px; color: var(--sg-muted-2); }

/* ---------- Tool card ---------- */
.sg-tool-stack { display: grid; grid-template-rows: repeat(3, auto); gap: 20px; }
.sg-tool-card { background: var(--sg-bg); border: 1px solid var(--sg-border); border-radius: 6px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.sg-tool-card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sg-tool-card__name { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.sg-tool-card__desc { font-size: 14px; color: var(--sg-muted); line-height: 1.5; }
.sg-tool-card__example { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sg-tool-card__input { font-size: 13px; font-weight: 600; }
.sg-tool-card__arrow { font-size: 13px; color: var(--sg-muted-2); }
.sg-dot { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(19, 32, 59, 0.12); }

/* ---------- AI Style (navy) ---------- */
.sg-ai { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(36px, 5vw, 72px); align-items: center; }
.sg-ai__title { margin: 0; font-size: clamp(32px, 3.8vw, 52px); letter-spacing: -0.03em; font-weight: 600; line-height: 1.05; text-wrap: balance; }
.sg-ai__intro { margin: 0; font-size: 16px; line-height: 1.6; color: #c9cfdb; max-width: 520px; }
.sg-ai-rows { display: flex; flex-direction: column; border-top: 1px solid rgba(247, 245, 241, 0.18); }
.sg-ai-row { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(247, 245, 241, 0.18); color: var(--sg-bg); }
.sg-ai-row:hover { color: var(--sg-bg); }
.sg-ai-row__num { font-size: 13px; color: #9fb4ee; font-weight: 600; width: 24px; }
.sg-ai-row__body { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.sg-ai-row__name { font-size: 17px; font-weight: 600; }
.sg-ai-row__desc { font-size: 14px; color: #c9cfdb; }
.sg-ai-row__status { font-size: 12px; font-weight: 600; border: 1px solid rgba(247, 245, 241, 0.35); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }

/* ---------- Article card ---------- */
.sg-article-card { display: flex; flex-direction: column; gap: 16px; }
.sg-article-card__tags { display: flex; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; color: var(--sg-muted-2); }
.sg-article-card__tag { color: var(--sg-accent); }
.sg-article-card__title { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; text-wrap: balance; }
.sg-article-card__meta { font-size: 14px; color: var(--sg-muted-2); }

/* ---------- Style Engine ---------- */
.sg-engine { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px 64px; align-items: start; }
.sg-engine__title { margin: 0; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; font-weight: 600; line-height: 1.1; text-wrap: balance; }
.sg-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; }
.sg-chip { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; padding: 11px 16px; border: 1px solid var(--sg-border-strong); border-radius: 999px; background: var(--sg-bg); }
.sg-chip__n { font-size: 12px; color: var(--sg-accent); font-weight: 600; }

/* ---------- CTA band ---------- */
.sg-cta { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); }
.sg-cta__inner { border-top: 1px solid var(--sg-ink); border-bottom: 1px solid var(--sg-ink); padding: clamp(36px, 5vw, 64px) 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; }
.sg-cta__title { font-size: clamp(32px, 4.4vw, 60px); }
