/*
Theme Name: Blink to Wake Alarm
Theme URI: https://blink.profvalue.com/
Author: Blink to Wake Alarm
Description: One-page website for the Blink to Wake Alarm iPhone and iPad app. Set the App Store link in Appearance → Customize → App links.
Version: 1.3.0
Requires at least: 6.0
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: blink-to-wake
*/

/* ---------- fonts (SIL Open Font License) ---------- */
@font-face { font-family: "Bricolage"; src: url("assets/fonts/Brico-XB-op12.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("assets/fonts/DMSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("assets/fonts/DMSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("assets/fonts/DMSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
	--purple: #241a4e;
	--purple-2: #2f2266;
	--violet: #5b3fd0;
	--lav: #cfc8ee;
	--lime: #d6f15c;
	--yellow: #ffd43b;
	--cream: #fbf8e6;
	--cream-2: #f4efcb;
	--ink: #14140f;
	--muted: #5d5a48;
	--orange: #f0731a;
	--green: #34c759;
	--radius: 28px;
	--head: "Bricolage", "DM Sans", system-ui, sans-serif;
	--body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
.prose .meta { color: var(--muted); font-size: 15px; }
body { margin: 0; font-family: var(--body); font-size: 18px; line-height: 1.6; color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); }
h1, h2, h3 { font-family: var(--head); font-weight: 800; line-height: 1.04; letter-spacing: -0.025em; margin: 0 0 .5em; }
h1 { font-size: clamp(48px, 7vw, 92px); }
h2 { font-size: clamp(36px, 4.8vw, 62px); }
h3 { font-size: 22px; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 48px); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { font-weight: 600; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); margin-bottom: 14px; }
.eyebrow--light { color: var(--yellow); }
.hl-yellow { color: var(--yellow); }
.hl-violet { color: var(--violet); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 14px 26px; font-weight: 600; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.btn--small { padding: 9px 20px; font-size: 16px; }
.btn--yellow { background: var(--yellow); color: var(--ink) !important; }
.btn:hover { transform: translateY(-1px); }
.store { display: inline-flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; text-decoration: none; padding: 12px 26px 12px 20px; border-radius: 16px; box-shadow: 0 10px 30px rgba(20, 20, 15, .25); transition: transform .15s ease, box-shadow .15s ease; }
.store:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(20, 20, 15, .3); }
.store svg { width: 26px; height: 26px; }
.store span { display: flex; flex-direction: column; font-family: var(--head); font-weight: 800; font-size: 24px; line-height: 1.05; letter-spacing: -0.01em; }
.store small { font-family: var(--body); font-weight: 500; font-size: 12px; letter-spacing: .02em; opacity: .8; }
.store--light { background: #fff; color: var(--ink); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .25s ease, box-shadow .25s ease; }
.admin-bar .nav { top: 32px; }
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--head); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.brand img { border-radius: 11px; }
.nav__links { display: flex; align-items: center; gap: 24px; }
.nav__links a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 15.5px; }
.nav--dark .brand, .nav--dark .nav__links a:not(.btn) { color: #fff; }
.nav--dark .nav__links a:not(.btn) { color: var(--lav); }
.nav--dark .nav__links a:not(.btn):hover { color: #fff; }
.nav--dark.nav--scrolled { background: rgba(36, 26, 78, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.nav--light { background: rgba(251, 248, 230, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(20,20,15,.08); }
.nav--light .brand, .nav--light .nav__links a:not(.btn) { color: var(--ink); }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav__toggle span { display: block; height: 2.5px; border-radius: 2px; margin: 6px 0; background: currentColor; transition: transform .2s ease; }
.nav--dark .nav__toggle { color: #fff; }
.nav--open .nav__toggle span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav--open .nav__toggle span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 800px at 75% 45%, #4a33a8 0%, var(--purple) 62%); color: #fff; padding: 140px 0 80px; }
.rings { position: absolute; left: 72%; top: 50%; width: 2400px; height: 2400px; transform: translate(-50%, -50%); border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 238px, rgba(170, 150, 255, .14) 238px 241px); pointer-events: none; }
.hero__in { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(44px, 5vw, 70px); }
.lead { font-size: 21px; color: var(--lav); max-width: 520px; }
.hero__cta { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 30px; }
.link-light { color: var(--lav); text-decoration: none; font-weight: 500; }
.link-light:hover { color: #fff; }
.hero__chips { list-style: none; padding: 0; margin: 34px 0 0; display: flex; gap: 12px; flex-wrap: wrap; }
.hero__chips li { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 8px 16px; font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot--green { background: var(--green); }
.dot--orange { background: var(--orange); }
.hero__art img { width: 100%; filter: drop-shadow(0 40px 60px rgba(0,0,0,.35)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }

/* ---------- science ---------- */
.science { padding: 110px 0 90px; }
.science h2 { max-width: 760px; }
.science__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 40px; }
.stat { background: #fff; border-radius: var(--radius); padding: 40px; box-shadow: 0 1px 0 rgba(20,20,15,.06), 0 20px 50px rgba(36,26,78,.08); }
.stat--lime { background: var(--lime); }
.stat__num { font-family: var(--head); font-weight: 800; font-size: clamp(64px, 8vw, 104px); line-height: .95; letter-spacing: -0.04em; margin: 0 0 6px; color: var(--violet); }
.stat--lime .stat__num { color: var(--ink); }
.stat__label { font-weight: 600; font-size: 20px; margin-bottom: 16px; }
.stat p:not(.stat__num):not(.stat__label) { color: var(--muted); }
.stat--lime p:not(.stat__num):not(.stat__label) { color: #3c4020; }
.src { display: inline-block; margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--violet); text-decoration: none; border-bottom: 1.5px solid currentColor; }
.stat--lime .src, .src--dark { color: var(--ink); }

/* ---------- how ---------- */
.how { padding: 70px 0 110px; }
.how__in { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: center; }
.how__art { background: var(--yellow); border-radius: 40px; padding: 50px 50px 0; overflow: hidden; }
.how__art img { width: 78%; margin: 0 auto -18%; }
.steps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 26px; }
.steps li { display: flex; gap: 20px; align-items: flex-start; }
.steps li > span { flex: 0 0 52px; height: 52px; border-radius: 16px; background: var(--purple); color: var(--yellow); font-family: var(--head); font-weight: 800; font-size: 24px; display: grid; place-items: center; }
.steps h3 { margin-bottom: 4px; }
.steps p { color: var(--muted); margin: 0; }

/* ---------- eyes ---------- */
.eyes { background: var(--lime); padding: 110px 0; overflow: hidden; }
.eyes__in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.eyes .eyebrow { color: var(--purple); }
.eyes p { color: #33361c; }
.ticks { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 36px; font-weight: 500; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--purple) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23d6f15c' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.ticks--light li { color: #fff; }
.ticks--light li::before { background-color: var(--yellow); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23241a4e' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.eyes__art { position: relative; display: grid; place-items: center; }
.eye { width: min(420px, 100%); background: #fffdf0; border-radius: 50%; aspect-ratio: 1; display: grid; place-items: center; box-shadow: 0 30px 70px rgba(36,26,78,.18), inset 0 0 0 14px rgba(255,255,255,.6); }
.eye svg { width: 70%; overflow: visible; }
.lid { animation: blink 4.5s infinite; }
@keyframes blink { 0%, 86%, 100% { transform: translateY(0); } 90% { transform: translateY(130px); } 94% { transform: translateY(0); } }
.routine { position: absolute; right: -6px; bottom: 6%; background: var(--purple); color: #fff; border-radius: 22px; padding: 18px 22px; box-shadow: 0 20px 40px rgba(36,26,78,.3); transform: rotate(-3deg); }
.routine p { margin: 0; color: #fff !important; font-size: 16px; }
.routine__title { font-size: 12px !important; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow) !important; font-weight: 600; margin-bottom: 6px !important; }
.routine strong { font-family: var(--head); font-size: 28px; color: var(--yellow); margin-right: 4px; }
.routine span { display: block; font-size: 13px; color: var(--lav); }

/* ---------- features ---------- */
.features { padding: 110px 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.card { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: 0 1px 0 rgba(20,20,15,.06), 0 16px 40px rgba(36,26,78,.06); }
.card__ico { width: 54px; height: 54px; border-radius: 16px; background: var(--cream-2); display: grid; place-items: center; margin-bottom: 18px; }
.card:nth-child(3n+1) .card__ico { background: var(--lime); }
.card:nth-child(3n+2) .card__ico { background: var(--yellow); }
.card:nth-child(3n) .card__ico { background: #e3dcff; }
.card__ico svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card p { color: var(--muted); margin: 0; font-size: 17px; }

/* ---------- mornings ---------- */
.mornings { background: var(--purple); color: #fff; overflow: hidden; position: relative; }
.mornings__in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; padding-top: 100px; }
.mornings h2 { color: #fff; }
.mornings__copy { padding-bottom: 100px; }
.mornings__art img { width: 74%; margin: 0 auto -30%; transform: rotate(-5deg); }
.mornings__art { align-self: end; max-height: 640px; }

/* ---------- yours ---------- */
.yours { padding: 120px 0 100px; }
.yours__in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.yours__art { background: #e3dcff; border-radius: 40px; padding: 50px 50px 0; overflow: hidden; max-height: 600px; }
.yours__art img { width: 76%; margin: 0 auto; transform: rotate(4deg); }

/* ---------- faq ---------- */
.faq { padding: 60px 0 110px; }
.faq h2 { margin-bottom: 30px; }
details { background: #fff; border-radius: 20px; margin-bottom: 12px; box-shadow: 0 1px 0 rgba(20,20,15,.06); }
summary { cursor: pointer; list-style: none; padding: 22px 60px 22px 26px; font-weight: 600; font-size: 19px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; font-size: 22px; line-height: 1; transition: transform .2s ease; }
details[open] summary::after { content: "–"; background: var(--yellow); }
details p { padding: 0 26px 22px; margin: 0; color: var(--muted); }

/* ---------- cta ---------- */
.cta { background: var(--lime); text-align: center; padding: 100px 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; left: 50%; top: 50%; width: 1800px; height: 1800px; transform: translate(-50%, -50%); background: repeating-radial-gradient(circle, transparent 0 178px, rgba(255,255,255,.5) 178px 182px); pointer-events: none; }
.cta__in { position: relative; display: flex; flex-direction: column; align-items: center; }
.cta__icon { border-radius: 28px; box-shadow: 0 20px 40px rgba(36,26,78,.2); margin-bottom: 28px; }
.cta p { font-size: 20px; color: #3c4020; margin-bottom: 30px; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #c9c6b6; padding: 50px 0 40px; font-size: 15px; }
.foot__in { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: center; }
.foot__brand { display: flex; align-items: center; gap: 14px; }
.foot__brand img { border-radius: 12px; }
.foot__brand strong { display: block; color: #fff; font-family: var(--head); font-weight: 800; font-size: 18px; }
.foot__links { display: flex; gap: 24px; flex-wrap: wrap; }
.foot__links a { color: #fff; text-decoration: none; font-weight: 500; }
.foot__links a:hover { color: var(--lime); }
.foot__note { grid-column: 1 / -1; margin: 10px 0 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: #8d8a7a; }

/* ---------- inner pages ---------- */
.page { padding: 150px 0 100px; min-height: 60vh; }
.page__title { font-size: clamp(40px, 5vw, 60px); }
.prose { font-size: 18px; }
.prose h1 { font-size: clamp(40px, 5vw, 60px); margin-bottom: .6em; }
.prose h2 { font-size: 30px; margin-top: 1.6em; }
.prose h3 { font-size: 22px; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--violet); }
.prose table { border-collapse: collapse; width: 100%; }
.prose td, .prose th { border: 1px solid #e3dfc6; padding: 8px 12px; text-align: left; }
.prose + .prose { margin-top: 50px; }

/* ---------- contact page ---------- */
.contact { padding: 150px 0 100px; }
.contact__card { background: var(--purple); color: #fff; border-radius: 36px; padding: 60px; position: relative; overflow: hidden; }
.contact__card::before { content: ""; position: absolute; right: -400px; top: -400px; width: 1100px; height: 1100px; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 118px, rgba(170, 150, 255, .16) 118px 121px); pointer-events: none; }
.contact__card > * { position: relative; }
.contact__card h1 { color: #fff; font-size: clamp(44px, 6vw, 72px); }
.contact__card p { color: var(--lav); font-size: 20px; max-width: 560px; }
.contact__card .eyebrow { color: var(--yellow); font-size: 14px; }
.contact__mail { display: inline-flex; align-items: center; gap: 12px; margin: 14px 0 8px; background: var(--yellow); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 20px; padding: 16px 28px; border-radius: 999px; transition: transform .15s ease; word-break: break-all; }
.contact__mail:hover { transform: translateY(-2px); }
.contact__mail svg { width: 24px; height: 24px; flex: 0 0 24px; }
.contact__copy { display: block; margin-top: 10px; background: none; border: 0; color: var(--lav); font: inherit; font-size: 15px; cursor: pointer; text-decoration: underline; padding: 0; }
.contact__tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.contact__tips div { background: #fff; border-radius: 22px; padding: 24px; box-shadow: 0 1px 0 rgba(20,20,15,.06); }
.contact__tips h3 { font-size: 19px; margin-bottom: 6px; }
.contact__tips p { color: var(--muted); font-size: 16px; margin: 0; }
.contact .prose { margin-top: 40px; }
@media (max-width: 960px) { .contact__tips { grid-template-columns: 1fr; } .contact__card { padding: 40px 28px; } .contact__mail { font-size: 17px; } }

/* ---------- reveal animation ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1120px) {
	.nav__toggle { display: block; }
	.nav__links { position: absolute; top: calc(100% + 6px); left: 16px; right: 16px; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px; border-radius: 22px; background: var(--purple); box-shadow: 0 20px 50px rgba(0,0,0,.3); display: none; }
	.nav--open .nav__links { display: flex; }
	.nav__links a:not(.btn) { color: #fff !important; padding: 12px 14px; }
	.nav__links .btn { justify-content: center; margin-top: 6px; }
	.nav--light .nav__toggle { color: var(--ink); }
	.nav--dark.nav--open { background: var(--purple); }
}

@media (max-width: 960px) {
	body { font-size: 17px; }
	.hero { padding: 120px 0 40px; }
	.hero__in, .how__in, .eyes__in, .mornings__in, .yours__in, .science__grid { grid-template-columns: 1fr; }
	.hero__art { max-width: 560px; margin: 10px auto 0; }
	.rings { left: 50%; top: 70%; }
	.how__art, .yours__art { max-width: 460px; margin: 0 auto; width: 100%; }
	.yours__art { order: 0; }
	.how__copy, .yours__copy { order: 1; }
	.cards { grid-template-columns: 1fr 1fr; }
	.mornings__copy { padding-bottom: 0; }
	.mornings__art { max-width: 420px; margin: 0 auto; max-height: 520px; }
	.routine { position: relative; right: auto; bottom: auto; margin-top: -50px; }
	.eye { width: min(320px, 90%); }
	.stat { padding: 30px; }
	.foot__in { grid-template-columns: 1fr; }
	.admin-bar .nav { top: 46px; }
}
@media (max-width: 600px) {
	.wrap, .wrap--narrow { width: calc(100% - 36px); }
	.cards { grid-template-columns: 1fr; }
	.hero__chips { display: none; }
	.science, .features, .eyes, .yours { padding: 80px 0; }
	.how { padding: 40px 0 80px; }
	.mornings__in { padding-top: 70px; }
	.store span { font-size: 21px; }
	summary { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
	.hero__art img, .lid { animation: none; }
	html { scroll-behavior: auto; }
}
