/* Tiny Tomorrows website. Palette from the design in Tiny-Tomorrows/website/index.html; type (Fraunces, Nunito Sans) and wording from
   Tiny-Tomorrows/Design sheet - Market - Launch.pdf.
   Small gray and rose text colors are a shade darker than the design so they reach WCAG AA (4.5:1). */

:root {
  --cream: #fcf8f3;
  --pink: #f6e5e3;
  --rose: #c98f94;
  --mauve: #71565e;
  --mauve-dark: #5b4149;
  --ink: #453b40;
  --muted: #7c6f71;
  --sage: #dfe9df;
  --line: #eadfdd;
  --white: #fff;
  --heading: #654d56;
  --shadow: 0 20px 65px rgba(95, 65, 68, .13);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: 'Nunito Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 400; text-wrap: balance; font-optical-sizing: auto; }
p { line-height: 1.8; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 6px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.sr, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 20; background: var(--white); color: var(--mauve); padding: 10px 16px; border-radius: 20px; font-weight: 700; }
.skip:focus { top: 12px; }

.announcement { background: #73565f; color: #fff; text-align: center; font-size: 12px; letter-spacing: .08em; padding: 10px 16px; }

/* Navigation */
nav { height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--mauve); font-family: 'Fraunces', Georgia, serif; font-size: 27px; letter-spacing: -.5px; }
.brand svg { width: 35px; height: 35px; }
.navlinks { display: flex; align-items: center; gap: 32px; font-size: 13px; font-weight: 600; }
.navlinks a:not(.pill):hover { color: var(--rose); }
.mobile-menu { display: none; background: none; border: 0; font-size: 25px; color: var(--mauve); width: 44px; height: 44px; }

/* Buttons */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--mauve); border: 1px solid var(--mauve); color: #fff; padding: 15px 24px; border-radius: 30px; font-weight: 700; font-size: 13px; transition: .2s; }
.pill:hover { background: var(--mauve-dark); transform: translateY(-2px); }
.pill.light { background: #fff; color: var(--mauve); border-color: #e6d4d4; }
.pill:disabled { opacity: .7; transform: none; cursor: default; }

/* Hero */
.hero-wrap { background: radial-gradient(circle at 85% 26%, #f3d6d8 0, transparent 33%), radial-gradient(circle at 10% 90%, #f0e5d8 0, transparent 28%), linear-gradient(120deg, #fbf6ef, #faebeb); border-radius: 0 0 48px 48px; overflow: hidden; position: relative; }
.hero { min-height: 620px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 30px; padding-top: 38px; padding-bottom: 76px; }
.eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: #885b64; display: inline-flex; align-items: center; gap: 11px; margin: 0; line-height: 1.5; }
.eyebrow::before { content: ''; height: 1px; width: 28px; background: #ba8c92; flex-shrink: 0; }
h1 { font-size: clamp(52px, 5.7vw, 88px); letter-spacing: -2px; line-height: 1.06; color: #664c55; margin: 24px 0; }
h1 em { color: #c18e94; }
.hero-copy > p:not(.eyebrow):not(.trust) { max-width: 480px; color: #78696d; font-size: 16px; }
.hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 31px 0; }
.trust { display: flex; gap: 14px; align-items: center; color: #78686a; font-size: 12px; margin: 30px 0 0; line-height: 1.5; }
.trust .stars { color: #c79394; letter-spacing: 4px; flex-shrink: 0; }

.hero-visual { min-height: 560px; position: relative; display: flex; align-items: center; justify-content: center; }
.sun { position: absolute; border-radius: 50%; width: 460px; height: 460px; background: #f1d9d8; opacity: .8; right: 0; top: 40px; }
.flower { position: absolute; opacity: .9; }
.f1 { left: 6%; top: 10%; transform: rotate(-15deg); }
.float-note { position: absolute; background: #fffdfa; box-shadow: 0 12px 40px rgba(91, 69, 68, .13); padding: 12px 17px; border-radius: 15px; font-size: 12px; color: #7c666c; z-index: 3; }
.float-note strong { display: block; color: #604e52; font-size: 14px; margin-top: 4px; }
.note-left { left: 1%; top: 30%; transform: rotate(-7deg); }
.note-right { right: -2%; bottom: 20%; transform: rotate(6deg); }

/* Phone: the Today screen in the app's Pale pink theme */
.phone { margin: 0; width: 272px; height: 560px; background: #fff; border: 8px solid #fff; border-radius: 40px; box-shadow: 0 35px 75px rgba(82, 51, 60, .23); position: relative; z-index: 2; overflow: hidden; transform: rotate(5deg); }
.phone::before { content: ''; width: 93px; height: 18px; background: #fff; position: absolute; top: 0; left: calc(50% - 46px); z-index: 3; border-radius: 0 0 14px 14px; }
.app-screen { height: 100%; background: #fdf7f2; padding: 34px 14px 14px; display: flex; flex-direction: column; gap: 9px; }
.app-top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #987b81; }
.app-dot { background: #f4e1e4; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; }
.app-hello { font-family: 'Fraunces', Georgia, serif; color: #765760; font-size: 24px; line-height: 1.1; }
.app-sub { font-size: 11px; color: #8a7679; font-weight: 600; margin-top: -6px; }
.app-progress { display: flex; align-items: center; gap: 8px; font-size: 9.5px; color: #8a7679; font-weight: 600; }
.bars { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.bars i { height: 5px; border-radius: 3px; background: #efdfdd; }
.bars i.on { background: var(--rose); }
.app-card { background: #fff; border: 1px solid #f1e6e3; border-radius: 18px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.app-card img { width: 100%; height: 118px; object-fit: cover; border-radius: 12px; }
.app-row { display: flex; justify-content: space-between; align-items: center; font-size: 9.5px; color: #8a7679; font-weight: 600; padding: 0 2px; }
.app-row .tag { height: 19px; font-size: 9.5px; padding: 0 8px; }
.app-card strong { font-family: 'Fraunces', Georgia, serif; font-weight: 400; color: #6b5159; font-size: 18px; line-height: 1.1; padding: 0 2px; }
.app-sum { font-size: 10px; line-height: 1.4; color: #85777a; padding: 0 2px; }
.app-buttons { display: flex; gap: 6px; }
.app-done { flex: 1; height: 34px; border-radius: 17px; background: #f6c9d4; color: #5e1f33; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.app-swap { height: 34px; padding: 0 12px; border-radius: 17px; background: #f6efec; color: #6b5159; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }
.app-word { background: #e8eae0; border-radius: 14px; padding: 9px 11px; font-size: 10px; line-height: 1.4; color: #5d6559; }
.app-word strong { display: block; font-size: 10.5px; margin-bottom: 1px; }

/* Tags (skill areas) */
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.t-thinking { background: #ece6f3; color: #5a4b75; }
.t-move { background: #f8e6dc; color: #7a4a35; }
.t-lang { background: #e3ebf2; color: #3f5a74; }
.t-senses { background: #e1eadf; color: #4c6150; }

/* Sections */
.section { padding: 110px 0; }
.section-tight { padding-top: 0; }
.section-faq { padding-top: 20px; }
.section-heading { text-align: center; max-width: 690px; margin: 0 auto 55px; }
.section-heading h2 { font-size: clamp(36px, 4vw, 56px); color: var(--heading); line-height: 1.15; margin: 15px 0; }
.section-heading p:not(.eyebrow) { color: var(--muted); font-size: 15px; margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { padding: 33px; background: #fff; border: 1px solid #f1e6e3; border-radius: 22px; transition: .2s; }
.feature:hover { transform: translateY(-4px); box-shadow: 0 14px 35px rgba(91, 67, 69, .07); }
.icon-circle { height: 54px; width: 54px; border-radius: 50%; background: #f7e6e5; display: flex; justify-content: center; align-items: center; margin-bottom: 23px; }
.icon-circle svg { width: 25px; height: 25px; fill: none; stroke: var(--mauve); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.feature:nth-child(3n+2) .icon-circle { background: #eaf0e7; }
.feature:nth-child(3n+3) .icon-circle { background: #f8eee1; }
.feature h3 { font-size: 24px; color: #665159; margin-bottom: 10px; line-height: 1.2; }
.feature p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.7; }

/* One morning's plan */
.day { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.pic { background: #fff; border: 1px solid #f1e6e3; border-radius: 22px; padding: 10px 10px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.pic img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 15px; }
.pic .tag, .pic h3, .pic p { margin-inline: 8px; }
.pic h3 { font-size: 22px; color: #665159; margin-block: 0; line-height: 1.2; }
.pic p { margin-block: -6px 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.note { font-size: 12px; color: #816d71; text-align: center; margin: 28px 0 0; line-height: 1.6; }
.facts { list-style: none; margin: 44px 0 0; padding: 26px 12px; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--pink); border-radius: 26px; }
.facts li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; font-size: 13px; color: #786469; padding: 0 12px; }
.facts li + li { border-left: 1px solid #ead2d1; }
.facts strong { font-family: 'Fraunces', Georgia, serif; font-weight: 400; font-size: 38px; color: var(--heading); line-height: 1.15; }

/* Story */
.story { background: #e9e9df; border-radius: 40px; display: grid; grid-template-columns: 1fr 1fr; min-height: 500px; overflow: hidden; }
.story-art { position: relative; overflow: hidden; background: radial-gradient(circle at 52% 50%, #f8f3e6 0 35%, transparent 36%), #e7e6d9; display: flex; align-items: center; justify-content: center; }
.story-art svg { width: 80%; max-width: 390px; }
.story-text { padding: 80px 70px; display: flex; flex-direction: column; justify-content: center; }
.story h2 { font-size: clamp(34px, 3.5vw, 52px); line-height: 1.15; color: #5e5c50; margin: 15px 0; }
.story p:not(.eyebrow) { color: #6b695e; font-size: 15px; }
.story p.story-close { font-family: 'Fraunces', Georgia, serif; font-style: italic; font-size: 19px; color: #765963; }
.story .inline { color: #73565f; font-weight: 700; font-size: 13px; display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.story .inline:hover { color: var(--mauve-dark); }

.quote { padding: 90px 20px; text-align: center; }
.quote h2 { font-size: clamp(33px, 4vw, 54px); max-width: 800px; margin: 0 auto; color: #765963; line-height: 1.3; }
.quote h2 em { color: #c38d96; }
.quote .small-flower { font-size: 32px; color: #c38d96; margin-bottom: 26px; }

/* FAQ */
.faq { max-width: 770px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: 600; color: #685359; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 23px; line-height: 18px; color: #ac8389; }
.faq details[open] summary::after { content: '−'; }
.faq p { font-size: 14px; color: var(--muted); margin: 13px 0 0; }

/* Waitlist */
.waitlist { background: #f5e3e1; border-radius: 36px; margin-bottom: 75px; text-align: center; padding: 75px 25px; position: relative; overflow: hidden; }
.waitlist .eyebrow { justify-content: center; }
.waitlist h2 { font-size: clamp(36px, 4vw, 55px); color: #654c54; margin: 20px 0 12px; }
.waitlist p:not(.eyebrow) { color: #766367; font-size: 15px; max-width: 500px; margin: 0 auto 26px; }
.waitlist-form { display: flex; gap: 9px; max-width: 520px; margin: 0 auto; }
.waitlist-form input { flex: 1; min-width: 0; border: 1px solid #e8cfd0; border-radius: 35px; padding: 16px 20px; background: #fff; color: var(--ink); font-size: 14px; }
.waitlist-form input:focus { border-color: #ab7a83; outline: none; box-shadow: 0 0 0 3px rgba(201, 143, 148, .35); }
.waitlist-form input[aria-invalid="true"] { border-color: #b4545f; }
.waitlist-form .pill { white-space: nowrap; }
.waitlist .status { min-height: 1.5em; margin: 14px auto 0 !important; color: #5e4a50 !important; font-size: 14px !important; font-weight: 600; }
.waitlist .form-note { font-size: 12px !important; color: #746467 !important; margin: 6px auto 0 !important; }
.waitlist-form.done { display: none; }
.waitlist-form.done + .status { font-family: 'Fraunces', Georgia, serif; font-weight: 400; font-size: 24px !important; color: #654c54 !important; }

/* Footer */
footer { padding: 30px 0 50px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #746467; font-size: 12px; }
footer .brand { font-size: 21px; }
footer .brand svg { width: 27px; height: 27px; }
.footerlinks { display: flex; gap: 25px; }
.footerlinks a:hover { color: #6c515a; }

/* Tablet */
@media (max-width: 980px) {
  .day { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; padding: 8px; }
  .facts li { padding: 18px 8px; }
  .facts li + li { border-left: 0; }
  .facts li:nth-child(even) { border-left: 1px solid #ead2d1; }
  .facts li:nth-child(n + 3) { border-top: 1px solid #ead2d1; }
}
@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; min-height: unset; padding-top: 56px; }
  .hero-copy { text-align: center; }
  .hero-copy > p:not(.eyebrow):not(.trust) { margin-inline: auto; }
  .eyebrow { justify-content: center; }
  .hero-actions, .trust { justify-content: center; }
  .trust { text-align: left; }
  .sun { right: calc(50% - 230px); }
  .features { grid-template-columns: 1fr 1fr; }
  .story { grid-template-columns: 1fr; }
  .story-art { min-height: 310px; }
  .story-art svg { max-width: 280px; }
  .story-text { padding: 45px; }
  .mobile-menu { display: block; }
  .navlinks { display: none; position: absolute; z-index: 10; top: 82px; left: -28px; right: -28px; flex-direction: column; align-items: stretch; text-align: center; gap: 22px; background: var(--cream); padding: 25px; box-shadow: 0 15px 25px rgba(0, 0, 0, .08); }
  .navlinks.active { display: flex; }
}

/* Phone */
@media (max-width: 580px) {
  .container { padding: 0 20px; }
  nav { height: 72px; }
  .navlinks { top: 72px; left: -20px; right: -20px; }
  .brand { font-size: 24px; }
  .hero-wrap { border-radius: 0 0 32px 32px; }
  .hero { padding-top: 34px; padding-bottom: 40px; }
  h1 { font-size: 52px; letter-spacing: -1.5px; }
  .hero-actions .pill { flex: 1 1 auto; }
  .hero-visual { min-height: 520px; }
  .phone { transform: rotate(4deg) scale(.9); }
  .sun { width: 340px; height: 340px; right: calc(50% - 170px); top: 70px; }
  .f1 { left: -4%; top: 4%; }
  .note-left { left: -3%; top: 22%; }
  .note-right { right: -3%; bottom: 12%; }
  .section { padding: 75px 0; }
  .section-tight { padding-top: 0; }
  .section-faq { padding-top: 10px; }
  .features { grid-template-columns: 1fr; }
  .day { gap: 12px; }
  .pic { border-radius: 18px; padding: 8px 8px 14px; gap: 8px; }
  .pic .tag, .pic h3, .pic p { margin-inline: 4px; }
  .pic .tag { font-size: 10px; height: 21px; padding: 0 8px; }
  .pic h3 { font-size: 17px; }
  .pic p { font-size: 12px; margin-top: -4px; }
  .facts strong { font-size: 30px; }
  .story { border-radius: 24px; }
  .story-text { padding: 35px 26px; }
  .quote { padding: 70px 10px; }
  .waitlist { padding: 55px 22px; border-radius: 26px; }
  .waitlist-form { flex-direction: column; }
  .waitlist-form .pill { width: 100%; }
  footer { flex-direction: column; align-items: flex-start; }
  .footerlinks { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pill, .feature { transition: none; }
  .pill:hover, .feature:hover { transform: none; }
}
