/* =========================================================
   OMYRA – main.css
   Design: sand/kräm + djup furugrön + guld, serif "Fraunces"
   rubriker, "Work Sans" brödtext, "Space Mono" för siffror
   (andelar, veckor).
   ========================================================= */

:root {
	--sand: #F5F0E6;
	--sand-2: #EFE7D5;
	--furu: #17332A;
	--furu-2: #1F4438;
	--guld: #C9A567;
	--guld-ljus: #E4D3A8;
	--vit: #FFFFFF;
	--text: #1B2621;
	--text-muted: #4B5A53;

	--font-display: "Fraunces", Georgia, serif;
	--font-body: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;
	--font-mono: "Space Mono", ui-monospace, monospace;

	--radius: 4px;
	--wrap: 1180px;
	--space: clamp(3.5rem, 6vw, 7rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
	margin: 0;
	background: var(--sand);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 1rem; left: 1rem; z-index: 999;
	background: var(--furu); color: var(--sand); padding: .75rem 1.25rem;
	width: auto; height: auto; clip: auto; border-radius: var(--radius);
}
:focus-visible { outline: 3px solid var(--guld); outline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--furu); margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.15; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.eyebrow {
	font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .12em;
	font-size: .78rem; color: var(--guld); display: inline-block; margin-bottom: 1rem;
}
.lede { font-size: 1.15rem; color: var(--text-muted); max-width: 46ch; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.button {
	display: inline-flex; align-items: center; gap: .5rem;
	font-family: var(--font-body); font-weight: 600; font-size: 1rem;
	padding: .9rem 1.75rem; border-radius: 999px; text-decoration: none;
	border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, background .2s ease, color .2s ease;
}
.button--primary { background: var(--furu); color: var(--sand); }
.button--primary:hover { background: var(--furu-2); transform: translateY(-1px); }
.button--ghost { background: transparent; color: var(--furu); border-color: var(--furu); }
.button--ghost:hover { background: var(--furu); color: var(--sand); }
.button--small { padding: .55rem 1.15rem; font-size: .9rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245,240,230,.92); backdrop-filter: blur(6px); border-bottom: 1px solid rgba(23,51,42,.08); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; gap: 1rem; }
.site-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.site-brand__mark { display: inline-flex; }
.site-brand__name { font-family: var(--font-display); font-size: 1.4rem; color: var(--furu); line-height: 1.1; display: flex; flex-direction: column; }
.site-brand__name em { font-style: normal; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; color: var(--guld); }
.custom-logo { max-height: 44px; width: auto; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle__bar { width: 22px; height: 2px; background: var(--furu); border-radius: 2px; }

.primary-nav__list { list-style: none; display: flex; gap: 1.75rem; margin: 0; padding: 0; align-items: center; }
.primary-nav__list a { text-decoration: none; font-weight: 500; font-size: .96rem; color: var(--furu); }
.primary-nav__list a:hover { color: var(--guld); }

@media (max-width: 860px) {
	.nav-toggle { display: flex; }
	.primary-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--sand); border-bottom: 1px solid rgba(23,51,42,.1); display: none; }
	.primary-nav.is-open { display: block; }
	.primary-nav__list { flex-direction: column; align-items: flex-start; gap: 0; padding: 1rem 1.5rem 1.5rem; }
	.primary-nav__list li { width: 100%; padding: .6rem 0; border-bottom: 1px solid rgba(23,51,42,.06); }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3rem,7vw,6rem) 0 0; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding-bottom: clamp(3rem,6vw,5rem); }
.hero__actions { display: flex; gap: 1rem; margin-top: 1.75rem; flex-wrap: wrap; }
.hero__visual {
	position: relative; aspect-ratio: 4/5; border-radius: 18px; overflow: hidden;
	background: linear-gradient(155deg, var(--furu) 0%, var(--furu-2) 55%, var(--guld) 150%);
}
.hero__visual img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
	position: absolute; bottom: 1.25rem; left: 1.25rem; right: 1.25rem;
	background: rgba(23,51,42,.82); backdrop-filter: blur(4px); color: var(--sand);
	padding: 1rem 1.25rem; border-radius: 12px; font-size: .92rem;
}
.hero__badge strong { display: block; font-family: var(--font-display); font-size: 1.1rem; color: var(--guld-ljus); }

@media (max-width: 900px) {
	.hero__inner { grid-template-columns: 1fr; }
	.hero__visual { aspect-ratio: 16/10; }
}

/* ---------- Icon strip (som i annonsen) ---------- */
.icon-strip { background: var(--furu); color: var(--sand); padding: 2.25rem 0; }
.icon-strip__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.icon-strip__item { display: flex; align-items: center; gap: .85rem; }
.icon-strip__icon {
	flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--guld);
	display: flex; align-items: center; justify-content: center; color: var(--guld);
}
.icon-strip__item span.label { font-size: .92rem; font-weight: 600; line-height: 1.25; }
@media (max-width: 860px) {
	.icon-strip__list { grid-template-columns: repeat(2,1fr); }
}

