/* bindung.app — website mockup. Tokens mirror 01_Bindung/03_Design/Theme.swift. */

:root {
  color-scheme: light;

  /* Paper */
  --paper: #F3F3E8;
  --rule: rgba(0, 0, 0, 0.055);
  --rule-spacing: 26px;

  /* Text */
  --text: #1D1E1D;
  --text2: #6B6D6E;
  --text3: #8A9692;

  /* Accent and actions: green is for actions only */
  --accent: #2E4533;
  --on-accent: #F4F9F2;
  --action: #2E4533;
  --on-action: #F4F9F2;
  --destructive: #994B2D;
  --success: #647F5A;
  --inviting: #EBE4C0;
  --inviting-text: #9B6B3D;
  --featured: rgba(46, 69, 51, 0.08);
  --featured-ink: #516653;

  /* Objects */
  --separator: rgba(0, 0, 0, 0.08);
  --print: #FFFFFF;
  --photo-ph: #DEDFD1;
  --chosen: #FFFFFF;
  --faint-edge: rgba(0, 0, 0, 0.14);
  --outcome: #6B6D6E;
  --on-outcome: #F3F3EE;
  --on-bright: #1D1E1D;

  /* Glass */
  --glass-header: rgba(255, 255, 255, 0.22);
  --glass-header-scrolled: rgba(255, 255, 255, 0.34);
  --glass-stroke: rgba(255, 255, 255, 0.55);
  --inner-stroke: rgba(0, 0, 0, 0.12);
  --glass-sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.14));
  --glass-shadow: 0 1px 1.5px rgba(30, 35, 25, 0.05), 0 8px 24px -10px rgba(30, 35, 25, 0.16);
  --menu-bg: rgba(250, 250, 244, 0.78);
  --glass-sub: rgba(46, 69, 51, 0.07);

  /* Murals (solid, as approved for the App Store panorama) */
  --mu1: #8CCBBF;
  --mu2: #EFB684;
  --mu3: #93A9A2;
  --mu4: #F2CD72;
  --mu5: #A9BCEB;
  --mural-grey: #B9BBB2;
  --mural-mix: 30%;
  --map-bg: #E9E8DE;
  --map-water: #C3D3E4;
  --map-road: #FFFFFF;
  --map-park: #D3E1C4;

  /* Paper tints for pages */
  --tint-white: #F4F9F2;
  --tint-blue: #DFE4F6;
  --tint-green: #E0EBDA;
  --tint-purple: #E6E2F4;
  --tint-rose: #E6DCDA;

  /* Device */
  --bezel: #1D1E1D;
  --bezel-edge: #3A3B3C;

  /* Derived */
  --card: color-mix(in srgb, var(--paper) 50%, transparent);
  --quiet-bg: color-mix(in srgb, var(--text3) 18%, var(--paper));
  --done-bg: color-mix(in srgb, var(--success) 16%, var(--paper));
  --todo-bg: #EBE4C0;
  --todo-ink: #9B6B3D;

  /* Type */
  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --display: Didot, "Bodoni 72", "Bodoni MT", ui-serif, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", Arial, sans-serif;
  --type: "American Typewriter", "Courier Prime", "Courier New", Courier, monospace;

  /* Sizes */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --header-h: 64px;
  --tear: 9px;
  --wide: 1120px;
  --text-w: 620px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #17181C;
    --rule: rgba(255, 255, 255, 0.055);
    --text: #F3F3EE;
    --text2: #DEDFD1;
    --text3: #C6C8BC;
    --accent: #E7E5E5;
    --on-accent: #1D1E1D;
    --action: #465B43;
    --on-action: #F3F3EE;
    --destructive: #B1674E;
    --success: #CED79E;
    --inviting: #3B2F19;
    --inviting-text: #DABB78;
    --featured: rgba(70, 91, 67, 0.30);
    --featured-ink: #C2D0D5;
    --separator: rgba(255, 255, 255, 0.10);
    --print: #222325;
    --photo-ph: #2A2B2D;
    --chosen: rgba(255, 255, 255, 0.2);
    --faint-edge: rgba(255, 255, 255, 0.22);
    --glass-header: rgba(255, 255, 255, 0.05);
    --glass-header-scrolled: rgba(255, 255, 255, 0.11);
    --glass-stroke: rgba(255, 255, 255, 0.18);
    --inner-stroke: rgba(255, 255, 255, 0.18);
    --glass-sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
    --glass-shadow: 0 1px 1.5px rgba(0, 0, 0, 0.3), 0 10px 26px -12px rgba(0, 0, 0, 0.6);
    --menu-bg: rgba(40, 41, 46, 0.82);
    --glass-sub: rgba(107, 109, 110, 0.18);
    --mu1: #5E9E93;
    --mu2: #C98D5A;
    --mu3: #2F7F74;
    --mu4: #B8912E;
    --mu5: #4F68AC;
    --mural-grey: #4A4C50;
    --mural-mix: 42%;
    --map-bg: #26282D;
    --map-water: #1F2C3D;
    --map-road: #3A3D44;
    --map-park: #22301F;
    --tint-white: #1D1E1D;
    --tint-blue: #141925;
    --tint-green: #141C12;
    --tint-purple: #1A1726;
    --tint-rose: #221817;
    --bezel: #0E0F11;
    --bezel-edge: #4A4C50;
    --todo-bg: #3B2F19;
    --todo-ink: #DABB78;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #17181C;
  --rule: rgba(255, 255, 255, 0.055);
  --text: #F3F3EE;
  --text2: #DEDFD1;
  --text3: #C6C8BC;
  --accent: #E7E5E5;
  --on-accent: #1D1E1D;
  --action: #465B43;
  --on-action: #F3F3EE;
  --destructive: #B1674E;
  --success: #CED79E;
  --inviting: #3B2F19;
  --inviting-text: #DABB78;
  --featured: rgba(70, 91, 67, 0.30);
  --featured-ink: #C2D0D5;
  --separator: rgba(255, 255, 255, 0.10);
  --print: #222325;
  --photo-ph: #2A2B2D;
  --chosen: rgba(255, 255, 255, 0.2);
  --faint-edge: rgba(255, 255, 255, 0.22);
  --glass-header: rgba(255, 255, 255, 0.05);
  --glass-header-scrolled: rgba(255, 255, 255, 0.11);
  --glass-stroke: rgba(255, 255, 255, 0.18);
  --inner-stroke: rgba(255, 255, 255, 0.18);
  --glass-sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  --glass-shadow: 0 1px 1.5px rgba(0, 0, 0, 0.3), 0 10px 26px -12px rgba(0, 0, 0, 0.6);
  --menu-bg: rgba(40, 41, 46, 0.82);
  --glass-sub: rgba(107, 109, 110, 0.18);
  --mu1: #5E9E93;
  --mu2: #C98D5A;
  --mu3: #2F7F74;
  --mu4: #B8912E;
  --mu5: #4F68AC;
  --mural-grey: #4A4C50;
  --mural-mix: 42%;
  --map-bg: #26282D;
  --map-water: #1F2C3D;
  --map-road: #3A3D44;
  --map-park: #22301F;
  --tint-white: #1D1E1D;
  --tint-blue: #141925;
  --tint-green: #141C12;
  --tint-purple: #1A1726;
  --tint-rose: #221817;
  --bezel: #0E0F11;
  --bezel-edge: #4A4C50;
  --todo-bg: #3B2F19;
  --todo-ink: #DABB78;
}

/* ---------- Base ---------- */

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 28px);
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 17px/1.55 var(--sans);
  padding-inline: max(16px, env(safe-area-inset-left, 0px));
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

svg.ic { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em; flex: none; }

.label {
  font: 700 11px/1.3 var(--sans);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text3);
  margin: 0;
}

.todo {
  background: var(--todo-bg);
  color: var(--todo-ink);
  border-radius: 4px;
  padding: 0 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------- Paper: ruling + murals, scrolling at 0.34 like the app ---------- */

#paper {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--paper);
}

.paper-sheet {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  will-change: transform;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(var(--rule-spacing) - 1px),
    var(--rule) calc(var(--rule-spacing) - 1px),
    var(--rule) var(--rule-spacing)
  );
}

.mural {
  position: absolute;
  width: 48px;
  height: 48px;
  color: var(--mu1);
}

/* ---------- Glass ---------- */

.glass {
  background: var(--card);
  background-image: var(--glass-sheen);
  border: 1px solid var(--glass-stroke);
  -webkit-backdrop-filter: blur(3px) saturate(1.15);
  backdrop-filter: blur(3px) saturate(1.15);
  box-shadow: var(--glass-shadow);
  border-radius: var(--r-lg);
}

/* ---------- Header: glass with a torn edge ---------- */

/* Torn edges (TornEdge in PaperBackground.swift). In the stylesheet, not drawn by
   script, so the headers are torn from the very first frame. */
