/* Kiddy Timer website. The app's look: navy ink, warm cream paper, a sky-blue home screen, rainbow sticker
   lettering with a thin white outline, chunky rounded cards. Rounded system type (the app's font on Apple
   devices), Nunito elsewhere. */

@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #27304a;
  --ink-soft: rgba(39, 48, 74, .72);
  --outline: #2e2433;
  --cream: #fff9ec;
  --paper: #fff7e8;
  --white: #fffdf7;
  --sky: #7ec3f5;
  --sky-deep: #3b8eea;
  --green: #2fb96f;
  --sunshine: #ffc83d;
  --pink: #e777ac;
  --purple: #8a6ad9;
  --teal: #35b7a1;
  --coral: #f08a70;
  --radius: 28px;
  --shadow: 0 2px 0 rgba(46, 36, 51, .08), 0 18px 40px -18px rgba(39, 48, 74, .35);
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.6; color: var(--ink); background: var(--cream); }
img { max-width: 100%; height: auto; }
a { color: var(--sky-deep); text-decoration-thickness: .08em; text-underline-offset: .15em; }
a:hover { color: #2563c9; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; font-weight: 900; }
h2 { font-size: clamp(30px, 4.4vw, 46px); }
h3 { font-size: 22px; font-weight: 800; }
p { margin: 0 0 1em; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 8px; }
.muted { color: var(--ink-soft); }
:focus-visible { outline: 3px solid var(--sky-deep); outline-offset: 3px; border-radius: 8px; }

/* Rainbow sticker lettering: each letter its own colour, a thin white outline and a soft darker lip. */
.rainbow { white-space: nowrap; }
.rainbow span span { color: var(--c); text-shadow:
  -.045em 0 #fff, .045em 0 #fff, 0 -.045em #fff, 0 .045em #fff,
  -.032em -.032em #fff, .032em -.032em #fff, -.032em .032em #fff, .032em .032em #fff,
  0 .09em rgba(39, 48, 74, .22); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 249, 236, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(39, 48, 74, .07); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 21px; color: var(--ink); text-decoration: none; }
.brand img { border-radius: 11px; box-shadow: 0 2px 6px rgba(39, 48, 74, .18); }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 800; font-size: 16px; padding: 8px 14px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(59, 142, 234, .12); color: var(--ink); }
.menu { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu span { display: block; width: 24px; height: 3px; margin: 4px 0; border-radius: 3px; background: var(--ink); transition: transform .2s, opacity .2s; }
@media (max-width: 820px) {
  .menu { display: block; }
  .nav { position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; padding: 10px 16px 18px; background: var(--cream); border-bottom: 1px solid rgba(39, 48, 74, .08); display: none; }
  .nav.open { display: flex; }
  .nav a { font-size: 18px; padding: 12px 14px; }
  .menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Store badges */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.badge { position: relative; display: inline-flex; align-items: center; line-height: 0; border-radius: 10px; transition: transform .15s; }
.badge.apple img { height: 50px; width: auto; }
.badge.google img { height: 72px; width: auto; margin: -11px -10px; }
a.badge:hover { transform: translateY(-2px); }
.badge.soon { cursor: default; }
.badge.soon img { opacity: .9; }
.soon-tag { position: absolute; top: -10px; right: -8px; background: var(--sunshine); color: var(--ink); font-size: 12px; font-weight: 900; line-height: 1; padding: 5px 8px; border-radius: 999px; box-shadow: 0 2px 0 rgba(46, 36, 51, .15); }
.badge.google .soon-tag { top: -6px; right: -4px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: #8fcbf6 url("img/sky.webp") center top / cover no-repeat; border-radius: 0 0 48px 48px; padding: 56px 0 0; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: center; }
.hero-copy { position: relative; z-index: 2; padding: 24px 0 72px; }
.wordmark { display: block; font-size: clamp(56px, 9vw, 104px); font-weight: 900; line-height: 1; margin-bottom: 12px; }
.hero h1 { font-size: clamp(26px, 3.6vw, 38px); color: var(--ink); margin-bottom: 30px; }
.hero .lead { font-size: 20px; line-height: 1.65; font-weight: 600; color: var(--ink); max-width: 33em; margin-bottom: 40px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 0; padding: 0; list-style: none; }
.chips li { background: rgba(255, 253, 247, .82); border-radius: 999px; padding: 6px 13px; font-size: 15px; font-weight: 800; color: var(--ink); }
.hero-art { position: relative; height: 600px; }
.hero-art .shot { position: absolute; width: 270px; border-radius: 34px; box-shadow: 0 0 0 5px rgba(255, 253, 247, .9), 0 30px 60px -20px rgba(28, 52, 98, .55); }
.hero-art .shot.back { left: 2%; top: 70px; transform: rotate(-7deg); }
.hero-art .shot.front { right: 4%; top: 24px; transform: rotate(5deg); }
.hero-art .art { position: absolute; width: 120px; filter: drop-shadow(0 12px 14px rgba(28, 52, 98, .25)); animation: float 6s ease-in-out infinite; }
.hero-art .a1 { left: 14%; top: -14px; animation-delay: -1s; z-index: 3; }
.hero-art .a2 { left: -3%; bottom: 26px; width: 130px; animation-delay: -3s; z-index: 3; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(3deg); } }
@media (max-width: 900px) {
  .hero { padding-top: 34px; border-radius: 0 0 36px 36px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-copy { padding: 8px 0 12px; text-align: center; }
  .hero h1 { margin-bottom: 22px; }
  .hero .lead { margin-bottom: 32px; }
  .chips { margin-top: 26px; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero .stores, .chips { justify-content: center; }
  .hero-art { height: 470px; max-width: 460px; width: 100%; margin: 0 auto; }
  .hero-art .shot { width: 210px; }
  .hero-art .shot.back { left: 4%; top: 60px; }
  .hero-art .shot.front { right: 4%; top: 18px; }
  .hero-art .art { width: 90px; }
  .hero-art .a2 { width: 96px; }
}

/* Sections */
.section { padding: 96px 0; }
.section.tight { padding: 64px 0; }
.kicker { display: inline-block; font-size: 14px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--sky-deep); background: rgba(59, 142, 234, .1); padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }
.center { text-align: center; }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head p { font-size: 20px; color: var(--ink-soft); font-weight: 600; }
.band { background: var(--white); border-radius: 48px; margin: 0 12px; }
@media (max-width: 700px) { .section { padding: 64px 0; } .band { border-radius: 32px; margin: 0 8px; } }

/* Cards */
.grid { display: grid; gap: 22px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid.three, .grid.two { grid-template-columns: 1fr; } }
.card { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border: 2px solid rgba(46, 36, 51, .06); }
.card .art { width: 88px; display: block; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-weight: 600; margin: 0; }
.card.tint-blue { background: #e7f3ff; } .card.tint-green { background: #e6f7ec; } .card.tint-pink { background: #fde8f2; } .card.tint-yellow { background: #fff3d1; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { text-align: center; }
.step .shot { width: 100%; max-width: 250px; border-radius: 30px; box-shadow: var(--shadow); margin-bottom: 18px; }
.step h3::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: 8px; border-radius: 50%; background: var(--sky-deep); color: #fff; font-size: 18px; vertical-align: 2px; }
.step p { color: var(--ink-soft); font-weight: 600; font-size: 17px; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .step .shot { max-width: 230px; } }

/* Routines */
.routines { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.routine { display: flex; flex-direction: column; align-items: center; min-height: 168px; background: var(--white); border-radius: 24px; padding: 16px 10px 14px; text-align: center; box-shadow: var(--shadow); font-weight: 800; font-size: 16px; line-height: 1.25; }
.routine .art { display: block; width: auto; max-width: 80%; max-height: 92px; margin: auto; }
.routine .label { margin-top: 10px; }
@media (max-width: 900px) { .routines { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .routines { grid-template-columns: repeat(2, 1fr); } }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature + .feature { margin-top: 80px; }
.feature.flip .feature-media { order: -1; }
.feature-media { text-align: center; position: relative; }
.feature-media .shot { width: 300px; border-radius: 36px; box-shadow: 0 30px 60px -24px rgba(28, 52, 98, .5); }
.feature-media .art { position: absolute; width: 120px; right: 8%; bottom: 6%; filter: drop-shadow(0 12px 14px rgba(28, 52, 98, .25)); }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.ticks li { position: relative; padding-left: 36px; margin-bottom: 12px; font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; gap: 28px; } .feature.flip .feature-media { order: 0; } .feature-media .shot { width: 240px; } }

/* Screenshot strip */
.strip { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 20px 30px; margin: 0 auto; max-width: 1400px; scrollbar-width: thin; }
.strip .shot { flex: 0 0 auto; width: 230px; border-radius: 30px; scroll-snap-align: center; box-shadow: var(--shadow); }
/* Wide screens show all six in one row. */
@media (min-width: 1100px) { .strip { justify-content: center; overflow: visible; } .strip .shot { width: min(230px, calc((100vw - 160px) / 6)); border-radius: 26px; } }

/* Safe and private */
.promise { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.promise .card { text-align: center; padding: 24px 18px; }
.promise strong { display: block; font-size: 20px; font-weight: 900; margin-bottom: 4px; }
@media (max-width: 900px) { .promise { grid-template-columns: repeat(2, 1fr); } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--white); border-radius: 22px; margin-bottom: 12px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-weight: 800; font-size: 19px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-52%); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(59, 142, 234, .12); color: var(--sky-deep); font-size: 22px; font-weight: 900; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 24px 22px; margin: 0; color: var(--ink-soft); font-weight: 600; }

/* Blog cards */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: transform .15s; }
.post:hover { transform: translateY(-4px); color: var(--ink); }
.post-art { width: 84px; margin-bottom: 12px; }
.post-kicker { font-size: 13px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--sky-deep); }
.post-title { font-size: 22px; font-weight: 900; line-height: 1.2; margin: 6px 0 8px; }
.post-desc { color: var(--ink-soft); font-weight: 600; font-size: 16px; flex: 1; }
.more { margin-top: 14px; font-weight: 900; color: var(--sky-deep); }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr; } }

