/*
Theme Name: NYSA
Theme URI: https://nysaapp.com
Author: Touhami Melha
Description: Website for the NYSA family reminder app for iPhone.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: nysa
*/

:root {
	color-scheme: light;
	--bg: #F8F7F4;
	--surface: #FFFFFF;
	--ink: #211F27;
	--title: #302D34;
	--body: #3D3943;
	--primary: #5741D9;
	--primary-dark: #432FB1;
	--lavender: #ECE9FF;
	--muted: #7E7885;
	--meta: #625C68;
	--eyebrow: #77717F;
	--border: #EBE8E4;
	--rose: #D65A88;
	--rose-soft: #FBEAF1;
	--teal: #25839A;
	--teal-soft: #E1F1F4;
	--chip: #ECE9E5;
	--serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
	--sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--radius: 22px;
	--radius-sm: 14px;
	--shadow: 0 1px 2px rgba(33, 31, 39, .04), 0 12px 32px rgba(33, 31, 39, .06);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 17px/1.6 var(--sans);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
:focus-visible { outline: 3px solid rgba(87, 65, 217, .45); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); margin: 0; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 16px; top: 12px; z-index: 100; background: var(--surface); padding: 10px 14px; border-radius: 10px; }

.eyebrow {
	display: block;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--eyebrow);
	margin: 0 0 12px;
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(248, 247, 244, .88);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid rgba(235, 232, 228, .9);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 11px; box-shadow: 0 6px 14px rgba(87, 65, 217, .22); }
.brand span { font-family: var(--serif); font-size: 22px; letter-spacing: .06em; }
.brand:hover { color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--meta); text-decoration: none; font-size: 15px; font-weight: 600; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--primary); }

/* Buttons and pills */
.soon {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 11px 18px 11px 15px;
	border-radius: 999px;
	background: var(--lavender);
	color: var(--primary-dark);
	font-weight: 700;
	font-size: 15px;
}
.soon .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px rgba(87, 65, 217, .16); }
.button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 22px;
	border-radius: 14px;
	background: var(--primary);
	color: #fff;
	font-weight: 700;
	font-size: 16px;
	text-decoration: none;
	box-shadow: 0 10px 22px rgba(87, 65, 217, .25);
}
.button:hover { background: var(--primary-dark); color: #fff; }
.text-link { font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Hero */
.hero { padding: 72px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6.2vw, 66px); line-height: 1.03; letter-spacing: -.035em; margin-bottom: 22px; }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 31em; margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.hero-note { margin: 22px 0 0; font-size: 14px; color: var(--muted); }

/* Phone mockup */
.stage { position: relative; display: flex; justify-content: center; padding: 10px 0 64px; }
.stage::before {
	content: "";
	position: absolute;
	inset: 8% 6% 10%;
	background: radial-gradient(closest-side, rgba(87, 65, 217, .20), rgba(214, 90, 136, .10) 55%, transparent 72%);
	filter: blur(10px);
	z-index: 0;
}
.phone {
	position: relative;
	z-index: 1;
	width: 336px;
	border-radius: 48px;
	background: var(--bg);
	border: 9px solid #1F1D24;
	box-shadow: 0 40px 70px -20px rgba(67, 47, 177, .40), 0 10px 24px rgba(33, 31, 39, .14);
	padding: 14px 14px 22px;
	font-size: 11px;
	line-height: 1.35;
}
.phone .notch { width: 92px; height: 24px; border-radius: 14px; background: #1F1D24; margin: 0 auto 14px; }
.phone .p-eyebrow { font-size: 8.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--eyebrow); }
.phone .p-title { font-family: var(--serif); font-size: 21px; letter-spacing: -.02em; margin: 2px 0 12px; color: var(--ink); }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.col-head { display: flex; align-items: center; gap: 5px; font-weight: 700; font-size: 10.5px; margin-bottom: 7px; color: var(--title); }
.avatar { width: 18px; height: 18px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-size: 9px; font-weight: 800; }
.card-mini {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 11px;
	padding: 7px 7px 7px 9px;
	margin-bottom: 6px;
	border-left: 3px solid var(--c, var(--primary));
}
.card-mini b { display: block; font-size: 10.5px; color: var(--ink); line-height: 1.25; }
.card-mini small { display: block; font-size: 9.5px; color: var(--muted); margin-top: 2px; }
.card-mini .ring { display: inline-block; margin-top: 4px; font-size: 7.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--rose); background: var(--rose-soft); padding: 2px 5px; border-radius: 6px; }
.phone .tabbar { display: flex; justify-content: space-around; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); color: var(--muted); font-size: 8.5px; font-weight: 700; }
.phone .tabbar .on { color: var(--primary); }