.site-header { --torn: polygon(0 0,3200px 0,3200px calc(100% - 3.6px),3200px calc(100% - 6.1px),3190px calc(100% - 2.7px),3179px calc(100% - 4.3px),3168px calc(100% - 0.3px),3157px calc(100% - 3.5px),3146px calc(100% - 0.2px),3135px calc(100% - 6.3px),3124px calc(100% - 1.6px),3113px calc(100% - 6.9px),3102px calc(100% - 6.8px),3091px calc(100% - 2.1px),3080px calc(100% - 7.9px),3069px calc(100% - 8.2px),3058px calc(100% - 1.6px),3047px calc(100% - 5.7px),3036px calc(100% - 7.8px),3025px calc(100% - 5.4px),3014px calc(100% - 1.0px),3003px calc(100% - 1.2px),2992px calc(100% - 4.0px),2981px calc(100% - 3.1px),2970px calc(100% - 0.5px),2959px calc(100% - 8.1px),2948px calc(100% - 3.6px),2937px calc(100% - 6.9px),2926px calc(100% - 2.9px),2915px calc(100% - 5.9px),2904px calc(100% - 7.5px),2893px calc(100% - 6.1px),2882px calc(100% - 2.0px),2871px calc(100% - 3.0px),2860px calc(100% - 0.8px),2849px calc(100% - 7.4px),2838px calc(100% - 8.1px),2827px calc(100% - 3.8px),2816px calc(100% - 5.0px),2805px calc(100% - 6.8px),2794px calc(100% - 5.0px),2783px calc(100% - 7.9px),2772px calc(100% - 8.5px),2761px calc(100% - 8.4px),2750px calc(100% - 1.4px),2739px calc(100% - 5.3px),2728px calc(100% - 5.5px),2717px calc(100% - 6.7px),2706px calc(100% - 1.4px),2695px calc(100% - 0.8px),2684px calc(100% - 3.1px),2673px calc(100% - 5.3px),2662px calc(100% - 7.4px),2651px calc(100% - 5.5px),2640px calc(100% - 0.2px),2629px calc(100% - 7.4px),2618px calc(100% - 3.6px),2607px calc(100% - 3.4px),2596px calc(100% - 5.5px),2585px calc(100% - 2.6px),2574px calc(100% - 2.3px),2563px calc(100% - 2.3px),2552px calc(100% - 4.4px),2541px calc(100% - 5.7px),2530px calc(100% - 2.9px),2519px calc(100% - 3.9px),2508px calc(100% - 1.4px),2497px calc(100% - 1.7px),2486px calc(100% - 0.2px),2475px calc(100% - 7.0px),2464px calc(100% - 2.4px),2453px calc(100% - 3.3px),2442px calc(100% - 6.0px),2431px calc(100% - 0.3px),2420px calc(100% - 5.1px),2409px calc(100% - 4.1px),2398px calc(100% - 2.6px),2387px calc(100% - 6.6px),2376px calc(100% - 3.9px),2365px calc(100% - 6.8px),2354px calc(100% - 5.4px),2343px calc(100% - 4.9px),2332px calc(100% - 3.0px),2321px calc(100% - 4.2px),2310px calc(100% - 1.6px),2299px calc(100% - 7.9px),2288px calc(100% - 7.2px),2277px calc(100% - 0.1px),2266px calc(100% - 1.3px),2255px calc(100% - 3.4px),2244px calc(100% - 1.1px),2233px calc(100% - 5.8px),2222px calc(100% - 1.8px),2211px calc(100% - 1.9px),2200px calc(100% - 3.9px),2189px calc(100% - 4.4px),2178px calc(100% - 2.2px),2167px calc(100% - 3.4px),2156px calc(100% - 2.0px),2145px calc(100% - 7.1px),2134px calc(100% - 2.9px),2123px calc(100% - 1.7px),2112px calc(100% - 1.0px),2101px calc(100% - 1.0px),2090px calc(100% - 5.0px),2079px calc(100% - 1.1px),2068px calc(100% - 8.2px),2057px calc(100% - 0.2px),2046px calc(100% - 4.5px),2035px calc(100% - 6.4px),2024px calc(100% - 7.9px),2013px calc(100% - 6.9px),2002px calc(100% - 5.6px),1991px calc(100% - 3.9px),1980px calc(100% - 7.7px),1969px calc(100% - 4.7px),1958px calc(100% - 4.4px),1947px calc(100% - 3.1px),1936px calc(100% - 4.9px),1925px calc(100% - 0.3px),1914px calc(100% - 2.0px),1903px calc(100% - 0.4px),1892px calc(100% - 0.9px),1881px calc(100% - 0.9px),1870px calc(100% - 6.0px),1859px calc(100% - 2.8px),1848px calc(100% - 7.5px),1837px calc(100% - 2.5px),1826px calc(100% - 6.0px),1815px calc(100% - 0.5px),1804px calc(100% - 8.0px),1793px calc(100% - 1.2px),1782px calc(100% - 3.7px),1771px calc(100% - 4.9px),1760px calc(100% - 6.4px),1749px calc(100% - 8.1px),1738px calc(100% - 7.6px),1727px calc(100% - 2.2px),1716px calc(100% - 0.3px),1705px calc(100% - 8.1px),1694px calc(100% - 4.2px),1683px calc(100% - 0.5px),1672px calc(100% - 2.8px),1661px calc(100% - 0.6px),1650px calc(100% - 0.8px),1639px calc(100% - 4.2px),1628px calc(100% - 4.8px),1617px calc(100% - 4.6px),1606px calc(100% - 3.8px),1595px calc(100% - 1.3px),1584px calc(100% - 7.5px),1573px calc(100% - 7.8px),1562px calc(100% - 5.3px),1551px calc(100% - 0.4px),1540px calc(100% - 5.3px),1529px calc(100% - 0.8px),1518px calc(100% - 1.8px),1507px calc(100% - 0.3px),1496px calc(100% - 2.9px),1485px calc(100% - 1.4px),1474px calc(100% - 1.6px),1463px calc(100% - 2.5px),1452px calc(100% - 4.5px),1441px calc(100% - 8.7px),1430px calc(100% - 7.9px),1419px calc(100% - 8.3px),1408px calc(100% - 4.9px),1397px calc(100% - 8.4px),1386px calc(100% - 5.0px),1375px calc(100% - 4.5px),1364px calc(100% - 0.1px),1353px calc(100% - 8.5px),1342px calc(100% - 6.7px),1331px calc(100% - 6.6px),1320px calc(100% - 5.0px),1309px calc(100% - 6.2px),1298px calc(100% - 3.1px),1287px calc(100% - 5.1px),1276px calc(100% - 6.8px),1265px calc(100% - 7.9px),1254px calc(100% - 6.2px),1243px calc(100% - 6.1px),1232px calc(100% - 5.6px),1221px calc(100% - 4.0px),1210px calc(100% - 8.8px),1199px calc(100% - 8.1px),1188px calc(100% - 6.4px),1177px calc(100% - 1.0px),1166px calc(100% - 6.8px),1155px calc(100% - 2.3px),1144px calc(100% - 7.7px),1133px calc(100% - 1.4px),1122px calc(100% - 0.4px),1111px calc(100% - 1.4px),1100px calc(100% - 6.6px),1089px calc(100% - 8.2px),1078px calc(100% - 2.1px),1067px calc(100% - 5.1px),1056px calc(100% - 5.1px),1045px calc(100% - 7.8px),1034px calc(100% - 4.5px),1023px calc(100% - 8.7px),1012px calc(100% - 6.5px),1001px calc(100% - 6.7px),990px calc(100% - 3.1px),979px calc(100% - 5.1px),968px calc(100% - 0.2px),957px calc(100% - 2.4px),946px calc(100% - 6.2px),935px calc(100% - 3.8px),924px calc(100% - 2.1px),913px calc(100% - 6.5px),902px calc(100% - 3.1px),891px calc(100% - 7.7px),880px calc(100% - 9.0px),869px calc(100% - 8.6px),858px calc(100% - 5.9px),847px calc(100% - 7.6px),836px calc(100% - 7.5px),825px calc(100% - 6.2px),814px calc(100% - 5.3px),803px calc(100% - 6.3px),792px calc(100% - 4.5px),781px calc(100% - 1.0px),770px calc(100% - 4.9px),759px calc(100% - 2.9px),748px calc(100% - 4.4px),737px calc(100% - 6.7px),726px calc(100% - 8.4px),715px calc(100% - 3.7px),704px calc(100% - 1.3px),693px calc(100% - 6.4px),682px calc(100% - 8.9px),671px calc(100% - 8.6px),660px calc(100% - 6.6px),649px calc(100% - 3.5px),638px calc(100% - 2.8px),627px calc(100% - 5.6px),616px calc(100% - 3.5px),605px calc(100% - 0.6px),594px calc(100% - 4.1px),583px calc(100% - 7.0px),572px calc(100% - 6.1px),561px calc(100% - 4.6px),550px calc(100% - 5.3px),539px calc(100% - 3.0px),528px calc(100% - 3.1px),517px calc(100% - 5.4px),506px calc(100% - 2.7px),495px calc(100% - 3.4px),484px calc(100% - 4.4px),473px calc(100% - 2.5px),462px calc(100% - 2.2px),451px calc(100% - 4.2px),440px calc(100% - 8.4px),429px calc(100% - 6.4px),418px calc(100% - 7.1px),407px calc(100% - 5.5px),396px calc(100% - 5.5px),385px calc(100% - 8.8px),374px calc(100% - 7.2px),363px calc(100% - 6.7px),352px calc(100% - 4.8px),341px calc(100% - 6.4px),330px calc(100% - 6.0px),319px calc(100% - 0.2px),308px calc(100% - 6.4px),297px calc(100% - 6.8px),286px calc(100% - 5.3px),275px calc(100% - 0.1px),264px calc(100% - 4.9px),253px calc(100% - 8.2px),242px calc(100% - 3.4px),231px calc(100% - 7.8px),220px calc(100% - 3.7px),209px calc(100% - 1.3px),198px calc(100% - 1.3px),187px calc(100% - 4.0px),176px calc(100% - 8.8px),165px calc(100% - 2.2px),154px calc(100% - 8.5px),143px calc(100% - 5.1px),132px calc(100% - 7.5px),121px calc(100% - 1.6px),110px calc(100% - 4.3px),99px calc(100% - 7.9px),88px calc(100% - 3.6px),77px calc(100% - 5.9px),66px calc(100% - 7.7px),55px calc(100% - 2.7px),44px calc(100% - 2.7px),33px calc(100% - 1.4px),22px calc(100% - 2.6px),11px calc(100% - 6.2px),0px calc(100% - 7.2px)); }
.chapters { --torn-sub: polygon(0 0,3200px 0,3200px calc(100% - 3.6px),3200px calc(100% - 7.8px),3190px calc(100% - 2.3px),3179px calc(100% - 5.3px),3168px calc(100% - 4.1px),3157px calc(100% - 8.0px),3146px calc(100% - 2.9px),3135px calc(100% - 7.4px),3124px calc(100% - 4.3px),3113px calc(100% - 8.5px),3102px calc(100% - 6.5px),3091px calc(100% - 8.8px),3080px calc(100% - 3.9px),3069px calc(100% - 2.3px),3058px calc(100% - 7.9px),3047px calc(100% - 6.2px),3036px calc(100% - 2.1px),3025px calc(100% - 1.3px),3014px calc(100% - 2.6px),3003px calc(100% - 3.1px),2992px calc(100% - 6.6px),2981px calc(100% - 9.0px),2970px calc(100% - 7.6px),2959px calc(100% - 5.3px),2948px calc(100% - 6.5px),2937px calc(100% - 4.7px),2926px calc(100% - 8.3px),2915px calc(100% - 6.1px),2904px calc(100% - 4.9px),2893px calc(100% - 6.1px),2882px calc(100% - 8.7px),2871px calc(100% - 0.2px),2860px calc(100% - 7.3px),2849px calc(100% - 3.0px),2838px calc(100% - 1.9px),2827px calc(100% - 8.3px),2816px calc(100% - 0.2px),2805px calc(100% - 2.0px),2794px calc(100% - 8.5px),2783px calc(100% - 6.8px),2772px calc(100% - 4.5px),2761px calc(100% - 4.5px),2750px calc(100% - 5.9px),2739px calc(100% - 0.7px),2728px calc(100% - 1.6px),2717px calc(100% - 8.6px),2706px calc(100% - 3.2px),2695px calc(100% - 3.2px),2684px calc(100% - 3.0px),2673px calc(100% - 0.9px),2662px calc(100% - 5.1px),2651px calc(100% - 7.2px),2640px calc(100% - 4.2px),2629px calc(100% - 0.3px),2618px calc(100% - 3.7px),2607px calc(100% - 5.5px),2596px calc(100% - 1.4px),2585px calc(100% - 6.1px),2574px calc(100% - 7.6px),2563px calc(100% - 3.1px),2552px calc(100% - 5.6px),2541px calc(100% - 8.3px),2530px calc(100% - 0.1px),2519px calc(100% - 2.0px),2508px calc(100% - 8.3px),2497px calc(100% - 6.0px),2486px calc(100% - 9.0px),2475px calc(100% - 5.2px),2464px calc(100% - 6.0px),2453px calc(100% - 7.9px),2442px calc(100% - 4.9px),2431px calc(100% - 5.3px),2420px calc(100% - 5.8px),2409px calc(100% - 1.3px),2398px calc(100% - 4.3px),2387px calc(100% - 2.8px),2376px calc(100% - 2.9px),2365px calc(100% - 2.5px),2354px calc(100% - 5.4px),2343px calc(100% - 1.4px),2332px calc(100% - 7.7px),2321px calc(100% - 2.9px),2310px calc(100% - 7.2px),2299px calc(100% - 2.2px),2288px calc(100% - 0.1px),2277px calc(100% - 4.7px),2266px calc(100% - 4.3px),2255px calc(100% - 4.6px),2244px calc(100% - 8.2px),2233px calc(100% - 6.9px),2222px calc(100% - 6.0px),2211px calc(100% - 3.4px),2200px calc(100% - 7.0px),2189px calc(100% - 1.1px),2178px calc(100% - 2.4px),2167px calc(100% - 5.5px),2156px calc(100% - 2.2px),2145px calc(100% - 6.8px),2134px calc(100% - 0.6px),2123px calc(100% - 7.7px),2112px calc(100% - 2.1px),2101px calc(100% - 5.2px),2090px calc(100% - 5.9px),2079px calc(100% - 6.2px),2068px calc(100% - 0.1px),2057px calc(100% - 7.3px),2046px calc(100% - 7.6px),2035px calc(100% - 6.8px),2024px calc(100% - 6.0px),2013px calc(100% - 7.4px),2002px calc(100% - 2.0px),1991px calc(100% - 7.8px),1980px calc(100% - 8.9px),1969px calc(100% - 0.4px),1958px calc(100% - 5.5px),1947px calc(100% - 6.4px),1936px calc(100% - 5.3px),1925px calc(100% - 6.5px),1914px calc(100% - 5.3px),1903px calc(100% - 7.7px),1892px calc(100% - 5.0px),1881px calc(100% - 2.1px),1870px calc(100% - 6.6px),1859px calc(100% - 7.5px),1848px calc(100% - 8.0px),1837px calc(100% - 8.0px),1826px calc(100% - 5.2px),1815px calc(100% - 3.8px),1804px calc(100% - 4.1px),1793px calc(100% - 6.9px),1782px calc(100% - 5.6px),1771px calc(100% - 0.4px),1760px calc(100% - 6.5px),1749px calc(100% - 6.0px),1738px calc(100% - 6.3px),1727px calc(100% - 7.1px),1716px calc(100% - 4.7px),1705px calc(100% - 8.9px),1694px calc(100% - 3.6px),1683px calc(100% - 2.4px),1672px calc(100% - 5.5px),1661px calc(100% - 1.9px),1650px calc(100% - 3.0px),1639px calc(100% - 7.8px),1628px calc(100% - 7.0px),1617px calc(100% - 5.2px),1606px calc(100% - 0.5px),1595px calc(100% - 6.8px),1584px calc(100% - 4.9px),1573px calc(100% - 4.9px),1562px calc(100% - 2.8px),1551px calc(100% - 4.2px),1540px calc(100% - 4.6px),1529px calc(100% - 3.3px),1518px calc(100% - 6.3px),1507px calc(100% - 2.3px),1496px calc(100% - 0.6px),1485px calc(100% - 1.6px),1474px calc(100% - 3.7px),1463px calc(100% - 6.0px),1452px calc(100% - 1.7px),1441px calc(100% - 4.8px),1430px calc(100% - 2.0px),1419px calc(100% - 4.2px),1408px calc(100% - 3.4px),1397px calc(100% - 5.4px),1386px calc(100% - 6.2px),1375px calc(100% - 3.2px),1364px calc(100% - 8.1px),1353px calc(100% - 6.2px),1342px calc(100% - 6.7px),1331px calc(100% - 5.3px),1320px calc(100% - 3.2px),1309px calc(100% - 2.9px),1298px calc(100% - 0.6px),1287px calc(100% - 3.1px),1276px calc(100% - 3.7px),1265px calc(100% - 5.0px),1254px calc(100% - 4.9px),1243px calc(100% - 2.8px),1232px calc(100% - 2.4px),1221px calc(100% - 1.5px),1210px calc(100% - 5.8px),1199px calc(100% - 0.7px),1188px calc(100% - 8.3px),1177px calc(100% - 4.3px),1166px calc(100% - 0.3px),1155px calc(100% - 1.1px),1144px calc(100% - 7.4px),1133px calc(100% - 4.4px),1122px calc(100% - 5.1px),1111px calc(100% - 3.3px),1100px calc(100% - 3.3px),1089px calc(100% - 4.4px),1078px calc(100% - 7.3px),1067px calc(100% - 2.3px),1056px calc(100% - 0.8px),1045px calc(100% - 8.4px),1034px calc(100% - 2.2px),1023px calc(100% - 2.7px),1012px calc(100% - 7.0px),1001px calc(100% - 1.4px),990px calc(100% - 2.0px),979px calc(100% - 3.1px),968px calc(100% - 2.8px),957px calc(100% - 1.8px),946px calc(100% - 7.6px),935px calc(100% - 7.9px),924px calc(100% - 0.9px),913px calc(100% - 2.1px),902px calc(100% - 8.0px),891px calc(100% - 8.3px),880px calc(100% - 5.6px),869px calc(100% - 9.0px),858px calc(100% - 4.8px),847px calc(100% - 7.0px),836px calc(100% - 6.3px),825px calc(100% - 7.9px),814px calc(100% - 7.4px),803px calc(100% - 8.5px),792px calc(100% - 4.7px),781px calc(100% - 7.8px),770px calc(100% - 6.7px),759px calc(100% - 6.9px),748px calc(100% - 6.8px),737px calc(100% - 5.0px),726px calc(100% - 6.2px),715px calc(100% - 4.7px),704px calc(100% - 6.8px),693px calc(100% - 5.6px),682px calc(100% - 2.1px),671px calc(100% - 2.9px),660px calc(100% - 6.8px),649px calc(100% - 7.0px),638px calc(100% - 1.0px),627px calc(100% - 4.8px),616px calc(100% - 3.9px),605px calc(100% - 0.7px),594px calc(100% - 4.1px),583px calc(100% - 8.1px),572px calc(100% - 4.0px),561px calc(100% - 3.6px),550px calc(100% - 3.0px),539px calc(100% - 6.4px),528px calc(100% - 7.3px),517px calc(100% - 1.6px),506px calc(100% - 4.0px),495px calc(100% - 9.0px),484px calc(100% - 6.8px),473px calc(100% - 7.7px),462px calc(100% - 2.0px),451px calc(100% - 4.3px),440px calc(100% - 4.3px),429px calc(100% - 1.1px),418px calc(100% - 0.6px),407px calc(100% - 0.7px),396px calc(100% - 7.3px),385px calc(100% - 5.6px),374px calc(100% - 4.1px),363px calc(100% - 7.4px),352px calc(100% - 2.4px),341px calc(100% - 0.5px),330px calc(100% - 8.6px),319px calc(100% - 6.3px),308px calc(100% - 8.3px),297px calc(100% - 4.3px),286px calc(100% - 4.8px),275px calc(100% - 6.8px),264px calc(100% - 7.1px),253px calc(100% - 2.7px),242px calc(100% - 6.1px),231px calc(100% - 5.0px),220px calc(100% - 1.0px),209px calc(100% - 1.3px),198px calc(100% - 1.9px),187px calc(100% - 7.7px),176px calc(100% - 1.3px),165px calc(100% - 6.0px),154px calc(100% - 6.5px),143px calc(100% - 8.1px),132px calc(100% - 5.2px),121px calc(100% - 7.5px),110px calc(100% - 0.5px),99px calc(100% - 0.8px),88px calc(100% - 7.7px),77px calc(100% - 4.2px),66px calc(100% - 1.5px),55px calc(100% - 0.7px),44px calc(100% - 3.3px),33px calc(100% - 2.5px),22px calc(100% - 1.0px),11px calc(100% - 7.2px),0px calc(100% - 7.7px)); }
.s-header { --torn-s: polygon(0 0,400px 0,400px calc(100% - 3.6px),400px calc(100% - 5.5px),396px calc(100% - 5.5px),385px calc(100% - 8.8px),374px calc(100% - 7.2px),363px calc(100% - 6.7px),352px calc(100% - 4.8px),341px calc(100% - 6.4px),330px calc(100% - 6.0px),319px calc(100% - 0.2px),308px calc(100% - 6.4px),297px calc(100% - 6.8px),286px calc(100% - 5.3px),275px calc(100% - 0.1px),264px calc(100% - 4.9px),253px calc(100% - 8.2px),242px calc(100% - 3.4px),231px calc(100% - 7.8px),220px calc(100% - 3.7px),209px calc(100% - 1.3px),198px calc(100% - 1.3px),187px calc(100% - 4.0px),176px calc(100% - 8.8px),165px calc(100% - 2.2px),154px calc(100% - 8.5px),143px calc(100% - 5.1px),132px calc(100% - 7.5px),121px calc(100% - 1.6px),110px calc(100% - 4.3px),99px calc(100% - 7.9px),88px calc(100% - 3.6px),77px calc(100% - 5.9px),66px calc(100% - 7.7px),55px calc(100% - 2.7px),44px calc(100% - 2.7px),33px calc(100% - 1.4px),22px calc(100% - 2.6px),11px calc(100% - 6.2px),0px calc(100% - 7.2px)); }


