/* outgrownspreadsheets.co.uk — site styles */

:root {
	--paper: #ffffff;
	--panel: #f2f5f4;
	--grid: #d9e0de;
	--grid-strong: #b9c4c1;
	--ink: #1d2b2a;
	--ink-2: #44524f;
	--muted: #5e6b69;
	--accent: #ffe347; /* highlighter yellow */
	--accent-deep: #f5cf00;
	--error: #b42318;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--max: 1120px;
	--col: 44rem;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}
html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 84px;
}
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 1.0625rem/1.65 var(--sans);
	-webkit-font-smoothing: antialiased;
}
a {
	color: inherit;
	text-decoration-color: var(--accent-deep);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}
a:hover {
	text-decoration-color: var(--ink);
}
:focus-visible {
	outline: 3px solid var(--ink);
	outline-offset: 2px;
}

.skip {
	position: absolute;
	left: -999px;
	top: 8px;
	z-index: 100;
	background: var(--ink);
	color: #fff;
	padding: 8px 14px;
}
.skip:focus {
	left: 12px;
}

.wrap {
	width: 100%;
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 20px;
}
.col {
	max-width: var(--col);
}

h1,
h2,
h3 {
	margin: 0 0 0.5em;
	font-weight: 750;
	letter-spacing: -0.025em;
	line-height: 1.08;
	text-wrap: balance;
}
h1 {
	font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4rem);
	letter-spacing: -0.035em;
	line-height: 1;
}
h2 {
	font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem);
}
h3 {
	font-size: 1.15rem;
	letter-spacing: -0.01em;
	line-height: 1.3;
}
p {
	margin: 0 0 1em;
}
.lede {
	font-size: clamp(1.12rem, 1rem + 0.5vw, 1.3rem);
	color: var(--ink-2);
	max-width: 36rem;
}

/* Buttons: a selected cell, yellow fill with a heavy border */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 22px;
	border: 2px solid var(--ink);
	border-radius: 3px;
	background: var(--accent);
	color: var(--ink);
	font: 700 1rem/1.2 var(--sans);
	text-decoration: none;
	cursor: pointer;
	box-shadow: 3px 3px 0 var(--ink);
	transition: transform 0.08s, box-shadow 0.08s;
}
.btn:hover {
	transform: translate(1px, 1px);
	box-shadow: 2px 2px 0 var(--ink);
}
.btn:active {
	transform: translate(3px, 3px);
	box-shadow: 0 0 0 var(--ink);
}
.btn[disabled] {
	opacity: 0.6;
	cursor: wait;
}
.btn-sm {
	padding: 8px 14px;
	font-size: 0.92rem;
	box-shadow: 2px 2px 0 var(--ink);
}
@media (prefers-reduced-motion: reduce) {
	.btn {
		transition: none;
	}
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid var(--grid);
}
.site-header .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 66px;
}
.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 750;
	letter-spacing: -0.015em;
	text-decoration: none;
}
.brand img {
	width: 26px;
	height: 26px;
}
.header-right {
	display: flex;
	align-items: center;
	gap: 20px;
}
.header-phone {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	text-decoration: none;
}
@media (max-width: 640px) {
	.header-phone {
		display: none;
	}
}

/* Sections */
section {
	padding: clamp(56px, 8vw, 104px) 0;
}
section + section {
	border-top: 1px solid var(--grid);
}
section.panel {
	background: var(--panel);
}

/* Hero */
.hero {
	padding-top: clamp(40px, 6vw, 80px);
	overflow: hidden;
}
.hero-grid {
	display: grid;
	gap: clamp(36px, 5vw, 56px);
	grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 980px) {
	.hero-grid {
		grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
		align-items: center;
	}
}
.hero h1 {
	max-width: 14ch;
}
.actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 24px;
	margin-top: 28px;
}
.hero .small {
	margin-top: 18px;
	color: var(--muted);
	font-size: 0.95rem;
}

