: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) clamp(20px, 4vw, 50px); 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; }
.legal-note { flex-basis: 100%; max-width: 92ch; margin: 20px 0 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); color: #8f978c; font-size: .76rem; line-height: 1.6; }

/* 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; }

/* Complete features page */
body.features-page {
  background:
    radial-gradient(circle at 86% 2%, rgba(133,132,183,.2), transparent 33rem),
    radial-gradient(circle at 8% 23%, rgba(214,245,140,.15), transparent 27rem),
    var(--paper);
}
.features-page nav .links a[aria-current="page"] { background: #fff; color: var(--ink); }
.feature-link { color: var(--ink); text-decoration: none; font-weight: 650; }
.feature-hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(380px, 1.08fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
  min-height: 510px;
  padding-top: 30px;
  padding-bottom: 62px;
}
.feature-hero h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3.15rem, 5.2vw, 5.25rem);
  line-height: .95;
  letter-spacing: -.06em;
}
.feature-hero-copy > p {
  max-width: 52ch;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
}
.feature-principles { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 21px; }
.feature-principles span {
  padding: 6px 11px;
  border: 1px solid rgba(32,37,31,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.56);
  color: var(--ink-soft);
  font-size: .78rem;
  font-weight: 700;
}
.feature-hero-screens { position: relative; min-height: 385px; }
.feature-screen {
  position: absolute;
  overflow: hidden;
  margin: 0;
  border: 6px solid #30362f;
  border-radius: 23px;
  background: #30362f;
  box-shadow: 0 28px 75px rgba(31,36,29,.24);
}
.feature-screen img { display: block; width: 100%; height: auto; }
.feature-screen-back { top: 18px; right: 0; width: 79%; transform: rotate(4deg); }
.feature-screen-front { left: 0; bottom: 18px; width: 82%; transform: rotate(-3deg); }
.feature-index {
  position: sticky;
  top: 12px;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 18px;
  background: rgba(250,249,246,.88);
  box-shadow: 0 8px 28px rgba(35,38,31,.07);
  backdrop-filter: blur(18px);
}
.feature-index p { flex: 0 0 auto; margin: 0; color: var(--ink); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.feature-index div { display: flex; flex-wrap: wrap; gap: 4px; }
.feature-index a { padding: 5px 8px; border-radius: 8px; color: var(--ink-soft); font-size: .78rem; font-weight: 650; text-decoration: none; }
.feature-index a:hover { background: var(--violet); color: white; }
.feature-chapter { scroll-margin-top: 95px; }
section.feature-chapter { padding-top: 72px; padding-bottom: 72px; }
.feature-chapter-tint { background: linear-gradient(145deg, rgba(229,228,242,.62), rgba(240,245,226,.68)); }
.feature-chapter-dark { width: min(calc(100% - 24px), 1340px); margin: 18px auto; border-radius: 30px; background: var(--night); color: #f5f5f0; }
.feature-chapter-dark .kicker { color: var(--lime); }
.feature-chapter-dark .kicker::before { background: var(--violet); box-shadow: 0 0 0 4px rgba(133,132,183,.22); }
.chapter-heading { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 34px; }
.chapter-heading > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--night);
  color: var(--lime);
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 1.1rem;
}
.feature-chapter-dark .chapter-heading > span { background: var(--lime); color: var(--night); }
.chapter-heading h2 { max-width: 23ch; font-size: clamp(2rem, 3.4vw, 3.25rem); }
.chapter-heading > div > p:last-child { max-width: 70ch; margin: 12px 0 0; color: var(--ink-soft); font-size: .94rem; }
.feature-chapter-dark .chapter-heading > div > p:last-child { color: #bfc6bc; }
.feature-list { display: grid; gap: 12px; }
.feature-detail {
  display: grid;
  grid-template-columns: minmax(190px, .58fr) minmax(0, 1.42fr);
  column-gap: 30px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 22px;
  background: rgba(255,255,255,.7);
  box-shadow: 0 10px 38px rgba(32,37,31,.05);
}
.feature-chapter-dark .feature-detail { border-color: rgba(255,255,255,.1); background: var(--night-soft); box-shadow: none; }
.feature-title { grid-row: span 2; }
.feature-title span {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--violet-deep);
  font-size: .73rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.feature-chapter-dark .feature-title span { color: var(--lime); }
.feature-title h3 { max-width: 16ch; margin: 0; font-family: "Iowan Old Style", Georgia, serif; font-size: clamp(1.5rem, 2vw, 2rem); font-weight: 500; line-height: 1.08; letter-spacing: -.03em; }
.feature-purpose { margin: 0 0 18px; color: var(--ink-soft); font-size: .93rem; line-height: 1.5; }
.feature-purpose strong { color: var(--ink); }
.feature-chapter-dark .feature-purpose { color: #c0c7bd; }
.feature-chapter-dark .feature-purpose strong { color: white; }
.feature-columns { display: grid; grid-template-columns: 1.12fr .88fr; gap: 20px; }
.feature-columns h4 { margin: 0 0 8px; font-size: .71rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.feature-columns ul { margin: 0; padding-left: 1.1rem; }
.feature-columns li { margin-bottom: 5px; padding-left: 2px; color: var(--ink-soft); font-size: .84rem; line-height: 1.45; }
.feature-columns li::marker { color: var(--violet); }
.feature-unique { padding: 16px 18px; border-radius: 15px; background: linear-gradient(140deg, rgba(220,219,239,.72), rgba(235,245,211,.65)); }
.feature-unique p { margin: 0; color: var(--ink-soft); font-size: .84rem; line-height: 1.5; }
.feature-chapter-dark .feature-columns li { color: #bdc4ba; }
.feature-chapter-dark .feature-unique { background: rgba(255,255,255,.065); }
.feature-chapter-dark .feature-unique p { color: #c8cec5; }
.feature-closing { padding-top: 78px; padding-bottom: 84px; text-align: center; }
.feature-closing .kicker { justify-content: center; }
.feature-closing h2 { max-width: 16ch; margin-inline: auto; }
.feature-closing > p:not(.kicker) { max-width: 70ch; margin: 17px auto 0; color: var(--ink-soft); font-size: .96rem; }
.feature-closing a { display: inline-flex; margin-top: 22px; padding: 10px 16px; border-radius: 12px; background: var(--night); color: white; font-weight: 700; text-decoration: none; }

@media (min-width: 1051px) {
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .feature-detail { display: block; }
  .feature-title { margin-bottom: 12px; }
  .feature-title h3 { max-width: none; }
  .feature-detail .feature-columns { grid-template-columns: 1.05fr .95fr; }
  .feature-detail:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(180px, .65fr) minmax(210px, .8fr) minmax(0, 1.55fr);
    gap: 24px;
  }
  .feature-detail:last-child:nth-child(odd) .feature-title,
  .feature-detail:last-child:nth-child(odd) .feature-purpose { margin: 0; }
}

@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; }
  .feature-hero { grid-template-columns: 1fr; gap: 20px; padding-top: 38px; padding-bottom: 52px; text-align: center; }
  .feature-hero h1, .feature-hero-copy > p { margin-left: auto; margin-right: auto; }
  .feature-principles { justify-content: center; }
  .feature-hero-screens { width: min(100%, 620px); min-height: 365px; margin: 0 auto; }
  .feature-index { position: relative; top: auto; display: block; }
  .feature-index p { margin-bottom: 7px; }
  .feature-detail { grid-template-columns: 1fr; }
  .feature-title { grid-row: auto; margin-bottom: 14px; }
  .feature-title h3 { max-width: 22ch; }
}
@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; }
  .features-page nav { align-items: flex-start; }
  .features-page nav .links { flex-wrap: wrap; justify-content: flex-end; }
  .feature-hero { min-height: 0; padding-top: 36px; padding-bottom: 48px; }
  .feature-hero h1 { font-size: clamp(2.75rem, 13vw, 3.8rem); }
  .feature-hero-screens { min-height: 270px; }
  .feature-screen { border-width: 5px; border-radius: 19px; }
  .feature-index div { display: grid; grid-template-columns: 1fr 1fr; }
  section.feature-chapter { padding-top: 58px; padding-bottom: 58px; }
  .feature-chapter-dark { width: calc(100% - 16px); border-radius: 26px; }
  .chapter-heading { grid-template-columns: 1fr; gap: 14px; margin-bottom: 28px; }
  .chapter-heading > span { width: 42px; height: 42px; border-radius: 13px; }
  .feature-detail { padding: 21px 18px; border-radius: 19px; }
  .feature-columns { grid-template-columns: 1fr; gap: 16px; }
  .feature-unique { padding: 15px; }
  .feature-closing { padding-top: 64px; padding-bottom: 70px; }
}

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