.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: calc(var(--header-h) + var(--tear) + 4px + env(safe-area-inset-top, 0px));
  pointer-events: none;
}

.hdr-shadow {
  position: absolute;
  inset: 0;
  filter: blur(3px);
  transform: translateY(2px);
  opacity: 0.10;
}
.hdr-shadow > div {
  position: absolute;
  inset: 0;
  background: #000;
  clip-path: var(--torn, none);
}

.hdr-glass {
  position: absolute;
  inset: 0;
  background: var(--glass-header);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  clip-path: var(--torn, none);
  transition: background 0.25s ease;
}
.site-header.scrolled .hdr-glass { background: var(--glass-header-scrolled); }

.hdr-row {
  position: absolute;
  left: 0;
  right: 0;
  top: env(safe-area-inset-top, 0px);
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-inline: max(16px, env(safe-area-inset-left, 0px));
  pointer-events: auto;
}
.hdr-row > :first-child { justify-self: start; }
.hdr-row > :last-child { justify-self: end; }

.hdr-title {
  font: 600 18px/1 var(--serif);
  color: var(--text);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease-out, transform 0.22s ease-out;
  white-space: nowrap;
}
.site-header.titled .hdr-title { opacity: 1; transform: none; }

.store-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 15px 0 6px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--on-action);
  font: 600 14px/1 var(--sans);
  background: var(--action);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 6px 16px -8px rgba(30, 45, 30, 0.45);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.store-pill:active { transform: scale(0.97); opacity: 0.85; }
.store-pill .appicon { width: 28px; height: 28px; border-radius: 22.37%; box-shadow: 0 0 0 0.5px rgba(0,0,0,0.12); }
.store-pill .short { display: none; }

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  color: var(--accent);
  text-decoration: none;
  font: 500 15px/1 var(--sans);
}
.back-btn svg { width: 9px; height: 15px; }

/* Theme menu, like the app's Appearance menu */
.theme { position: relative; }
.circle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--glass-stroke);
  background: var(--card);
  background-image: var(--glass-sheen);
  box-shadow: var(--glass-shadow);
  color: var(--text2);
  cursor: pointer;
  padding: 0;
}
.circle-btn svg { width: 21px; height: 21px; }

.menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 216px;
  padding: 6px;
  border-radius: 18px;
  background: var(--menu-bg);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid var(--glass-stroke);
  box-shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.08);
  transform-origin: top right;
  animation: pop 0.18s ease-out;
}
@keyframes pop { from { opacity: 0; transform: scale(0.94); } }
.menu button {
  display: grid;
  grid-template-columns: 18px 1fr 22px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font: 15px/1 var(--sans);
  text-align: left;
  cursor: pointer;
}
.menu button:hover { background: var(--separator); }
.menu .check { visibility: hidden; color: var(--text); font-size: 13px; }
.menu button[aria-checked="true"] .check { visibility: visible; }
.menu button svg.ic { width: 20px; height: 20px; color: var(--text2); }

/* ---------- Layout ---------- */

main { display: block; position: relative; z-index: 1; }

.wrap { max-width: var(--wide); margin-inline: auto; }

section { position: relative; }

.sec-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.sec-head h2 { margin-top: 10px; }

h1, h2, h3 { text-wrap: balance; }

h2 {
  font: 600 clamp(31px, 4.6vw, 46px)/1.07 var(--serif);
  letter-spacing: -0.012em;
  margin: 0;
}

h3 {
  font: 600 clamp(25px, 3vw, 32px)/1.12 var(--serif);
  margin: 10px 0 14px;
}

.sub {
  color: var(--text2);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.45;
  margin: 14px 0 0;
}

/* ---------- Hero ---------- */

.hero {
  padding-top: calc(var(--header-h) + 54px + env(safe-area-inset-top, 0px));
  padding-bottom: 96px;
  text-align: center;
  max-width: 880px;
  margin-inline: auto;
}

.bindery-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--inviting-text);
  background: color-mix(in srgb, var(--inviting) 82%, transparent);
  border: 1px solid color-mix(in srgb, var(--inviting-text) 22%, transparent);
  font: 14px/1.3 var(--sans);
  text-align: left;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.bindery-pill:hover { box-shadow: 0 6px 18px -8px rgba(155, 107, 61, 0.5); }
.bindery-pill:active { transform: scale(0.98); }
.bindery-pill .dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--inviting-text);
  color: var(--inviting);
  flex: none;
}
.bindery-pill .dot svg { width: 18px; height: 18px; }
.bindery-pill b { font-weight: 650; }
.bindery-pill .chev { font-size: 18px; line-height: 1; margin-left: 2px; }

.logo-mark {
  display: block;
  width: 148px;
  height: 148px;
  margin: 44px auto 6px;
  color: var(--text);
  cursor: pointer;
  overflow: visible;
}
.logo-mark .arm { fill: none; stroke: currentColor; stroke-width: 62; stroke-linecap: round; stroke-linejoin: round; }

.display {
  font: 600 clamp(58px, 11vw, 104px)/0.95 var(--serif);
  letter-spacing: -0.03em;
  margin: 8px 0 0;
}

.tagline {
  font: 19px/1.3 var(--type);
  margin: 14px 0 0;
}

.dict {
  margin: 34px auto 0;
  max-width: 560px;
  display: grid;
  gap: 12px;
  text-align: left;
}
.dict .head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--text2);
  font-size: 14px;
}
.dict .head b { font: 600 19px/1 var(--serif); color: var(--text); }
.dict .head i { font-family: var(--serif); }
.dict ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dict li { padding: 14px 16px 15px; border-radius: var(--r-md); }
.dict li .n { font: 600 13px/1 var(--serif); color: var(--text3); margin-right: 6px; }
.dict li .w { font: 15px/1.4 var(--type); color: var(--text); }
.dict li p { margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: var(--text2); }

.statement {
  font: 500 clamp(21px, 2.6vw, 27px)/1.38 var(--serif);
  max-width: 690px;
  margin: 52px auto 0;
  text-wrap: pretty;
}

.mvv {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 30px;
  margin: 22px auto 0;
  color: var(--text2);
  font-size: 15px;
}
.mvv span .label { display: inline; margin-right: 8px; }

.mv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 820px;
  margin: 46px auto 0;
  text-align: left;
  border-top: 1px solid var(--separator);
  border-bottom: 1px solid var(--separator);
}
.mv > div { padding: 22px 26px 24px; }
.mv > div + div { border-left: 1px solid var(--separator); }
.mv .label { font-size: 12px; color: var(--inviting-text); }
.mv-text { margin: 8px 0 0; font: 600 clamp(22px, 2.6vw, 28px)/1.22 var(--serif); letter-spacing: -0.01em; text-wrap: balance; }