/* The illustrative spreadsheet */
.sheet {
	border: 1px solid var(--grid-strong);
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 1px 0 var(--grid), 0 18px 40px -24px rgba(29, 43, 42, 0.45);
	overflow: hidden;
	font-size: 0.86rem;
	font-variant-numeric: tabular-nums;
	transform: rotate(-0.6deg);
}
.fbar {
	display: flex;
	align-items: stretch;
	border-bottom: 1px solid var(--grid-strong);
	background: var(--panel);
}
.fbar .ref {
	flex: 0 0 auto;
	padding: 7px 12px;
	border-right: 1px solid var(--grid-strong);
	font-weight: 600;
	color: var(--ink-2);
}
.fbar .fx {
	flex: 0 0 auto;
	padding: 7px 10px;
	color: var(--muted);
	font-style: italic;
	border-right: 1px solid var(--grid);
}
.fbar .formula {
	flex: 1 1 auto;
	min-width: 0;
	padding: 7px 12px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: var(--ink);
	background: #fff;
}
.sheet table {
	width: 100%;
	border-collapse: collapse;
}
.sheet th,
.sheet td {
	border-right: 1px solid var(--grid);
	border-bottom: 1px solid var(--grid);
	padding: 6px 9px;
	text-align: left;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-weight: 400;
}
.sheet thead th {
	background: var(--panel);
	color: var(--muted);
	text-align: center;
	font-weight: 500;
	padding: 4px;
}
.sheet tbody th {
	width: 34px;
	background: var(--panel);
	color: var(--muted);
	text-align: center;
	font-weight: 500;
	padding: 6px 4px;
}
.sheet thead th:first-child {
	width: 34px;
}
.sheet tr.head td {
	font-weight: 700;
}
.sheet tr.hl td {
	background: var(--accent);
}
.sheet td.err {
	color: var(--error);
	font-weight: 600;
}
.sheet td.sel {
	outline: 2px solid var(--ink);
	outline-offset: -2px;
}
.sheet td.note {
	color: var(--ink-2);
	font-style: italic;
}
.sheet td.num {
	text-align: right;
}
.tabs {
	display: flex;
	gap: 2px;
	padding: 0 8px;
	background: var(--panel);
	border-top: 1px solid var(--grid-strong);
	overflow: hidden;
	white-space: nowrap;
}
.tabs span {
	padding: 6px 12px;
	color: var(--muted);
	font-size: 0.8rem;
}
.tabs span.on {
	background: #fff;
	color: var(--ink);
	font-weight: 600;
	box-shadow: inset 0 2px 0 var(--ink);
}
.caption {
	margin: 14px 4px 0;
	font-size: 0.82rem;
	color: var(--muted);
}
@media (max-width: 560px) {
	.sheet table {
		table-layout: auto;
	}
	.sheet .c-due,
	.sheet .c-inv {
		display: none;
	}
	.sheet {
		transform: none;
	}
}

/* Signs list */
.signs {
	list-style: none;
	margin: 32px 0 0;
	padding: 0;
	border-top: 2px solid var(--ink);
}
.signs li {
	display: grid;
	grid-template-columns: 26px minmax(0, 1fr);
	gap: 4px 14px;
	padding: 18px 0;
	border-bottom: 1px solid var(--grid);
}
.signs li::before {
	content: "";
	grid-row: 1 / span 2;
	width: 18px;
	height: 18px;
	margin-top: 4px;
	border: 2px solid var(--ink);
	border-radius: 2px;
	background: var(--accent);
}
.signs strong {
	font-weight: 700;
}
.signs span {
	color: var(--ink-2);
}
.after {
	margin-top: 24px;
	color: var(--ink-2);
}

/* Comparison table */
.compare-wrap {
	margin-top: 32px;
	overflow-x: auto;
}
.compare {
	width: 100%;
	min-width: 560px;
	border-collapse: collapse;
	background: #fff;
	border: 1px solid var(--grid-strong);
}
.compare th,
.compare td {
	padding: 14px 16px;
	border-bottom: 1px solid var(--grid);
	text-align: left;
	vertical-align: top;
}
.compare thead th {
	background: var(--ink);
	color: #fff;
	font-weight: 650;
}
.compare thead th:last-child {
	background: var(--accent);
	color: var(--ink);
}
.compare tbody th {
	width: 24%;
	font-weight: 700;
	background: var(--panel);
	border-right: 1px solid var(--grid);
}
.compare-label {
	display: flex;
	align-items: center;
	gap: 10px;
}
.compare-label i {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	border: 2px solid var(--ink);
	border-radius: 3px;
	background: var(--accent);
	color: var(--ink);
	font-size: 0.75rem;
	line-height: 1;
}
.compare thead th .compare-label i {
	border-color: var(--accent);
}
.compare thead th:last-child .compare-label i {
	border-color: var(--ink);
	background: var(--ink);
	color: var(--accent);
}
.compare td {
	width: 39%;
	color: var(--ink-2);
}
.compare td + td {
	color: var(--ink);
	border-left: 1px solid var(--grid);
}

