@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/libre-franklin-regular-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/libre-franklin-bold-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --paper: #f8fafb;
  --ink: #071d29;
  --blue: #08b1f4;
  --ice: #ddf3fd;
  --white: #ffffff;
  --soft: #e9eef1;
  --muted: #425b69;
  --gutter: clamp(20px, 2.22vw, 32px);
  --display: clamp(64px, 8.35vw, 144px);
  --heading: clamp(44px, 5.55vw, 88px);
  --query-heading: clamp(34px, 3.6vw, 60px);
  --lead: clamp(22px, 2.08vw, 30px);
  --body: 18px;
  --small: 14px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--body)/1.55 "Libre Franklin", sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
button { border: 0; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.045em; text-wrap: balance; }
h2 { font-size: var(--heading); line-height: 1.02; }
picture { display: contents; }
/* Short slogan above a descriptive, query-matching heading. */
.eyebrow { margin: 0 0 16px; font-size: var(--small); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
#choose-setup-title, #time-zone-title, #features-title, #routine-title, #faq-title { font-size: var(--query-heading); line-height: 1.06; letter-spacing: -0.035em; }
h3 { font-size: var(--lead); line-height: 1.15; }
p { text-wrap: pretty; }
::selection { background: var(--ink); color: var(--white); }
:focus-visible { outline: 3px solid currentColor; outline-offset: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; left: var(--gutter); top: -80px; z-index: 20; padding: 12px 20px; background: var(--ink); color: var(--white); }
.skip-link:focus { top: 12px; }
.chapter { padding-inline: var(--gutter); }
.text-link { display: inline-block; padding-block: 10px; text-decoration: underline; font-weight: 700; }
.download { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 14px 26px; background: var(--ink); color: var(--white); font-size: var(--small); font-weight: 700; text-decoration: none; text-align: center; transition: transform 180ms var(--ease-out), background-color 180ms; }
.download:hover { background: var(--muted); }
.download:active { transform: scale(0.97); }
.site-header { position: sticky; top: 0; z-index: 5; background: var(--paper); transition: background-color 300ms, color 300ms; }
.site-header[data-tone="blue"] { background: var(--blue); color: var(--ink); }
.site-header[data-tone="ice"] { background: var(--ice); color: var(--ink); }
.site-header[data-tone="dark"] { background: var(--ink); color: var(--paper); }
.site-header[data-tone="dark"] .nav-download { background: var(--paper); color: var(--ink); }
.nav { min-height: 96px; padding: 18px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.brand img { width: 38px; height: 38px; border-radius: 22.4%; }
.nav-links { display: flex; align-items: center; gap: 36px; margin-left: auto; margin-right: 36px; }
.nav-links a { padding-block: 10px; font-size: var(--small); font-weight: 700; text-decoration: none; }
.nav-links a:hover { text-decoration: underline; }
.nav-download { min-height: 48px; }
.menu-toggle { display: none; background: transparent; color: inherit; min-height: 48px; padding: 8px; font-size: var(--small); font-weight: 700; }

/* A hard change of ground passes through the title, like a day changing state. */
.hero { position: relative; overflow: hidden; background: var(--blue); padding-top: 32px; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto; height: calc(clamp(145px, 11.9vw, 205px) + 40px); background: var(--paper); }
.hero-intro { position: relative; z-index: 1; text-align: center; padding-inline: var(--gutter); }
.hero-kicker { max-width: 46ch; margin: 0 auto 18px; font-size: 16px; line-height: 1.35; letter-spacing: 0; text-wrap: balance; }
.hero-display { font-size: var(--display); font-weight: 700; line-height: 0.94; letter-spacing: -0.055em; text-wrap: balance; }
.hero-copy { margin: 24px auto 0; max-width: 900px; }
.hero-actions { display: flex; gap: 24px; align-items: center; justify-content: center; margin-top: 24px; }
.hero-actions .text-link { font-size: var(--small); }
.hero-requirement { margin-top: 14px; font-size: var(--small); }
.product-stage { position: relative; display: flex; align-items: flex-start; justify-content: center; gap: clamp(20px, 3.4vw, 56px); height: clamp(480px, 43vw, 660px); margin: 40px auto 0; padding: 0 var(--gutter); max-width: 1400px; }
.product-shot { width: min(26vw, 355px); flex: 0 0 auto; overflow: hidden; border-radius: 28px 28px 0 0; }
.product-shot img { width: 100%; }
.product-shot:first-child { margin-top: 72px; }
.product-shot:last-child { margin-top: 104px; }

.rotation-section { background: var(--ice); padding-block: 112px; }
.rotation-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 8vw; }
.rotation-output { position: sticky; top: 48px; background: var(--white); padding: 40px; }
.rotation-output h3 { font-size: var(--lead); }
.rotation-range { margin-top: 10px; font-size: var(--small); }
.calendar-legend { display: flex; gap: 24px; align-items: center; margin-top: 28px; font-size: var(--small); }
.calendar-legend span { display: inline-flex; align-items: center; gap: 8px; }
.calendar-legend i { width: 16px; height: 16px; background: var(--blue); }
.calendar-legend .rest-key { background: var(--soft); }
.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; padding: 0; list-style: none; }
.calendar-weekdays { margin: 24px 0 8px; text-align: center; font-size: var(--small); }
.calendar-days { margin: 0; }
.calendar-days li { min-height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: var(--soft); font-variant-numeric: tabular-nums; }
.calendar-days .work-day { background: var(--blue); }
.calendar-days .empty-day { background: transparent; }
.day-status { font-size: var(--small); }
.rotation-result { margin-top: 28px; font-size: var(--body); }
.rotation-output > .preview-note { margin-top: 16px; font-size: var(--small); color: var(--muted); }
.rotation-controls > p { margin-top: 32px; max-width: 40ch; }
.rotation-controls > .eyebrow { margin-top: 0; }
.section-guides { display: flex; flex-wrap: wrap; gap: 0 28px; }
.rotation-controls .section-guides .text-link { margin-top: 0; }
.rotation-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.rotation-presets button { min-height: 48px; padding: 12px 16px; background: var(--white); color: var(--ink); font-size: var(--small); transition: background-color 180ms, color 180ms, transform 180ms var(--ease-out); }
.rotation-presets button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.rotation-presets button:hover { background: var(--soft); color: var(--ink); }
.rotation-presets button:active { transform: scale(0.96); }
.rotation-form { margin-top: 40px; }
.rotation-field { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.rotation-field label { display: block; font-size: var(--lead); font-weight: 700; letter-spacing: -0.035em; }
.rotation-field p { max-width: 28ch; margin-top: 8px; font-size: var(--small); }
.rotation-form input { min-width: 0; min-height: 56px; padding: 12px; border: 0; border-radius: 0; background: var(--white); color: var(--ink); font-size: var(--body); font-variant-numeric: tabular-nums; }
.rotation-field input { width: 86px; flex-shrink: 0; text-align: center; }
.date-time-fields { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.date-time-fields label { display: block; margin-bottom: 10px; font-size: var(--small); font-weight: 700; }
.date-time-fields input { width: 100%; }
.form-error { margin-top: 16px; }
.rotation-controls .text-link { margin-top: 32px; }
.rotation-noscript { margin-top: 32px; }

.world-section { min-height: 96svh; background: var(--ink); color: var(--paper); padding-block: 96px; }
.world-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 0.8fr) minmax(0, 0.8fr); gap: 5vw; align-items: start; }
.world-layout h2 { font-size: var(--query-heading); }
.world-portrait { align-self: center; max-width: 330px; overflow: hidden; border-radius: 24px; }
.world-portrait img { width: 100%; }
.world-copy { align-self: end; padding-bottom: 40px; }
.world-copy p + p { margin-top: 24px; }
.world-copy .requirement { font-size: var(--small); }
.world-copy .text-link { margin-top: 24px; }

