/* =============================================================
   Dotdigital Help Centre — landing page
   Modern, hand-authored CSS (tokens + minimal reset + components)
   ============================================================= */

/* ---- Design tokens ---------------------------------------- */
:root {
	color-scheme: light;

	/* Brand palette */
	--color-bg:          #ffffff;
	--color-surface:     #ffffff;
	--color-hero:        #f3eeda;
	--color-hero-ink:    #403b26;
	--color-ink:         #111827;   /* headings */
	--color-text:        #374151;   /* body text */
	--color-muted:       #6b7280;   /* secondary text */
	--color-border:      #deddda;
	--color-border-strong:#cbcabf;
	--color-accent:        #ec58c4;   /* primary button bg */
	--color-accent-hover:  #f5a0da;   /* primary button bg (hover) */
	--color-secondary:     #ffc5f0;   /* secondary button bg */
	--color-secondary-hover:#f5a0da;  /* secondary button bg (hover) */
	--color-accent-ink:    #ffffff;
	--color-cta:           #000000;   /* text button */
	--color-cta-hover:     #bc158f;   /* text button (hover) */
	--color-link:          #737373;   /* text link */
	--color-link-hover:    #000000;   /* text link (hover) */
	--color-focus:       #1d4ed8;

	/* Typography
	   Season Mix / Season Sans are Dotdigital brand fonts and must be
	   self-hosted (see fonts note at the bottom of this file). Until then
	   the stack falls back to Inter, which is loaded in the HTML head. */
	--font-display: 'Season Mix', 'Inter', system-ui, -apple-system, sans-serif;
	--font-sans:    'Season Sans', 'Inter', system-ui, -apple-system, sans-serif;
	--font-body:    'Inter', system-ui, -apple-system, sans-serif;

	/* Fluid type scale (min .. max) */
	--text-hero:  clamp(2.25rem, 1.45rem + 3.6vw, 3.5rem);   /* 36 → 56 */
	--text-h2:    clamp(1.5rem, 1.18rem + 1.4vw, 2rem);      /* 24 → 32 */
	--text-h3:    clamp(1.25rem, 1.12rem + 0.6vw, 1.5rem);   /* 20 → 24 */
	--text-lead:  clamp(1.0625rem, 0.96rem + 0.5vw, 1.375rem);/* 17 → 22 */
	--text-body:  1rem;
	--text-eyebrow: 0.875rem;

	/* Spacing */
	--space-3xs: 0.25rem;
	--space-2xs: 0.5rem;
	--space-xs:  0.75rem;
	--space-sm:  1rem;
	--space-md:  1.5rem;
	--space-lg:  2.5rem;
	--space-xl:  clamp(3rem, 2rem + 4vw, 5rem);

	/* Layout */
	--content-max: 1280px;
	--gutter: clamp(1.25rem, 0.5rem + 3vw, 3.5rem);

	/* Shape & motion */
	--radius-sm: 12px;
	--radius:    24px;
	--radius-pill: 999px;
	--shadow-card: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06);
	--shadow-card-hover: 0 2px 4px rgba(16,24,40,.06), 0 16px 40px rgba(16,24,40,.12);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---- Minimal modern reset --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	min-height: 100svh;
	font-family: var(--font-body);
	font-size: var(--text-body);
	line-height: 1.55;
	color: var(--color-text);
	background-color: var(--color-bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, svg, object { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; cursor: pointer; }

h1, h2, h3 { line-height: 1.15; text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible {
	outline: 3px solid var(--color-focus);
	outline-offset: 3px;
	border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .001ms !important;
		transition-duration: .001ms !important;
	}
}

/* ---- Shared layout helpers -------------------------------- */
.container {
	width: 100%;
	max-width: var(--content-max);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* ---- Site header ------------------------------------------ */
.site-header {
	padding-block: var(--space-md);
	background-color: var(--color-bg);
}

.site-header__logo {
	display: inline-flex;
	align-items: center;
	border-radius: 6px;
}

.site-header__logo img { width: 132px; height: auto; }

/* ---- Hero (cream band) ------------------------------------ */
.hero {
	background-color: var(--color-hero);
	color: var(--color-hero-ink);
	padding-block: var(--space-xl);
}

.hero__intro { max-width: 60ch; margin-bottom: var(--space-lg); }

.hero__title {
	font-family: var(--font-display);
	font-size: var(--text-hero);
	font-weight: 580;
	letter-spacing: -0.02em;
	color: #000000;
}

.hero__subtitle {
	margin-top: var(--space-sm);
	font-family: var(--font-sans);
	font-size: var(--text-lead);
	font-weight: 500;
	line-height: 1.4;
	color: #737373;
}

/* ---- Product cards ---------------------------------------- */
.product-grid {
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: var(--space-md);
}

.card {
	display: flex;
	flex-direction: column;
	gap: var(--space-sm);
	height: 100%;
	padding: var(--space-lg);
	background-color: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	transition: background-color .2s var(--ease), border-color .2s var(--ease);
}

.card:hover,
.card:focus-within {
	background-color: #F8F7F1;
	border-color: var(--color-border-strong);
}

.card__title {
	font-family: var(--font-display);
	font-size: var(--text-h2);
	font-weight: 580;
	letter-spacing: -0.01em;
	color: var(--color-ink);
}

.card__desc { color: var(--color-text); }

.card__topics {
	list-style: none;
	padding: 0;
	margin-block: var(--space-2xs);
	display: flex;
	flex-direction: column;
	gap: var(--space-3xs);
	color: var(--color-muted);
}

.card__topics a {
	color: var(--color-link);
	text-decoration: none;
	transition: color .15s var(--ease);
}
.card__topics a:hover {
	color: var(--color-link-hover);
	text-decoration-line: underline;
	text-decoration-style: dotted;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.card__topics li { position: relative; padding-left: 1.1em; }
.card__topics li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 5px; 
	height: 5px;
	border-radius: 50%;
	background-color: var(--color-hero-ink);
}

.card .cta { margin-top: auto; }

/* ---- Text CTA with arrow (links) -------------------------- */
.cta {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2xs);
	align-self: flex-start;
	font-family: var(--font-sans);
	font-size: var(--text-body);
	font-weight: 650;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--color-cta);
	padding-block: var(--space-3xs);
	transition: color .15s var(--ease);
}

