/* Ripe: tokens measured from apple.com (Playwright, 1440x900 and 390x844) */
:root {
  --white: oklch(97.7% 0.013 86.8) /*#fbf7ee*/;            /* sand, lightest: page */
  --gray: oklch(92.7% 0.028 86.6) /*#efe6d2*/;            /* sand beige: tile ground */
  --ink: oklch(26.5% 0.031 160.3) /*#172a20*/;             /* forest ink: text */
  --ink-2: oklch(49.3% 0.022 130.4) /*#5d6457*/;           /* secondary text on light */
  --ink-fine: rgba(23, 42, 32, .62); /* footnotes */
  --black: oklch(25.8% 0.036 158.6) /*#13291d*/;            /* deep forest: dark tiles */
  --navy: oklch(37.1% 0.064 156.8) /*#1f4a32*/;            /* forest green: feature tile ground */
  --on-dark: oklch(95.6% 0.020 87.5) /*#f6f0e2*/;
  --blue: oklch(53.9% 0.266 291.9) /*#7b2ff7*/;            /* electric purple: filled pill and accent */
  --blue-hover: oklch(48% 0.266 292);   /* same hue and chroma, darker */
  --link: oklch(49.1% 0.241 292.6) /*#6d28d9*/;            /* text links */
  --link-dark: oklch(78% 0.14 292);      /* same hue, light, for dark grounds */
  --forest: oklch(37.1% 0.064 156.8);   /* links, labels, quiet buttons */
  --sage: oklch(74% 0.07 145);          /* soft art washes, focus glow */
  --sand-deep: oklch(85% 0.065 85);     /* art washes, nav current-page mark */
  --nav-bg: rgba(19, 41, 29, .86);
  --gutter: 12px;             /* tile gap and page margin */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 128px; scroll-behavior: smooth; } /* nav 64 + section menu 52 + 12 */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.47059 var(--text); letter-spacing: -0.022em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 980px; background: var(--blue); color: #fff; text-decoration: none; }
.skip:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* Text link with chevron: 17px oklch(52.2% 0.177 255.8) */
.more { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration: none; white-space: nowrap; }
.more::after { content: ""; display: inline-block; width: .42em; height: .42em; margin-left: .3em; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: translateY(-.08em) rotate(45deg); }
.more:hover { text-decoration: underline; }

/* Pills: filled electric purple and outlined, 980px radius, 11px 21px at 17px; 8px 15px at 14px on half tiles */
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 17px; margin-top: 17px; }
.pill { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; padding: 11px 21px; border-radius: 980px; border: 1px solid rgb(23 42 32 / 0.28); background: transparent; color: var(--ink); font-size: 17px; line-height: 1.17648; letter-spacing: -0.022em; text-decoration: none; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.pill:hover { background: rgb(23 42 32 / 0.06); border-color: rgb(23 42 32 / 0.45); }
.pill--primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.pill--primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.pill--outline { /* same as the quiet default: kept for markup clarity */ }

.pill--sm { padding: 8px 15px; font-size: 14px; line-height: 1.28577; letter-spacing: -0.016em; }
.tile--dark .pill:not(.pill--primary), .tile--navy .pill:not(.pill--primary) { color: var(--on-dark); border-color: rgb(255 255 255 / 0.35); }
.tile--dark .pill:not(.pill--primary):hover, .tile--navy .pill:not(.pill--primary):hover { background: rgb(255 255 255 / 0.1); border-color: rgb(255 255 255 / 0.55); }

/* Nav bar: 64px, dark glass, a bold mark, the current page lit, one blue call to action */
.nav { position: sticky; top: 0; z-index: 50; height: 64px; background: rgba(19, 41, 29, .86); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); color: oklch(95.6% 0.020 87.5); }
.nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgb(255 255 255 / 0.1); }
.nav__inner { max-width: 1180px; height: 100%; margin-inline: auto; padding-inline: 22px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #fff; text-decoration: none; font: 700 22px var(--display); letter-spacing: -0.02em; }
.brand__mark { position: relative; width: 32px; height: 32px; border-radius: 9px; background: var(--sand-deep); box-shadow: inset 0 1px 1px rgba(255,255,255,.45); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.brand__mark i { position: absolute; left: 9px; top: 10px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.brand__mark i::before { content: ""; position: absolute; left: 6px; top: -6px; width: 7px; height: 6px; border-top: 2px solid #fff; border-right: 2px solid #fff; border-radius: 0 8px 0 0; }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.06); }
.nav__links { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav__links a { position: relative; display: inline-flex; align-items: center; height: 64px; padding: 0 14px; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; color: rgba(246, 240, 226, .72); text-decoration: none; transition: color .3s var(--ease); }
.nav__links a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 12px; height: 2px; border-radius: 2px; background: #fff; transform: scaleX(0); transition: transform .25s var(--ease); }
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { transform: scaleX(.5); }
.nav__links a[aria-current="page"] { color: #fff; }
.nav__links a[aria-current="page"]::after { transform: scaleX(1); background: var(--sand-deep); }
.nav__menu-cta { display: none !important; }
.nav__cta { display: inline-flex; align-items: center; height: 38px; padding: 0 18px; border-radius: 980px; background: var(--blue); color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color .3s var(--ease), transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.nav__cta:hover { background: var(--blue-hover); }
.nav__cta:active { transform: scale(.95); }
.nav__toggle { display: none; position: relative; width: 44px; height: 44px; margin-right: -12px; border: 0; background: none; cursor: pointer; }
.nav__toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; border-radius: 2px; background: oklch(95.6% 0.020 87.5); transition: transform .25s var(--ease), top .25s var(--ease); }
.nav__toggle span:first-child { top: 18px; } .nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* Ribbon under the nav, 14px */
.ribbon { padding: 16px 22px; text-align: center; font-size: 14px; line-height: 1.42859; letter-spacing: -0.016em; color: var(--ink); }

/* Tiles: square corners, 12px gutters, copy centred on top, art below */
main { display: flex; flex-direction: column; gap: var(--gutter); }
.tile { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 56px 22px 63px; }
.tile--full { min-height: 692px; }
.tile--light { background: var(--gray); color: var(--ink); }
.tile--dark { background: var(--black); color: var(--on-dark); }
.tile--navy { background: var(--navy); color: var(--on-dark); }
.tile__copy { position: relative; z-index: 2; max-width: 720px; text-wrap: balance; display: flex; flex-direction: column; align-items: center; }
.tile__headline { font-family: var(--display); font-size: 56px; line-height: 1.07143; font-weight: 600; letter-spacing: -0.005em; }
.tile__subhead { margin-top: 6px; font-family: var(--display); font-size: 28px; line-height: 1.14286; font-weight: 400; letter-spacing: .007em; }
.tile__media { position: relative; flex: 1; width: 100%; margin-top: 40px; display: flex; align-items: center; justify-content: center; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); padding-inline: var(--gutter); }
.tile--half { min-height: 580px; padding: 52px 22px 48px; }
.tile--half .tile__headline { font-size: 40px; line-height: 1.1; font-weight: 600; letter-spacing: 0; }
.tile--half .tile__subhead { font-size: 21px; line-height: 1.19048; letter-spacing: .011em; }

/* Colour blobs: the "product imagery" the glass sits on */
.blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(50px); opacity: .85; animation: drift 18s var(--ease) infinite alternate; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(6%, 5%) scale(1.1); } 100% { transform: translate(-5%, 8%) scale(.95); } }

/* Liquid glass */
.glass { --mx: 30%; --my: 0%; position: relative;
  background: linear-gradient(135deg in oklch, rgba(255,255,255,.46), rgba(255,255,255,.18));
  backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.9), inset 0 -1px 1px rgba(255,255,255,.2), 0 12px 40px rgba(19, 41, 29, .14);
  color: var(--ink); text-align: left; }
.glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(240px circle at var(--mx) var(--my) in oklch, rgba(255,255,255,.6), transparent 60%); mix-blend-mode: soft-light; }
.glass::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(180deg in oklch, rgba(255,255,255,.38), rgba(255,255,255,0) 40%); }
.glass > * { position: relative; z-index: 1; }
.tile--dark .saved { color: var(--on-dark); background: linear-gradient(135deg in oklch, rgba(255,255,255,.2), rgba(255,255,255,.06)); border-color: rgba(255,255,255,.3); }
.tile--dark .saved__top small, .tile--dark .chart i span { color: rgba(246,240,226,.75); }
.tile--dark .chart i { background: rgba(255,255,255,.35); }
.tile--dark .chart i.now { background: oklch(95.6% 0.020 87.5); }