.features-section { background: var(--paper); padding-block: 96px; }
.features-heading { margin-bottom: 64px; }
.capability { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 8vw; align-items: baseline; padding-block: 28px; }
.capability > a { font-size: clamp(44px, 5.55vw, 88px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.04; text-decoration: none; }
.capability > a:hover { text-decoration: underline; }
.capability p { max-width: 42ch; }
.guide-links { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 40px; font-size: var(--small); font-weight: 700; }

.widget-section { min-height: 90svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 8vw; padding-block: 96px; background: var(--blue); }
.widget-copy p { max-width: 38ch; margin-top: 32px; }
.widget-copy > .eyebrow { margin-top: 0; }
.widget-copy .text-link { margin-top: 24px; }
.widget-picture { max-width: 510px; justify-self: center; }
.widget-picture img { width: 100%; }

.faq-section { background: var(--paper); }
.faq-header { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); align-items: end; gap: 8vw; min-height: 300px; padding: 64px var(--gutter); background: var(--ice); }
.faq-header p { max-width: 42ch; }
.faq { padding: 48px var(--gutter); }
.faq:nth-of-type(even) { background: var(--soft); }
.faq summary { list-style: none; font-size: var(--lead); font-weight: 700; line-height: 1.2; letter-spacing: -0.035em; max-width: 44%; position: relative; padding-right: 36px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 0; }
.faq[open] summary::after { content: "−"; }
.faq[open] { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); column-gap: 8vw; align-items: start; }
.faq[open] summary { max-width: none; }
.faq p { max-width: 48ch; }
.faq a { font-weight: 700; }

