/* getaspetto.com. Rockpool v3, as in the apps and web/src/app.css:
   ink, turquoise, aqua and white. Coral is for SOS and danger only. No yellow, no navy. */

:root {
	--turquoise: #2cbab2;
	--aqua: #40d6c9;
	--deep: #1f9a93;
	--coral: #f85a3a;
	--ink: #11181c;
	--ink2: #1a2429;
	--grey: #66747a;
	--grey-on-ink: #9aa6ab;
	--line: #dce6e4;
	--canvas: #f3f7f6;
	--mint: #eaf5f3;
	--white: #ffffff;

	--border: 2px;
	--lift: 4px;
	--radius: 22px;
	--max: 1120px;

	--font: ui-rounded, 'SF Pro Rounded', 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
	color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--canvas);
	color: var(--ink);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--deep); }
a:hover { color: var(--ink); }

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

/* Header */
.top { background: var(--ink); color: var(--white); position: sticky; top: 0; z-index: 10; }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-weight: 900; font-size: 20px; letter-spacing: 0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand:hover { color: var(--aqua); }
.nav { display: flex; gap: 18px; margin-left: auto; align-items: center; }
.nav a { color: var(--grey-on-ink); text-decoration: none; font-weight: 700; font-size: 15px; }
.nav a:hover, .nav a[aria-current] { color: var(--white); }
.nav .btn { color: var(--white); }
.menu { display: none; margin-left: auto; background: none; border: 0; color: var(--white); font: inherit; font-weight: 800; cursor: pointer; padding: 8px; }
@media (max-width: 860px) {
	.menu { display: block; }
	.nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--ink); flex-direction: column; align-items: flex-start; padding: 8px 20px 20px; gap: 14px; }
	.nav.open { display: flex; }
}

/* Type */
.caps { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--deep); }
.dark .caps { color: var(--aqua); }
h1, h2, h3 { line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
h1 { font-weight: 900; font-size: clamp(40px, 6.4vw, 72px); }
h2 { font-weight: 900; font-size: clamp(30px, 4vw, 44px); }
h3 { font-weight: 800; font-size: 21px; }
h1 em, h2 em { font-style: normal; color: var(--turquoise); }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--grey); max-width: 38em; }
.dark .lead { color: var(--grey-on-ink); }
.mono { font-family: var(--mono); font-weight: 700; font-variant-numeric: tabular-nums; }
p { margin: 0 0 1em; }

/* Sections */
section { padding: 72px 0; }
.dark { background: var(--ink); color: var(--white); }
.dark a:not(.btn) { color: var(--aqua); }
.mint { background: var(--mint); }
.stack > * + * { margin-top: 18px; }

.hero { padding: 64px 0 0; overflow: hidden; }
.hero .grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; }
.hero .copy { padding-bottom: 72px; }
.hero .shots { position: relative; display: flex; justify-content: center; align-items: flex-end; }
.hero .shots .phone { width: min(330px, 70vw); margin-bottom: -120px; }
.hero .shots .watch { position: absolute; width: min(190px, 38vw); left: 0; bottom: 40px; filter: drop-shadow(0 24px 40px rgba(0,0,0,.5)); }
@media (max-width: 860px) {
	.hero .grid { grid-template-columns: 1fr; }
	.hero .copy { padding-bottom: 8px; }
	.hero .shots .watch { left: 4%; }
}

.page-head { padding: 64px 0 56px; }

/* Buttons, as in the app */
.btn {
	display: inline-flex; align-items: center; gap: 8px;
	border: var(--border) solid var(--ink); border-radius: 16px; box-shadow: 0 3px 0 var(--ink);
	background: var(--turquoise); color: var(--white);
	font-weight: 800; font-size: 16px; padding: 11px 20px;
	text-decoration: none; cursor: pointer; transition: transform .08s, box-shadow .08s;
}
.btn:hover { color: var(--white); background: var(--deep); }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.btn.ghost { background: var(--white); color: var(--ink); }
.btn.ghost:hover { background: var(--mint); }
.dark .btn { border-color: var(--white); box-shadow: 0 3px 0 var(--white); }
.dark .btn.ghost { background: transparent; color: var(--white); }
.btn.small { padding: 6px 13px; font-size: 14px; border-radius: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Cards */
.card { background: var(--white); border: var(--border) solid var(--ink); border-radius: var(--radius); box-shadow: 0 var(--lift) 0 var(--ink); padding: 24px; }
.dark .card { background: var(--ink2); border-color: #33424a; box-shadow: none; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card h3 { margin: 8px 0 8px; }
.card p:last-child { margin-bottom: 0; }
a.card { color: inherit; text-decoration: none; display: block; transition: transform .1s; }
a.card:hover { transform: translateY(-3px); }
a.card .more { color: var(--deep); font-weight: 800; }

/* Three steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps .card::before { counter-increment: s; content: "0" counter(s); font-family: var(--mono); font-weight: 700; color: var(--turquoise); font-size: 14px; letter-spacing: .1em; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Feature rows: copy beside a screen */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature + .feature { margin-top: 88px; }
.feature.flip > :first-child { order: 2; }
.feature .shot { display: flex; justify-content: center; gap: 20px; align-items: flex-end; }
.feature .shot img.phone { width: min(300px, 70vw); }
.feature .shot img.watch { width: min(200px, 44vw); }
.feature .shot.pair img.phone { width: min(250px, 42vw); }
@media (max-width: 860px) {
	.feature { grid-template-columns: 1fr; gap: 28px; }
	.feature.flip > :first-child { order: 0; }
}
ul.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
ul.ticks li { padding-left: 28px; position: relative; margin: 0 0 10px; }
ul.ticks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--turquoise); }