.bubble-wrap { position: absolute; z-index: 2; left: max(0px, calc(50% - 292px)); bottom: 2px; width: 262px; }
.bubble {
	background: var(--primary);
	color: #fff;
	padding: 10px 14px;
	border-radius: 18px 18px 6px 18px;
	font-size: 14px;
	font-weight: 600;
	box-shadow: 0 14px 28px rgba(87, 65, 217, .30);
	width: max-content;
	max-width: 100%;
	margin-left: auto;
}
.toast {
	margin-top: 8px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 8px 11px;
	font-size: 12px;
	color: var(--meta);
	box-shadow: var(--shadow);
	display: flex;
	gap: 8px;
	align-items: center;
	white-space: nowrap;
}
.toast .check { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.toast b { color: var(--ink); }

/* Sections */
.section { padding: 88px 0; }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 46px); line-height: 1.08; letter-spacing: -.03em; }
.section-head p { color: var(--muted); font-size: 18px; margin: 16px 0 0; }

.features { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.feature {
	grid-column: span 2;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 30px 28px 32px;
	box-shadow: var(--shadow);
}
.feature:nth-child(4), .feature:nth-child(5) { grid-column: span 3; }
.feature h3 { font-size: 24px; line-height: 1.15; letter-spacing: -.015em; margin: 20px 0 10px; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }
.feature .quote { color: var(--ink); font-weight: 600; white-space: nowrap; }
.icon-tile { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--lavender); color: var(--primary); }
.icon-tile.rose { background: var(--rose-soft); color: var(--rose); }
.icon-tile.teal { background: var(--teal-soft); color: var(--teal); }
.icon-tile svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.levels { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.levels span { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--chip); color: var(--meta); }
.levels span.loud { background: var(--rose-soft); color: var(--rose); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { padding: 6px 4px; }
.step .num { font-family: var(--serif); font-size: 15px; color: var(--primary); letter-spacing: .08em; }
.step h3 { font-size: 23px; letter-spacing: -.015em; margin: 8px 0 8px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }
.steps-box { background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 44px 40px; box-shadow: var(--shadow); }

/* Privacy band */
.band {
	background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
	color: #fff;
	border-radius: 30px;
	padding: 56px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
	box-shadow: 0 30px 60px -24px rgba(67, 47, 177, .55);
}
.band .eyebrow { color: rgba(255, 255, 255, .72); }
.band h2 { color: #fff; font-size: clamp(32px, 4vw, 44px); line-height: 1.08; letter-spacing: -.03em; }
.band p { color: rgba(255, 255, 255, .86); margin: 16px 0 0; }
.band a { color: #fff; font-weight: 700; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before {
	content: "";
	flex: none;
	width: 22px;
	height: 22px;
	margin-top: 2px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* Closing call to action */
.closing { text-align: center; padding: 96px 0 104px; }
.closing img { width: 76px; height: 76px; border-radius: 22px; margin: 0 auto 24px; box-shadow: 0 16px 30px rgba(87, 65, 217, .28); }
.closing h2 { font-size: clamp(32px, 4.4vw, 46px); letter-spacing: -.03em; line-height: 1.08; }
.closing p { color: var(--muted); font-size: 18px; margin: 14px auto 28px; max-width: 34em; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0 44px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--meta); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--primary); }
.site-footer .brand img { width: 30px; height: 30px; border-radius: 9px; }
.site-footer .brand span { font-size: 19px; }
.site-footer .legal { width: 100%; font-size: 12.5px; color: #9B959F; margin: 0; }

/* Document pages: privacy, support */
.doc-hero { padding: 64px 0 28px; }
.doc-hero h1 { font-size: clamp(38px, 5.4vw, 56px); line-height: 1.05; letter-spacing: -.035em; }
.doc-hero p { color: var(--muted); font-size: 18px; margin: 16px 0 0; }
.doc-hero .meta { font-size: 14px; color: var(--muted); margin-top: 18px; }
.doc { padding-bottom: 96px; }
.doc h2 { font-size: 29px; letter-spacing: -.02em; line-height: 1.15; margin: 52px 0 14px; scroll-margin-top: 90px; }
.doc h3 { font-family: var(--sans); font-size: 17px; font-weight: 700; margin: 26px 0 6px; }
.doc p, .doc li { color: var(--body); }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 16px; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--primary); }
.doc strong { color: var(--ink); }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 30px; box-shadow: var(--shadow); margin: 8px 0 18px; }
.panel.soft { background: var(--lavender); border-color: transparent; box-shadow: none; }
.panel h2:first-child, .panel h3:first-child { margin-top: 0; }
.panel .checks li::before { background-color: var(--primary); }
.panel .checks li { color: var(--ink); }
.doc ul.checks { padding-left: 0; margin-bottom: 0; }
.doc .panel > :last-child { margin-bottom: 0; }