.close-section { min-height: 70svh; display: flex; flex-direction: column; justify-content: space-between; gap: 64px; padding-block: 80px; background: var(--ink); color: var(--paper); }
.close-section h2 { font-size: var(--display); max-width: 12ch; line-height: 0.94; }
.close-bottom { display: flex; align-items: end; justify-content: space-between; gap: 48px; }
.close-bottom p { max-width: 40ch; }
.close-bottom .download { background: var(--blue); color: var(--ink); flex-shrink: 0; }
.close-bottom .download:hover { background: var(--ice); }
.site-footer { background: var(--ink); color: var(--paper); padding-block: 64px 32px; }
.footer-wordmark { margin-top: 72px; font-size: clamp(64px, 17.9vw, 300px); line-height: 0.95; letter-spacing: -0.07em; font-weight: 700; white-space: nowrap; }
.footer-bottom { display: flex; align-items: end; justify-content: space-between; gap: 32px; font-size: var(--small); }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer-links a { display: inline-block; padding-block: 10px; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-credit { text-align: right; }

@media (min-width: 1100px) {
  .world-layout { min-height: 720px; }
}

@media (max-width: 1099px) {
  .close-section { min-height: 0; }
  .nav-links { gap: 24px; margin-right: 12px; }
  .rotation-layout { gap: 5vw; }
  .rotation-output { padding: 24px; }
  .day-status { display: none; }
  .calendar-days li { min-height: 48px; }
  .date-time-fields { grid-template-columns: 1fr; }
  .world-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 8vw; }
  .world-heading { grid-column: 1 / -1; }
  .world-portrait { grid-column: 1; width: 100%; }
  .world-copy { grid-column: 2; align-self: center; padding-bottom: 0; }
  .capability, .faq-header, .faq[open] { column-gap: 5vw; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
}

@media (max-width: 767px) {
  .nav { min-height: 80px; gap: 10px; padding-block: 14px; flex-wrap: wrap; }
  .brand { gap: 8px; font-size: var(--small); }
  .brand img { width: 30px; height: 30px; }
  .menu-toggle { display: block; margin-left: auto; }
  .nav-download { display: none; }
  .nav-links { display: flex; width: 100%; order: 3; margin: 0; justify-content: space-between; gap: 12px; }
  .nav-links[data-enhanced] { display: none; }
  .nav-links[data-enhanced].is-open { display: flex; }
}

@media (max-width: 599px) {
  :root { --display: 16vw; --heading: 12vw; --query-heading: 8.6vw; --lead: 22px; --body: 16px; }
  html { scroll-padding-top: 24px; }
  .nav { min-height: 80px; gap: 10px; padding-block: 14px; flex-wrap: wrap; }
  .brand { gap: 8px; font-size: var(--small); }
  .brand img { width: 30px; height: 30px; }
  .menu-toggle { display: block; margin-left: auto; }
  .nav-download { display: none; }
  .nav-links { display: flex; width: 100%; order: 3; margin: 0; justify-content: space-between; gap: 12px; }
  .nav-links[data-enhanced] { display: none; }
  .nav-links[data-enhanced].is-open { display: flex; }
  .hero { padding-top: 32px; }
  .hero::before { height: 150px; }
  .hero-kicker { max-width: 32ch; font-size: 15px; }
  .hero-copy { max-width: 36ch; margin-top: 28px; }
  .hero-actions { margin-top: 24px; flex-direction: column; gap: 6px; }
  .hero-actions .download { min-width: 230px; }
  .hero-requirement { margin-top: 8px; }
  .product-stage { height: 440px; gap: 18px; margin-top: 40px; padding: 0; width: 100%; }
  .product-shot { width: 56vw; border-radius: 18px 18px 0 0; }
  .product-shot:first-child { margin-top: 48px; }
  .product-shot:last-child { margin-top: 72px; }
  .rotation-section { padding-block: 64px; }
  .rotation-layout { display: flex; flex-direction: column-reverse; gap: 40px; }
  .rotation-output { position: static; width: 100%; padding: 24px 16px; }
  .rotation-controls { width: 100%; }
  .rotation-controls > p { margin-top: 24px; }
  .rotation-presets { margin-top: 24px; gap: 6px; }
  .rotation-presets button { padding-inline: 12px; }
  .rotation-form { margin-top: 28px; }
  .rotation-field { margin-bottom: 24px; }
  .rotation-field p { max-width: 23ch; }
  .date-time-fields { grid-template-columns: 1.2fr 1fr; gap: 12px; }
  .rotation-form input { font-size: 16px; }
  .date-time-fields input { padding-inline: 8px; }
  .calendar-weekdays, .calendar-days { gap: 4px; }
  .calendar-days li { min-height: 44px; }
  .calendar-weekdays { font-size: var(--small); }
  .rotation-result { margin-top: 24px; }
  .world-section { padding-block: 64px; }
  .world-layout { display: flex; flex-direction: column; gap: 40px; }
  .world-layout h2 { font-size: var(--query-heading); }
  .world-portrait { width: 75%; max-width: 300px; border-radius: 20px; }
  .world-copy { width: 100%; }
  .world-copy p { max-width: 38ch; }
  .features-section { padding-block: 64px; }
  .features-heading { margin-bottom: 40px; }
  .capability { display: block; padding-block: 24px; }
  .capability > a { font-size: var(--heading); }
  .capability p { margin-top: 16px; }
  .guide-links { margin-top: 32px; gap: 12px 24px; }
  .widget-section { display: flex; flex-direction: column; align-items: stretch; gap: 40px; padding-block: 64px; }
  .widget-copy p { margin-top: 24px; }
  .widget-picture { width: 100%; max-width: 350px; align-self: center; }
  .faq-header { display: block; padding-block: 48px; min-height: 0; }
  .faq-header p { margin-top: 24px; }
  .faq-header .eyebrow { margin-top: 0; }
  .faq, .faq[open] { display: block; padding-block: 32px; }
  .faq summary { max-width: none; font-size: var(--lead); }
  .faq p { margin-top: 24px; }
  .close-section { min-height: 0; padding-block: 64px; gap: 56px; }
  .close-section h2 { font-size: var(--display); }
  .close-bottom { display: block; }
  .close-bottom .download { width: 100%; margin-top: 32px; }
  .site-footer { padding-top: 8px; }
  .footer-wordmark { margin-top: 40px; font-size: 17.4vw; }
  .footer-bottom { display: block; }
  .footer-links { gap: 8px 24px; }
  .footer-credit { margin-top: 32px; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Apple-provided badge artwork is kept at its original ratio and never animated. */
a.app-store-link,
a.app-store-link:hover,
a.app-store-link:active,
.close-bottom a.app-store-link,
.site-header[data-tone="dark"] a.app-store-link {
  display: inline-block;
  min-width: 0;
  min-height: 0;
  padding: 0;
  background: transparent;
  line-height: 0;
  text-decoration: none;
  transform: none;
  transition: none;
  flex-shrink: 0;
}
a.app-store-link img { width: 168px; height: auto; }
.nav a.app-store-link img { width: 135px; }
@media (max-width: 767px) {
  .nav a.app-store-link,
  .site-header[data-tone="dark"] .nav a.app-store-link { display: none; }
  .close-bottom a.app-store-link { width: auto; }
}