/* Hero art: iPhone over sunrise blobs */
.hero-art { min-height: 480px; align-items: flex-start; }
.hero-art .b1 { width: 420px; height: 420px; left: calc(50% - 480px); top: 0; background: oklch(84.3% 0.080 87.3); }
.hero-art .b2 { width: 380px; height: 380px; left: calc(50% + 80px); top: 60px; background: var(--sage); animation-delay: -6s; }
.hero-art .b3 { width: 260px; height: 260px; left: calc(50% - 120px); top: 220px; background: oklch(78.0% 0.073 143.6); animation-delay: -11s; }
.iphone { position: relative; width: 290px; height: 600px; margin-bottom: -180px; border-radius: 52px; padding: 11px; background: oklch(26.5% 0.031 160.3); box-shadow: inset 0 0 0 2px oklch(33.1% 0.027 157.1), 0 30px 60px rgba(19, 41, 29, .3); }
.iphone__island { position: absolute; top: 22px; left: 50%; width: 92px; height: 27px; margin-left: -46px; border-radius: 20px; background: #000; z-index: 3; }
.iphone__screen { position: relative; height: 100%; overflow: hidden; border-radius: 41px; padding: 70px 13px 0; /* iPhone frame 52px minus its 11px padding */ text-align: center; background: linear-gradient(170deg in oklch, var(--forest), var(--sage)); }
.iphone__screen::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; left: -60px; top: 220px; background: oklch(78.0% 0.073 143.6); filter: blur(40px); opacity: .8; }
.ios-time { position: relative; color: #fff; font: 600 80px/1 var(--display); letter-spacing: -0.03em; }
.ios-date { position: relative; color: rgba(255,255,255,.92); font: 600 17px var(--display); margin-top: 4px; }
.widget { margin-top: 18px; padding: 14px 16px; border-radius: 28px; } /* screen 41px minus its 13px padding */
.widget + .widget { margin-top: 10px; }
.widget__head { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: rgba(23,42,32,.75); text-transform: uppercase; letter-spacing: .02em; }
.widget__head em { margin-left: auto; font-style: normal; font-weight: 400; text-transform: none; }
.app-dot { width: 16px; height: 16px; border-radius: 5px; background: var(--forest); }
.widget b { display: block; margin-top: 6px; font-size: 16px; line-height: 1.25; }
.widget p { margin-top: 3px; font-size: 13px; color: rgba(23,42,32,.7); }
.widget--grid { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.widget--grid b { margin: 0; font-size: 22px; }
.widget--grid small { font-size: 11px; color: rgba(23,42,32,.65); }
.float-card { position: absolute; padding: 18px 20px; border-radius: 22px; min-width: 210px; animation: bob 7s var(--ease) infinite alternate; }
.float-card small { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: rgba(23,42,32,.65); margin-bottom: 8px; }
.float-card b { font-size: 19px; }
.fc-left { left: calc(50% - 420px); top: 90px; }
.fc-right { left: calc(50% + 190px); top: 300px; animation-delay: -3s; }
@keyframes bob { to { transform: translateY(-12px); } }
.pill-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 16px; font-weight: 500; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot--red { background: oklch(65.4% 0.232 28.7); } .dot--amber { background: oklch(78.2% 0.171 67.2); } .dot--green { background: oklch(73.0% 0.194 147.4); }
.mini-bars { display: grid; gap: 6px; margin-top: 12px; }
.mini-bars i { height: 6px; width: var(--w); border-radius: 6px; background: rgba(255,255,255,.9); }

/* Fridge demo (dark tile) */
.demo { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; width: min(100%, 980px); align-items: start; }
.demo .b1 { width: 380px; height: 380px; left: -40px; top: -40px; background: var(--sage); opacity: .5; }
.demo .b2 { width: 360px; height: 360px; right: -40px; bottom: -60px; background: oklch(59.4% 0.096 153.3); opacity: .45; animation-delay: -6s; }
.demo .b3 { width: 240px; height: 240px; left: 45%; top: 30%; background: oklch(84.3% 0.080 87.3); opacity: .4; animation-delay: -12s; }
.demo .glass { color: var(--on-dark); background: linear-gradient(135deg in oklch, rgba(255,255,255,.16), rgba(255,255,255,.05)); border-color: rgba(255,255,255,.22); box-shadow: inset 0 1px 1px rgba(255,255,255,.35), 0 20px 60px rgba(0,0,0,.35); }
.demo .glass::after { background: linear-gradient(180deg in oklch, rgba(255,255,255,.12), transparent 40%); }
.demo__panel { --r: 28px; --p: 20px; padding: var(--p); border-radius: var(--r); }
.demo__panel .item, .demo__panel .skeleton { border-radius: calc(var(--r) - var(--p)); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { min-height: 36px; padding: 0 16px; border-radius: 980px; border: 0; background: rgba(255,255,255,.1); color: var(--on-dark); font: 400 14px var(--text); letter-spacing: -0.016em; cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease); }
.chip:hover { background: rgba(255,255,255,.18); }
.chip[aria-selected="true"] { background: var(--on-dark); color: var(--ink); }
.items { list-style: none; padding: 0; display: grid; gap: 6px; }
.item { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; min-height: 54px; padding: 0 16px; border: 0; border-radius: 16px; background: rgba(255,255,255,.06); color: inherit; font: 500 16px var(--text); text-align: left; cursor: pointer; transition: background-color .3s var(--ease); }
.item:hover { background: rgba(255,255,255,.12); }
.item[aria-pressed="true"] { background: rgba(255,255,255,.2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.item small { font-size: 13px; color: oklch(66.2% 0.027 124.5); }
.item .left { font-size: 13px; font-weight: 600; }
.left.red { color: oklch(70.7% 0.185 25.9); } .left.amber { color: oklch(82.0% 0.152 73.2); } .left.green { color: oklch(78.4% 0.200 146.3); }
.skeleton { height: 54px; border-radius: 16px; background: linear-gradient(90deg in oklch, rgba(255,255,255,.05) 0%, rgba(255,255,255,.12) 50%, rgba(255,255,255,.05) 100%); background-size: 200% 100%; animation: shimmer 1.4s var(--ease) infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.demo__idea { padding: 30px; border-radius: 28px; }
.demo__idea small { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: oklch(66.2% 0.027 124.5); }
.demo__idea b { display: block; margin-top: 10px; font: 600 32px/1.1 var(--display); letter-spacing: -0.01em; }
.demo__idea p { margin-top: 12px; color: oklch(84.5% 0.025 122.0); font-size: 17px; }
.idea__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.idea__tags span { padding: 6px 12px; border-radius: 980px; background: rgba(255,255,255,.12); font-size: 13px; }
.demo__idea.swap > * { animation: fadeup .28s var(--ease); }
@keyframes fadeup { from { opacity: 0; transform: translateY(8px); } }

/* Scan art */
.scan-art { gap: 40px; }
.receipt { position: relative; width: 250px; padding: 26px 22px 34px; background: #fff; text-align: left; font: 500 12px/1.9 ui-monospace, "SF Mono", Menlo, monospace; color: oklch(33.1% 0.027 157.1); box-shadow: 0 20px 50px rgba(0,0,0,.08); overflow: hidden;
  -webkit-mask: linear-gradient(in oklch, #000 90%, transparent); mask: linear-gradient(in oklch, #000 90%, transparent); }
.receipt b { display: block; text-align: center; margin-bottom: 10px; letter-spacing: .1em; }
.receipt span { display: flex; justify-content: space-between; }
.receipt em { font-style: normal; }
.scan-line { position: absolute; left: 0; right: 0; height: 40px; background: linear-gradient(180deg in oklch, transparent, rgba(123,47,247,.22), transparent); animation: scan 3s var(--ease) infinite; }
@keyframes scan { 0% { top: -15%; } 100% { top: 100%; } }
.arrow-lane { width: 64px; height: 2px; background: oklch(84.6% 0.039 85.3); position: relative; overflow: hidden; }
.arrow-lane i { position: absolute; width: 20px; height: 2px; background: var(--ink); animation: lane 1.6s var(--ease) infinite; }
@keyframes lane { from { left: -20px; } to { left: 64px; } }
.dates { width: 300px; display: grid; gap: 8px; }
.date { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border-radius: 14px; font-size: 16px; font-weight: 500; text-align: left; }
.date em { margin-left: auto; font-style: normal; font-size: 14px; color: var(--ink-2); }

/* Half-tile art */
.art { min-height: 340px; }
.art--tomato .b1 { width: 300px; height: 300px; left: calc(50% - 230px); top: 0; background: var(--sand-deep); }
.art--tomato .b2 { width: 260px; height: 260px; left: calc(50% - 20px); top: 80px; background: var(--sage); animation-delay: -7s; }
.art--citrus .b1 { width: 300px; height: 300px; left: calc(50% - 220px); top: 10px; background: oklch(84.3% 0.080 87.3); }
.art--citrus .b2 { width: 240px; height: 240px; left: calc(50% + 10px); top: 90px; background: var(--sage); animation-delay: -7s; }
.art--lagoon .b1 { width: 340px; height: 340px; left: calc(50% - 170px); top: 0; background: oklch(59.4% 0.096 153.3); opacity: .7; }
.recipe { width: min(100%, 330px); padding: 22px; border-radius: 24px; }
.recipe__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.recipe__top b { font-size: 19px; }
.recipe__top span { font-size: 13px; color: rgba(23,42,32,.7); white-space: nowrap; }
.recipe ul { list-style: none; padding: 0; margin-top: 12px; }
.recipe li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.45); font-size: 15px; }
.recipe li:last-child { border-bottom: 0; }
.recipe li em { margin-left: auto; font-style: normal; font-size: 13px; color: rgba(23,42,32,.65); }
.timeline { width: min(100%, 320px); padding: 6px 20px; border-radius: 22px; }
.tl { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.5); }
.tl:last-child { border-bottom: 0; }
.tl span { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: rgba(23,42,32,.6); }
.tl b { font-size: 16px; font-weight: 600; }
.saved { --r: 24px; --p: 18px; width: min(100%, 380px); padding: var(--p); border-radius: var(--r); }
.saved .dash__block { border-radius: calc(var(--r) - var(--p)); }
.saved__top { display: flex; gap: 32px; }
.saved__top small { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: rgba(23,42,32,.65); }
.saved__top b { font-size: 30px; letter-spacing: -0.02em; }
.chart { display: flex; align-items: flex-end; gap: 12px; height: 130px; margin-top: 20px; padding-bottom: 20px; }
.chart i { position: relative; flex: 1; height: var(--h); border-radius: 10px 10px 4px 4px; background: rgba(255,255,255,.55); }
.chart i.now { background: #fff; }
.chart i span { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-size: 11px; font-style: normal; color: rgba(23,42,32,.75); }
.feed { width: min(100%, 380px); display: grid; gap: 10px; }
.feed__row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.08); text-align: left; font-size: 15px; }
.feed__row em { font-style: normal; font-size: 12px; color: oklch(66.2% 0.027 124.5); }
.av { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--c); color: #fff; font-weight: 600; }
.list { width: min(100%, 360px); background: #fff; border-radius: 18px; padding: 8px 20px; text-align: left; }
.list__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgb(23 42 32 / 0.09); font-size: 16px; }
.list__row:last-child { border-bottom: 0; }
.list__row i { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px oklch(84.5% 0.025 122.0); }
.list__row--have { color: oklch(66.2% 0.027 124.5); text-decoration: line-through; }
.list__row--have em { flex-basis: 100%; padding-left: 32px; font-style: normal; font-size: 13px; color: oklch(55.8% 0.146 147.5); text-decoration: none; }
.vault { position: relative; width: 150px; height: 180px; }
.vault__shackle { position: absolute; left: 33px; top: 0; width: 84px; height: 100px; border: 14px solid oklch(26.5% 0.031 160.3); border-bottom: 0; border-radius: 50px 50px 0 0; }
.vault__body { position: absolute; left: 0; bottom: 0; width: 150px; height: 112px; border-radius: 28px; background: var(--forest); box-shadow: inset 0 1px 1px rgba(255,255,255,.5); }

/* Plans and FAQ bands */
.band { padding: 80px 0 var(--gutter); background: var(--white); }
.band__headline { text-align: center; font: 600 56px/1.07143 var(--display); letter-spacing: -0.005em; margin-bottom: 40px; padding-inline: 22px; }
.plan { min-height: 0; }
.plan__list { list-style: none; padding: 0; margin-top: 24px; width: min(100%, 360px); font-size: 17px; }
.plan__list li { padding: 12px 0; border-top: 1px solid rgb(23 42 32 / 0.14); }
.band--white { padding-bottom: 80px; }
.faq { max-width: 980px; margin-inline: auto; padding-inline: 22px; }
details { border-bottom: 1px solid rgb(23 42 32 / 0.14); }
details:first-child { border-top: 1px solid rgb(23 42 32 / 0.14); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 64px; padding: 16px 0; font: 600 21px/1.2 var(--display); letter-spacing: .011em; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 1.6px solid var(--ink); border-bottom: 1.6px solid var(--ink); transform: rotate(45deg) translateY(-3px); transition: transform .4s var(--ease); }
details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
details p { padding: 0 0 22px; color: var(--ink-2); max-width: 62ch; }

/* Close */
.close { min-height: 560px; justify-content: center; }
.close__icon { width: 96px; height: 96px; border-radius: 22px; margin-bottom: 28px; background: var(--forest); position: relative; box-shadow: inset 0 1px 1px rgba(255,255,255,.5); }
.close__icon::after { content: ""; position: absolute; width: 40px; height: 40px; left: 28px; top: 32px; border-radius: 50%; background: #fff; }
.appstore { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; margin-top: 28px; padding: 0 20px; border-radius: 12px; background: #000; color: #fff; text-decoration: none; text-align: left; transition: opacity .3s var(--ease); }
.appstore:hover { opacity: .85; }
.appstore svg { width: 26px; height: 26px; }
.appstore small { display: block; font-size: 11px; }
.appstore b { font-size: 21px; font-weight: 600; line-height: 1.1; }

/* Footer: 12px, rgba(0,0,0,.56) */
.foot { background: var(--gray); font-size: 12px; line-height: 1.33337; letter-spacing: -0.01em; color: var(--ink-fine); }
.foot__inner { max-width: 1024px; margin-inline: auto; padding: 17px 22px 21px; }
.foot__notes { padding: 0 0 17px 14px; border-bottom: 1px solid rgb(23 42 32 / 0.14); display: grid; gap: 8px; }
.foot__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid rgb(23 42 32 / 0.14); }
.foot__cols nav { display: flex; flex-direction: column; align-items: flex-start; }
.foot__cols b { color: rgba(0,0,0,.88); font-weight: 600; margin-bottom: 6px; }
.foot__cols a { padding: 4px 0; color: rgba(0,0,0,.72); text-decoration: none; }
.foot__cols a:hover { text-decoration: underline; }
.foot__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 16px; }
.foot__legal a { color: rgba(0,0,0,.8); text-decoration: none; padding: 0 10px; border-left: 1px solid rgb(23 42 32 / 0.14); }
.foot__legal a:first-child { border-left: 0; padding-left: 0; }
.foot__legal a:hover { text-decoration: underline; }

/* ---------- Ideas borrowed from the 10 reference sites ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Typography tile (pentagram.com): one huge figure, set tight, left-weighted */
.tile--white { background: var(--white); }
.type-tile { align-items: flex-start; text-align: left; justify-content: center; min-height: 640px; padding-inline: max(22px, calc((100% - 1180px) / 2)); }
.type-tile__kicker { font: 600 17px var(--display); color: var(--forest); letter-spacing: -0.01em; }
.type-tile__num { margin-top: 8px; white-space: nowrap; font: 700 clamp(80px, 21vw, 300px)/.86 var(--display); letter-spacing: -0.06em; font-variant-numeric: tabular-nums;
  color: var(--ink); }
.type-tile__line { margin-top: 28px; max-width: 30ch; font: 600 clamp(24px, 2.6vw, 34px)/1.18 var(--display); letter-spacing: -0.01em; }
.type-tile__line sup { font-size: .45em; }

/* Search (airbnb.com): one pill field, live results, chip counts */
.search { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; margin-bottom: 14px; border-radius: 980px; background: rgba(255,255,255,.92); color: oklch(26.5% 0.031 160.3); box-shadow: 0 2px 10px rgba(0,0,0,.18); transition: box-shadow .3s var(--ease); }
.search:focus-within { box-shadow: 0 0 0 2px var(--sage), 0 6px 20px rgba(0,0,0,.25); }
.search svg { width: 18px; height: 18px; flex: none; color: oklch(49.3% 0.022 130.4); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font: 500 16px var(--text); color: oklch(26.5% 0.031 160.3); outline: none; }
.chip .n { margin-left: 6px; opacity: .6; font-variant-numeric: tabular-nums; }

/* Onboarding (duolingo.com): one question, big friendly choices, a progress bar, a win state */
.onboard { --r: 36px; --p: 20px; width: min(100%, 560px); padding: var(--p); border-radius: var(--r); background: var(--white); box-shadow: 0 2px 12px rgba(0,0,0,.04); text-align: left; }
.onboard__top { display: flex; align-items: center; gap: 14px; }
.onboard__back { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--gray); color: var(--ink); cursor: pointer; transition: opacity .3s var(--ease); }
.onboard__back:disabled { opacity: .3; cursor: default; }
.onboard__back svg { width: 18px; height: 18px; }
.progress { flex: 1; height: 14px; border-radius: 14px; background: oklch(90.8% 0.028 86.6); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--forest); box-shadow: inset 0 3px 0 rgba(255,255,255,.35); transition: width .3s cubic-bezier(.34, 1.56, .64, 1); }
.onboard__step { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.onboard__body { min-height: 280px; padding: 28px 0 24px; }
.onboard__q { font: 700 28px/1.15 var(--display); letter-spacing: -0.01em; }
.onboard__hint { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.choice { min-height: 64px; padding: 12px 16px; border: 0; background: rgb(23 42 32 / 0.05); color: var(--ink); font: 600 17px var(--text); text-align: left; cursor: pointer; transition: transform .15s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease); }
.choice:hover { background: rgb(23 42 32 / 0.09); }
.choice:active { transform: scale(.98); }
.choice[aria-pressed="true"] { background: rgb(31 74 50 / 0.12); box-shadow: inset 0 0 0 2px var(--forest); color: var(--forest); }
.onboard__next { width: 100%; min-height: 54px; border: 0; border-radius: 16px; background: var(--blue); color: #fff; font: 600 17px var(--text); cursor: pointer; box-shadow: 0 4px 0 oklch(42.6% 0.230 287.2); transition: transform .15s var(--ease), box-shadow .15s var(--ease), opacity .3s var(--ease); }
.onboard__next:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 oklch(42.6% 0.230 287.2); }
.onboard__next:disabled { opacity: .35; cursor: default; box-shadow: 0 4px 0 oklch(80.6% 0.088 301.0); }
.done { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 8px; }
.done__badge { position: relative; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg in oklch, oklch(73.0% 0.194 147.4), oklch(79.0% 0.129 186.7)); animation: pop .7s cubic-bezier(.34, 1.56, .64, 1) both; }
.done__badge svg { width: 44px; height: 44px; }
.done__badge svg path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s .35s var(--ease) forwards; }
.done__badge i { position: absolute; width: 10px; height: 10px; border-radius: 3px; left: 43px; top: 43px; animation: burst .9s .2s var(--ease) forwards; opacity: 0; }
@keyframes pop { from { transform: scale(.3); } to { transform: scale(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes burst { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(200deg); } }
.done b { margin-top: 20px; font: 700 28px var(--display); }
.done p { margin-top: 6px; color: var(--ink-2); max-width: 36ch; }

/* Dashboard blocks (notion.com) */
.dash__title { font: 700 22px var(--display); letter-spacing: -0.01em; }
.dash__blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.dash__block { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.1); }
.dash__block small { display: block; font-size: 11px; color: rgba(246,240,226,.7); }
.dash__block b { font-size: 19px; letter-spacing: -0.01em; }
.dash__todo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 6px; font-size: 13px; }
.tick { width: 16px; height: 16px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px rgba(246,240,226,.6); }
.tick.on { background: oklch(73.0% 0.194 147.4) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='white' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/16px; box-shadow: none; }
.dash__todo .tick:not(:first-child) { margin-left: 10px; }