/* Prose blocks */
.two {
	display: grid;
	gap: 28px 48px;
	grid-template-columns: minmax(0, 1fr);
	margin-top: 28px;
}
@media (min-width: 820px) {
	.two {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
.two h3 {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 0.35em;
}
.two h3 i {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border: 2px solid var(--ink);
	border-radius: 3px;
	background: var(--accent);
	color: var(--ink);
	font-size: 0.9rem;
	line-height: 1;
	box-shadow: 2px 2px 0 var(--ink);
}
.two p {
	color: var(--ink-2);
	margin: 0;
}

/* Steps — a real sequence */
.steps {
	list-style: none;
	margin: 36px 0 0;
	padding: 0;
	display: grid;
	gap: 28px;
	grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 860px) {
	.steps {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 36px;
	}
}
.steps li {
	padding-top: 18px;
	border-top: 2px solid var(--ink);
}
.steps li > i {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-bottom: 12px;
	border: 2px solid var(--ink);
	border-radius: 3px;
	background: var(--accent);
	color: var(--ink);
	font-size: 1.15rem;
	line-height: 1;
	box-shadow: 3px 3px 0 var(--ink);
}
.steps p {
	color: var(--ink-2);
	margin: 0;
}
.free-note {
	margin-top: 36px;
	padding: 18px 20px;
	border-left: 6px solid var(--accent);
	background: #fff;
	max-width: var(--col);
}
.free-note p {
	margin: 0;
}

/* Fit */
.fit {
	display: grid;
	gap: 28px 48px;
	grid-template-columns: minmax(0, 1fr);
	margin-top: 28px;
}
@media (min-width: 820px) {
	.fit {
		grid-template-columns: 1.2fr 1fr;
	}
}
.fit ul {
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--ink-2);
}
.fit li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 0.7em;
}
.fit li i {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin-top: 3px;
	border: 2px solid var(--ink);
	border-radius: 3px;
	background: var(--accent);
	color: var(--ink);
	font-size: 0.72rem;
	line-height: 1;
}
.fit .no li i {
	background: #fff;
	color: var(--error);
}

/* FAQ */
.faq {
	margin-top: 28px;
	border-top: 2px solid var(--ink);
}
.faq details {
	border-bottom: 1px solid var(--grid);
}
.faq summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	gap: 20px;
	padding: 18px 0;
	font-weight: 650;
}
.faq summary::-webkit-details-marker {
	display: none;
}
.faq summary::after {
	content: "+";
	flex: 0 0 auto;
	font-weight: 500;
	font-size: 1.4rem;
	line-height: 1;
}
.faq details[open] summary::after {
	content: "−";
}
.faq .a {
	padding: 0 0 18px;
	color: var(--ink-2);
	max-width: 40rem;
}
.faq .a p:last-child {
	margin: 0;
}

/* Booking */
.book-grid {
	display: grid;
	gap: 36px 64px;
	grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) {
	.book-grid {
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	}
}
.phone {
	font-weight: 600;
}
.phone a {
	font-variant-numeric: tabular-nums;
}
.tel-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	font-variant-numeric: tabular-nums;
}
.enquiry {
	display: grid;
	gap: 16px;
	padding: clamp(20px, 3vw, 32px);
	background: #fff;
	border: 1px solid var(--grid-strong);
	border-radius: 6px;
}
.enquiry .row {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.enquiry label {
	display: grid;
	gap: 6px;
	font-weight: 600;
	font-size: 0.95rem;
}
.enquiry .opt {
	font-weight: 400;
	color: var(--muted);
}
.enquiry input,
.enquiry textarea {
	width: 100%;
	font: inherit;
	font-weight: 400;
	padding: 11px 13px;
	border: 1px solid var(--grid-strong);
	border-radius: 3px;
	background: #fff;
	color: var(--ink);
}
.enquiry input:focus,
.enquiry textarea:focus {
	outline: 2px solid var(--ink);
	outline-offset: -1px;
	background: #fffdf0;
}
.enquiry textarea {
	min-height: 140px;
	resize: vertical;
}
.enquiry .hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.enquiry .note {
	margin: 0;
	font-size: 0.86rem;
	color: var(--muted);
}
.enquiry .btn {
	justify-self: start;
}
.form-status {
	padding: 12px 14px;
	border-radius: 3px;
	font-weight: 600;
}
.form-status.err {
	background: #fdecea;
	color: var(--error);
}
.form-status.ok {
	background: #e8f4ec;
	color: #1e5b34;
}

/* Footer */
.site-footer {
	background: var(--ink);
	color: #d6dedc;
	padding: 44px 0 36px;
	font-size: 0.93rem;
}
.site-footer .wrap {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 20px 40px;
}
.site-footer .brand {
	color: #fff;
	margin-bottom: 8px;
}
.site-footer p {
	margin: 0;
	max-width: 30rem;
}
.site-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 6px;
}
.site-footer a {
	color: #fff;
}
.site-footer .legal {
	flex-basis: 100%;
	max-width: none;
	padding-top: 20px;
	border-top: 1px solid #36504d;
	color: #a9b8b5;
}

/* Simple pages */
.simple {
	padding: clamp(56px, 9vw, 112px) 0;
}
.simple .col > h2 {
	font-size: 1.35rem;
	margin-top: 1.6em;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.brand,
.btn {
	white-space: nowrap;
}
@media (max-width: 440px) {
	.brand {
		font-size: 0.95rem;
	}
	.site-header .btn-sm {
		padding: 7px 11px;
	}
}
@media (max-width: 440px) {
	.site-header .wrap {
		gap: 10px;
	}
	.brand img {
		width: 22px;
		height: 22px;
	}
	.site-header .btn-sm {
		font-size: 0.85rem;
	}
}