.values {
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: left;
  overflow: hidden;
}
.values > div { padding: 18px 20px 20px; }
.values > div + div { border-left: 1px solid var(--separator); }
.values .label { display: flex; align-items: center; gap: 8px; }
.values .label svg { width: 20px; height: 20px; color: var(--text2); }
.values p:not(.label) { margin: 8px 0 0; font: 15px/1.45 var(--type); }

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.btn-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--r-md);
  background: var(--action);
  color: var(--on-action);
  text-decoration: none;
  font: 600 16px/1 var(--sans);
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn-main:active { transform: scale(0.98); opacity: 0.85; }
.btn-main .appicon { width: 28px; height: 28px; border-radius: 22.37%; }

.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: var(--r-md);
  color: var(--accent);
  text-decoration: none;
  font: 600 16px/1 var(--sans);
  cursor: pointer;
}

/* ---------- Features ---------- */

.features { padding-block: 40px 40px; }
.sec-head-inside { margin-top: -36px; margin-bottom: 96px; }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  max-width: var(--wide);
  margin: 0 auto 150px;
}
.feature.reverse .f-text { order: 2; }
.feature .f-text { max-width: 500px; justify-self: center; }
.feature .f-text > p { color: var(--text2); margin: 0 0 18px; }
.feature .f-visual { display: flex; justify-content: center; gap: 26px; position: relative; }
.feature .f-visual.duo { gap: 22px; align-items: flex-start; }
.feature .f-visual.duo .phone-wrap:last-child { margin-top: 48px; }

/* What goes on a page, as the app's add buttons: icon above, rounded square */
.ingredients {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.ingredients li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 14px 4px;
  border-radius: var(--r-md);
  font: 600 11.5px/1.15 var(--sans);
  color: var(--accent);
  text-align: center;
}
.ingredients svg { width: 20px; height: 20px; }

.try { margin-top: 22px; padding: 18px 18px 16px; }
.try .row-label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.try .row-label .label + span { font: 600 11px/1 var(--sans); color: var(--text3); }
.try .group + .group { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--separator); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  cursor: pointer;
  position: relative;
  padding: 0;
  transition: transform 0.15s ease;
}
.swatch:hover { transform: translateY(-1px); }
.swatch[data-slot] { box-shadow: 0 0 0 2.5px var(--paper), 0 0 0 4px var(--accent); }
.swatch[data-slot]::after {
  content: attr(data-slot);
  position: absolute;
  top: -8px;
  right: -8px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font: 700 10px/17px var(--sans);
  text-align: center;
}
.papers { display: flex; flex-wrap: wrap; gap: 8px; }
.hint { margin: 12px 0 0; font-size: 13px; color: var(--text3); }

/* Pills, the app's Pill .button size */
.pbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 12px;
  border: 0;
  font: 600 12.5px/1 var(--sans);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s ease, background 0.2s ease;
}
.pbtn:active { transform: scale(0.96); }
.pbtn.action { background: var(--action); color: var(--on-action); }
.pbtn.quiet { background: var(--quiet-bg); color: var(--text2); }
.pbtn.chosen { background: var(--chosen); color: var(--text); box-shadow: inset 0 0 0 1px var(--inner-stroke); }
.pbtn.outlined { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px var(--inner-stroke); }
.pbtn.done { background: var(--done-bg); color: var(--success); }
.pbtn .sw { width: 12px; height: 12px; border-radius: 4px; border: 1px solid rgba(0,0,0,0.14); }

.subpoints { display: grid; gap: 10px; margin-top: 22px; }
.subpoint { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; padding: 14px 16px; border-radius: var(--r-md); }
.subpoint .ico { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; background: var(--featured); color: var(--featured-ink); }
.subpoint .ico svg { width: 22px; height: 22px; }
.subpoint b { display: block; font: 600 15px/1.3 var(--sans); }
.subpoint span { display: block; font-size: 14px; line-height: 1.45; color: var(--text2); margin-top: 2px; }

/* More features grid */
.more { max-width: var(--wide); margin: 0 auto; }
/* Pinned while the tiles come in one per stretch of scrolling (app.js) */
.more.pinned { height: calc(var(--more-h) + var(--more-room)); }
.more.pinned .more-stage { position: sticky; top: var(--more-top); }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.more-grid .glass { padding: 20px 20px 22px; }
.more-grid .widget-tile { grid-column: span 2; }
.more-grid .m-ico { width: 40px; height: 40px; color: var(--accent); }
/* One after another as they come into view, each drawing in its colour for a moment */
.more-grid.staged > .glass { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.8s cubic-bezier(.2, .8, .2, 1); }
.more-grid.staged > .glass.shown { opacity: 1; transform: none; }
.more-grid.staged > .glass.shown .m-ico { animation: ico-flash 2.6s ease both; }
@keyframes ico-flash {
  0% { color: var(--flash, var(--accent)); transform: scale(0.85); }
  12% { transform: scale(1.08); }
  24% { transform: none; }
  55% { color: var(--flash, var(--accent)); }
  100% { color: var(--accent); }
}
.more-grid b { display: block; font: 600 19px/1.25 var(--serif); margin-top: 12px; }
.more-grid p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--text2); }

/* Drawn widget (WidgetViews metrics) */
.widget {
  width: 158px;
  height: 158px;
  border-radius: 24px;
  padding: 14px 14px 12px;
  background: var(--paper);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 21px, var(--rule) 21px, var(--rule) 22px);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--separator);
  display: flex;
  flex-direction: column;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.widget .w-sent { font: 500 17px/1.22 var(--serif); }
.widget .w-date { margin-top: auto; font: 12px var(--type); color: var(--text2); }
.widget .w-cake { position: absolute; right: 10px; bottom: 8px; width: 46px; height: 46px; color: var(--mu2); }
.widget-tile { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.widget.fact { width: 140px; height: 140px; padding: 14px 13px; border-radius: 24px; flex: none; }

/* Cards for Bindung: a wide tile, its drawing beside the text */
.more-grid .quiz-tile { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 18px; align-items: center; }
.more-grid .quiz-tile b { margin-top: 0; }
.more-grid .quiz-tile p { max-width: 74ch; }
.widget.fact .w-name { font: 600 17px/1.2 var(--serif); }
.widget.fact .s-lbl { margin-top: 7px; font-size: 8.5px; }
.widget.fact .w-ans { margin-top: 4px; font: 13px/1.3 var(--type); }

/* ---------- Closing ---------- */

.closing { max-width: 760px; margin: 120px auto 0; text-align: center; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 38px; }
.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 104px;
  padding: 18px 10px;
  border-radius: var(--r-md);
  color: var(--accent);
  text-decoration: none;
  font: 600 14px/1.25 var(--sans);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.tile:active { transform: scale(0.97); }
.tile svg.ic { width: 28px; height: 28px; }
.tile .appicon { width: 30px; height: 30px; border-radius: 22.37%; }
.tile small { font: 500 12px/1.2 var(--sans); color: var(--text3); }

.feedback { margin-top: 12px; padding: 16px; text-align: left; display: grid; gap: 12px; }
.feedback textarea, .feedback input, .gate input {
  width: 100%;
  border-radius: var(--r-md);
  border: 1px solid var(--inner-stroke);
  background: color-mix(in srgb, var(--paper) 60%, transparent);
  padding: 13px 14px;
  font: 15px/1.45 var(--type);
  color: var(--text);
  resize: vertical;
}
.feedback textarea:focus, .feedback input:focus, .gate input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.feedback .row { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.feedback .seg { display: flex; gap: 6px; flex-wrap: wrap; }
.feedback .status { font-size: 13px; color: var(--text3); margin: 0; }
.feedback .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.site-footer {
  max-width: var(--wide);
  margin: 110px auto 0;
  padding: 26px 0 calc(76px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--separator);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text2);
}
.site-footer .brand { display: flex; align-items: center; gap: 10px; font: 15px var(--type); color: var(--text); }
.site-footer .brand svg { width: 34px; height: 34px; color: var(--text); }
.site-footer nav { display: flex; gap: 6px 20px; flex-wrap: wrap; }
.site-footer nav a { color: var(--text2); text-decoration: none; }
.site-footer nav a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- Phone (drawn at 390 pt, scaled to the space it has) ---------- */

.phone {
  transform: scale(var(--z, 0.78));
  transform-origin: 0 0;
  width: 414px;
  height: 868px;
  padding: 12px;
  border-radius: 64px;
  background: var(--bezel);
  box-shadow:
    inset 0 0 0 2px var(--bezel-edge),
    0 0 0 1px rgba(0, 0, 0, 0.25),
    0 50px 80px -30px rgba(30, 35, 25, 0.45),
    0 18px 30px -18px rgba(30, 35, 25, 0.35);
  flex: none;
  position: relative;
}
/* The wrap takes up the scaled phone's size in the layout; --z is set by script. */
.phone-wrap { --z: 0.78; width: calc(414px * var(--z)); height: calc(868px * var(--z)); flex: none; position: relative; }
.phone-wrap.tilt-l { transform: rotate(-2deg); }
.phone-wrap.tilt-r { transform: rotate(2deg); }

.screen {
  --paper-page: var(--paper);
  --card: color-mix(in srgb, var(--paper-page) 50%, transparent);
  --quiet-bg: color-mix(in srgb, var(--text3) 18%, var(--paper-page));
  --done-bg: color-mix(in srgb, var(--success) 16%, var(--paper-page));
  position: relative;
  width: 390px;
  height: 844px;
  border-radius: 52px;
  overflow: hidden;
  background: var(--paper-page);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.3;
  color: var(--text);
  isolation: isolate;
  /* Keeps the glass blur inside the screen, so the bezel doesn't shade its corners. */
  filter: opacity(1);
  transition: background 0.3s ease;
}
.screen[data-tint="white"] { --paper-page: var(--tint-white); }
.screen[data-tint="blue"] { --paper-page: var(--tint-blue); }
.screen[data-tint="green"] { --paper-page: var(--tint-green); }
.screen[data-tint="purple"] { --paper-page: var(--tint-purple); }
.screen[data-tint="rose"] { --paper-page: var(--tint-rose); }

.s-paper {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.s-sheet {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2750px;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 25px, var(--rule) 25px, var(--rule) 26px);
}
.s-sheet svg { position: absolute; transition: color 0.3s ease; }

.s-scroll {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding: 136px 0 120px;
}
.s-scroll::-webkit-scrollbar { display: none; }

.s-status {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 54px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 34px 0 52px;
  font: 600 17px/1 var(--sans);
  color: var(--text);
  pointer-events: none;
}
.s-status .icons { display: flex; gap: 7px; align-items: center; }
.s-status svg { height: 13px; fill: currentColor; }
.s-island {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 124px;
  height: 36px;
  margin-left: -62px;
  border-radius: 20px;
  background: #000;
  z-index: 5;
}

.s-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 117px;
  z-index: 3;
}
.s-header .hdr-glass, .s-header .hdr-shadow > div { clip-path: var(--torn-s, none); }
.s-header .hdr-glass { -webkit-backdrop-filter: blur(10px) saturate(1.5); backdrop-filter: blur(10px) saturate(1.5); }
.s-header.scrolled .hdr-glass { background: var(--glass-header-scrolled); }
.s-hrow {
  position: absolute;
  left: 0;
  right: 0;
  top: 54px;
  height: 50px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 16px;
}
.s-hrow > :last-child { justify-self: end; }
.s-title { font: 600 17px/1 var(--serif); }
.s-act { font: 600 13.5px/1 var(--sans); color: var(--accent); background: none; border: 0; cursor: pointer; padding: 10px 0; }
.s-gear { width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, var(--text3) 16%, transparent); display: grid; place-items: center; color: var(--text2); }
.s-gear svg { width: 15px; height: 15px; }

.s-tabbar {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper-page) 55%, transparent);
  background-image: var(--glass-sheen);
  -webkit-backdrop-filter: blur(10px) saturate(1.6);
  backdrop-filter: blur(10px) saturate(1.6);
  border: 1px solid var(--glass-stroke);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.25), 0 1px 2px rgba(0, 0, 0, 0.06);
}
.s-tab {
  width: 84px;
  height: 56px;
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font: 600 10.5px/1 var(--sans);
  color: var(--text);
}
.s-tab svg { width: 26px; height: 26px; }
.s-tab.on { background: color-mix(in srgb, var(--text3) 20%, transparent); color: var(--accent); }

