@font-face {
  font-family: "Cabinet Grotesk";
  src: url("/assets/fonts/cabinet-grotesk-400.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Cabinet Grotesk";
  src: url("/assets/fonts/cabinet-grotesk-500.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 500;
}

@font-face {
  font-family: "Cabinet Grotesk";
  src: url("/assets/fonts/cabinet-grotesk-700.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

@font-face {
  font-family: "Cabinet Grotesk";
  src: url("/assets/fonts/cabinet-grotesk-800.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 800;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-400.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-italic-400.ttf") format("truetype");
  font-display: swap;
  font-style: italic;
  font-weight: 400;
}

:root {
  --ink: #171714;
  --muted: #6f6d67;
  --paper: #f7f5ef;
  --surface: #fffefa;
  --line: #dfddd5;
  --accent: #2b6a47;
  --accent-ink: #18452f;
  --accent-soft: #e7eee8;
  --content: 1280px;
  --article: 720px;
  --radius-control: 6px;
  --radius-card: 12px;
  --radius-media: 24px;
  --shadow-soft: 0 14px 45px rgba(35, 32, 25, 0.045);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

body.theme-hanami { --accent: #2b6a47; --accent-ink: #18452f; --accent-soft: #e5eee7; }
body.theme-chroma { --accent: #b95245; --accent-ink: #673a37; --accent-soft: #f3e7e2; }
body.theme-pace { --accent: #35633c; --accent-ink: #213f27; --accent-soft: #e6eee3; }
body.theme-veg { --accent: #4f7b37; --accent-ink: #2f4d25; --accent-soft: #e9f0df; }

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Cabinet Grotesk", "Avenir Next", "Helvetica Neue", sans-serif;
  font-size: 1rem;
  line-height: 1.62;
}

main { width: 100%; max-width: 100%; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
p, li, figcaption { text-wrap: pretty; }
h1, h2, h3 { margin: 0; color: var(--ink); line-height: 0.98; letter-spacing: -0.045em; text-wrap: balance; }
h1 { font-size: clamp(3.7rem, 8vw, 8rem); font-weight: 800; }
h2 { font-size: clamp(2.7rem, 5.6vw, 5.8rem); font-weight: 700; }
h3 { font-size: clamp(1.35rem, 2.2vw, 2rem); font-weight: 700; }
h2 em { font-family: "Instrument Serif", "Iowan Old Style", serif; font-weight: 400; }

::selection { color: #fff; background: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius-control);
  color: #fff;
  background: var(--ink);
  transform: translateY(-160%);
  transition: transform 180ms var(--ease-out);
}

.skip-link:focus { transform: translateY(0); }
.container { width: min(var(--content), calc(100% - 48px)); margin-inline: auto; }
.narrow { width: min(var(--article), calc(100% - 48px)); margin-inline: auto; }
.section { padding: clamp(104px, 12vw, 180px) 0 clamp(120px, 14vw, 210px); }
.section.compact { padding: clamp(76px, 9vw, 126px) 0; }
.section.surface { background: var(--surface); }
.section.tint { background: var(--accent-soft); }
.section-dark { color: #f5f2ea; background: var(--ink); }

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-dark .eyebrow { color: #9bc6a8; }
.lead { max-width: 66ch; margin: 26px 0 0; color: var(--muted); font-size: clamp(1.1rem, 1.7vw, 1.38rem); line-height: 1.55; }
.section-dark .lead, .section-dark p { color: rgba(255, 255, 255, 0.66); }
.kicker { margin: 0; color: var(--muted); font-size: 0.92rem; font-weight: 500; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--ink);
  background: rgba(247, 245, 239, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(var(--content), calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand { min-height: 44px; display: inline-flex; align-items: center; gap: 12px; font-size: 1.03rem; font-weight: 700; letter-spacing: -0.02em; }
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-control);
  color: #fff;
  background: var(--ink);
  font-size: 0.72rem;
  letter-spacing: -0.02em;
}

.nav-links { display: flex; align-items: center; gap: 6px; color: #4f4d48; font-size: 0.94rem; font-weight: 500; }
.nav-links a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: var(--radius-control); transition: color 180ms ease, background-color 180ms ease; }
.nav-links a:hover, .nav-links a:focus-visible, .nav-links a[aria-current="page"] { color: var(--ink); background: rgba(23, 23, 20, 0.055); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius-control); color: var(--ink); background: var(--surface); }
.nav-toggle span { display: block; width: 18px; height: 1.5px; margin: 4px auto; background: currentColor; transition: transform 180ms cubic-bezier(0.2, 0, 0, 1), opacity 180ms ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0.25); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.button, .store-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  padding: 0 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 180ms var(--ease-out), color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:active, .store-button:active { transform: scale(0.96); }
.button.primary, .store-button { color: #fff; background: var(--ink); }
.button.accent { color: #fff; background: var(--accent); }
.button.secondary { border-color: var(--line); background: var(--surface); }
.button:hover, .store-button:hover { transform: translateY(-2px); }
.button:active, .button:hover:active, .store-button:active, .store-button:hover:active { transform: scale(0.96); }
.button.primary:hover, .store-button:hover { background: #33332e; }
.button.secondary:hover { border-color: #aaa79e; }
.actions, .store-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.store-icon { width: 21px; height: 21px; flex: 0 0 21px; }

.home-hero {
  position: relative;
  min-height: min(860px, calc(100dvh - 76px));
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: clamp(92px, 10vw, 144px) 0 clamp(110px, 12vw, 170px);
  background-color: var(--paper);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.34;
  background-image: url("data:image/svg+xml,%3Csvg width='96' height='96' viewBox='0 0 96 96' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0H96M0 48H96M0 96H96M0 0V96M48 0V96M96 0V96' fill='none' stroke='%23d8d5cc' stroke-width='.45'/%3E%3C/svg%3E");
}

.home-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--line); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.72fr); gap: clamp(52px, 8vw, 116px); align-items: end; }
.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 { max-width: 72rem; font-size: clamp(4.25rem, 7vw, 6.5rem); line-height: 0.86; letter-spacing: -0.062em; }
.hero-copy .lead { max-width: 620px; }
.hero-copy .actions { margin-top: 34px; }
.hero-copy .actions .secondary { border: 0; border-bottom: 1px solid var(--ink); padding-inline: 2px; background: transparent; }

.hero-icons { height: 420px; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 18px; align-content: end; padding-bottom: 12px; }
.hero-icon {
  position: relative;
  width: min(100%, 190px);
  height: auto;
  justify-self: center;
  aspect-ratio: 1;
  border-radius: 25%;
  object-fit: cover;
  border: 1px solid rgba(23, 23, 20, 0.1);
  box-shadow: var(--shadow-soft);
  transition: transform 700ms var(--ease-out);
}

.hero-icon:nth-child(1) { transform: translateY(-24px) rotate(-3deg); }
.hero-icon:nth-child(2) { transform: translateY(18px) rotate(2deg); }
.hero-icon:nth-child(3) { transform: translateY(-6px) rotate(2deg); }
.hero-icon:nth-child(4) { transform: translateY(30px) rotate(-2deg); }
.hero-icons:hover .hero-icon { transform: translateY(0) rotate(0); }
.hero-stamp { display: none; }

.category-rail { min-height: 66px; overflow: hidden; display: flex; align-items: center; border-bottom: 1px solid var(--line); background: var(--surface); }
.category-track { min-width: max-content; display: flex; align-items: center; animation: category-marquee 28s linear infinite; }
.category-rail span { display: inline-flex; align-items: center; gap: 26px; padding-right: 42px; color: #57554f; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
.category-rail span::after { content: ""; width: 5px; height: 5px; background: var(--accent); }
@keyframes category-marquee { to { transform: translateX(-50%); } }

.section-head { display: flex; justify-content: space-between; gap: 48px; align-items: end; margin-bottom: 54px; }
.section-head > div { max-width: 780px; }
.section-head > p { max-width: 48ch; margin: 0; color: var(--muted); }
#apps .section-head h2 { font-family: "Instrument Serif", "Iowan Old Style", serif; font-weight: 400; letter-spacing: -0.035em; }

.app-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 28px);
}

.app-tile {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 38px);
  border-radius: 28px;
  color: var(--tile-ink, var(--ink));
  background: var(--tile-bg, var(--surface));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 1px 2px -1px rgba(0, 0, 0, 0.06),
    0 14px 34px rgba(31, 29, 24, 0.055);
  transition-property: background-color, box-shadow, transform;
  transition-duration: 240ms;
  transition-timing-function: var(--ease-out);
}

.tile-hanami { --tile-bg: #eef3ed; --visual-bg: #dfeae0; }
.tile-chroma { --tile-bg: #28252b; --tile-ink: #fff; --visual-bg: #3b333d; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.24), 0 18px 42px rgba(31, 24, 32, 0.14); }
.tile-pace { --tile-bg: #f0f2eb; --visual-bg: #dfe7d8; }
.tile-veg { --tile-bg: #edf2e5; --visual-bg: #dce8cf; }
.app-tile:hover {
  background: color-mix(in srgb, var(--tile-bg) 94%, #fff);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 2px 4px -1px rgba(0, 0, 0, 0.08),
    0 22px 48px rgba(31, 29, 24, 0.09);
  transform: translateY(-4px);
}
.tile-chroma:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.13), 0 2px 4px -1px rgba(0, 0, 0, 0.3), 0 24px 52px rgba(31, 24, 32, 0.2); }
.app-tile-head { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.app-title-row { display: flex; gap: 15px; align-items: center; }
.app-icon { width: 66px; height: 66px; flex: 0 0 66px; border-radius: 19px; object-fit: cover; outline: 1px solid rgba(0, 0, 0, 0.1); outline-offset: -1px; }
.tile-chroma .app-icon { outline-color: rgba(255, 255, 255, 0.1); }
.app-tile h3 { margin-bottom: 5px; color: inherit; }
.app-tile .meta { margin: 0; color: color-mix(in srgb, currentColor 64%, transparent); font-size: 0.88rem; }
.arrow-link { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, currentColor 24%, transparent); border-radius: var(--radius-control); font-size: 1.1rem; transition: transform 220ms var(--ease-out), color 220ms ease, background-color 220ms ease; }
.app-tile:hover .arrow-link { color: var(--tile-bg); background: var(--tile-ink); transform: translate(2px, -2px); }
.tile-copy { position: relative; z-index: 2; max-width: 42ch; margin: 22px 0 28px; font-size: 1.02rem; }
.tile-visual {
  position: relative;
  min-height: 292px;
  margin-top: auto;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 74% 24%, rgba(255, 255, 255, 0.78) 0 9%, transparent 10%),
    radial-gradient(circle at 22% 88%, rgba(255, 255, 255, 0.52) 0 16%, transparent 17%),
    var(--visual-bg);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.055);
}
.tile-chroma .tile-visual {
  background:
    radial-gradient(circle at 78% 20%, rgba(223, 177, 190, 0.2) 0 12%, transparent 13%),
    radial-gradient(circle at 18% 88%, rgba(174, 153, 194, 0.18) 0 18%, transparent 19%),
    var(--visual-bg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.tile-screen {
  position: absolute;
  top: 24px;
  width: min(36%, 196px);
  height: auto;
  border-radius: 18px;
  object-fit: cover;
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
  box-shadow: 0 18px 38px rgba(23, 23, 20, 0.18), 0 3px 8px rgba(23, 23, 20, 0.08);
  transition-property: transform;
  transition-duration: 620ms;
  transition-timing-function: var(--ease-out);
}
.tile-chroma .tile-screen { outline-color: rgba(255, 255, 255, 0.1); }
.tile-screen-front { left: 50%; z-index: 2; transform: translateX(-92%) rotate(-4deg); }
.tile-screen-back { left: 50%; transform: translateX(14%) translateY(18px) rotate(5deg) scale(0.94); }
.app-tile:hover .tile-screen-front { transform: translateX(-90%) translateY(-8px) rotate(-1deg); }
.app-tile:hover .tile-screen-back { transform: translateX(12%) translateY(8px) rotate(2deg) scale(0.96); }

#studio { color: #f5f2ea; background: var(--ink); }
#studio h2, #studio h3 { color: #f5f2ea; }
#studio .eyebrow { color: #9bc6a8; }
#studio .lead, #studio .principle p { color: rgba(255, 255, 255, 0.62); }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(380px, 0.8fr); gap: clamp(64px, 10vw, 150px); align-items: start; }
.studio-grid > div:first-child { position: sticky; top: 130px; }
.gsap-enhanced .studio-grid > div:first-child { position: relative; top: auto; }
.studio-grid h2 { max-width: 860px; }
.studio-grid h2 em { color: #b9c7b5; }
.principles { display: grid; }
.principle { position: relative; padding: 30px 0 34px 52px; border-bottom: 1px solid rgba(255, 255, 255, 0.18); background: transparent; }
.principle::before { content: "↗"; position: absolute; left: 0; top: 34px; color: #78a888; }
.principle:first-child { border-top: 1px solid rgba(255, 255, 255, 0.18); }
.principle small { color: #8fb49b; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.principle h3 { margin-top: 10px; }
.principle p { margin: 12px 0 0; }

.app-hero { position: relative; overflow: hidden; padding: clamp(78px, 8vw, 118px) 0 clamp(94px, 10vw, 148px); background: var(--accent-soft); border-bottom: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line)); }
.app-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.2; background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0H120M0 60H120M0 120H120M0 0V120M60 0V120M120 0V120' fill='none' stroke='%238a958c' stroke-width='.45'/%3E%3C/svg%3E"); }
.app-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr); align-items: center; gap: clamp(60px, 9vw, 138px); }
.app-identity { display: flex; align-items: center; gap: 18px; margin-bottom: 36px; }
.app-identity .app-icon { width: 82px; height: 82px; flex-basis: 82px; border-radius: 22px; }
.app-identity strong { font-size: 1.18rem; }
.app-identity p { margin: 4px 0 0; color: var(--muted); }
.app-hero h1 { max-width: 860px; font-size: clamp(3.7rem, 5.5vw, 6.4rem); line-height: 0.91; }
.app-hero .lead { max-width: 58ch; }
.app-hero .store-row { margin-top: 32px; }
.app-hero .button.secondary { border: 0; border-bottom: 1px solid var(--ink); padding-inline: 2px; background: transparent; }
.hero-phone { position: relative; min-height: 560px; display: grid; place-items: end center; }
.hero-phone::before { content: ""; position: absolute; inset: 12% 6% 0 14%; border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); border-radius: var(--radius-media); }
.hero-phone img { position: relative; width: min(66%, 340px); height: auto; max-height: none; border: 0; border-radius: var(--radius-media); object-fit: contain; outline: 1px solid rgba(0, 0, 0, 0.1); outline-offset: -1px; box-shadow: 0 30px 70px color-mix(in srgb, var(--accent) 12%, rgba(23, 23, 20, 0.08)); transform: rotate(2deg); transition: transform 700ms var(--ease-out); }
.hero-phone:hover img { transform: rotate(0) scale(1.02); }
.app-facts { display: none; }

.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 48px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-card); }
.benefit { min-height: 260px; padding: clamp(28px, 3vw, 42px); border-right: 1px solid var(--line); background: var(--surface); }
.benefit:last-child { border-right: 0; }
.benefit-number { display: block; color: var(--accent); font-family: "Instrument Serif", serif; font-size: 2rem; }
.benefit h3 { margin-top: 48px; }
.benefit p { margin: 14px 0 0; color: var(--muted); }

.product-story { width: min(var(--content), calc(100% - 48px)); margin-inline: auto; display: grid; grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1.38fr); gap: clamp(56px, 9vw, 130px); align-items: start; }
.product-story > .section-head { position: sticky; top: 126px; display: block; margin: 0; }
.gsap-enhanced .product-story > .section-head { position: relative; top: auto; }
.product-story > .section-head > p { margin-top: 24px; }
.product-story .screenshot-rail { display: grid; grid-auto-flow: row; grid-auto-columns: auto; gap: 0; overflow: visible; padding: 0; scroll-snap-type: none; }
.product-story .screenshot-rail img { position: sticky; top: 118px; width: min(100%, 560px); max-height: 760px; margin: 0 0 32vh auto; border-radius: var(--radius-media); object-fit: cover; border: 1px solid var(--line); box-shadow: 0 28px 68px rgba(23, 23, 20, 0.08); transform-origin: center top; }
.product-story .screenshot-rail img:nth-child(even) { margin-right: auto; margin-left: 0; }
.product-story .screenshot-rail img:last-child { margin-bottom: 0; }

.screenshot-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 30%); gap: 18px; overflow-x: auto; padding: 10px max(24px, calc((100vw - var(--content)) / 2)) 34px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.screenshot-rail img { width: 100%; max-height: 710px; border-radius: var(--radius-media); object-fit: cover; border: 1px solid var(--line); scroll-snap-align: start; }

.pace-showcase {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 18%, rgba(53, 99, 60, 0.09), transparent 28%),
    radial-gradient(circle at 88% 78%, rgba(53, 99, 60, 0.06), transparent 26%),
    var(--paper);
}
.pace-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.24;
  background-image: url("data:image/svg+xml,%3Csvg width='96' height='96' viewBox='0 0 96 96' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0H96M0 48H96M0 96H96M0 0V96M48 0V96M96 0V96' fill='none' stroke='%238a958c' stroke-width='.35'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 78%);
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}
.pace-showcase > * { position: relative; }
.pace-showcase .section-head { margin-bottom: clamp(56px, 7vw, 88px); }
.pace-showcase .section-head > p { max-width: 46ch; }
.pace-showcase .screenshot-rail {
  width: min(var(--content), calc(100% - 48px));
  margin-inline: auto;
  display: grid;
  grid-auto-flow: row;
  grid-auto-columns: auto;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(14px, 1.7vw, 24px);
  align-items: start;
  overflow: visible;
  padding: 0;
  scroll-snap-type: none;
}
.pace-shot { margin: 0; transition: transform 420ms var(--ease-out); }
.pace-shot:nth-child(1) { margin-top: 54px; }
.pace-shot:nth-child(2) { margin-top: 0; }
.pace-shot:nth-child(3) { margin-top: 82px; }
.pace-shot:nth-child(4) { margin-top: 24px; }
.pace-shot:nth-child(5) { margin-top: 62px; }
.pace-shot:hover { transform: translateY(-8px); }
.pace-showcase .pace-shot img {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 600 / 1298;
  border: 0;
  border-radius: 22px;
  object-fit: contain;
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
  box-shadow: 0 28px 60px rgba(30, 55, 36, 0.13), 0 6px 18px rgba(30, 55, 36, 0.07);
  scroll-snap-align: none;
}
.pace-shot figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}
.pace-shot figcaption span { color: var(--accent); font-family: "Instrument Serif", serif; font-size: 1.08rem; font-variant-numeric: tabular-nums; }
.pace-shot figcaption strong { color: var(--ink); font-weight: 600; text-align: right; }

.app-showcase {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 18%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 28%),
    radial-gradient(circle at 88% 78%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 26%),
    var(--paper);
}
.app-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.24;
  background-image: url("data:image/svg+xml,%3Csvg width='96' height='96' viewBox='0 0 96 96' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0H96M0 48H96M0 96H96M0 0V96M48 0V96M96 0V96' fill='none' stroke='%238a958c' stroke-width='.35'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 78%);
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}
.app-showcase > * { position: relative; }
.app-showcase .section-head { margin-bottom: clamp(56px, 7vw, 88px); }
.app-showcase .section-head > p { max-width: 46ch; }
.app-showcase .screenshot-rail {
  width: min(var(--content), calc(100% - 48px));
  margin-inline: auto;
  display: grid;
  grid-auto-flow: row;
  grid-auto-columns: auto;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(14px, 1.7vw, 24px);
  align-items: start;
  overflow: visible;
  padding: 0;
  scroll-snap-type: none;
}
.app-showcase.showcase-six .screenshot-rail { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.app-showcase.showcase-three .screenshot-rail { width: min(920px, calc(100% - 48px)); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.app-shot { margin: 0; transition: transform 420ms var(--ease-out); }
.app-shot:nth-child(1) { margin-top: 54px; }
.app-shot:nth-child(2) { margin-top: 0; }
.app-shot:nth-child(3) { margin-top: 82px; }
.app-shot:nth-child(4) { margin-top: 24px; }
.app-shot:nth-child(5) { margin-top: 62px; }
.app-shot:nth-child(6) { margin-top: 12px; }
.app-shot:hover { transform: translateY(-8px); }
.app-showcase .app-shot img {
  width: 100%;
  height: auto;
  max-height: none;
  border: 0;
  border-radius: 22px;
  object-fit: contain;
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
  box-shadow: 0 28px 60px color-mix(in srgb, var(--accent) 13%, transparent), 0 6px 18px rgba(23, 23, 20, 0.07);
  scroll-snap-align: none;
}
.app-shot figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; color: var(--muted); font-size: 0.78rem; line-height: 1.3; }
.app-shot figcaption span { color: var(--accent); font-family: "Instrument Serif", serif; font-size: 1.08rem; font-variant-numeric: tabular-nums; }
.app-shot figcaption strong { color: var(--ink); font-weight: 600; text-align: right; }

.steps { counter-reset: step; display: grid; margin-top: 48px; border-top: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line)); }
.step { counter-increment: step; display: grid; grid-template-columns: 72px minmax(190px, 0.7fr) 1fr; gap: 26px; align-items: center; padding: 30px 0; border-bottom: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line)); background: transparent; }
.step::before { content: "0" counter(step); color: var(--accent); font-family: "Instrument Serif", serif; font-size: 1.65rem; }
.step p { margin: 0; color: var(--muted); }