/* Closing call to action */
.cta { position: relative; overflow: hidden; background: #8fcbf6 url("img/sky.webp") center / cover no-repeat; border-radius: 48px; margin: 0 12px; padding: 80px 20px; text-align: center; }
.cta h2 { font-size: clamp(34px, 5vw, 54px); }
.cta p { font-size: 20px; font-weight: 700; max-width: 34em; margin: 0 auto 26px; }
.cta .stores { justify-content: center; }
.cta .art { position: absolute; width: 130px; filter: drop-shadow(0 12px 14px rgba(28, 52, 98, .25)); animation: float 7s ease-in-out infinite; }
.cta .c1 { left: 5%; top: 18%; } .cta .c2 { right: 6%; bottom: 12%; animation-delay: -3s; }
@media (max-width: 760px) { .cta { border-radius: 32px; margin: 0 8px; padding: 64px 18px 150px; } .cta .art { width: 88px; } .cta .c1 { left: 8%; top: auto; bottom: 26px; } .cta .c2 { right: 8%; bottom: 30px; } }

/* Plain pages (support, privacy, blog) */
.page-head { background: #8fcbf6 url("img/sky.webp") center top / cover no-repeat; border-radius: 0 0 40px 40px; padding: 64px 0 56px; text-align: center; }
.page-head h1 { font-size: clamp(36px, 6vw, 60px); margin-bottom: 10px; }
.page-head p { font-size: 20px; font-weight: 700; max-width: 36em; margin: 0 auto; }
.prose { max-width: 760px; margin: 0 auto; padding: 56px 20px 80px; }
.prose h2 { font-size: clamp(26px, 3.4vw, 34px); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose figure { margin: 34px 0; text-align: center; }
.prose figure .shot { width: 280px; border-radius: 32px; box-shadow: var(--shadow); }
.prose figure.pair { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.prose figure.pair .shot { width: 230px; }
.prose figcaption { width: 100%; font-size: 15px; color: var(--ink-soft); font-weight: 600; margin-top: 12px; }
.prose blockquote { margin: 26px 0; padding: 18px 22px; border-radius: 20px; background: #fff3d1; font-weight: 700; }
.prose .meta { color: var(--ink-soft); font-weight: 700; font-size: 15px; }
.app-box { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin: 36px 0; border: 2px solid rgba(59, 142, 234, .18); }
.app-box img.icon { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 4px 10px rgba(39, 48, 74, .2); }
.app-box h3 { margin: 0 0 4px; }
.app-box p { margin: 0 0 14px; color: var(--ink-soft); font-weight: 600; font-size: 17px; }
@media (max-width: 560px) { .app-box { grid-template-columns: 1fr; text-align: center; } .app-box img.icon { margin: 0 auto; } .app-box .stores { justify-content: center; } }
.prose .art, .page-head .art { width: 120px; display: block; margin: 0 auto 10px; }
.contact .art { width: 104px; }
.contact { text-align: center; background: var(--white); border-radius: var(--radius); padding: 34px 24px; box-shadow: var(--shadow); margin: 0 0 40px; }
.contact .mail { display: inline-block; font-size: clamp(22px, 4vw, 30px); font-weight: 900; margin: 6px 0 8px; word-break: break-all; }
.toc { background: var(--white); border-radius: 22px; padding: 18px 22px 8px; box-shadow: var(--shadow); margin: 0 0 34px; }
.toc strong { display: block; margin-bottom: 6px; }

/* Footer */
.foot { background: var(--ink); color: rgba(255, 255, 255, .78); margin-top: 96px; padding: 56px 0 40px; }
.foot .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.foot .brand { color: #fff; }
.foot h2 { color: #fff; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; margin: 6px 0 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 8px; }
.foot a { color: rgba(255, 255, 255, .86); text-decoration: none; font-weight: 700; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot .muted { color: rgba(255, 255, 255, .5); font-weight: 700; }
.foot p { font-weight: 600; margin: 12px 0 0; max-width: 26em; }
.foot .legal { grid-column: 1 / -1; font-size: 13px; max-width: none; color: rgba(255, 255, 255, .5); border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 22px; margin-top: 10px; }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art .art, .cta .art { animation: none; }
  .post, a.badge { transition: none; }
}