/* In-app components */
.s-card {
  background: var(--card);
  background-image: var(--glass-sheen);
  border: 1px solid var(--glass-stroke);
  -webkit-backdrop-filter: blur(2px) saturate(1.1);
  backdrop-filter: blur(2px) saturate(1.1);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03), 0 6px 16px -10px rgba(0, 0, 0, 0.18);
  border-radius: 22px;
}
.s-m { margin: 0 14px 26px; }
.s-lbl { font: 700 9.5px/1.25 var(--sans); letter-spacing: 1.4px; text-transform: uppercase; color: var(--text3); }
.s-sec { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 22px 10px; }
.s-sec .s-lbl { color: var(--text2); }
.s-sec .tr { font: 600 10px/1 var(--sans); color: var(--text3); }
.s-ans { font: 14px/1.3 var(--type); color: var(--text); }
.s-div { height: 1px; background: var(--separator); }

.idcard { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 24px; margin: 0 14px 24px; }
.print {
  width: 96px;
  padding: 6px 6px 10px;
  background: var(--print);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
  transform: rotate(-1.6deg);
  flex: none;
}
.print .ph {
  width: 84px;
  height: 88px;
  display: grid;
  place-items: center;
  font: 40px/1 var(--display);
  background: var(--photo-ph);
  transition: background 0.3s ease, color 0.3s ease;
}
.print .ph svg { width: 81px; height: 81px; color: var(--text); }
.idname { flex: 1; min-width: 0; }
.idname .nl { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 600 21px/1.2 var(--serif); }
.idmeta { display: flex; justify-content: space-between; gap: 8px; margin-top: 5px; font-size: 12px; color: var(--text2); }
.idmeta .bd { display: inline-flex; gap: 4px; align-items: center; }
.idmeta .bd svg { width: 12px; height: 12px; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 15px; height: 15px; border-radius: 5px; border: 1px solid rgba(0, 0, 0, 0.12); display: block; transition: background 0.3s ease; }
.dots.sm i { width: 7px; height: 7px; border-radius: 2.4px; }

.apps { display: flex; gap: 8px; margin: -10px 14px 22px; }
.apps span { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--text2); }
.apps svg { width: 19px; height: 19px; }

.feature-ans { margin: 0 14px 26px; padding: 19px 18px; border-radius: 22px; transition: background 0.3s ease, color 0.3s ease; }
.feature-ans .s-lbl { color: inherit; opacity: 0.74; }
.feature-ans .s-ans { color: inherit; font-size: 16px; margin-top: 6px; }

.carousel { display: flex; gap: 10px; overflow-x: auto; padding: 0 14px 2px; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-padding-inline: 14px; }
.carousel::-webkit-scrollbar { display: none; }
.carousel .s-card { flex: none; width: 234px; min-height: 134px; padding: 15px 16px; border-radius: 20px; scroll-snap-align: start; }
.carousel .s-ans { font-size: 13px; margin-top: 5px; }
.cdots { display: flex; justify-content: center; gap: 5px; margin: 11px 0 26px; }
.cdots i { width: 5px; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--text3) 90%, transparent); transition: width 0.2s ease, background 0.2s ease; }
.cdots i.on { width: 14px; background: var(--dot, var(--accent)); }

.scale { padding: 13px 16px; }
.scale .ends { display: flex; justify-content: space-between; }
.scale .trackrow { display: flex; align-items: center; gap: 10px; margin-top: 7px; }
.scale .trackrow > svg { width: 22px; height: 22px; color: var(--text2); flex: none; }
.track { flex: 1; height: 28px; display: flex; position: relative; }
.track::before { content: ""; position: absolute; left: 7%; right: 7%; top: 13px; height: 1.5px; border-radius: 1px; background: var(--separator); }
.track > * { flex: 1; border: 0; background: none; padding: 0; display: grid; place-items: center; position: relative; }
.track > button { cursor: pointer; }
.track > *::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: color-mix(in srgb, var(--text3) 40%, transparent); transition: all 0.25s cubic-bezier(.3,1.4,.5,1); }
.track > .on::after { width: 14px; height: 14px; background: var(--dot, var(--accent)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65); }

.placecard { margin: 0 14px 26px; border-radius: 22px; overflow: hidden; }
.map { height: 150px; position: relative; overflow: hidden; }
.map svg.streets { position: absolute; inset: 0; width: 100%; height: 100%; }
.map .pin { position: absolute; left: 50%; top: 46%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,0.9), 0 3px 8px rgba(0,0,0,0.3); transition: background 0.3s ease; }
.map .pin svg { width: 16px; height: 16px; }
.placecard .info { padding: 14px 16px 15px; }
.placecard .pname { font: 600 14.5px/1.3 var(--sans); margin-top: 5px; display: flex; gap: 5px; align-items: center; }
.placecard .pname svg { width: 13px; height: 13px; }
.placecard .addr { font-size: 11px; color: var(--text2); }
.placecard .s-ans { margin-top: 6px; }

.arow { padding: 15px 16px; }
.arow .s-ans { margin-top: 5px; }

.addrow { display: flex; gap: 8px; margin: 0 14px 26px; }
.addbtn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 14px 4px; border-radius: 16px; color: var(--accent); font: 600 11px/1.1 var(--sans); text-align: center; border: 1px solid var(--glass-stroke); background: var(--card); background-image: var(--glass-sheen); cursor: pointer; }
.addbtn.inside { background: none; border: 1px solid var(--inner-stroke); box-shadow: none; }
.addbtn.sel { box-shadow: inset 0 0 0 1.5px var(--accent); border-color: transparent; }
.addbtn svg { width: 20px; height: 20px; }
a.addbtn { text-decoration: none; }

/* Find screen */
.disc { margin: 0 14px 18px; padding: 15px 16px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; border: 0; width: calc(100% - 28px); text-align: left; font: 600 14.5px/1 var(--sans); color: var(--text); }
.disc .chev { color: var(--text3); transition: transform 0.25s ease; font-size: 13px; }
.disc[aria-expanded="true"] .chev { transform: rotate(90deg); }
.toggles { margin: -8px 14px 22px; }
.toggle-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: start; padding: 14px 16px; }
.toggle-row b { display: block; font: 600 13.5px/1.3 var(--sans); }
.toggle-row span { display: block; font-size: 11.5px; color: var(--text2); margin-top: 3px; line-height: 1.35; }
/* Discoverability: one card, three settings that open their switch */
.disc-card { margin: 0 14px 18px; overflow: hidden; }
.disc-card .disc { margin: 0; width: 100%; background: none; }
.setting { display: flex; align-items: center; gap: 6px; width: 100%; padding: 12px 16px; border: 0; background: none; cursor: pointer; text-align: left; }
.setting .s-lbl { flex: 1; color: var(--text2); }
.setting .onoff { font: 600 11px/1 var(--sans); color: var(--text3); }
.setting .onoff.on { color: var(--success); }
.setting .chev { color: var(--text3); transition: transform 0.25s ease; }
.setting[aria-expanded="true"] .chev { transform: rotate(90deg); }
.disc-card .toggle-row { padding-top: 2px; }
.person .common { font-size: 11px; color: var(--text3); margin-top: 2px; }
.switch { width: 51px; height: 31px; border-radius: 16px; background: color-mix(in srgb, var(--text3) 35%, transparent); border: 0; padding: 0; position: relative; cursor: pointer; transition: background 0.2s ease; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.2); transition: transform 0.22s cubic-bezier(.3,1.3,.5,1); }
.switch[aria-checked="true"] { background: var(--toggle-on, #2E4533); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }
:root[data-theme="dark"] .switch[aria-checked="true"] { --toggle-on: #465B43; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .switch[aria-checked="true"] { --toggle-on: #465B43; } }

.person { display: flex; align-items: center; gap: 12px; padding: 13px 16px; }
.avatar { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; font: 600 17px/1 var(--serif); flex: none; }
.avatar.sm { width: 30px; height: 30px; border-radius: 10px; font-size: 13px; }
.person .who { flex: 1; min-width: 0; }
.person .nm { font: 600 14.5px/1.25 var(--sans); }
.person .hd { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text2); margin-top: 1px; }
.person .chev { color: var(--text3); font-size: 12px; }

.search {
  margin: 0 14px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  height: 52px;
  border-radius: 16px;
  background: var(--action);
  color: var(--on-action);
}
.search svg { width: 17px; height: 17px; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--on-action); font: 15px var(--sans); outline: none; }
.search input::placeholder { color: color-mix(in srgb, var(--on-action) 70%, transparent); }
.search .ph { font: 15px var(--sans); color: color-mix(in srgb, var(--on-action) 70%, transparent); }
.empty { margin: 10px 14px 18px; padding: 26px 20px; text-align: center; }
.empty svg { width: 30px; height: 30px; color: var(--text2); }
.empty b { display: block; font: 600 15px/1.3 var(--sans); margin-top: 8px; }
.empty span { display: block; font-size: 12px; color: var(--text2); margin-top: 3px; }
.invite { margin: 0 14px 26px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 13px; border-radius: 16px; color: var(--accent); font: 600 13px/1 var(--sans); }
.invite svg { width: 16px; height: 16px; }

/* Friends / Activities */
.seg {
  margin: 0 14px 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text3) 18%, transparent);
}
.seg span { text-align: center; padding: 9px 0; border-radius: 999px; font: 500 13.5px/1 var(--sans); color: var(--text); }
.seg span.on { background: var(--chosen); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.city { display: flex; justify-content: flex-end; align-items: center; gap: 5px; padding: 8px 20px 4px; font: 500 13px/1 var(--sans); color: var(--text2); }
.city svg { width: 13px; height: 13px; }

.act { padding: 16px; }
.act .top { display: flex; align-items: center; gap: 10px; }
.act .top .nm { font: 600 14px/1.2 var(--sans); flex: 1; }
.act .age { font-size: 11px; color: var(--text3); white-space: nowrap; }
.act .q { margin-top: 10px; }
.act .q .s-ans { font-size: 15.5px; margin-top: 3px; }
.act .bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.bubble { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; background: var(--quiet-bg); font: 600 12.5px/1 var(--sans); color: var(--text2); max-width: 70%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bubble.done { background: var(--done-bg); color: var(--success); }
.bubble svg { width: 12px; height: 12px; flex: none; }
.bubble .t { color: var(--text); }
.act .details { display: grid; gap: 10px; margin-top: 14px; }
.act-note { font-size: 11px; color: var(--text3); }
.responders { display: flex; gap: 6px; margin-top: 12px; min-height: 30px; }
.responders .avatar { animation: popin 0.35s cubic-bezier(.3,1.5,.5,1) both; }
@keyframes popin { from { transform: scale(0.4); opacity: 0; } }
.waiting { font: 600 12px/1.2 var(--sans); color: var(--text2); margin-top: 10px; }
.sugg { display: flex; align-items: center; gap: 10px; padding: 12px 16px; animation: popin 0.35s ease both; }
.sugg .who { flex: 1; min-width: 0; }
.sugg .who small { display: block; font-size: 11px; color: var(--text2); }
.sugg .who .s-ans { font-size: 15px; }

.compose .line { padding: 14px 16px; }
.compose .presets { display: flex; gap: 8px; }
.compose .own { margin-top: 8px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--inner-stroke); display: flex; gap: 8px; align-items: center; }
.compose .own.sel { box-shadow: inset 0 0 0 1.5px var(--accent); border-color: transparent; }
.compose .own input { flex: 1; min-width: 0; border: 0; background: none; font: 15px var(--type); color: var(--text); outline: none; }
.compose .own small { font-size: 11px; color: var(--text3); }
.compose .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.compose .cap { font-size: 11px; color: var(--text3); margin-top: 8px; }
.compose .lv { display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; }
.compose .lv .s-ans { font-size: 15px; margin-top: 3px; }
/* The When chips never wrap; on later days they're narrower, like the app's */
.compose .slots { flex-wrap: nowrap; gap: 6px; }
.compose .slots .pbtn { flex: none; padding-left: 9px; padding-right: 9px; }
.compose .desc-head { display: flex; justify-content: space-between; align-items: baseline; }
.compose .desc-head small { font-size: 11px; color: var(--text3); }
.compose .desc-input { width: 100%; margin-top: 5px; border: 0; background: none; padding: 0; font: 14px/1.3 var(--type); color: var(--text); outline: none; }
.compose .desc-input::placeholder { color: var(--text3); }
/* Today and the next six days: stops on a line, the chosen one named below */
.days { margin-top: 14px; --tint: var(--accent); }
.days .track { position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); align-items: center; height: 18px; }
.days .track::before { content: ""; position: absolute; top: 50%; height: 1.5px; background: var(--separator);
  left: calc(100% / var(--n) * (var(--start) + 0.5)); right: calc(100% / var(--n) * 0.5); }
