:root {
  color-scheme: light;
  --paper: #f5f3ee;
  --paper-deep: #ebe8df;
  --ink: #171914;
  --ink-soft: #56594f;
  --ink-faint: #7c8074;
  --night: #20251f;
  --night-soft: #2b332b;
  --violet: #8584b7;
  --violet-deep: #64628f;
  --lime: #d6f58c;
  --line: rgba(32, 37, 31, .13);
  --card: rgba(255, 255, 255, .7);
  --shadow: 0 24px 70px rgba(28, 32, 26, .12);
  --radius: 24px;
  --max: 1180px;
  --section-space: 106px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 4%, rgba(133, 132, 183, .13), transparent 27rem),
    var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.serif, h1, h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-weight: 500;
}

.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; padding: 0; }
header.wrap, body.subpage header {
  position: relative;
  z-index: 10;
  width: min(calc(100% - 40px), var(--max));
  max-width: none;
  margin: 0 auto;
  padding: 20px 0;
}
nav {
  min-height: 56px;
  padding: 8px 10px 8px 18px;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 18px;
  background: rgba(250, 249, 246, .76);
  box-shadow: 0 8px 30px rgba(35, 38, 31, .06);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 0; color: var(--ink); font-size: 1.1rem; font-weight: 750; letter-spacing: -.02em; }
.brand::before { content: ""; width: 30px; height: 30px; margin-right: 9px; border-radius: 9px; background: url("images/app-icon.png") center / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), 0 3px 9px rgba(25,40,35,.13); }
.brand span { color: inherit; }
nav .links { display: flex; align-items: center; }
nav .links a { margin: 0 2px; padding: 9px 13px; border-radius: 11px; color: var(--ink-soft); font-size: .9rem; font-weight: 600; transition: .2s ease; }
nav .links a:hover { background: #fff; color: var(--ink); }
a { text-underline-offset: 3px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(390px, 1.08fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
  min-height: 680px;
  padding: 62px 0 92px;
  text-align: left;
}
.hero-copy { position: relative; z-index: 2; }
.eyebrow, .kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--violet-deep);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before, .kicker::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--lime); box-shadow: 0 0 0 4px rgba(214,245,140,.28); }
.hero h1 { max-width: 10ch; margin: 0; font-size: clamp(3.45rem, 6.2vw, 6rem); line-height: .93; letter-spacing: -.06em; }
.hero h1 em { color: var(--violet-deep); font-weight: inherit; }
.hero p.lead { max-width: 47ch; margin: 27px 0 0; color: var(--ink-soft); font-size: 1.08rem; line-height: 1.7; }
.hero .meta { justify-content: flex-start; margin-top: 32px; gap: 10px; }
.badge, .pill { min-height: 42px; display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 14px; }
.pill strong { margin-right: .25em; }
.badge { background: var(--night); color: white; box-shadow: 0 10px 25px rgba(32,37,31,.16); }
.pill { border-color: var(--line); background: rgba(255,255,255,.54); }

