/*
	Reminders App — Shared Mockup Styles
	Provides realistic Apple device chrome (iPhone, Mac, iOS widgets)
	and a TRMNL e-ink frame. Each individual design file extends this
	with its own design-specific styles inside the screen content area.
*/

/* ---------- Reset ---------- */

*, *::before, *::after {
	box-sizing: border-box;
}

html, body {
	margin: 0;
	padding: 0;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	color: var(--ink, #1c1c1e);
	background: var(--page-bg, #f4f2ee);
	font-feature-settings: "ss01", "cv11";
}

img { display: block; max-width: 100%; }

a { color: inherit; }

/* ---------- Showcase page chrome ---------- */

.showcase {
	max-width: 1440px;
	margin: 0 auto;
	padding: 96px 64px 160px;
}

.showcase__back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 48px;
	color: #6b6863;
	text-decoration: none;
	font-size: 13px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.showcase__back::before {
	content: "←";
	font-size: 18px;
	line-height: 1;
}

.showcase__hero {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 96px;
	align-items: end;
	margin-bottom: 80px;
	border-bottom: 1px solid #e6e1d8;
	padding-bottom: 48px;
}

.showcase__hero h1 {
	font-size: 84px;
	line-height: 0.94;
	letter-spacing: -0.04em;
	font-weight: 350;
	margin: 0 0 24px;
}

.showcase__hero .eyebrow {
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #8a857d;
	margin-bottom: 24px;
}

.showcase__hero p {
	font-size: 19px;
	line-height: 1.55;
	color: #4f4d48;
	max-width: 56ch;
	margin: 0;
}

.showcase__meta {
	font-size: 13px;
	color: #8a857d;
	line-height: 1.7;
	text-align: right;
	white-space: nowrap;
}

.showcase__section {
	margin-top: 128px;
}

.showcase__section h2 {
	font-size: 13px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #8a857d;
	font-weight: 500;
	margin: 0 0 8px;
}

.showcase__section h3 {
	font-size: 36px;
	line-height: 1.1;
	letter-spacing: -0.02em;
	font-weight: 380;
	margin: 0 0 12px;
}

.showcase__section .lede {
	font-size: 17px;
	color: #6b6863;
	max-width: 64ch;
	margin: 0 0 48px;
	line-height: 1.55;
}

.showcase__stage {
	display: grid;
	gap: 64px;
}

.stage--phones {
	grid-template-columns: repeat(3, auto);
	justify-content: center;
	align-items: end;
}

.stage--phones-2 {
	grid-template-columns: repeat(2, auto);
	justify-content: center;
	align-items: end;
}

.stage--mac {
	justify-content: center;
}

.stage--widgets {
	grid-template-columns: auto auto auto;
	gap: 48px;
	justify-content: center;
	align-items: start;
	padding: 64px 0;
	background: #ece8df;
	border-radius: 24px;
}

.stage__caption {
	margin-top: 24px;
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #8a857d;
	text-align: center;
}

/* ---------- iPhone frame (iPhone 15 Pro proportions, 393×852) ---------- */

.iphone {
	position: relative;
	width: 314px;
	height: 682px;
	border-radius: 52px;
	background: linear-gradient(160deg, #3a3a3c 0%, #2c2c2e 50%, #3a3a3c 100%);
	padding: 11px;
	box-shadow:
		0 1px 0 0 rgba(255,255,255,0.08) inset,
		0 -1px 0 0 rgba(255,255,255,0.04) inset,
		0 40px 70px -20px rgba(28, 24, 18, 0.18),
		0 18px 30px -16px rgba(28, 24, 18, 0.18);
}

.iphone--tall {
	width: 354px;
	height: 768px;
	border-radius: 58px;
}

.iphone__screen {
	position: relative;
	width: 100%;
	height: 100%;
	border-radius: 42px;
	background: #fff;
	overflow: hidden;
	isolation: isolate;
}

.iphone--tall .iphone__screen { border-radius: 48px; }

.iphone__island {
	position: absolute;
	top: 9px;
	left: 50%;
	transform: translateX(-50%);
	width: 100px;
	height: 30px;
	border-radius: 18px;
	background: #000;
	z-index: 30;
}

.iphone--tall .iphone__island { width: 112px; height: 32px; top: 10px; }

.iphone__statusbar {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 30px 0;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.01em;
	z-index: 25;
	color: #1c1c1e;
}

.iphone__statusbar .time {
	min-width: 60px;
}

.iphone__statusbar .indicators {
	display: flex;
	align-items: center;
	gap: 6px;
}

.iphone__statusbar .indicators .signal {
	width: 17px;
	height: 10px;
	background:
		linear-gradient(currentColor, currentColor) 0 100% / 3px 4px no-repeat,
		linear-gradient(currentColor, currentColor) 4.6px 100% / 3px 6px no-repeat,
		linear-gradient(currentColor, currentColor) 9.2px 100% / 3px 8px no-repeat,
		linear-gradient(currentColor, currentColor) 13.8px 100% / 3px 10px no-repeat;
}

.iphone__statusbar .indicators .wifi {
	width: 16px;
	height: 11px;
	-webkit-mask: radial-gradient(circle at 50% 100%, #000 0 2px, transparent 2.5px 4px, #000 4.5px 6px, transparent 6.5px 8px, #000 8.5px 10px, transparent 10.5px 100%);
	mask: radial-gradient(circle at 50% 100%, #000 0 2px, transparent 2.5px 4px, #000 4.5px 6px, transparent 6.5px 8px, #000 8.5px 10px, transparent 10.5px 100%);
	background: currentColor;
}

.iphone__statusbar .indicators .battery {
	width: 25px;
	height: 11px;
	border: 1px solid currentColor;
	border-radius: 3px;
	position: relative;
	opacity: 0.95;
}

.iphone__statusbar .indicators .battery::after {
	content: "";
	position: absolute;
	left: 1px; top: 1px; bottom: 1px;
	width: 16px;
	background: currentColor;
	border-radius: 1px;
}

.iphone__statusbar .indicators .battery::before {
	content: "";
	position: absolute;
	right: -3px;
	top: 3px;
	width: 2px;
	height: 3px;
	background: currentColor;
	border-radius: 0 1px 1px 0;
	opacity: 0.5;
}

.iphone__content {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	padding-top: 56px;
	overflow: hidden;
}

.iphone__home {
	position: absolute;
	bottom: 8px;
	left: 50%;
	transform: translateX(-50%);
	width: 134px;
	height: 5px;
	border-radius: 3px;
	background: rgba(0,0,0,0.35);
	z-index: 20;
}

/* status bar variant for dark backgrounds */
.iphone[data-status="light"] .iphone__statusbar { color: #fff; }
.iphone[data-status="light"] .iphone__home { background: rgba(255,255,255,0.6); }

/* ---------- Mac window (macOS 14 / Sonoma look) ---------- */

.mac {
	position: relative;
	width: 1080px;
	border-radius: 12px;
	background: #fff;
	box-shadow:
		0 0 0 1px rgba(0,0,0,0.06),
		0 60px 100px -40px rgba(28,24,18,0.25),
		0 30px 50px -30px rgba(28,24,18,0.15);
	overflow: hidden;
}

.mac__chrome {
	position: relative;
	height: 38px;
	background: linear-gradient(180deg, #f7f5f1 0%, #efece6 100%);
	border-bottom: 1px solid rgba(0,0,0,0.08);
	display: flex;
	align-items: center;
	padding: 0 16px;
}

.mac__traffic {
	display: flex;
	gap: 8px;
	align-items: center;
}

.mac__traffic span {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	display: block;
}

.mac__traffic .r { background: #ff5f57; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.15); }
.mac__traffic .y { background: #febc2e; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.15); }
.mac__traffic .g { background: #28c840; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.15); }

.mac__title {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	font-size: 13px;
	font-weight: 500;
	color: #4f4d48;
	letter-spacing: -0.01em;
}

.mac__body {
	position: relative;
	background: #fff;
	min-height: 660px;
}

/* ---------- iOS widget surfaces ---------- */

.widgets-wallpaper {
	background: linear-gradient(165deg, #e0d8c8 0%, #cbbfae 45%, #b6a892 100%);
	border-radius: 28px;
	padding: 64px 56px;
	display: flex;
	gap: 32px;
	align-items: flex-start;
}

.widget {
	background: rgba(255,255,255,0.94);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-radius: 22px;
	box-shadow:
		0 1px 0 0 rgba(255,255,255,0.6) inset,
		0 20px 40px -20px rgba(28,24,18,0.25),
		0 6px 14px -10px rgba(28,24,18,0.15);
	overflow: hidden;
	position: relative;
	color: #1c1c1e;
}

.widget--s { width: 158px; height: 158px; }
.widget--m { width: 338px; height: 158px; }
.widget--l { width: 338px; height: 354px; }

.widget__body { padding: 16px 18px; height: 100%; display: flex; flex-direction: column; }

/* ---------- TRMNL e-ink frame ---------- */

.trmnl {
	position: relative;
	display: inline-block;
	padding: 28px 28px 56px;
	background: linear-gradient(180deg, #f5f1ea 0%, #ede7dc 100%);
	border-radius: 22px;
	box-shadow:
		0 0 0 1px rgba(0,0,0,0.05),
		0 40px 60px -30px rgba(28,24,18,0.18),
		0 8px 20px -10px rgba(28,24,18,0.12);
}

.trmnl::after {
	content: "TRMNL";
	position: absolute;
	bottom: 18px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 11px;
	letter-spacing: 0.32em;
	color: #b8ad97;
	font-weight: 600;
}

.trmnl__screen {
	width: 800px;
	height: 480px;
	background: #f8f6f0;
	color: #111;
	overflow: hidden;
	position: relative;
	box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
	filter: grayscale(1) contrast(1.1);
}

.trmnl--sm { transform: scale(0.7); transform-origin: top left; }

/* ---------- Helpers ---------- */

.row {
	display: flex;
	gap: 64px;
	align-items: flex-start;
	justify-content: center;
	flex-wrap: wrap;
}

.col {
	display: flex;
	flex-direction: column;
	gap: 32px;
	align-items: center;
}

.caption {
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #8a857d;
	margin-top: 8px;
	text-align: center;
}

.divider {
	height: 1px;
	background: #e6e1d8;
	border: 0;
	margin: 96px auto;
	max-width: 800px;
}

/* ---------- Gallery (index.html) ---------- */

.gallery {
	max-width: 1280px;
	margin: 0 auto;
	padding: 120px 64px 160px;
}

.gallery__hero h1 {
	font-size: 96px;
	letter-spacing: -0.04em;
	line-height: 0.94;
	font-weight: 300;
	margin: 0 0 32px;
}

.gallery__hero p {
	font-size: 20px;
	line-height: 1.55;
	color: #4f4d48;
	max-width: 60ch;
	margin: 0 0 96px;
}

.gallery__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 56px;
}

.tile {
	display: block;
	text-decoration: none;
	color: inherit;
	border-radius: 24px;
	overflow: hidden;
	background: #fff;
	box-shadow:
		0 0 0 1px rgba(0,0,0,0.05),
		0 30px 50px -30px rgba(28,24,18,0.15),
		0 10px 20px -15px rgba(28,24,18,0.12);
	transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.tile:hover {
	transform: translateY(-4px);
	box-shadow:
		0 0 0 1px rgba(0,0,0,0.06),
		0 40px 70px -30px rgba(28,24,18,0.22),
		0 14px 24px -12px rgba(28,24,18,0.15);
}

.tile__preview {
	aspect-ratio: 16/10;
	background: #f4f2ee;
	display: grid;
	place-items: center;
	border-bottom: 1px solid #ece8df;
	position: relative;
	overflow: hidden;
}

.tile__meta {
	padding: 28px 32px 32px;
}

.tile__number {
	font-size: 12px;
	letter-spacing: 0.2em;
	color: #b8ad97;
	margin-bottom: 12px;
}

.tile__name {
	font-size: 28px;
	letter-spacing: -0.02em;
	font-weight: 400;
	margin: 0 0 12px;
}

.tile__desc {
	font-size: 15px;
	color: #6b6863;
	line-height: 1.55;
	margin: 0;
}