/* Micro-interactions (framer.com): springy presses, a magnetic primary, image zoom on tiles */
.pill { transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.pill:active { transform: scale(.94); transition-duration: .12s; }
.magnetic { will-change: transform; }
.chip { transition: background-color .3s var(--ease), color .3s var(--ease), transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.chip:active { transform: scale(.92); }
@media (hover: hover) and (pointer: fine) {
  .tile--half .tile__media > :not(.blob):not(.scene) { transition: transform .3s var(--ease); }
  .tile--half:hover .tile__media > :not(.blob):not(.scene) { transform: scale(1.03); }
}

/* Scroll animation (apple.com): the hero iPhone rises and settles as you scroll */
.iphone[data-scroll-rise] { transform: translateY(calc(var(--rise, 0) * -80px)) scale(calc(var(--base, 1) * (.94 + var(--rise, 0) * .06))); transform-origin: top center; will-change: transform; }

/* Pages that reuse this sheet (privacy, terms) */
.sec { padding: 100px 0; }
.container { width: min(100% - 44px, 980px); margin-inline: auto; }
.eyebrow { font: 600 21px var(--display); color: var(--forest); margin-bottom: 12px; }
.lede { font-size: 21px; line-height: 1.38; color: var(--ink-2); }
h2 { font-family: var(--display); }
.sec h2 { font-size: 56px; line-height: 1.07; font-weight: 600; letter-spacing: -0.005em; }

/* ---------- Dedicated pages ---------- */
.kicker { font: 600 17px var(--display); color: var(--forest); letter-spacing: -0.01em; margin-bottom: 10px; }
.kicker--dark { color: var(--sand-deep); }
.page-hero { min-height: 640px; padding-top: 72px; }
.page-hero--short { min-height: 0; padding: 88px 22px 72px; }
.page-hero__title { font: 700 clamp(48px, 7vw, 80px)/1.05 var(--display); letter-spacing: -0.03em; max-width: 16ch; text-wrap: balance; }
.page-hero .tile__subhead { margin-top: 16px; max-width: 34ch; }
.band__more { text-align: center; margin: -20px 0 32px; font-size: 17px; }

/* Sticky section menu under the nav (Features) */
.subnav { position: sticky; top: 64px; z-index: 40; background: rgba(251, 247, 238, .88); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgb(23 42 32 / 0.09); }
.subnav__inner { max-width: 1180px; margin-inline: auto; padding: 0 22px; display: flex; gap: 4px; justify-content: center; overflow-x: auto; scrollbar-width: none; }
.subnav__inner::-webkit-scrollbar { display: none; }
.subnav a { flex: none; display: inline-flex; align-items: center; height: 52px; padding: 0 14px; font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; border-bottom: 2px solid transparent; transition: color .3s var(--ease), border-color .3s var(--ease); }
.subnav a:hover { color: var(--ink); }
.subnav a.is-active { color: var(--ink); border-bottom-color: var(--ink); }
.feature { min-height: 760px; }

/* Numbered steps in a row */
.steps-row { list-style: none; padding: 0; margin: 48px auto 0; width: min(100%, 1040px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: left; }
.steps-row li { padding-top: 22px; border-top: 2px solid var(--ink); }
.tile--dark .steps-row li, .tile--navy .steps-row li { border-color: rgba(255,255,255,.6); }
.steps-row__n { font: 700 15px var(--display); color: var(--forest); }
.steps-row h3 { margin-top: 10px; font: 600 24px/1.2 var(--display); letter-spacing: -0.01em; }
.steps-row p { margin-top: 8px; color: var(--ink-2); }

/* Receipt decode table */
.decode { width: min(100%, 760px); display: grid; gap: 8px; }
.decode__row { display: grid; grid-template-columns: 1fr 1.2fr auto; align-items: center; gap: 20px; padding: 16px 20px; border-radius: 16px; background: rgba(255,255,255,.07); text-align: left; }
.decode__row code { font: 500 14px ui-monospace, "SF Mono", Menlo, monospace; color: oklch(84.5% 0.025 122.0); }
.decode__to { font-weight: 600; }
.decode__to::before { content: "→"; margin-right: 10px; color: var(--sage); }
.decode__row em { font-style: normal; font-size: 14px; color: oklch(66.2% 0.027 124.5); white-space: nowrap; }
.decode__row--skip { opacity: .55; }

/* Shelf-life table */
.shelf { width: min(100%, 760px); border-collapse: collapse; background: #fff; border-radius: 20px; overflow: hidden; text-align: left; font-size: 17px; }
.shelf th, .shelf td { padding: 16px 22px; border-bottom: 1px solid rgb(23 42 32 / 0.09); }
.shelf thead th { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.shelf tbody th { font-weight: 600; }
.shelf tr:last-child th, .shelf tr:last-child td { border-bottom: 0; }

/* Email and opened visuals */
.mail { --r: 26px; --p: 18px; width: min(100%, 380px); padding: var(--p); border-radius: var(--r); background: #fff; text-align: left; }
.mail__head b { display: block; font-size: 17px; }
.mail__head span { font-size: 14px; color: var(--ink-2); }
.mail__line { height: 8px; border-radius: 4px; background: oklch(90.8% 0.028 86.6); margin-top: 14px; }
.mail__line.s { width: 60%; }
.mail__added { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding: 12px 14px; border-radius: calc(26px - 18px); background: oklch(96.3% 0.019 157.9); color: oklch(46.8% 0.111 150.4); font-weight: 600; font-size: 15px; }
.opened { width: min(100%, 360px); display: grid; gap: 10px; justify-items: center; }
.opened__row { width: 100%; display: flex; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,.1); font-weight: 600; }
.opened__row em { font-style: normal; font-weight: 400; color: oklch(84.5% 0.025 122.0); font-size: 15px; }
.opened__row--now { background: oklch(95.6% 0.020 87.5); color: var(--ink); }
.opened__row--now em { color: var(--forest); font-weight: 600; }
.opened__arrow { width: 2px; height: 26px; background: rgba(255,255,255,.5); }

/* Feature facts */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; width: min(100%, 900px); margin-top: 40px; text-align: left; }
.facts div { padding-top: 16px; border-top: 1px solid currentColor; border-color: rgba(0,0,0,.15); }
.tile--dark .facts div, .tile--navy .facts div { border-color: rgba(255,255,255,.25); }
.facts b { display: block; font: 600 21px var(--display); }
.facts span { display: block; margin-top: 4px; font-size: 15px; opacity: .72; }

/* Plans comparison */
.compare-wrap { max-width: 980px; margin-inline: auto; padding-inline: 22px; overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: 17px; text-align: left; }
.compare th, .compare td { padding: 16px 12px; border-bottom: 1px solid rgb(23 42 32 / 0.14); }
.compare thead th { font: 600 21px var(--display); }
.compare tbody th { font-weight: 500; }
.compare td { color: var(--ink-2); }
.compare td:last-child { color: var(--ink); font-weight: 600; }
.tile--navy.plan .plan__list li { border-color: rgba(255,255,255,.2); }

/* Support topics */
.topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: min(100%, 900px); margin-top: 44px; }
.topics a { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 20px 22px; border-radius: 18px; background: var(--gray); color: var(--ink); text-decoration: none; text-align: left; transition: background-color .3s var(--ease), transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.topics a:hover { background: oklch(89.4% 0.034 86.3); }
.topics a:active { transform: scale(.98); }
.topics b { font-size: 17px; }
.topics span { font-size: 14px; color: var(--ink-2); }

/* Tablet */
@media (max-width: 1068px) {
  .fc-left { left: 4%; } .fc-right { left: auto; right: 4%; }
}

/* Phone: measured 32px / 36px headlines */
@media (max-width: 834px) {
  .nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(19, 41, 29, .97); }
  .nav__inner { gap: 12px; }
  .nav__links { position: fixed; inset: 64px 0 auto 0; height: calc(100dvh - 64px); flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 24px 32px; background: oklch(25.8% 0.036 158.6); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .32s var(--ease), transform .32s var(--ease), visibility .32s; }
  .nav__links.open { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { height: auto; min-height: 60px; padding: 0; font: 600 30px var(--display); color: oklch(95.6% 0.020 87.5); border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav__links a::after { left: 0; right: auto; width: 32px; bottom: 10px; }
  .nav__menu-cta { display: inline-flex !important; justify-content: center; margin-top: 24px; min-height: 52px !important; border: 0 !important; border-radius: 980px; background: var(--blue); font-size: 18px !important; }
  .nav__menu-cta::after { display: none; }
  .nav__cta { margin-left: auto; height: 34px; padding: 0 14px; font-size: 14px; }
  .nav__toggle { display: block; }
  .grid { grid-template-columns: 1fr; }
  .tile__headline, .tile--half .tile__headline, .band__headline { font-size: 32px; line-height: 1.125; letter-spacing: .004em; }
  .tile__subhead, .tile--half .tile__subhead { font-size: 19px; line-height: 1.21; letter-spacing: .012em; }
  .tile--full { min-height: 0; }
  .tile--half { min-height: 0; }
  .demo { grid-template-columns: 1fr; }
  .scan-art { flex-direction: column; gap: 24px; }
  .arrow-lane { transform: rotate(90deg); }
  .float-card { display: none; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .steps-row, .facts { grid-template-columns: 1fr; gap: 24px; }
  .topics { grid-template-columns: 1fr 1fr; }
  .decode__row { grid-template-columns: 1fr; gap: 4px; }
  .subnav__inner { justify-content: flex-start; }
  .page-hero { min-height: 0; padding-top: 56px; }
  .page-hero--short { padding: 64px 22px 48px; }
  .feature { min-height: 0; }
}

@media (max-width: 480px) {
  .hero-art { min-height: 420px; }
  .iphone { --base: .88; }
  .choices { grid-template-columns: 1fr; }
  .onboard { padding: 22px; }
  .dash__blocks { grid-template-columns: 1fr 1fr; }
  .receipt, .dates { width: 100%; max-width: 300px; }
  .demo__idea b { font-size: 26px; }
  .pill { padding: 11px 21px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* ---------- Rules from the design-rules reel ---------- */
/* Nested corners: children that sit on the padding edge take the outer radius minus the padding */
.onboard .choice, .onboard .onboard__next { border-radius: calc(var(--r) - var(--p)); }
/* Dark mode: show depth with lighter surfaces, not shadows (shadows barely show on dark grounds) */
.tile--dark .glass, .tile--navy .glass, .demo .glass { box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.3); background: rgb(255 255 255 / 0.11); }
.tile--dark .decode__row, .tile--navy .feed__row { background: rgb(255 255 255 / 0.09); }
.tile--dark .decode__row:hover, .tile--navy .feed__row:hover { background: rgb(255 255 255 / 0.14); }
.demo .item { background: rgb(255 255 255 / 0.07); }
.demo .item:hover { background: rgb(255 255 255 / 0.13); }
/* Icon swaps: the outgoing content blurs as it fades */
.demo__idea > * { transition: opacity .15s var(--ease), filter .15s var(--ease); }
.demo__idea.is-leaving > * { opacity: 0; filter: blur(4px); }
@keyframes fadeup { from { opacity: 0; filter: blur(4px); transform: translateY(8px); } }
@media (max-width: 834px) {
  /* Scrolling menus: fade the edges so it reads as more-to-scroll */
  .subnav__inner { -webkit-mask: linear-gradient(90deg in oklch, transparent, black 15% 85%, transparent); mask: linear-gradient(90deg in oklch, transparent, black 15% 85%, transparent); padding-inline: 44px; scroll-padding-inline: 44px; }
}

/* ---------- Motion principles (reel: 19 animation terms) ---------- */
/* Origin awareness: the press grows out of the exact point you touched, under 300ms */
.ripple { position: absolute; z-index: -1; left: var(--rx); top: var(--ry); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: currentColor; opacity: .18; pointer-events: none; animation: ripple .28s var(--ease) forwards; }
.pill--primary .ripple, .nav__cta .ripple { background: #fff; opacity: .28; }
@keyframes ripple { to { transform: scale(28); opacity: 0; } }
.chip, .nav__cta { position: relative; overflow: hidden; isolation: isolate; }
/* Staggering: fridge items arrive one after another on first load only (frequency of use: filters stay instant) */
.items.is-staggered > li { animation: arrive .26s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
@keyframes arrive { from { opacity: 0; transform: translateY(6px); } }
/* The phone menu grows from its button, top right */
@media (max-width: 834px) { .nav__links { transform-origin: top right; transform: scale(.98) translateY(-6px); } .nav__links.open { transform: none; } }
@media (prefers-reduced-motion: reduce) { .ripple, .items.is-staggered > li { animation: none; } }

/* ---------- Liquid-glass popups ---------- */
/* A native <dialog> (focus trap, Esc to close). It grows out of the element you pressed (--ox/--oy),
   springs a touch past full size, and its blur clears as it lands. Closing runs the same path backwards, faster. */
.pop { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 20px; border: 0; background: transparent; overflow: visible; display: grid; place-items: center; color: var(--ink); }
.pop:not([open]) { display: none; }
.pop::backdrop { background: rgb(19 41 29 / 0.28); backdrop-filter: blur(0px) saturate(100%); -webkit-backdrop-filter: blur(0px) saturate(100%); opacity: 0; transition: opacity .24s var(--ease), backdrop-filter .32s var(--ease), -webkit-backdrop-filter .32s var(--ease); }
.pop.is-open::backdrop { opacity: 1; backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%); }
.pop__glass {
  --r: 34px; --p: 28px;
  position: relative; width: min(100%, 420px); padding: var(--p); border-radius: var(--r); text-align: center;
  background: linear-gradient(160deg in oklch, rgb(255 255 255 / 0.62), rgb(255 255 255 / 0.32));
  backdrop-filter: blur(28px) saturate(190%); -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgb(255 255 255 / 0.7);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.95), inset 0 -1px 1px rgb(255 255 255 / 0.25), inset 0 0 0 1px rgb(255 255 255 / 0.15), 0 30px 80px -20px rgb(19 41 29 / 0.45);
  transform-origin: var(--ox, 50%) var(--oy, 50%);
  opacity: 0; transform: scale(.6); filter: blur(10px);
  transition: transform .34s cubic-bezier(.34, 1.4, .64, 1), opacity .2s var(--ease), filter .26s var(--ease);
}
/* specular highlight that follows the pointer, plus a soft top sheen: the liquid-glass light */
.pop__glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(260px circle at var(--mx, 30%) var(--my, 0%) in oklch, rgb(255 255 255 / 0.55), transparent 60%); mix-blend-mode: soft-light; }
.pop__glass::after { content: ""; position: absolute; inset: 1px; border-radius: calc(var(--r) - 1px); pointer-events: none; background: linear-gradient(180deg in oklch, rgb(255 255 255 / 0.45), transparent 34%); }
.pop__glass > * { position: relative; z-index: 1; }
.pop.is-open .pop__glass { opacity: 1; transform: none; filter: none; }
.pop.is-closing .pop__glass { opacity: 0; transform: scale(.9); filter: blur(6px); transition: transform .18s var(--ease), opacity .16s var(--ease), filter .16s var(--ease); }
.pop.is-closing::backdrop { opacity: 0; }
/* contents arrive one after another, a beat behind the glass (stagger, follow-through) */
.pop__glass > :not(.pop__close) { opacity: 0; transform: translateY(8px); transition: opacity .22s var(--ease), transform .26s var(--ease); }
.pop.is-open .pop__glass > :not(.pop__close) { opacity: 1; transform: none; }
.pop.is-open .pop__glass > :nth-child(2) { transition-delay: .05s; } .pop.is-open .pop__glass > :nth-child(3) { transition-delay: .08s; }
.pop.is-open .pop__glass > :nth-child(4) { transition-delay: .11s; } .pop.is-open .pop__glass > :nth-child(5) { transition-delay: .14s; }
.pop.is-open .pop__glass > :nth-child(n+6) { transition-delay: .17s; }

.pop__close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgb(23 42 32 / 0.07); cursor: pointer; transition: background-color .2s var(--ease), transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.pop__close:hover { background: rgb(23 42 32 / 0.13); }
.pop__close:active { transform: scale(.9); }
.pop__close span { position: absolute; left: 11px; right: 11px; top: 17px; height: 1.5px; border-radius: 2px; background: var(--ink); }
.pop__close span:first-child { transform: rotate(45deg); } .pop__close span:last-child { transform: rotate(-45deg); }
.pop__icon { position: relative; display: block; width: 72px; height: 72px; margin: 6px auto 18px; border-radius: 18px; background: var(--forest); box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.35); }
.pop__icon i { position: absolute; left: 22px; top: 25px; width: 28px; height: 28px; border-radius: 50%; background: var(--sand-deep); }
.pop__kicker { font: 600 13px var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--forest); }
.pop__title { margin-top: 6px; font: 700 30px/1.1 var(--display); letter-spacing: -0.02em; }
.pop__text { margin-top: 10px; color: var(--ink-2); font-size: 17px; }
.pop__facts { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pop__facts li { padding: 12px 8px; border-radius: calc(var(--r) - var(--p)); background: rgb(255 255 255 / 0.45); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.6); }
.pop__facts b { display: block; font-size: 15px; }
.pop__facts span { font-size: 12px; color: var(--ink-2); }
.pop__store { margin-top: 22px; }
.pop__link { display: inline-block; margin-top: 16px; font-size: 15px; }
.pop__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.pop__tags span { padding: 6px 12px; border-radius: 980px; background: rgb(255 255 255 / 0.5); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.65); font-size: 14px; }
.pop__go { margin-top: 22px; width: 100%; }
/* on a phone the popup rises as a sheet from the bottom edge */
@media (max-width: 600px) {
  .pop { place-items: end center; padding: 10px; }
  .pop__glass { --r: 30px; --p: 24px; width: 100%; transform-origin: 50% 100%; transform: translateY(40%) scale(.96); }
  .pop.is-closing .pop__glass { transform: translateY(30%); }
}
@media (prefers-reduced-motion: reduce) {
  .pop__glass, .pop__glass > *, .pop::backdrop { transition: opacity .15s linear !important; transform: none !important; filter: none !important; }
}

/* ---------- FAQ answers glide open instead of snapping ---------- */
details { interpolate-size: allow-keywords; }
details::details-content { height: 0; overflow: clip; transition: height .3s var(--ease), content-visibility .3s allow-discrete; }
details[open]::details-content { height: auto; }
details p { opacity: 0; transform: translateY(-4px); transition: opacity .25s var(--ease), transform .3s var(--ease); }
details[open] p { opacity: 1; transform: none; }

/* ---------- Phone menu: a liquid-glass panel that pops from its button ---------- */
@media (max-width: 834px) {
  .nav__links { background: rgb(19 41 29 / 0.72); backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%); transform-origin: calc(100% - 30px) 0; transform: scale(.92); filter: blur(6px); transition: opacity .22s var(--ease), transform .32s cubic-bezier(.34, 1.4, .64, 1), filter .24s var(--ease), visibility .32s; }
  .nav__links.open { transform: none; filter: none; }
  .nav__links a { opacity: 0; transform: translateY(-6px); transition: opacity .22s var(--ease), transform .26s var(--ease), color .2s var(--ease); }
  .nav__links.open a { opacity: 1; transform: none; }
  .nav__links.open a:nth-child(2) { transition-delay: .03s; } .nav__links.open a:nth-child(3) { transition-delay: .06s; }
  .nav__links.open a:nth-child(4) { transition-delay: .09s; } .nav__links.open a:nth-child(5) { transition-delay: .12s; } .nav__links.open a:nth-child(6) { transition-delay: .15s; }
}
.pop__store { display: flex; width: fit-content; margin-inline: auto; }
.pop__link { display: block; width: fit-content; margin-inline: auto; }

/* Get Ripe popup: open the app */
.pop__open { display:flex; justify-content:center; width:100%; margin-top:22px; }
.pop__open[aria-disabled="true"] { cursor:default; opacity:.55; pointer-events:none; }
.pop__tip { margin-top:12px; font-size:14px; line-height:1.45; color:var(--ink-2); text-wrap:pretty; }
.pop__soon { margin-top:10px; font-size:12px; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-2); opacity:.8; }

/* ---------- Scroll reveal: content rises and fades in as it enters, Apple-clean ---------- */
/* Driven by html.reveal-on (set before first paint). No JS, or reduced motion, leaves everything visible. */
@media (prefers-reduced-motion: no-preference) {
  html.reveal-on .tile:not(#top):not(.page-hero) > .tile__copy > *,
  html.reveal-on .tile:not(#top):not(.page-hero) > .tile__media,
  html.reveal-on [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .66s var(--reveal-ease, cubic-bezier(.22, .61, .36, 1)),
                transform .66s var(--reveal-ease, cubic-bezier(.22, .61, .36, 1));
    transition-delay: var(--rd, 0ms);
    will-change: opacity, transform;
  }
  html.reveal-on .tile:not(#top):not(.page-hero) > .tile__copy > *.is-in,
  html.reveal-on .tile:not(#top):not(.page-hero) > .tile__media.is-in,
  html.reveal-on [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Rolling 3D produce under the big figure (produce3d.js) ---------- */
/* The strip sits along the bottom of the tile, full bleed; the tile keeps room for it below the text. */
.type-tile:has(.produce), .close:has(.produce) { padding-bottom: 340px; }
.produce { position: absolute; left: 0; right: 0; bottom: 0; height: 330px; }
.produce canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; opacity: 0; transition: opacity .3s var(--ease); }
.produce.is-live canvas { opacity: 1; }
@media (max-width: 640px) {
  .type-tile:has(.produce), .close:has(.produce) { padding-bottom: 250px; }
  .produce { height: 240px; }
}

/* ---------- 3D objects (scenes3d.js) ---------- */
/* In a tile, an object sits behind the tile's card, where the colour blobs used to be. */
/* The object gets its own band at the top of the media; the card sits below and tucks over its lower edge. */
.tile__media > .scene { position: absolute; inset: 0 0 auto 0; height: 250px; z-index: -1; pointer-events: none; }
.tile__media:has(> .scene) { flex-direction: column; justify-content: flex-end; min-height: 0; padding-top: 196px; }
/* Privacy has no card: the lock is the whole picture. */
.tile__media.privacy-art:has(> .scene) { padding-top: 0; min-height: 300px; }
.privacy-art > .scene { inset: 0; height: auto; }
.scene canvas { opacity: 0; transition: opacity .4s var(--ease); }
.scene.is-live canvas { opacity: 1; }
/* Hero object on the short page heroes */
.scene--hero { position: relative; width: 100%; height: 340px; margin-top: 24px; }

/* Scroll scenes: a tall section with a stage that stays put while the object plays through */
.scene-scroll { position: relative; height: 260dvh; background: var(--black); color: var(--on-dark); }
.scene-scroll__stage { position: sticky; top: 0; height: 100dvh; overflow: hidden; }
.scene-scroll__stage > .scene { position: absolute; inset: 0; }
.scene-scroll__caps { position: absolute; left: 0; right: 0; bottom: max(56px, 9dvh); display: grid; place-items: center; padding: 0 22px; pointer-events: none; }
.scene-cap { grid-area: 1 / 1; max-width: 22ch; text-align: center; text-wrap: balance; font: 600 clamp(30px, 4.6vw, 56px)/1.08 var(--display); letter-spacing: -0.02em;
  opacity: 0; filter: blur(4px); transform: translateY(10px); transition: opacity .3s var(--ease), filter .3s var(--ease), transform .3s var(--ease); }
.scene-cap.is-on { opacity: 1; filter: none; transform: none; }
/* No JS, or reduced motion: no tall scroll, just the stage with its last line */
html:not(.reveal-on) .scene-scroll { height: auto; }
html:not(.reveal-on) .scene-scroll__stage { position: relative; height: 80dvh; }
html:not(.reveal-on) .scene-cap:last-child { opacity: 1; filter: none; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .scene-scroll { height: auto; }
  .scene-scroll__stage { position: relative; height: 80dvh; }
}

/* Rolling produce along the bottom of other heroes */
.page-hero:has(.produce) { padding-bottom: 300px; }
@media (max-width: 640px) { .page-hero:has(.produce) { padding-bottom: 240px; } }