.days .stop { position: relative; justify-self: center; width: 5px; height: 5px; border-radius: 50%; border: 0; padding: 0; background: var(--text3); cursor: pointer; }
.days .stop::after { content: ""; position: absolute; inset: -9px; background: none; border-radius: 50%; }
.days .stop.on { width: 13px; height: 13px; background: var(--tint); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
.act-band .days .stop { transition: width 0.25s cubic-bezier(.3,1.4,.5,1), height 0.25s cubic-bezier(.3,1.4,.5,1), background 0.2s ease; }
.act-band .days .day-label { transition: margin-left 0.3s ease; }
.days .day-label { font-size: 11px; color: var(--text2); margin-top: 6px; white-space: nowrap;
  margin-left: clamp(0px, calc(100% / var(--n) * (var(--at) + 0.5) - 3em), calc(100% - 6em)); }
.act .others { font-size: 11px; color: var(--text3); margin-top: 4px; }
.act-desc { margin: 12px 0 0; font: 13.5px/1.35 var(--type); color: var(--text); }
.addbtn.cal { flex-direction: row; justify-content: center; gap: 8px; padding: 11px 4px; width: 100%; }
.addbtn.cal svg { width: 16px; height: 16px; }
.act .addbtn.cal { margin: 0; }
.act > .addbtn.cal { margin-top: 12px; }
.filter-btn { border: 0; background: none; padding: 0; display: inline-flex; align-items: center; gap: 4px; font: 600 10px/1 var(--sans); color: var(--text3); cursor: pointer; }
.filter-btn .chev { transform: rotate(90deg); transition: transform 0.25s ease; }
.filter-btn[aria-expanded="true"] .chev { transform: rotate(-90deg); }
.filter-btn.active { color: var(--text); }
.filter-card { padding: 4px 14px 14px; }
.filter-card .days { margin-top: 10px; }
.filter-card .names { display: flex; gap: 6px; overflow-x: auto; margin-top: 12px; padding-bottom: 2px; scrollbar-width: none; }
.filter-card .names .pbtn { flex: none; }
.compose .lv .chev { color: var(--text3); font-size: 12px; transition: transform 0.25s ease; }
.compose .lv.open .chev { transform: rotate(90deg); }
.compose .lv.static { cursor: default; }
.compose .places { display: grid; gap: 6px; margin-top: 10px; }
.mainbtn { margin: 0 14px; height: 52px; border-radius: 16px; background: var(--action); color: var(--on-action); border: 0; font: 600 15px/1 var(--sans); width: calc(100% - 28px); cursor: pointer; }
.mainbtn:disabled { opacity: 0.4; cursor: default; }
.foot-cap { text-align: center; font-size: 11px; color: var(--text3); margin: 8px 24px 0; }

.sheet-title { position: absolute; top: 54px; left: 0; right: 0; height: 50px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 16px; }

.screen .view { transition: opacity 0.3s ease, transform 0.3s ease; }
.screen .view[hidden] { display: none !important; }

/* ---------- Find: the phone stays put while the four ways go by ---------- */

.find-story { --vh: 100vh; --stage-h: calc(var(--vh) - var(--header-h) - 16px); max-width: var(--wide); margin: 0 auto 20px; }
@supports (height: 100svh) { .find-story { --vh: 100svh; } }
.find-text { max-width: 480px; }
.find-intro { margin: 0 0 22px; }
.find-intro h3, .act-card h3 { margin-top: 0; }
/* The stage stays pinned for about a screen of scrolling (FIND_WAY per way in
   app.js), while the four ways go by. When stacked, the intro (--intro-h)
   scrolls away first. */
.find-scroll { position: relative; height: calc(var(--stage-h) + var(--intro-h, 0px) + var(--vh) * 1); }
.find-stage {
  position: sticky;
  top: calc(var(--header-h) + 8px - var(--intro-h, 0px));
  height: calc(var(--stage-h) + var(--intro-h, 0px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.find-visual { justify-self: end; }
.find-steps { list-style: none; margin: 0; padding: 0; max-width: 460px; display: grid; gap: 6px; }
.find-steps li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  opacity: 0.42;
  transition: opacity 0.4s ease, background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
/* The way being shown is a glass card, the others wait dimmed */
.find-steps li.on { opacity: 1; background-color: var(--card); background-image: var(--glass-sheen); border-color: var(--glass-stroke); box-shadow: var(--glass-shadow); }
.find-steps .ico { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; background: var(--featured); color: var(--featured-ink); }
.find-steps .ico svg { width: 22px; height: 22px; }
.find-steps b { display: block; font: 600 16px/1.3 var(--sans); margin-top: 8px; }
/* Opened by height, not by grid rows: Safari sized those rows too short */
.find-more { max-height: 0; overflow: hidden; transition: max-height 0.45s cubic-bezier(.3, .9, .4, 1); }
.find-more > span { display: block; font-size: 14.5px; line-height: 1.45; color: var(--text2); }
.find-steps li.on .find-more { max-height: 8em; }
.find-visual .s-scroll { transition: opacity 0.26s ease; }
.find-steps li { cursor: pointer; }
.find-steps li:not(.on):hover { opacity: 0.7; }
.find-visual .screen.resetting .s-scroll { opacity: 0; }
.find-note { padding: 16px; }
.search .field { flex: 1; min-width: 0; font: 15px var(--sans); color: var(--on-action); }
.search .field:empty::before { color: color-mix(in srgb, var(--on-action) 70%, transparent); }
.search .field.caret::after { background: var(--on-action); }
.sheet.share-sheet { top: 452px; }
.share-head { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; padding: 14px 4px 2px; }
.share-head .appicon { width: 44px; height: 44px; border-radius: 22.37%; box-shadow: 0 0 0 0.5px var(--faint-edge); }
.share-head b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 600 13.5px/1.3 var(--sans); }
.share-head span { display: block; margin-top: 2px; font-size: 12px; color: var(--text3); }
.share-sheet .sys-row svg { color: var(--text2); }
.share-sheet .share-edit { color: var(--accent); }

/* ---------- Activities: moments from the app, fanned out from the card ---------- */

.act-show { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; max-width: var(--wide); margin: 0 auto 150px; padding: var(--fan, 0px) 0 40px; }
/* Full width, behind the card; cut at the sides only, so the phones keep their shadows */
.act-band { position: absolute; top: 0; bottom: 0; left: calc(50% - 50vw); width: 100vw; overflow: hidden; overflow-x: clip; overflow-y: visible; }
.act-track { position: absolute; inset: 0; }
.act-slot { position: absolute; left: 0; top: 0; transform-origin: 50% 50%; }
.act-band .phone-wrap { --z: var(--az); }
/* Over flat paper the blur shows nothing, and moving it costs a lot */
.act-band .screen * { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.act-band .s-header .hdr-glass { background: color-mix(in srgb, var(--paper-page) 93%, transparent); }
.act-band .s-tabbar { background: color-mix(in srgb, var(--paper-page) 88%, transparent); }
.act-band .s-scroll { transition: opacity 0.35s ease; }
.act-band .screen.resetting .s-scroll { opacity: 0; }
.act-front { position: relative; z-index: 20; width: 100%; max-width: 600px; }
/* Solid, so the card stands clear of the phones behind it */
.act-front .glass {
  background: var(--paper);
  background-image: var(--glass-sheen);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 1px 2px rgba(30, 35, 25, 0.06), 0 18px 40px -16px rgba(30, 35, 25, 0.32);
}
.act-card { padding: 30px 32px 8px; text-align: center; border-radius: var(--r-xl); }
.act-card .lede { color: var(--text2); margin: 0; }
/* The features as lines of the same card */
.act-points { margin-top: 24px; text-align: left; }
.act-points .subpoint { padding: 15px 2px; border-radius: 0; border-top: 1px solid var(--separator); }

/* A finger on the screen, like a screen recording's touches */
.touch {
  position: absolute;
  z-index: 9;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--text) 16%, transparent);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--text) 14%, transparent);
  pointer-events: none;
  animation: touch 0.6s ease-out forwards;
}
@keyframes touch { 0% { transform: scale(0.55); opacity: 0; } 25% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.2); opacity: 0; } }
.act-band .pressed { transform: scale(0.96); }

/* Opens and closes by its height */
.reveal { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.45s cubic-bezier(.3, .9, .4, 1), opacity 0.35s ease; }
.reveal.open { grid-template-rows: 1fr; opacity: 1; }
.reveal > div { min-height: 0; overflow: hidden; }
.reveal { --rv: 0px; }
.reveal .rv { padding-top: var(--rv); }
.act-stack { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; }
.act-stack > .reveal { --rv: 12px; margin-top: -12px; }
.act-stack .addrow { margin: 0; }
.field:empty::before { content: attr(data-ph); color: var(--text3); }
.field.caret::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 1px; vertical-align: -0.18em; border-radius: 1px; background: var(--accent); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.compose .own .field { flex: 1; min-width: 0; font: 15px/1.3 var(--type); color: var(--text); }
.compose .desc-input.field { min-height: 18px; }
.mainbtn.busy { opacity: 0.7; }

/* Own suggestion, open */
.act .q-row { display: flex; align-items: flex-start; gap: 8px; }
.act .q-row .q { flex: 1; margin-top: 0; }
.act .q-row .age { margin-top: 1px; }
.act .q-row .chev { color: var(--text3); margin-top: 3px; }
.chev.open { transform: rotate(90deg); }
.bubble.flash { animation: flash 1s ease; }
@keyframes flash { 30% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); background: var(--chosen); } }
.inner { border: 1px solid var(--inner-stroke); border-radius: 16px; }
.inner-head { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; }
.inner-head .s-lbl { color: var(--text2); }
.inner-head .chev { color: var(--text3); transition: transform 0.25s ease; }
.inner-empty { padding: 14px 16px; }
.inner .quip { font: 14px/1.3 var(--type); color: var(--text3); margin-top: 5px; }
.inner .person { padding: 10px 16px; }
.inner .person .avatar { animation: popin 0.4s cubic-bezier(.3, 1.5, .5, 1) both; }
.inner .sugg { animation: none; }
.cancel-line { padding: 13px 16px; font: 600 12.5px/1 var(--sans); color: var(--destructive); }
.act-map.map { height: 124px; border-radius: 16px; }
.sugg-map { padding: 0 16px 12px; }
.act-map .pin svg { width: 15px; height: 15px; }
.reveal.open .act-map .pin { animation: pindrop 0.7s 0.2s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes pindrop { from { transform: translateY(-34px) scale(0.6); opacity: 0; } }

/* Push banner, under the island */
.push {
  position: absolute;
  top: 54px;
  left: 10px;
  right: 10px;
  z-index: 7;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 26px;
  background: var(--menu-bg);
  box-shadow: inset 0 0 0 1px var(--glass-stroke), 0 12px 30px -10px rgba(0, 0, 0, 0.35);
  transform: translateY(-190px);
  transition: transform 0.6s cubic-bezier(.3, 1.2, .5, 1);
}
.push.in { transform: none; }
.act-band .push { background: color-mix(in srgb, var(--print) 90%, var(--paper-page)); }
.push .appicon { width: 38px; height: 38px; border-radius: 22.37%; box-shadow: 0 0 0 0.5px var(--faint-edge); }
.push .ph { display: flex; justify-content: space-between; align-items: baseline; font: 600 13.5px/1.2 var(--sans); }
.push .ph span { font: 12px/1 var(--sans); color: var(--text3); }
.push p { margin: 2px 0 0; font-size: 13px; line-height: 1.3; }

/* Sheets: the system's new-event sheet and the app's own */
.sheet-dim { position: absolute; inset: 0; z-index: 6; background: rgba(0, 0, 0, 0.22); opacity: 0; transition: opacity 0.4s ease; }
.sheet-dim.in { opacity: 1; }
.sheet {
  position: absolute;
  left: 0;
  right: 0;
  top: 58px;
  bottom: 0;
  z-index: 7;
  border-radius: 38px 38px 0 0;
  overflow: hidden;
  transform: translateY(104%);
  transition: transform 0.5s cubic-bezier(.3, .95, .4, 1);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.12);
}
.sheet.in { transform: none; }
.sys-sheet { background: color-mix(in srgb, var(--text3) 14%, var(--paper-page)); padding: 8px 16px; font-size: 15.5px; }
.sheet-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 50px; }
.sheet-head b { font: 600 16px/1 var(--sans); }
.sheet-head span { color: var(--accent); font: 15px/1 var(--sans); }
.sheet-head span:last-child { justify-self: end; font-weight: 600; }
.sys-group { background: var(--print); border-radius: 12px; margin-top: 18px; }
.sys-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 46px; padding: 0 16px; }
.sys-row + .sys-row { border-top: 1px solid var(--separator); }
.sys-row .v { color: var(--text3); display: inline-flex; align-items: center; gap: 6px; }
.sys-row .chip { background: var(--quiet-bg); color: var(--text); border-radius: 8px; padding: 6px 10px; }
.sys-row .sw { width: 51px; height: 31px; border-radius: 16px; background: color-mix(in srgb, var(--text3) 30%, transparent); position: relative; }
.sys-row .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); }
.sys-row .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mu5); }
/* Chat */
.screen.chat .s-header { height: 172px; }
.screen.chat .hdr-glass { background: color-mix(in srgb, var(--paper-page) 86%, transparent); }
.chat-topic { position: absolute; left: 0; right: 0; top: 108px; display: flex; align-items: center; gap: 8px; padding: 0 20px; }
.chat-topic > div { flex: 1; min-width: 0; }
.chat-topic .tq { font: 14px/1.3 var(--type); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-topic .tw { font-size: 12px; color: var(--text2); margin-top: 2px; }
.chat-topic .chev { color: var(--text3); }
.s-act.back { display: inline-flex; color: var(--accent); }
.chat-msgs { position: absolute; left: 0; right: 0; top: 0; bottom: 86px; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 14px; overflow: hidden; }
.chat-msgs > * { flex: none; }
.grow { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.4s ease; }
.grow.new { grid-template-rows: 0fr; }
.grow > div { min-height: 0; overflow: hidden; padding: 3px 2px 5px; }
.grow.new .msg, .grow.new .chat-line { opacity: 0; transform: translateY(10px) scale(0.97); }
.msg, .chat-line { transition: opacity 0.35s ease, transform 0.4s cubic-bezier(.3, 1.3, .5, 1); }
.msg {
  width: fit-content;
  max-width: calc(100% - 52px);
  padding: 8px 13px 10px;
  border-radius: 18px;
  background: var(--card);
  background-image: var(--glass-sheen);
  border: 1px solid var(--glass-stroke);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.03), 0 3px 8px -6px rgba(0, 0, 0, 0.2);
}
.msg.mine { margin-left: auto; }
.msg .nm { font: 600 11.5px/1.2 var(--sans); color: color-mix(in srgb, var(--c) 72%, var(--text)); margin-bottom: 5px; }
.msg .tx { font: 15px/1.3 var(--type); }
.msg .quote { margin-bottom: 5px; padding: 6px 10px; border-radius: 10px; background: color-mix(in srgb, var(--text) 5%, transparent); box-shadow: inset 0 0 0 1px var(--inner-stroke); font: 12.5px/1.3 var(--type); color: var(--text2); }
.msg .quote b { display: block; font: 600 11px/1.3 var(--sans); }
.msg .typing { height: 18px; }
.chat-line { margin: 10px 0; padding: 9px 12px; border-radius: 16px; text-align: center; font: 500 12.5px/1.3 var(--sans); color: var(--text2); background: var(--card); background-image: var(--glass-sheen); border: 1px solid var(--glass-stroke); }
.chat-input { position: absolute; left: 14px; right: 14px; bottom: 34px; display: flex; align-items: flex-end; gap: 8px; }
.chat-input .field { flex: 1; min-height: 40px; padding: 10px 14px; border-radius: 20px; font: 15px/1.3 var(--type); background: var(--card); background-image: var(--glass-sheen); border: 1px solid var(--glass-stroke); }
.chat-input .send { width: 38px; height: 38px; margin-bottom: 1px; border-radius: 50%; display: grid; place-items: center; background: var(--action); color: var(--on-action); opacity: 0.4; transition: opacity 0.2s ease; }
.chat-input .send.ready { opacity: 1; }
.chat-input .send svg { width: 15px; height: 15px; }


