/* Light and dark Glacier roles and Manrope from DESIGN.md.
   Page composition follows the Things reference; app UI is unchanged. */
:root {
  color-scheme: light;
  --paper: #F7F9FF;
  --header-tint: #F7F9FFA6;
  --ink: #0D1215;
  --muted: #31373D;
  --primary: #00395D;
  --on-primary: #FFFFFF;
  --primary-container: #41719C;
  --accent-blue: #41719C;
  --link-hover: #41719C;
  --brand-filter: brightness(0);
  --line: #DEE3EA;
  --secondary: #5B233B;
  --surface-container: #E5E8ED;
  --surface-container-lowest: #FFFFFF;
  --review-bubble: #FFFFFF;
  --page-glow: #FFFFFF55;
  --card-surface: var(--surface-container);
  --neon-pink: #FF2B91;
  --screenshot-shadow: 0 24px 48px -14px #0D121540, 0 8px 18px -8px #0D12152E;
  --body-size: 1rem;
  --small-size: .875rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #111113;
    --header-tint: #111113A6;
    --ink: #F3F3F5;
    --muted: #B3B3BD;
    --primary: #A7D8F0;
    --on-primary: #113546;
    --primary-container: #203D4B;
    --accent-blue: #A7D8F0;
    --link-hover: #D8EFFA;
    --brand-filter: brightness(0) invert(1);
    --line: #37373F;
    --secondary: #FF69AE;
    --surface-container: #1E1E22;
    --surface-container-lowest: #0C0C0E;
    --review-bubble: #29292F;
    --page-glow: #A7D8F00B;
    --screenshot-shadow: 0 24px 48px -14px #000000B3, 0 8px 18px -8px #00000080;
  }
}
* { box-sizing: border-box; }
html { scroll-padding-top: 112px; scroll-behavior: smooth; }
body {
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--page-glow) 50%, transparent), var(--paper);
  color: var(--ink);
  font-family: Manrope, system-ui, sans-serif;
  font-size: var(--body-size);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
html:lang(ja) body { font-family: Manrope, "Noto Sans JP", system-ui, sans-serif; }
html:lang(ko) body { font-family: Manrope, "Noto Sans KR", system-ui, sans-serif; }
html:lang(zh-Hans) body { font-family: Manrope, "Noto Sans SC", system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--link-hover); }
a:focus-visible { outline: 3px solid var(--primary); outline-offset: 6px; border-radius: 4px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
.wrap { width: min(900px, calc(100% - 48px)); margin-inline: auto; }
/* Let the thin section dividers extend beyond the reading column. */
.site-header, .features, .feature-set, .site-footer { position: relative; }
.site-header::after, .features::before, .feature-set::before, .site-footer::before {
  content: "";
  position: absolute;
  left: 50%;
  width: min(1100px, calc(100vw - 32px));
  height: 1px;
  background: var(--line);
  transform: translateX(-50%);
  pointer-events: none;
}
.features::before, .feature-set::before, .site-footer::before { top: 0; }
.site-header::after { bottom: 0; }
.skip-link { position: absolute; top: -80px; left: 20px; padding: 12px; background: var(--paper); z-index: 10; }
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--paper);
  transition: background-color 240ms ease, backdrop-filter 240ms ease, -webkit-backdrop-filter 240ms ease;
  min-height: 69px;
  padding-block: 8px;
  gap: 16px;
  flex-wrap: wrap;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}