/* Readout chips, like the map's instrument chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.chip { background: var(--ink); color: var(--white); border-radius: 14px; padding: 8px 14px; }
.chip .caps { font-size: 10px; color: var(--grey-on-ink); display: block; }
.chip .mono { color: var(--aqua); font-size: 20px; }

/* Notes: honest limits. Coral border only on the safety ones. */
.note { border-left: 4px solid var(--turquoise); background: var(--white); padding: 14px 18px; border-radius: 0 14px 14px 0; font-size: 15px; color: var(--ink); }
.note.safety { border-left-color: var(--coral); }
.dark .note { background: var(--ink2); color: var(--white); }
.wide { width: 100%; border: var(--border) solid var(--ink); border-radius: var(--radius); }
figure { margin: 0; }
figcaption { font-size: 14px; color: var(--grey); margin-top: 10px; }

/* SOS block: the one place coral is used as a colour */
.sos { display: inline-flex; align-items: center; gap: 8px; background: var(--coral); color: var(--white); border-radius: 12px; padding: 4px 12px; font-family: var(--mono); font-weight: 700; letter-spacing: .12em; font-size: 13px; }

/* FAQ */
details { background: var(--white); border: var(--border) solid var(--ink); border-radius: 18px; padding: 0 20px; margin: 0 0 12px; }
details[open] { box-shadow: 0 var(--lift) 0 var(--ink); }
summary { cursor: pointer; font-weight: 800; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); color: var(--turquoise); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "−"; }
details > div { padding: 0 0 16px; }
.narrow { max-width: 760px; }

/* Form */
form.beta { display: grid; gap: 18px; }
label { font-weight: 800; display: block; margin-bottom: 6px; }
.hint { font-weight: 400; color: var(--grey); font-size: 14px; }
input[type=email], input[type=text], select {
	width: 100%; font: inherit; padding: 12px 14px; border: var(--border) solid var(--ink); border-radius: 14px; background: var(--white);
}
input:focus, select:focus, .btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; }
fieldset { border: 0; padding: 0; margin: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.checks label { font-weight: 700; display: inline-flex; gap: 8px; align-items: center; border: var(--border) solid var(--ink); border-radius: 14px; padding: 8px 14px; background: var(--white); cursor: pointer; margin: 0; }
.checks input { accent-color: var(--turquoise); }
.consent { display: flex; gap: 10px; font-weight: 400; font-size: 15px; }
.consent input { margin-top: 5px; accent-color: var(--turquoise); }
.hp { position: absolute; left: -9999px; }
.status { font-weight: 800; }
.status.ok { color: var(--deep); }
.status.err { color: var(--coral); }

/* Footer */
footer { background: var(--ink); color: var(--grey-on-ink); padding: 48px 0 40px; font-size: 15px; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
footer a { color: var(--white); text-decoration: none; display: block; margin: 0 0 8px; }
footer a:hover { color: var(--aqua); }
footer .mascot { width: 56px; margin-bottom: 12px; }
footer .small { font-size: 13px; margin-top: 32px; border-top: 1px solid #2a363c; padding-top: 20px; }
@media (max-width: 700px) { footer .cols { grid-template-columns: 1fr 1fr; } footer .cols > :first-child { grid-column: 1 / -1; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 20; background: var(--white); color: var(--ink); padding: 8px 14px; border-radius: 10px; }
legend { font-weight: 800; padding: 0; margin-bottom: 6px; }
.brand .dot { color: var(--turquoise); }