/* ---------- The Bindery ---------- */

html.bindery-open { scroll-padding-top: 168px; }

.chapters {
  position: fixed;
  left: 0;
  right: 0;
  top: calc(var(--header-h) + env(safe-area-inset-top, 0px) - 4px);
  height: 84px;
  z-index: 49;
  pointer-events: none;
}
.chapters .hdr-shadow > div, .ch-glass { clip-path: var(--torn-sub, none); }
.ch-glass {
  position: absolute;
  inset: 0;
  background: var(--glass-sub);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
}
.ch-row {
  position: absolute;
  left: 0;
  right: 0;
  top: 24px;
  display: flex;
  justify-content: center;
  padding-inline: max(16px, env(safe-area-inset-left, 0px));
  pointer-events: auto;
}
.ch-seg {
  position: relative;
  display: flex;
  gap: 2px;
  max-width: 100%;
  padding: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text3) 18%, transparent);
  overflow-x: auto;
  scrollbar-width: none;
}
.ch-seg::-webkit-scrollbar { display: none; }
.ch-seg button {
  flex: none;
  border: 0;
  background: none;
  padding: 9px 14px;
  border-radius: 999px;
  font: 500 13.5px/1 var(--sans);
  color: var(--text);
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.ch-seg button.on { background: var(--chosen); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }

.why-co {
  margin-top: 22px;
  max-width: 560px;
  padding: 16px 18px;
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--inviting) 82%, transparent);
  border: 1px solid color-mix(in srgb, var(--inviting-text) 22%, transparent);
  color: var(--text);
}
.why-co .label { color: var(--inviting-text); }
.why-co .why-text { margin: 6px 0 0; font: 15px/1.5 var(--type); }
.why-co .why-role { margin: 12px 0 0; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font: 600 14px/1.3 var(--sans); }
.why-co .why-role .label { color: var(--inviting-text); opacity: 0.8; }

.gate { min-height: 100svh; display: grid; place-items: center; padding-block: calc(var(--header-h) + 40px) 60px; }
.gate .card { max-width: 440px; width: 100%; padding: 30px 26px 26px; text-align: center; }
.gate .bk { width: 74px; height: 74px; color: var(--inviting-text); margin: 0 auto; display: block; }
.gate h1 { font: 600 36px/1.1 var(--serif); margin: 14px 0 0; }
.gate p { color: var(--text2); margin: 10px 0 0; font-size: 15.5px; }
.gate form { display: grid; gap: 10px; margin-top: 22px; text-align: left; }
.gate .err { min-height: 20px; margin: 0; font-size: 13px; color: var(--destructive); text-align: center; }
.gate .card.shake { animation: shake 0.4s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }

.b-hero { padding-top: calc(var(--header-h) + 140px + env(safe-area-inset-top, 0px)); max-width: var(--wide); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }
.b-hero .eyebrow { color: var(--inviting-text); }
.b-hero h1 { font: 600 clamp(38px, 5.6vw, 60px)/1.04 var(--serif); letter-spacing: -0.02em; margin: 12px 0 0; }
.b-hero .intro { font-size: 18px; color: var(--text2); margin: 18px 0 0; max-width: 560px; }
.facts { margin-top: 26px; overflow: hidden; }
.facts .arow { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: baseline; }
.facts .arow .s-ans { margin: 0; font-size: 15px; }
.facts .s-lbl { font-size: 10.5px; }

.b-sec { max-width: var(--wide); margin: 150px auto 0; }
.b-sec .sec-head { text-align: left; margin: 0 0 40px; max-width: 720px; }
.b-sec .sec-head .sub { max-width: 640px; }

.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.why { padding: 22px 22px 20px; }
.why .w-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--featured); color: var(--featured-ink); }
.why .w-ico svg { width: 25px; height: 25px; }
.why h4 { font: 600 21px/1.2 var(--serif); margin: 14px 0 6px; }
.why p { margin: 0; font-size: 15px; color: var(--text2); line-height: 1.5; }
.why ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.why li { font: 13.5px/1.45 var(--type); padding-left: 16px; position: relative; }
.why li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 2px; background: var(--mu3); }

.stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.stack span { padding: 8px 13px; border-radius: 999px; font: 600 12.5px/1 var(--sans); color: var(--text2); }

.jtbd { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.jtbd .glass { overflow: hidden; }
.jtbd .who { padding: 14px 16px 12px; display: flex; gap: 10px; align-items: center; border-bottom: 1px solid var(--separator); }
.jtbd .who svg { width: 26px; height: 26px; color: var(--text2); }
.jtbd .who b { font: 600 15px/1.25 var(--sans); }

/* Opportunity solution tree */
.ost-scroll { overflow-x: auto; padding-bottom: 8px; margin-inline: -4px; padding-inline: 4px; }
.ost { min-width: 900px; }
.ost-outcome { width: 420px; margin: 0 auto; padding: 16px 20px; text-align: center; border-radius: var(--r-lg); background: var(--card); background-image: var(--glass-sheen); box-shadow: inset 0 0 0 1.5px var(--text), var(--glass-shadow); color: var(--text); position: relative; }
.ost-outcome .s-lbl { color: var(--text3); }
.ost-legend i.ost-key-outcome { border: 0; box-shadow: inset 0 0 0 1.5px var(--text); }
.ost-outcome b { display: block; font: 600 18px/1.3 var(--serif); margin-top: 6px; }
.ost-outcome::after { content: ""; position: absolute; left: 50%; bottom: -26px; height: 26px; border-left: 1.5px solid var(--inner-stroke); }
.ost-branches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 52px; position: relative; }
.ost-branches::before { content: ""; position: absolute; top: -26px; left: calc((100% - 42px) / 8); right: calc((100% - 42px) / 8 - 1.5px); border-top: 1.5px solid var(--inner-stroke); }
.ost-branch { position: relative; display: grid; gap: 10px; align-content: start; }
.ost-branch::before { content: ""; position: absolute; top: -26px; left: 50%; height: 26px; border-left: 1.5px solid var(--inner-stroke); }
.ost-opp { padding: 14px 15px; border-radius: var(--r-md); }
.ost-opp .s-ans { font-size: 14px; margin-top: 5px; }
.ost-sol { padding: 11px 13px; border-radius: 14px; border: 1px solid var(--inner-stroke); font: 600 13px/1.35 var(--sans); display: flex; gap: 8px; align-items: center; background: color-mix(in srgb, var(--paper) 70%, transparent); }
.ost-sol svg { width: 18px; height: 18px; color: var(--text2); flex: none; }
.ost-sol.wip { border-style: dashed; color: var(--text2); }
.ost-exp { padding: 9px 12px; border-radius: 12px; font: 12px/1.4 var(--type); color: var(--featured-ink); background: var(--featured); }
.ost-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: 13px; color: var(--text2); }
.ost-legend span { display: inline-flex; align-items: center; gap: 7px; }
.ost-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
#b-loops .split, #b-start .split { align-items: start; }

/* Headlines with a set line break: room for the first line, then the rest wraps naturally. */
#hello, #b-why h2, #b-jobs h2, #b-tree h2, #b-start h2, #b-start .sub { text-wrap: wrap; text-wrap: pretty; }
#b-why .sec-head, #b-jobs .sec-head, #b-tree .sec-head, #b-start .sec-head, #b-start .sec-head .sub { max-width: none; }
.steps { display: grid; gap: 10px; counter-reset: s; }
.step { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 15px 16px; border-radius: var(--r-md); }
.step::before { counter-increment: s; content: counter(s); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 600 14px/1 var(--serif); background: var(--chosen); box-shadow: inset 0 0 0 1px var(--inner-stroke); }
.step b { display: block; font: 600 15.5px/1.3 var(--sans); }
.step span { display: block; font-size: 14px; color: var(--text2); line-height: 1.45; margin-top: 3px; }

.netviz { width: 100%; height: auto; display: block; }
.netviz .edge { stroke: var(--inner-stroke); stroke-width: 1.5; }
.netviz text { font: 600 12px var(--sans); fill: var(--text2); letter-spacing: 0.6px; }
.net-card { padding: 10px; }
.net-ctrl { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; padding: 6px 0 4px; }

.loops-tabs { display: inline-flex; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--text3) 18%, transparent); margin-bottom: 22px; }
.loops-tabs button { border: 0; background: none; padding: 9px 18px; border-radius: 999px; font: 500 14px/1 var(--sans); color: var(--text); cursor: pointer; }
.loops-tabs button[aria-selected="true"] { background: var(--chosen); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.loop-list { display: grid; gap: 10px; }
.loop-item { text-align: left; border: 0; width: 100%; cursor: pointer; padding: 15px 16px; border-radius: var(--r-md); display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; color: var(--text); }
.loop-item .li-ico { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--quiet-bg); color: var(--text2); }
.loop-item .li-ico svg { width: 22px; height: 22px; }
.loop-item b { display: block; font: 600 15.5px/1.3 var(--sans); }
.loop-item span { display: block; font-size: 14px; color: var(--text2); margin-top: 3px; line-height: 1.45; }
.loop-item[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--accent), var(--glass-shadow); }
.loop-item[aria-pressed="true"] .li-ico { background: var(--chosen); color: var(--accent); box-shadow: inset 0 0 0 1px var(--inner-stroke); }
.loopviz { width: 100%; max-width: 460px; height: auto; display: block; margin: 0 auto; overflow: visible; }
.loopviz .ring { fill: none; stroke: var(--inner-stroke); stroke-width: 1.5; stroke-dasharray: 4 6; }
.loopviz .node rect { fill: var(--paper); stroke: var(--inner-stroke); }
.loopviz .node text { font: 13px var(--type); fill: var(--text); }
.loopviz .runner { fill: var(--inviting-text); }
.loopviz .centre { font: 600 16px var(--serif); fill: var(--text); }
.loopviz .centre-sub { font: 600 10px var(--sans); fill: var(--text3); letter-spacing: 1.4px; }