/* Full-width glass, with navigation aligned to the existing reading column. */
.site-header.wrap {
  width: 100%;
  padding-inline: max(24px, calc((100% - 900px) / 2));
}
@supports ((backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px))) {
  .site-header {
    background: var(--header-tint);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--paper);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
.site-header.header-ready:not(.is-scrolled) {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.brand { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; font-size: 17px; font-weight: 650; }
.brand img { filter: var(--brand-filter); }
.site-header nav { display: flex; flex-wrap: wrap; gap: 0 22px; font-size: var(--small-size); font-weight: 550; }
.nav-download { color: var(--primary); font-weight: 650; }
.site-header nav a { padding-block: 14px; }

.hero { text-align: center; padding: 78px 0 81px; }
.app-icon {
  width: 144px;
  height: 144px;
  margin: 0 auto 27px;
  border-radius: 32px;
  box-shadow: var(--screenshot-shadow);
}
h1 { font-size: 49px; line-height: 1.15; letter-spacing: -1.8px; font-weight: 700; }
.hero-description {
  max-width: 480px;
  margin: 35px auto 20px;
  font-size: 21px;
  line-height: 1.5;
  letter-spacing: -.35px;
  color: var(--muted);
}
.text-link { display: inline-block; color: var(--primary); font-weight: 600; font-size: 20px; padding: 8px 0; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link span { margin-left: 4px; }
.platform-note { color: var(--muted); font-size: var(--small-size); margin-top: 12px; }

.features { text-align: center; padding-top: 60px; }
.section-icon { width: 42px; height: 42px; margin-bottom: 15px; fill: none; stroke: var(--accent-blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
h2 { font-size: 33px; line-height: 1.25; letter-spacing: -1px; font-weight: 650; }
.section-description { max-width: 590px; margin: 22px auto 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.product-stage { position: relative; width: 590px; max-width: 100%; height: 563px; margin: 48px auto 0; }
.phone {
  position: absolute;
  left: 57px;
  width: 288px;
  aspect-ratio: 1056 / 1976;
  overflow: hidden;
  border-radius: 20px;
  background: #111113;
  box-shadow: var(--screenshot-shadow), 0 0 0 1px var(--line);
}
.phone img { position: absolute; max-width: none; width: 125%; left: -12.5%; top: -39.05%; }
.editor {
  position: absolute;
  right: 10px;
  top: 161px;
  width: 305px;
  aspect-ratio: 1164 / 1228;
  overflow: hidden;
  border-radius: 20px;
  background: #111113;
  box-shadow: var(--screenshot-shadow), 0 0 0 1px #686e74;
}
.editor img { position: absolute; max-width: none; width: 113.4%; left: -6.7%; top: -117.5%; }
.image-caption { color: var(--muted); font-size: var(--small-size); line-height: 1.6; }
.feature-details { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; text-align: left; max-width: 710px; margin: 44px auto 0; }
h3 { font-size: 18px; font-weight: 650; letter-spacing: -.3px; }
.feature-details p { color: var(--muted); font-size: var(--body-size); line-height: 1.65; margin-top: 11px; }

.feature-set { text-align: center; margin-top: 65px; padding-top: 56px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; text-align: left; }
.feature-grid article {
  overflow-wrap: break-word;
  hyphens: auto;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card-surface);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
@media (hover: hover) and (pointer: fine) {
  .feature-grid article:hover {
    border-color: var(--neon-pink);
    box-shadow: 0 0 0 1px #FF2B911A, 0 12px 32px -14px #FF2B9166;
    transform: translateY(-4px);
  }
  .feature-grid article:hover svg { stroke: var(--secondary); }
}
.feature-grid svg { width: 30px; height: 30px; margin-bottom: 14px; fill: none; stroke: var(--accent-blue); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.feature-grid h3 { font-size: 18px; line-height: 1.5; }
.feature-grid p { margin-top: 10px; color: var(--muted); font-size: var(--body-size); line-height: 1.65; }
.pro-tag { display: inline-block; margin-left: 5px; padding: 1px 6px; border: 1px solid currentColor; border-radius: 4px; vertical-align: middle; color: var(--secondary); font-size: var(--small-size); letter-spacing: .2px; }
.reviews {
  text-align: center;
  padding: 80px 0 28px;
  margin-top: 72px;
  background: var(--surface-container);
}
.review-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "first featured" "last featured"; gap: 44px 48px; max-width: 820px; margin: 56px auto 0; text-align: left; align-items: start; }
.review-language-note { margin-top: 16px; color: var(--muted); font-size: var(--small-size); }
.review-language-note:empty { display: none; }
.review-grid figure { min-width: 0; }
.review-grid figure:nth-child(1) { grid-area: first; }
.review-grid figure:nth-child(2) { grid-area: featured; align-self: center; }
.review-grid figure:nth-child(3) { grid-area: last; }
.review-grid blockquote { position: relative; padding: 24px 26px; border-radius: 28px 28px 28px 8px; background: var(--review-bubble); font-size: 18px; line-height: 1.65; }
.review-grid blockquote::after { content: ""; position: absolute; left: 17px; bottom: -9px; width: 19px; height: 19px; background: var(--review-bubble); clip-path: polygon(0 0, 100% 0, 0 100%); }
.review-grid figure:nth-child(even) blockquote { border-radius: 28px 28px 8px 28px; }
.review-grid figure:nth-child(even) blockquote::after { left: auto; right: 17px; transform: scaleX(-1); }
.review-grid figcaption { margin: 18px 12px 0; font-size: var(--small-size); line-height: 1.65; color: var(--muted); }
.review-grid figure:nth-child(even) figcaption { text-align: right; }
.review-grid figcaption strong { display: block; color: var(--secondary); font-weight: 650; margin-bottom: 3px; }
.review-grid figcaption a, .review-grid figcaption span { display: block; }
.review-grid figcaption a { text-wrap: pretty; }
.review-grid figcaption a:hover { text-decoration: underline; }
.ratings { display: grid; grid-template-columns: 1fr 1fr; max-width: 640px; margin: 64px auto 0; gap: 30px; }
.ratings a { display: flex; flex-direction: column; gap: 7px; font-size: var(--body-size); min-width: 0; }
.ratings strong { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 32px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -1px; color: var(--primary); }
.rating-leaf {
  width: 26px;
  height: 65px;
  flex: 0 0 26px;
  color: var(--accent-blue);
  fill: currentColor;
  opacity: .8;
}
.rating-leaf:first-child { margin-right: 5px; }
.rating-leaf-right { margin-left: 5px; transform: scaleX(-1); }
.ratings strong span { font-size: 16px; font-weight: 400; letter-spacing: 0; }
.ratings small { font-size: var(--small-size); color: var(--muted); }
.rating-source { max-width: 640px; margin: 64px auto 0; font-size: var(--small-size); color: var(--muted); line-height: 1.6; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.store-icon { display: inline-block; width: 18px; height: 18px; margin-right: 6px; vertical-align: -.2em; fill: currentColor; }

.download-section { text-align: center; padding: 66px 0 65px; }
.platforms { display: grid; grid-template-columns: 1fr 1fr; max-width: 660px; margin: 35px auto 0; }
.platforms article { padding: 5px 20px; }
.platforms article + article { border-left: 1px solid var(--line); }
.platforms h3 { font-size: 18px; margin-bottom: 12px; }
/* Official artwork is unmodified. Google includes clear space in its PNG. */
.store-badge { display: inline-flex; align-items: center; justify-content: center; min-height: 78px; }
.apple-badge { padding: 12px; }
.apple-badge img { width: 162px; height: 54px; }
.google-badge img { width: 210px; height: auto; }
.pro-note { max-width: 640px; margin: 40px auto 0; font-size: var(--body-size); line-height: 1.65; color: var(--muted); }
.pro-note strong { color: var(--secondary); font-weight: 650; }
.fine-print { margin-top: 13px; font-size: var(--small-size); color: var(--muted); line-height: 1.6; }
.site-footer { padding: 24px 0 32px; color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; align-items: center; font-size: var(--small-size); gap: 20px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.site-footer nav a { padding-block: 12px; }
.site-footer > p { font-size: var(--small-size); line-height: 1.7; margin-top: 22px; max-width: 760px; }
.language-picker { margin-top: 24px; max-width: 680px; font-size: var(--small-size); scroll-margin-top: 24px; }
.language-picker summary { cursor: pointer; width: fit-content; padding-block: 12px; color: var(--primary); }
.language-picker summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
.language-picker nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0 20px; margin-top: 8px; }
.language-picker a[aria-current="page"] { color: var(--secondary); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.legal { max-width: 740px; padding: 50px 0 80px; font-size: var(--body-size); line-height: 1.75; }
.legal h1 { font-size: 42px; margin-bottom: 24px; }
.legal h3 { font-size: 23px; margin: 35px 0 15px; }
.legal p { margin-bottom: 18px; }
.legal a { text-decoration: underline; color: var(--primary); }

@media (max-width: 850px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 176px; }
  .wrap { width: calc(100% - 40px); }
  .site-header.wrap { padding-inline: 20px; }
  .site-header { min-height: 63px; height: auto; flex-wrap: wrap; gap: 8px 16px; padding-block: 8px; }
  .brand { font-size: 15px; }
  .site-header nav { gap: 16px; font-size: var(--small-size); }
  .hero { padding: 51px 0 55px; }
  .app-icon { width: 112px; height: 112px; border-radius: 28px; margin-bottom: 24px; }
  h1 { font-size: 40px; letter-spacing: -1.3px; }
  .hero-description { max-width: 350px; font-size: 18px; margin-top: 26px; line-height: 1.55; }
  .hero-description br { display: none; }
  .text-link { font-size: 19px; }
  .features, .reviews { padding-top: 42px; }
  h2 { font-size: 27px; letter-spacing: -.7px; }
  .section-description { font-size: 16px; margin-top: 17px; }
  .wide-only { display: none; }
  .product-stage { width: 350px; height: 395px; margin-top: 33px; }
  .phone { left: 2%; width: 59%; border-radius: 16px; }
  .editor { right: 1%; width: 62%; top: 125px; border-radius: 16px; }
  .feature-details { grid-template-columns: 1fr; gap: 25px; margin-top: 32px; }
  .feature-details h3 { font-size: 18px; line-height: 1.4; }
  .feature-set { margin-top: 44px; padding-top: 40px; }
  .feature-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 30px; }
  .feature-grid article { padding: 24px; }
  .reviews { margin-top: 48px; padding: 56px 0 24px; }
  .review-grid { grid-template-columns: 1fr; grid-template-areas: "first" "featured" "last"; gap: 36px; margin-top: 36px; }
  .review-grid figure { width: 96%; }
  .review-grid figure:nth-child(even) { justify-self: end; }
  .review-grid blockquote { font-size: 17px; padding: 21px 23px; }
  .ratings { gap: 20px; margin-top: 48px; }
  .rating-source { margin-top: 48px; }
  .ratings strong { font-size: 29px; }
  .rating-leaf { width: 21px; height: 56px; flex-basis: 21px; }
  .rating-leaf:first-child { margin-right: 0; }
  .rating-leaf-right { margin-left: 0; }
  .download-section { padding: 48px 0; }
  .platforms { grid-template-columns: 1fr; gap: 23px; }
  .platforms article { padding: 0; }
  .platforms article + article { border-left: 0; }
  .platforms h3 { font-size: 17px; }
  .footer-row { flex-direction: column-reverse; align-items: flex-start; gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-header { transition: none; }
  .feature-grid article { transition: none; }
  .feature-grid article:hover { transform: none; }
}
@media (max-width: 360px) {
  .ratings { grid-template-columns: 1fr; gap: 28px; }
  .feature-details { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .product-stage { height: 345px; }
}