.cta .arrow {
	width: 1.25rem; height: 1.25rem;
	flex-shrink: 0;
	transition: transform .25s var(--ease);
}

.cta:hover { color: var(--color-cta-hover); }
.cta:hover .arrow { transform: translateX(4px); }

/* ---- Resource row (support / academy / more) -------------- */
.resources {
	margin-top: var(--space-xl);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: var(--space-lg);
}

.resource { display: flex; flex-direction: column; gap: var(--space-sm); }

.resource__icon { width: 44px; height: 44px; }

.resource__title {
	font-family: var(--font-display);
	font-size: var(--text-h3);
	font-weight: 580;
	color: var(--color-ink);
}

.resource__text { color: var(--color-hero-ink); opacity: .85; }

.resource__link {
	align-self: flex-start;
	font-family: var(--font-sans);
	font-weight: 600;
	color: var(--color-link);
	text-decoration-line: underline;
	text-decoration-style: dotted;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}
.resource__link:hover { color: var(--color-link-hover); }

.resource__more {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	flex-wrap: wrap;
}
.resource__more .sep { color: var(--color-muted); }

/* ---- Help section (What's new / Need more help) ----------- */
.help {
	padding-block: var(--space-xl);
	background-color: var(--color-bg);
}

.help__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	gap: var(--space-xl);
	align-items: start;
}

.help__heading {
	font-family: var(--font-display);
	font-size: var(--text-h2);
	font-weight: 580;
	letter-spacing: -0.01em;
	color: var(--color-ink);
}

.help__text { margin-top: var(--space-2xs); color: var(--color-muted); }

.linklist {
	margin-top: var(--space-md);
	display: flex;
	flex-direction: column;
}

.linklist .cta {
	padding-block: var(--space-xs);
}

/* Pink pill button */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2xs);
	margin-top: var(--space-md);
	padding: var(--space-sm) var(--space-lg);
	font-family: var(--font-sans);
	font-weight: 650;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #000000;
	background-color: var(--color-accent);
	border: none;
	border-radius: var(--radius-pill);
	transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background-color: var(--color-accent-hover); }
.btn:active { transform: translateY(1px); }

/* Secondary filled button variant (not currently used on the page) */
.btn--secondary { background-color: var(--color-secondary); }
.btn--secondary:hover { background-color: var(--color-secondary-hover); }

/* ---- Footer ----------------------------------------------- */
.site-footer {
	padding-block: var(--space-lg);
	border-top: 1px solid var(--color-border);
	color: var(--color-muted);
	font-size: var(--text-eyebrow);
}

.site-footer__nav {
	display: flex;
	gap: var(--space-md);
	margin-bottom: var(--space-2xs);
}
.site-footer__nav a {
	color: var(--color-link);
	text-decoration: none;
}
.site-footer__nav a:hover { color: var(--color-link-hover); }

.site-footer__legal { max-width: 70ch; }

/* =============================================================
   FONTS — Dotdigital brand fonts are licensed and not bundled.
   Add the files to /assets/fonts and uncomment to enable:

   @font-face {
     font-family: 'Season Mix';
     src: url('../assets/fonts/SeasonMix.woff2') format('woff2');
     font-weight: 100 900; font-display: swap;
   }
   @font-face {
     font-family: 'Season Sans';
     src: url('../assets/fonts/SeasonSans.woff2') format('woff2');
     font-weight: 100 900; font-display: swap;
   }
   ============================================================= */