.back-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 20px; }
.back-tiles .glass { padding: 16px; }
.back-tiles svg { width: 28px; height: 28px; color: var(--accent); }
.back-tiles b { display: block; font: 600 15px/1.25 var(--sans); margin-top: 10px; }
.back-tiles span { display: block; font-size: 13px; color: var(--text2); margin-top: 3px; line-height: 1.4; }

.pipe { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.pipe-one { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.pipe-one .gift { margin-top: 0; }
.pipe > .glass { padding: 22px; }
.pipe h4 { font: 600 22px/1.2 var(--serif); margin: 8px 0 6px; }
.pipe-one p:not(.label) { margin: 0; color: var(--text2); font-size: 15px; }
.cycle { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; position: relative; }
.cycle div { padding: 12px; border-radius: 14px; border: 1px solid var(--inner-stroke); background: color-mix(in srgb, var(--paper) 70%, transparent); }
.cycle b { display: block; font: 600 13.5px/1.25 var(--sans); }
.cycle span { display: block; font-size: 12.5px; color: var(--text2); margin-top: 4px; line-height: 1.4; }
.cycle-foot { margin-top: 10px; font-size: 12.5px; color: var(--text3); display: flex; align-items: center; gap: 6px; }
.metrics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.metrics span { padding: 6px 10px; border-radius: 10px; background: var(--quiet-bg); font: 600 11.5px/1.2 var(--sans); color: var(--text2); }

.wip-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font: 700 10px/1 var(--sans); letter-spacing: 1.2px; text-transform: uppercase; color: var(--inviting-text); background: var(--inviting); }
.wip-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.gift { margin-top: 18px; border-radius: 20px; overflow: hidden; border: 1px solid var(--inner-stroke); background: color-mix(in srgb, var(--paper) 70%, transparent); }
.gift .g-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--separator); }
.gift .g-head b { font: 600 14px/1.2 var(--sans); flex: 1; }
.gift .g-head svg { width: 22px; height: 22px; color: var(--text2); }
.gift .g-body { padding: 12px 14px 14px; display: grid; gap: 8px; min-height: 196px; }
.gift .sig { display: flex; flex-wrap: wrap; gap: 6px; }
.gift .sig span { font: 12px/1.3 var(--type); padding: 5px 9px; border-radius: 9px; background: var(--quiet-bg); color: var(--text2); opacity: 0; transform: translateY(4px); transition: all 0.35s ease; }
.gift .sig span.in { opacity: 1; transform: none; }
.gift .idea { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--chosen); box-shadow: inset 0 0 0 1px var(--inner-stroke); opacity: 0; transform: translateY(6px); transition: all 0.4s ease; }
.gift .idea.in { opacity: 1; transform: none; }
.gift .idea svg { width: 26px; height: 26px; color: var(--accent); }
.gift .idea b { display: block; font: 600 13.5px/1.25 var(--sans); }
.gift .idea span { display: block; font-size: 11.5px; color: var(--text2); }
.typing { display: inline-flex; gap: 4px; align-items: center; height: 20px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text3); animation: bounce 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%, 80%, 100% { transform: translateY(0); opacity: 0.5; } 40% { transform: translateY(-4px); opacity: 1; } }
.planned { margin-top: 16px; display: grid; gap: 6px; }
.planned div { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 13px; color: var(--text2); line-height: 1.45; }
.planned div i { font: 600 12px/22px var(--serif); text-align: center; border-radius: 50%; width: 22px; height: 22px; background: var(--quiet-bg); color: var(--text2); font-style: normal; }

.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.roadmap .glass { padding: 18px 18px 20px; }
.roadmap .when { display: flex; justify-content: space-between; align-items: baseline; }
.roadmap .when b { font: 600 20px/1 var(--serif); }
.roadmap ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 9px; }
.roadmap li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; font-size: 14px; line-height: 1.4; }
.roadmap li .bx { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--inner-stroke); margin-top: 2px; }
.roadmap li .bx.ok { background: var(--success); border-color: var(--success); }

.contact { max-width: 760px; margin: 150px auto 0; text-align: center; }

/* ---------- Privacy Policy and Terms of Use ---------- */

.legal-doc { max-width: 760px; margin: 0 auto; }
.legal-head { padding-top: calc(var(--header-h) + 128px + env(safe-area-inset-top, 0px)); margin-bottom: 34px; }
.legal-head h1 { font: 600 clamp(38px, 5.6vw, 56px)/1.05 var(--serif); letter-spacing: -0.02em; margin: 10px 0 0; }
.legal-head .updated { margin: 12px 0 0; font-size: 14px; color: var(--text2); }
.legal-body { display: grid; gap: 14px; }
.legal-card { padding: 24px 26px 22px; font-size: 15.5px; line-height: 1.62; }
.legal-card h2 { font: 600 23px/1.25 var(--serif); margin: 0 0 12px; }
.legal-card h3 { font: 600 15px/1.35 var(--sans); margin: 20px 0 4px; }
.legal-card p, .legal-card ul { margin: 0 0 12px; }
.legal-card p:last-child, .legal-card ul:last-child { margin-bottom: 0; }
.legal-card ul { padding-left: 20px; }
.legal-card li { margin-bottom: 7px; }
.legal-card li::marker { color: var(--text3); }
.legal-card hr { border: 0; border-top: 1px solid var(--separator); margin: 18px 0; }
.legal-card strong { font-weight: 650; }
.legal-foot { max-width: 760px; margin-top: 70px; }
.legal-note { max-width: 760px; margin: -40px auto 80px; }

/* Mockup notes */
.note {
  display: none;
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1.5px dashed color-mix(in srgb, var(--inviting-text) 60%, transparent);
  border-radius: 12px;
  font: 12.5px/1.45 var(--sans);
  color: var(--inviting-text);
  background: color-mix(in srgb, var(--inviting) 55%, transparent);
  text-align: left;
}
.note b { font-weight: 700; }
body.notes .note { display: block; }
.dock {
  position: fixed;
  left: max(14px, env(safe-area-inset-left, 0px));
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: flex;
  gap: 8px;
}
.notes-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: 999px;
  font: 600 12.5px/1 var(--sans);
  color: var(--inviting-text);
  background: var(--inviting);
  border: 1px solid color-mix(in srgb, var(--inviting-text) 30%, transparent);
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}
.notes-toggle i { width: 8px; height: 8px; border-radius: 50%; background: color-mix(in srgb, var(--inviting-text) 35%, transparent); }
body.notes .notes-toggle i { background: var(--inviting-text); }

/* Edit texts */
body.editing .dock { display: none; }
body.editing .ed-hover { outline: 1.5px dashed var(--inviting-text); outline-offset: 3px; border-radius: 3px; cursor: text; }
body.editing .ed-done { box-shadow: 0 2px 0 -0.5px color-mix(in srgb, var(--inviting-text) 70%, transparent); }
.edit-bar {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 70;
  width: min(680px, calc(100vw - 24px));
  display: flex;
  align-items: center;
  gap: 8px 10px;
  flex-wrap: wrap;
  padding: 10px 10px 10px 16px;
  border-radius: 20px;
  background: var(--inviting);
  color: var(--inviting-text);
  border: 1px solid color-mix(in srgb, var(--inviting-text) 30%, transparent);
  box-shadow: 0 14px 40px -14px rgba(0, 0, 0, 0.45);
  font: 13px/1.35 var(--sans);
}
.edit-bar .eb-text { flex: 1 1 220px; }
.edit-bar .eb-count { font-weight: 700; white-space: nowrap; }
.edit-panel {
  position: fixed;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 71;
  width: min(600px, calc(100vw - 24px));
  padding: 16px;
  border-radius: 22px;
  background: var(--menu-bg);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid var(--glass-stroke);
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.08);
  display: grid;
  gap: 10px;
  animation: pop 0.18s ease-out;
}
.edit-panel .ep-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.edit-panel .ep-tip { font-size: 12px; color: var(--text3); }
.edit-panel textarea {
  width: 100%;
  min-height: 84px;
  max-height: 40vh;
  resize: vertical;
  border-radius: var(--r-md);
  border: 1px solid var(--inner-stroke);
  background: color-mix(in srgb, var(--paper) 75%, transparent);
  padding: 12px 14px;
  font: 16px/1.5 var(--sans);
  color: var(--text);
}
.edit-panel textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.edit-panel .ep-orig { margin: 0; font-size: 12.5px; color: var(--text2); }
.edit-panel .ep-row { display: flex; gap: 8px; align-items: center; }
.edit-panel .sp { flex: 1; }
.edit-panel .ep-status { margin: 0; min-height: 0; font-size: 12.5px; color: var(--destructive); }
.edit-panel .ep-status:empty { display: none; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .feature, .feature.reverse, .b-hero, .split, .pipe, .pipe-one { grid-template-columns: 1fr; gap: 40px; }
  .pipe-one { gap: 22px; }
  .feature.reverse .f-text { order: 0; }
  .feature .f-text { max-width: 620px; }
  .more-grid, .three, .jtbd, .roadmap { grid-template-columns: 1fr 1fr; }
  .back-tiles { grid-template-columns: 1fr 1fr; }
  .b-hero .phone-wrap { justify-self: center; }
}

@media (max-width: 640px) {
  :root { --header-h: 58px; }
  body { font-size: 16px; }
  .store-pill .long { display: none; }
  .store-pill .short { display: inline; }
  .dict ol { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .mv { grid-template-columns: 1fr; }
  .mv > div + div { border-left: 0; border-top: 1px solid var(--separator); }
  .more-grid .widget-tile { grid-column: auto; }
  .ingredients { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .more-grid .quiz-tile { grid-template-columns: 1fr; }
  .more-grid .quiz-tile b { margin-top: 12px; }
  .values > div + div { border-left: 0; border-top: 1px solid var(--separator); }
  .more-grid, .three, .jtbd, .roadmap, .back-tiles { grid-template-columns: 1fr; }
  .tiles { gap: 8px; }
  .tile { min-height: 96px; font-size: 12.5px; padding: 14px 6px; }
  .feature .f-visual.duo { flex-direction: column; align-items: center; }
  .feature .f-visual.duo .phone-wrap:last-child { margin-top: 0; }
  .feature { margin-bottom: 110px; }
  .facts .arow { grid-template-columns: 1fr; gap: 4px; }
  .legal-card { padding: 20px 18px 18px; font-size: 15px; }
  .cycle { grid-template-columns: 1fr; }
  .hdr-title { font-size: 16px; }
  .widget-tile { grid-template-columns: 1fr; }
  .ch-row { justify-content: flex-start; }
  .ch-seg button { padding: 9px 12px; font-size: 13px; }
  .hero { padding-bottom: 72px; }
}

@media (max-width: 380px) {
}

/* Stacked: the phone pinned on top, the list under it */
@media (max-width: 980px) {
  .find-stage { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: start; justify-items: center; gap: 14px; padding-top: 6px; }
  .find-text { display: contents; }
  .find-intro { order: -1; width: 100%; max-width: 560px; margin: 0 0 24px; }
  .find-visual { justify-self: center; }
  .find-visual .phone-wrap { transform: translateY(var(--shift, 0px)); transition: transform 0.7s cubic-bezier(.3, .9, .3, 1); }
  /* Only the way being shown, as a solid card over the phone (where: --card-top, app.js) */
  .find-steps {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    top: var(--card-top, 0px);
    width: var(--card-w, 346px);
    max-width: none;
    margin-inline: auto;
    grid-template-areas: "way";
    align-items: start;
    gap: 0;
    transition: top 0.7s cubic-bezier(.3, .9, .3, 1);
  }
  .find-steps li {
    grid-area: way;
    padding: 13px 14px;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(.3, .9, .3, 1);
  }
  .find-steps li.on {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    background-color: var(--paper);
    box-shadow: 0 1px 2px rgba(30, 35, 25, 0.06), 0 18px 40px -16px rgba(30, 35, 25, 0.32);
  }
  .find-steps li .find-more { max-height: 8em; }
  .find-steps b { font-size: 15px; }
}
@media (max-width: 640px) {
  .act-show { margin-bottom: 110px; }
  .find-story { margin-bottom: 20px; }
  .act-card { padding: 24px 20px 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