.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 48px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.guide-card { min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(28px, 3.4vw, 46px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; transition: background-color 200ms ease; }
.guide-card:hover { background: var(--surface); }
.guide-card small { color: var(--accent); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.guide-card h3 { margin-top: 16px; font-family: "Instrument Serif", serif; font-size: clamp(2rem, 3vw, 3rem); font-weight: 400; line-height: 1.02; letter-spacing: -0.025em; }
.guide-card p { margin: 16px 0 0; color: var(--muted); }
.guide-card .read { margin-top: 32px; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }

.faq-list { display: grid; margin-top: 42px; border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); background: transparent; }
.faq summary { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 2px; cursor: pointer; font-size: 1.08rem; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; width: 32px; height: 32px; display: grid; place-items: center; color: var(--accent); font-size: 1.35rem; font-weight: 400; transition: transform 180ms ease; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq-answer { max-width: 70ch; padding: 0 0 26px; color: var(--muted); }
.faq-answer p { margin: 0; }
.faq-answer a { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

.cta-panel { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 52px; align-items: end; padding: clamp(44px, 6vw, 78px); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius-card); color: #fff; background: #24241f !important; }
.cta-panel h2 { max-width: 900px; color: #fff; }
.cta-panel p { max-width: 62ch; margin: 18px 0 0; color: rgba(255, 255, 255, 0.66); }
.cta-panel .store-button { position: relative; color: var(--ink); background: #fff; }

.guide-hero { padding: clamp(96px, 10vw, 148px) 0 clamp(74px, 8vw, 116px); background: var(--paper); border-bottom: 1px solid var(--line); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 34px; color: var(--muted); font-size: 0.87rem; }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 4px; }
.guide-hero h1 { max-width: 1100px; font-family: "Instrument Serif", "Iowan Old Style", serif; font-size: clamp(3.4rem, 7vw, 7rem); font-weight: 400; line-height: 0.95; letter-spacing: -0.04em; }
.guide-hero .lead { max-width: 68ch; }
.guide-meta { margin-top: 28px; color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; }

.reading-progress { position: fixed; top: 0; left: 0; z-index: 80; width: 100%; height: 3px; transform: scaleX(0); transform-origin: left; background: var(--accent); pointer-events: none; }
.document-layout { width: min(1160px, calc(100% - 48px)); margin-inline: auto; display: grid; grid-template-columns: 220px minmax(0, var(--article)); gap: clamp(56px, 8vw, 118px); align-items: start; }
.document-toc { position: sticky; top: 118px; padding-top: 70px; }
.document-toc-label { margin: 0 0 18px; color: var(--muted); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; list-style: none; }
.document-toc-label::-webkit-details-marker { display: none; }
.document-toc-label::after { content: "+"; float: right; color: var(--accent); font-size: 1rem; transition: transform 180ms ease; }
.document-toc-disclosure[open] > .document-toc-label::after { transform: rotate(45deg); }
.document-toc nav { display: grid; border-top: 1px solid var(--line); }
.document-toc a { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; line-height: 1.35; transition: color 180ms ease, padding-left 180ms ease; }
.document-toc a:hover, .document-toc a.active { padding-left: 8px; color: var(--accent); }
.document-app-link { display: inline-flex; margin-top: 26px; color: var(--accent) !important; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

.article { width: auto; max-width: var(--article); padding: 82px 0 142px; }
.article > p:first-child { font-size: 1.18rem; color: #3e3d39; }
.article h2 { margin: 68px 0 22px; font-family: "Instrument Serif", "Iowan Old Style", serif; font-size: clamp(2.35rem, 4vw, 4rem); font-weight: 400; line-height: 1.02; letter-spacing: -0.028em; scroll-margin-top: 118px; }
.article h3 { margin: 40px 0 16px; }
.article p, .article li { color: #4f4d47; font-size: 1.07rem; line-height: 1.72; }
.article a { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.article-callout { margin: 48px 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--accent); color: #4f4d47; background: transparent; }
.article-callout strong { display: block; margin-bottom: 8px; color: var(--accent-ink); }
.article-cta { margin-top: 72px; padding: clamp(30px, 5vw, 50px); border-radius: var(--radius-card); color: #fff; background: var(--ink); }
.article-cta h3 { margin: 0; color: #fff; }
.article-cta p { color: rgba(255, 255, 255, 0.7); }
.article-cta .store-button { color: var(--ink); background: #fff; text-decoration: none; }

.legal { width: min(1160px, calc(100% - 48px)); padding: 104px 0 144px; }
.legal.document-layout { grid-template-columns: 220px minmax(0, var(--article)); }
.legal .document-toc { padding-top: 14px; }
.legal-copy { max-width: var(--article); }
.legal h1 { max-width: 980px; font-family: "Instrument Serif", "Iowan Old Style", serif; font-size: clamp(3.7rem, 7vw, 7rem); font-weight: 400; line-height: 0.96; }
.legal h2 { margin: 64px 0 18px; font-family: "Instrument Serif", "Iowan Old Style", serif; font-size: clamp(2rem, 3.4vw, 3.35rem); font-weight: 400; line-height: 1.05; letter-spacing: -0.025em; scroll-margin-top: 118px; }
.legal h3 { margin: 34px 0 12px; }
.legal p, .legal li { color: #55534d; font-size: 1.04rem; line-height: 1.7; }
.legal a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

.site-footer { padding: 72px 0 34px; color: #55534d; background: var(--paper); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: minmax(280px, 1.35fr) repeat(2, minmax(150px, 0.55fr)); gap: 56px; }
.footer-brand { color: var(--ink); font-size: 1.38rem; font-weight: 700; }
.footer-grid p { max-width: 42ch; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links strong { margin-bottom: 8px; color: var(--ink); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-links a { min-height: 44px; display: flex; align-items: center; transition: color 150ms ease; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { margin-top: 54px; padding-top: 24px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); font-size: 0.82rem; }

.reveal { opacity: 0; transform: translateY(12px); }
.reveal.visible { opacity: 1; transform: translateY(0); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
.app-tile.reveal.visible {
  transition-property: opacity, transform, background-color, box-shadow;
  transition-duration: 600ms, 600ms, 240ms, 240ms;
  transition-timing-function: var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms), var(--reveal-delay, 0ms), 0ms, 0ms;
}
.app-tile.reveal.visible:hover { transform: translateY(-4px); }
.pace-shot.reveal.visible:hover { transform: translateY(-8px); }
.app-shot.reveal.visible:hover { transform: translateY(-8px); }

@media (max-width: 1020px) {
  .hero-grid, .app-hero-grid, .studio-grid { grid-template-columns: 1fr; }
  .hero-icons { width: min(620px, 100%); height: 170px; min-height: 0; grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr; margin-top: 54px; }
  .hero-icon:nth-child(n) { transform: none; }
  .app-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-tile { min-height: 520px; }
  .tile-visual { min-height: 260px; }
  .tile-screen { width: min(39%, 180px); }
  .studio-grid > div:first-child { position: static; }
  .hero-phone { min-height: 610px; }
  .product-story { grid-template-columns: 1fr; }
  .product-story > .section-head { position: static; margin-bottom: 46px; }
  .product-story .screenshot-rail { grid-auto-flow: column; grid-auto-columns: minmax(250px, 48%); gap: 18px; overflow-x: auto; padding: 0 0 24px; scroll-snap-type: x mandatory; }
  .product-story .screenshot-rail img { position: static; width: 100%; max-height: 680px; margin: 0; box-shadow: none; scroll-snap-align: start; }
  .app-showcase .screenshot-rail, .app-showcase.showcase-six .screenshot-rail, .app-showcase.showcase-three .screenshot-rail { width: min(var(--content), calc(100% - 48px)); grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
  .app-showcase .app-shot { grid-column: span 2; margin-top: 0; }
  .app-showcase.showcase-five .app-shot:nth-child(4) { grid-column: 2 / span 2; }
  .app-showcase.showcase-five .app-shot:nth-child(5) { grid-column: 4 / span 2; }
  .pace-showcase .screenshot-rail { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
  .pace-showcase .pace-shot { grid-column: span 2; margin-top: 0; }
  .pace-showcase .pace-shot:nth-child(4) { grid-column: 2 / span 2; }
  .pace-showcase .pace-shot:nth-child(5) { grid-column: 4 / span 2; }
  .document-layout, .legal.document-layout { grid-template-columns: 1fr; gap: 0; }
  .document-toc { position: static; padding: 54px 0 0; }
  .legal.document-layout .legal-copy { display: contents; }
  .legal.document-layout .legal-intro { order: 1; }
  .legal.document-layout .document-toc { order: 2; padding-top: 42px; }
  .legal.document-layout .legal-body { order: 3; }
  .document-toc nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article { max-width: none; }
  .legal-copy { max-width: none; }
}

@media (max-width: 760px) {
  .container, .narrow, .document-layout, .legal { width: min(100% - 32px, var(--content)); }
  .section { padding: 88px 0 108px; }
  h1 { font-size: clamp(3.2rem, 15vw, 5.1rem); }
  h2 { font-size: clamp(2.5rem, 12vw, 4.4rem); }
  .nav { width: calc(100% - 24px); min-height: 68px; }
  .brand-mark { width: 32px; height: 32px; }
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: calc(100% + 1px); left: 12px; right: 12px; display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-soft); }
  .nav-links.open { display: flex; }
  .nav-links a { justify-content: space-between; }
  .home-hero { min-height: auto; padding-top: 82px; }
  .hero-copy h1 { font-size: clamp(3.8rem, 18vw, 6rem); }
  .hero-icons { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); width: min(440px, 100%); height: 360px; }
  .hero-icon:nth-child(2), .hero-icon:nth-child(4) { transform: translateY(24px); }
  .category-rail { min-height: 58px; }
  .section-head { display: block; }
  .section-head > p { margin-top: 22px; }
  .app-gallery { grid-template-columns: 1fr; }
  .app-tile { min-height: 540px; }
  .tile-visual { min-height: 285px; }
  .tile-screen { width: min(36%, 190px); }
  .app-hero { padding: 82px 0 108px; }
  .app-hero h1 { font-size: clamp(3.35rem, 15vw, 5.5rem); }
  .app-identity { margin-bottom: 28px; }
  .hero-phone { min-height: 520px; }
  .hero-phone img { width: min(72%, 280px); height: auto; max-height: none; }
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .benefit:last-child { border-bottom: 0; }
  .product-story .screenshot-rail { grid-auto-columns: minmax(245px, 82%); }
  .pace-showcase .section-head { margin-bottom: 46px; }
  .pace-showcase .screenshot-rail { width: calc(100% - 32px); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .pace-showcase .pace-shot:nth-child(n) { grid-column: auto; margin-top: 0; }
  .pace-showcase .pace-shot:nth-child(5) { width: calc(50% - 6px); grid-column: 1 / -1; justify-self: center; }
  .app-showcase .section-head { margin-bottom: 46px; }
  .app-showcase .screenshot-rail, .app-showcase.showcase-six .screenshot-rail, .app-showcase.showcase-three .screenshot-rail { width: calc(100% - 32px); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .app-showcase .app-shot:nth-child(n) { grid-column: auto; margin-top: 0; }
  .app-showcase.showcase-five .app-shot:last-child, .app-showcase.showcase-three .app-shot:last-child { width: calc(50% - 6px); grid-column: 1 / -1; justify-self: center; }
  .app-shot figcaption { display: grid; gap: 3px; margin-top: 11px; }
  .app-shot figcaption strong { text-align: left; }
  .pace-shot figcaption { display: grid; gap: 3px; margin-top: 11px; }
  .pace-shot figcaption strong { text-align: left; }
  .step { grid-template-columns: 44px 1fr; }
  .step p { grid-column: 2; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-card { min-height: 270px; }
  .cta-panel { grid-template-columns: 1fr; align-items: start; }
  .cta-panel .store-button { justify-self: start; }
  .guide-hero { padding-top: 78px; }
  .guide-hero h1, .legal h1 { font-size: clamp(3.2rem, 15vw, 5rem); }
  .document-toc nav { grid-template-columns: 1fr; }
  .article { padding-top: 64px; }
  .article h2 { margin-top: 56px; }
  .legal { padding-top: 78px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 480px) {
  .actions, .store-row { align-items: stretch; }
  .actions .button, .store-row .button, .store-row .store-button { width: 100%; }
  .store-row .button.secondary { width: auto; align-self: center; }
  .hero-icons { gap: 12px; }
  .app-tile { min-height: 500px; padding: 24px; border-radius: 24px; }
  .app-title-row { align-items: flex-start; }
  .app-icon { width: 56px; height: 56px; flex-basis: 56px; border-radius: 16px; }
  .tile-copy { margin-bottom: 22px; font-size: 0.96rem; }
  .tile-visual { min-height: 250px; border-radius: 18px; }
  .tile-screen { top: 18px; width: min(43%, 162px); border-radius: 15px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .category-track { animation: none; }
  .reveal { opacity: 1; transform: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
