/*
Theme Name: do2do2do
Description: The do2do2do introduction site: lists as coloured bands, real screenshots in phone frames, light and dark.
Version: 1.4.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: do2do2do
*/

/* The page reads like the app's home screen: each section opens on a full-width coloured band named like a list,
   with screenshots in phone frames beside short copy. Colours are tokens, redefined for dark mode. */
:root {
	--d2-bg: #f3f4f6;
	--d2-ink: #15181d;
	--d2-muted: #565d67;
	--d2-rule: #d9dce2;
	--d2-card: #ffffff;
	--d2-frame: #101216;
}
@media (prefers-color-scheme: dark) {
	:root {
		--d2-bg: #111317;
		--d2-ink: #eceef1;
		--d2-muted: #a2a8b1;
		--d2-rule: #2a2e35;
		--d2-card: #1a1d22;
		--d2-frame: #050607;
		color-scheme: dark;
	}
}

body { margin: 0; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 3px solid #4a90d9; outline-offset: 3px; }
.is-style-lead, .lead { font-size: 1.2rem; color: var(--d2-muted); }
.muted { color: var(--d2-muted); }

/* Bands: a list's row from the app's home screen. */
.band { padding-top: .85rem; padding-bottom: .85rem; color: #fff; }
.band .band-row {
	display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 0;
	font-family: var(--wp--preset--font-family--display); font-weight: 500; font-size: 1.25rem;
}
.band .band-row span { font-family: var(--wp--preset--font-family--body); font-size: .85rem; opacity: .85; }
.b-blue { background: #4a90d9; } .b-purple { background: #8e4ec6; } .b-orange { background: #e3832a; color: #16191e; }
.b-green { background: #2c9e57; } .b-red { background: #c4473d; } .b-teal { background: #1b9886; }
.b-navy { background: #34495e; } .b-slate { background: #5b6770; }

/* Device frames, drawn on the image itself so a caption sits outside. */
.phone img { border: 9px solid var(--d2-frame); border-radius: 42px; background: var(--d2-frame);
	box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .45); max-width: 290px; width: 100%; height: auto; }
.phone.small img { max-width: 230px; }
.tablet img { border: 10px solid var(--d2-frame); border-radius: 26px; background: var(--d2-frame);
	box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .45); max-width: 520px; width: 100%; height: auto; }
.watch img { border: 10px solid var(--d2-frame); border-radius: 46px; background: #000; width: 190px;
	aspect-ratio: 419 / 438; object-fit: cover; object-position: bottom; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .5); }
.vision img { border-radius: 26px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .45); max-width: 640px; width: 100%; height: auto; }
.tablet.wide img { max-width: 860px; }
.duo img { max-width: 560px; width: 100%; height: auto; }
.devices { margin-top: 2.5rem; margin-bottom: 2.5rem; }
.phone, .tablet, .watch, .vision, .duo { display: flex; flex-direction: column; align-items: center; }
.wp-block-image figcaption.wp-element-caption { font-size: .9rem; color: var(--d2-muted); text-align: center; max-width: 18rem;
	margin-left: auto; margin-right: auto; }

/* Hero */
.hero { padding-top: clamp(2.5rem, 7vw, 5rem); }
.wordmark { font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: 1.1rem; letter-spacing: .02em;
	display: flex; align-items: center; }
.wordmark::before { content: ""; width: .9rem; height: .9rem; border-radius: 3px; background: #4a90d9;
	box-shadow: 1.25rem 0 #8e4ec6, 2.5rem 0 #e3832a; margin-right: 3.1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips span { font-size: .9rem; padding: .35rem .75rem; border-radius: 999px; background: var(--d2-card); border: 1px solid var(--d2-rule); }
.hero-bands { margin-top: clamp(2.5rem, 6vw, 4rem) !important; }
.hero-bands > .band { margin-top: 0 !important; }

/* Sections */
.section { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.band + .section, .section + .band { margin-top: 0 !important; }
main > .band, main > .section, .wp-site-blocks > * { margin-block-start: 0; }

/* Gestures as rows that lighten as they go down, as the app's do. */
.rows { border-radius: 14px; overflow: hidden; gap: 0 !important; }
.rows > .row { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; margin: 0 !important; color: #fff; align-items: baseline; }
.rows > .row strong { font-family: var(--wp--preset--font-family--display); }
.rows > .row span { font-size: .92rem; opacity: .92; text-align: right; }
.rows > .row:nth-child(1) { background: #2c9e57; } .rows > .row:nth-child(2) { background: #3ba765; }
.rows > .row:nth-child(3) { background: #4bb073; } .rows > .row:nth-child(4) { background: #5bb981; color: #10261a; }
.rows > .row:nth-child(5) { background: #6bc28f; color: #10261a; } .rows > .row:nth-child(6) { background: #7bcb9d; color: #10261a; }

.point { background: var(--d2-card); border: 1px solid var(--d2-rule); border-radius: 16px; padding: 1.1rem 1.2rem; }
.point p { font-size: 1rem; color: var(--d2-muted); margin-top: .4rem; }
.say { font-family: var(--wp--preset--font-family--display); font-weight: 500; }

.site-footer { border-top: 1px solid var(--d2-rule); color: var(--d2-muted); font-size: .9rem; padding-top: 2rem; padding-bottom: 3rem; }
.site-header { padding-top: 1.2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--d2-rule); }

@media (max-width: 781px) {
	.rows > .row span { display: none; }
	.phone img { max-width: 250px; }
}
@media (prefers-reduced-motion: no-preference) {
	.hero-bands > .band { animation: d2-slide .6s cubic-bezier(.2, .8, .2, 1) both; }
	.hero-bands > .band:nth-child(2) { animation-delay: .06s; }
	.hero-bands > .band:nth-child(3) { animation-delay: .12s; }
	@keyframes d2-slide { from { transform: translateX(-2.5%); } to { transform: none; } }
}

.footer-links { display: flex; flex-wrap: wrap; gap: 1.1rem; }
/* The company's details (required by UK law), kept very small. */
.site-footer .company { font-size: .5em; line-height: 1.5; }
.site-footer a { color: inherit; }
main.section h2 { margin-top: 2.2em; }
main.section .rows { margin-top: 1.5rem; margin-bottom: 1rem; }
main.section .wp-block-table { margin-top: 1rem; margin-bottom: 1.5rem; }
main.section .wp-block-table th, main.section .wp-block-table td { border: 1px solid var(--d2-rule); padding: .55rem .75rem;
	text-align: left; vertical-align: top; }
main.section .wp-block-table thead { border-bottom: 2px solid var(--d2-rule); }
main.section .wp-block-code { background: var(--d2-card); border: 1px solid var(--d2-rule); border-radius: 10px;
	padding: .8rem 1rem; overflow-x: auto; font-size: .88rem; }
main.section .band { margin-top: 2.5rem; margin-bottom: 1.5rem; }