/* ---------- Section shell ---------- */
.section { padding: var(--space) 0; }
.section--muted { background: var(--sand-2); }
.section__head { max-width: 640px; margin-bottom: 3rem; }

/* ---------- Fördelar ---------- */
.benefits-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.75rem; }
.benefit-card { background: var(--vit); border-radius: 14px; padding: 2rem 1.75rem; box-shadow: 0 1px 2px rgba(23,51,42,.05); }
.benefit-card__icon {
	width: 52px; height: 52px; border-radius: 50%; background: var(--furu); color: var(--guld-ljus);
	display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem;
}
.benefit-card h3 { margin-bottom: .4em; }
.benefit-card p { color: var(--text-muted); margin: 0; font-size: .97rem; }
@media (max-width: 900px) { .benefits-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .benefits-grid { grid-template-columns: 1fr; } }

/* ---------- Så fungerar det (riktig sekvens -> numrering är motiverad) ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: steps; display: grid; gap: 0; }
.steps__item {
	counter-increment: steps; display: grid; grid-template-columns: 72px 1fr; gap: 1.5rem;
	padding: 1.75rem 0; border-top: 1px solid rgba(23,51,42,.12);
}
.steps__item:last-child { border-bottom: 1px solid rgba(23,51,42,.12); }
.steps__item::before {
	content: counter(steps, decimal-leading-zero); font-family: var(--font-mono); font-size: 1.4rem;
	color: var(--guld); align-self: start;
}
.steps__item h3 { margin-bottom: .3em; }
.steps__item p { color: var(--text-muted); margin: 0; max-width: 60ch; }

/* ---------- Signatur: veckovisualiseraren ---------- */
.calculator { background: var(--furu); color: var(--sand); border-radius: 20px; padding: clamp(2rem,4vw,3.5rem); display: grid; grid-template-columns: .9fr 1.1fr; gap: 2.5rem; align-items: center; }
.calculator__head .eyebrow { color: var(--guld-ljus); }
.calculator__head h2 { color: var(--sand); }
.calculator__head p { color: rgba(245,240,230,.78); }

.fraction-picker { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1.5rem 0; }
.fraction-picker button {
	font-family: var(--font-mono); background: transparent; border: 1.5px solid var(--guld);
	color: var(--sand); padding: .55rem 1rem; border-radius: 999px; cursor: pointer; font-size: .95rem;
	transition: background .2s ease, color .2s ease;
}
.fraction-picker button[aria-pressed="true"] { background: var(--guld); color: var(--furu); }
.fraction-picker button:hover { background: var(--guld-ljus); color: var(--furu); }

.calculator__stat { font-family: var(--font-mono); font-size: 2.4rem; color: var(--guld-ljus); line-height: 1; }
.calculator__stat span { font-size: 1rem; color: rgba(245,240,230,.75); display: block; margin-top: .35rem; font-family: var(--font-body); }

.week-grid { display: grid; grid-template-columns: repeat(13, 1fr); gap: 4px; }
.week-grid span {
	aspect-ratio: 1; border-radius: 3px; background: rgba(245,240,230,.14);
}
.week-grid span.is-yours { background: var(--guld); }
.week-grid__caption { font-size: .82rem; color: rgba(245,240,230,.65); margin-top: .9rem; }

@media (max-width: 860px) {
	.calculator { grid-template-columns: 1fr; }
}

/* ---------- Intresseanmälan ---------- */
.lead {
	background: var(--vit); border-radius: 20px; padding: clamp(2rem,4vw,3.5rem);
	display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem;
}
.lead__intro .eyebrow { color: var(--guld); }
.lead__intro ul { padding-left: 1.1rem; color: var(--text-muted); margin: 1.25rem 0 0; }
.lead__intro li { margin-bottom: .5rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-grid .field--full { grid-column: 1 / -1; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .4rem; color: var(--furu); }
.field input, .field select, .field textarea {
	width: 100%; font-family: var(--font-body); font-size: 1rem; padding: .8rem .9rem;
	border: 1.5px solid rgba(23,51,42,.2); border-radius: 8px; background: var(--sand); color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--guld); outline: none; }
.field--website { position: absolute; left: -9999px; }
.form-actions { margin-top: 1.4rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-note { font-size: .82rem; color: var(--text-muted); margin: 0; }
.form-status { font-size: .92rem; font-weight: 600; margin: 0; }
.form-status[data-state="success"] { color: #2E5B3B; }
.form-status[data-state="error"] { color: #A63D40; }

@media (max-width: 860px) {
	.lead { grid-template-columns: 1fr; }
	.form-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--furu-2); color: var(--sand); padding: 3rem 0 2rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.site-footer .site-brand__name { color: var(--sand); }
.site-footer .site-brand__name em { color: var(--guld-ljus); }
.site-footer__brand p { color: rgba(245,240,230,.7); max-width: 32ch; font-size: .92rem; }
.site-footer__list { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
.site-footer__list a { text-decoration: none; color: rgba(245,240,230,.85); font-size: .92rem; }
.site-footer__list a:hover { color: var(--guld); }
.site-footer__meta { width: 100%; margin: 2rem 0 0; font-size: .8rem; color: rgba(245,240,230,.55); }