.device-stage { position: relative; min-height: 540px; display: grid; place-items: center; }
.device-stage::before { content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%; background: linear-gradient(145deg, rgba(133,132,183,.4), rgba(214,245,140,.36)); filter: blur(1px); }
.device {
  position: relative;
  width: min(100%, 530px);
  padding: 17px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 36px;
  background: #333932;
  box-shadow: 0 38px 90px rgba(34, 38, 31, .28);
  transform: rotate(2deg);
}
.real-device { padding: 10px; overflow: hidden; }
.real-device img { display: block; width: 100%; height: auto; border-radius: 25px; }
.screen { min-height: 390px; overflow: hidden; padding: 30px; border-radius: 23px; background: #f8f7f2; }
.screen-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; }
.screen-title { font-family: "Iowan Old Style", Georgia, serif; font-size: 1.55rem; }
.screen-date { color: var(--ink-faint); font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.day-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 12px; }
.day-card { min-height: 100px; padding: 17px; border: 1px solid #e8e5dd; border-radius: 16px; background: #fff; }
.day-card.tall { grid-row: span 2; min-height: 212px; background: var(--night); color: white; }
.day-card.accent { background: #ebeaf3; }
.day-label { color: #8b8e84; font-size: .65rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.tall .day-label { color: #aeb5aa; }
.day-card h3 { margin: 9px 0 0; font-size: .98rem; line-height: 1.3; }
.progress { height: 6px; margin-top: 22px; overflow: hidden; border-radius: 99px; background: #434b42; }
.progress::after { content: ""; display: block; width: 68%; height: 100%; border-radius: inherit; background: var(--lime); }
.floating-note { position: absolute; right: -18px; bottom: 52px; width: 190px; padding: 16px; border-radius: 18px; background: var(--lime); box-shadow: 0 16px 35px rgba(38,45,32,.2); transform: rotate(-5deg); }
.floating-note span { display: block; color: #5c663f; font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.floating-note strong { display: block; margin-top: 4px; font-family: "Iowan Old Style", Georgia, serif; font-size: 1.08rem; line-height: 1.25; }

.rule { display: none; }
section, section.wrap { padding-top: var(--section-space); padding-bottom: var(--section-space); }
section:nth-of-type(odd) { position: relative; }
h2 { max-width: 19ch; margin: 0; font-size: clamp(2.25rem, 4.3vw, 4rem); line-height: 1.05; letter-spacing: -.04em; }
.section-lead { max-width: 66ch; margin-top: 24px; color: var(--ink-soft); font-size: 1.06rem; }
.grid { grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 46px; }
.card { min-height: 205px; padding: 28px; border: 1px solid rgba(255,255,255,.74); border-radius: var(--radius); background: var(--card); box-shadow: 0 8px 25px rgba(32,37,31,.045); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card::before { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 34px; border-radius: 11px; background: var(--night); color: var(--lime); content: "•"; font-size: 1.25rem; }
.card:nth-child(2n)::before { background: var(--violet); color: white; }
.card h3 { margin-bottom: 9px; font-size: 1.03rem; }
.card p { font-size: .93rem; line-height: 1.58; }

.showcase h2 { max-width: 16ch; }
.screen-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 52px; }
.screen-shot { position: relative; overflow: hidden; margin: 0; border: 1px solid rgba(255,255,255,.78); border-radius: 26px; background: #fff; box-shadow: 0 18px 55px rgba(32,37,31,.1); }
.screen-shot.featured { grid-column: 1 / -1; }
.screen-shot img { display: block; width: 100%; height: auto; aspect-ratio: 1.44 / 1; object-fit: cover; object-position: top center; background: #f5f5f7; }
.screen-shot figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 18px 21px 20px; }
.screen-shot figcaption strong { font-size: .98rem; }
.screen-shot figcaption span { color: var(--ink-soft); font-size: .84rem; text-align: right; }
.screen-gallery.supporting { margin-top: 36px; }
.archive-shot { margin-top: 36px; }

.two-col { gap: 22px; margin-top: 52px; }
.two-col > div { padding: 38px; border: 1px solid rgba(255,255,255,.66); border-radius: var(--radius); background: rgba(255,255,255,.56); }
.two-col p { margin: 0 0 24px; }
.two-col p:last-child { margin-bottom: 0; }
section.dark-section { width: min(calc(100% - 24px), 1280px); margin: 36px auto; padding: var(--section-space) max(20px, calc((100% - 1180px)/2)); border-radius: 34px; background: var(--night); color: #f6f5f0; }
.dark-section .kicker { color: var(--lime); }
.dark-section .kicker::before { background: var(--violet); box-shadow: 0 0 0 4px rgba(133,132,183,.22); }
.dark-section .two-col > div { border-color: rgba(255,255,255,.09); background: var(--night-soft); }
.dark-section p, .dark-section p strong { color: #c7cdc3; }
.dark-section p strong { color: #fff; }
.dark-section .card p { color: var(--ink-soft); }

footer { border-top: 0; background: var(--night); color: #9da49a; }
footer .wrap, footer .inner { width: min(calc(100% - 40px), var(--max)); max-width: none; padding: 45px 0 55px; }
footer a { color: #dfe3dc; }

/* Long-form pages */
body.subpage { background: radial-gradient(circle at 82% 0, rgba(133,132,183,.15), transparent 28rem), var(--paper); }
body.subpage main.wrap { width: min(calc(100% - 40px), 820px); }
body.subpage h1 { margin: 76px 0 10px; font-size: clamp(3.2rem, 7vw, 5.7rem); line-height: .95; letter-spacing: -.055em; }
body.subpage .dateline, body.subpage .lead { max-width: 60ch; margin-bottom: 44px; color: var(--ink-soft); font-size: 1.03rem; }
body.subpage .summary, body.subpage .contact { margin-bottom: 54px; padding: 30px; border: 1px solid rgba(255,255,255,.8); border-radius: 24px; background: linear-gradient(135deg, rgba(221,220,240,.85), rgba(237,245,216,.72)); }
body.subpage .summary h2, body.subpage .contact h2 { margin: 0 0 10px; font-family: -apple-system, BlinkMacSystemFont, sans-serif; font-size: 1.05rem; font-weight: 750; letter-spacing: -.01em; }
body.subpage main > h2 { max-width: none; margin: 56px 0 14px; padding-top: 4px; font-family: "Iowan Old Style", Georgia, serif; font-size: 2rem; line-height: 1.15; letter-spacing: -.025em; }
body.subpage main > h3 { margin: 29px 0 8px; font-size: 1.05rem; }
body.subpage main p, body.subpage main li { color: var(--ink-soft); }
body.subpage main p { margin-bottom: 15px; }
body.subpage main ul { margin-left: 1.2rem; padding: 0; }
body.subpage main li { padding-left: .35rem; margin-bottom: 11px; }
body.subpage main a { color: var(--violet-deep); font-weight: 600; }
body.subpage .footer-space { height: 64px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 50px; text-align: center; }
  .hero h1, .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero .meta { justify-content: center; }
  .device-stage { min-height: 500px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .screen-shot figcaption { display: block; }
  .screen-shot figcaption span { display: block; margin-top: 3px; text-align: left; }
}
@media (max-width: 640px) {
  :root { --section-space: 78px; }
  .wrap, header.wrap, body.subpage header, body.subpage main.wrap { width: min(calc(100% - 28px), var(--max)); }
  nav { padding-left: 14px; }
  nav .links a { padding: 8px; font-size: .82rem; }
  .hero { gap: 26px; padding: 45px 0 62px; }
  .hero h1 { font-size: clamp(3.1rem, 15vw, 4.8rem); }
  .hero p.lead { font-size: 1rem; }
  .device-stage { min-height: 390px; }
  .device { width: 94%; padding: 11px; border-radius: 26px; transform: rotate(1deg); }
  .screen { min-height: 310px; padding: 21px; border-radius: 18px; }
  .day-card { padding: 13px; }
  .floating-note { right: -3px; bottom: 12px; width: 165px; }
  section, section.wrap { padding-top: var(--section-space); padding-bottom: var(--section-space); }
  h2 { font-size: 2.55rem; }
  .grid, .two-col { grid-template-columns: 1fr; }
  .screen-gallery { grid-template-columns: 1fr; gap: 14px; }
  .screen-shot.featured { grid-column: auto; }
  .screen-shot { border-radius: 18px; }
  .screen-shot figcaption { padding: 15px 17px 17px; }
  .card { min-height: 0; }
  .card::before { margin-bottom: 24px; }
  section.dark-section { margin: 22px auto; padding: var(--section-space) 18px; border-radius: 25px; }
  footer .wrap, footer .inner { width: calc(100% - 32px); }
  body.subpage h1 { margin-top: 54px; font-size: 3.4rem; }
}

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