.toc { columns: 2; column-gap: 28px; list-style: none; padding: 0 !important; margin: 0 !important; }
.toc li { break-inside: avoid; margin: 0 0 8px; }
.toc a { text-decoration: none; font-weight: 600; font-size: 15.5px; }
.toc a:hover { text-decoration: underline; }

.table-wrap { overflow-x: auto; margin: 6px 0 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 520px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 13px 16px; border-bottom: 1px solid var(--border); color: var(--body); }
.doc th { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--eyebrow); background: #FBFAF8; }
.doc tr:last-child td { border-bottom: 0; }
.doc td:first-child { font-weight: 700; color: var(--ink); width: 30%; }

/* Support page */
.contact-card { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.contact-card .icon-tile { width: 56px; height: 56px; border-radius: 17px; }
.contact-card p { margin: 0; }
.contact-card .email a { text-decoration: none; }
.contact-card p.email { margin-bottom: 6px; }
.contact-card .email { font-family: var(--serif); font-size: 24px; letter-spacing: -.01em; word-break: break-all; }
.steps-list { list-style: none; padding: 0 !important; counter-reset: s; }
.steps-list li { counter-increment: s; position: relative; padding: 2px 0 0 42px; margin-bottom: 14px; min-height: 30px; }
.steps-list li::before {
	content: counter(s);
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--primary);
	color: #fff;
	font-weight: 800;
	font-size: 14px;
	display: grid;
	place-items: center;
	position: absolute;
	left: 0;
	top: 0;
}
.path { font-weight: 700; color: var(--ink); white-space: nowrap; }

.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; margin-bottom: 12px; }
.faq summary {
	cursor: pointer;
	list-style: none;
	padding: 18px 54px 18px 22px;
	font-weight: 700;
	color: var(--ink);
	position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: "+";
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--lavender);
	color: var(--primary);
	display: grid;
	place-items: center;
	font-size: 18px;
	font-weight: 600;
	line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 22px 18px; }
.faq .answer p:last-child { margin-bottom: 0; }

/* Responsive */
@media (max-width: 960px) {
	.hero .wrap { grid-template-columns: 1fr; gap: 40px; }
	.hero { padding: 48px 0 72px; }
	.features { grid-template-columns: 1fr 1fr; }
	.feature, .feature:nth-child(4) { grid-column: span 1; }
	.feature:nth-child(5) { grid-column: span 2; }
	.band { grid-template-columns: 1fr; padding: 44px 36px; }
}
@media (max-width: 720px) {
	.steps { grid-template-columns: 1fr; gap: 26px; }
	.steps-box { padding: 32px 26px; }
	.toc { columns: 1; }
}
@media (max-width: 640px) {
	body { font-size: 16.5px; }
	.wrap { padding: 0 20px; }
	.site-nav { gap: 18px; }
	.site-nav .wide { display: none; }
	.hero h1 { font-size: 42px; }
	.hero .lead { font-size: 18px; }
	.section { padding: 64px 0; }
	.features { grid-template-columns: 1fr; gap: 14px; }
	.feature, .feature:nth-child(4), .feature:nth-child(5) { grid-column: auto; }
	.feature { padding: 24px 22px 26px; }
	.band { padding: 36px 24px; border-radius: 24px; }
	.phone { width: 272px; }
	.bubble-wrap { position: relative; left: auto; bottom: auto; width: 272px; margin: -6px auto 0; }
	.stage { flex-direction: column; align-items: center; padding-bottom: 8px; }
	.hero { padding-bottom: 24px; }
	.panel { padding: 22px 20px; }
	.doc h2 { font-size: 25px; margin-top: 42px; }
	.contact-card { grid-template-columns: 1fr; gap: 14px; }
	.contact-card .email { font-size: 21px; }
	.feature .quote { white-space: normal; }
	.table-wrap { overflow: visible; }
	.doc table { min-width: 0; }
	.doc thead { display: none; }
	.doc tr { display: block; padding: 15px 18px; border-bottom: 1px solid var(--border); }
	.doc tr:last-child { border-bottom: 0; }
	.doc td, .doc td:first-child { display: block; padding: 0; border: 0; width: auto; }
	.doc td:first-child { margin-bottom: 4px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
