/* Jules site foundation: tokens, type and components for the marketing and content pages.
   Pages opt in with <body class="jl">. Long-form pages add "reading" (or "blog") for a heavier serif.
   Colour is written in sRGB, then lifted into Display P3 where the screen supports it.
   Fonts: Open Runde is self-hosted; Crimson Pro and Shantell Sans load from Google Fonts in each page head. */

@font-face { font-family: 'Open Runde'; src: url('/apps/web/assets/fonts/OpenRunde-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Open Runde'; src: url('/apps/web/assets/fonts/OpenRunde-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Open Runde'; src: url('/apps/web/assets/fonts/OpenRunde-Semibold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Open Runde'; src: url('/apps/web/assets/fonts/OpenRunde-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  /* surfaces */
  --canvas: #FBF9F6;
  --card: #FFFFFF;
  --sunk: #F3F1EE;
  /* ink */
  --ink: #1F1C19;
  --ink-2: #5F5952;
  --ink-3: #8A837B;
  --line: rgba(31, 28, 25, .1);
  --hair: rgba(31, 28, 25, .06);
  /* one pastel per part of the product */
  --dawn: #FFE8D3;
  --butter: #FFF7D9;
  --sage: #E6F7EA;
  --peri: #ECF0FF;
  --peach: #FFEDE3;
  /* accents */
  --butter-strong: #FFE27A;
  --pen: #2F5BD3;
  --go: #16A34A;
  /* sticky notes */
  --postit-yellow: #FFEC7E;
  --postit-blue: #BCDDFC;
  --postit-green: #C4EEC6;
  --postit-pink: #FFC7DC;
  /* type */
  --serif: 'Crimson Pro', 'Iowan Old Style', Georgia, serif;
  --serif-track: -0.012em;
  --serif-weight: 200;
  --sans: 'Open Runde', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --hand: 'Shantell Sans', 'Segoe Print', cursive;
  /* shape */
  --r-xs: 8px; --r-sm: 14px; --r-md: 22px; --r-lg: 30px; --r-xl: 48px;
  --shadow-card: 0 14px 28px -24px rgba(31, 28, 25, .16);
  --shadow-float: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 0 0 1px rgba(31, 28, 25, .06), 0 10px 28px -14px rgba(31, 28, 25, .28);
  --paper: url('/apps/web/assets/site/paper-512.png');
  --check: url('/apps/web/assets/site/icons/check.svg');
  --cross: url('/apps/web/assets/site/icons/cross.svg');
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
}
@supports (color: color(display-p3 1 1 1)) {
  :root {
    --dawn: color(display-p3 0.9916 0.9112 0.8261);
    --butter: color(display-p3 0.9979 0.9699 0.8503);
    --sage: color(display-p3 0.9102 0.9687 0.918);
    --peri: color(display-p3 0.9265 0.9403 1);
    --peach: color(display-p3 0.9931 0.9303 0.8891);
    --butter-strong: color(display-p3 0.992 0.8888 0.4849);
    --pen: color(display-p3 0.2034 0.3357 0.8451);
    --go: color(display-p3 0.2528 0.6392 0.3005);
    --postit-yellow: color(display-p3 0.9961 0.928 0.5015);
    --postit-blue: color(display-p3 0.7515 0.864 0.9915);
    --postit-green: color(display-p3 0.791 0.9338 0.7777);
    --postit-pink: color(display-p3 0.9787 0.781 0.8608);
  }
}

/* base */
.jl, .jl * { box-sizing: border-box; }
body.jl { margin: 0; min-height: 100vh; overflow-x: clip; }
.jl { background: var(--canvas); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
.jl h1, .jl h2, .jl h3, .jl h4, .jl p, .jl ul, .jl ol, .jl figure { margin: 0; }
.jl h1, .jl h2, .jl h3 { font-weight: 400; text-wrap: balance; }
.jl p, .jl li { text-wrap: pretty; }
.jl a { color: inherit; }
.jl ::selection { background: var(--butter-strong); }
.jl :focus-visible { outline: 2px solid var(--pen); outline-offset: 3px; border-radius: 6px; }
.jl *, .jl *::before, .jl *::after { corner-shape: superellipse(1.6); }
.jl .pill, .jl .chip, .jl .tog, .jl .tog i, .jl .seg, .jl .seg button, .jl .avatar { corner-shape: round; }
.wrap { width: min(1200px, 100%); margin: 0 auto; padding-inline: 16px; }
.wrap.narrow { width: min(760px, 100%); }

/* type */
/* every serif is Crimson Pro ExtraLight */
.jl [style*="var(--serif)"], .brand span, .price .num, .note .tm, .prose h2, .prose blockquote, .acc summary span, .cookie h3, .app-title { font-weight: var(--serif-weight); }
.d1, .d2, .d3, .d4, .jl .d1, .jl .d2, .jl .d3, .jl .d4 { font-family: var(--serif); font-weight: var(--serif-weight); letter-spacing: var(--serif-track); }
.d1 { font-size: clamp(46px, 7vw, 88px); line-height: .98; }
.d2 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.04; }
.d3 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; }
.d4 { font-size: 24px; line-height: 1.2; }
.d1 em, .d2 em, .d3 em, .d4 em { font-style: italic; }
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(31, 28, 25, .62); }
.lede { font-size: 18px; color: var(--ink-2); max-width: 46ch; }
.body { font-size: 15.5px; color: var(--ink-2); }
.small { font-size: 13.5px; color: var(--ink-2); }
.hand { font-family: var(--hand); font-weight: 500; color: var(--pen); }

/* buttons */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 0; border-radius: 999px; padding: 12px 22px; font: 600 15px/1.2 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .18s ease, transform .18s cubic-bezier(.2, .8, .3, 1); }
.pill:active { transform: translateY(1px) scale(.985); }
.pill.dark { background: var(--ink); color: #fff; }
.pill.dark:hover { background: #38332E; }
.pill.soft { background: rgba(255, 255, 255, .7); color: var(--ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 4px 10px -6px rgba(31, 28, 25, .16); }
.pill.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.pill.line:hover { background: rgba(31, 28, 25, .05); }
.pill.butter { background: var(--butter-strong); color: var(--ink); }
.pill.sm { min-height: 36px; padding: 8px 16px; font-size: 14px; }
.pill.block { width: 100%; }
.link { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: rgba(31, 28, 25, .3); }

/* header: three detached pills on one row: the brand, the links, and the account actions with the main CTA.
   68px footprint in the flow (pages pull their first section up under it). */
.site-head { position: sticky; top: 0; z-index: 40; padding: 10px 16px 0; pointer-events: none; }
.site-head a, .site-head button, .site-head nav, .site-head .hpill { pointer-events: auto; }
.head-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 58px; max-width: 1200px; margin: 0 auto; }
.jl .hpill { display: inline-flex; align-items: center; height: 52px; border-radius: 999px; corner-shape: round; background: rgba(255, 255, 255, .84); box-shadow: var(--shadow-float); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand.hpill { padding: 0 20px 0 16px; }
.brand img { width: 30px; height: 30px; display: block; }
.brand span { font-family: var(--serif); font-size: 24px; letter-spacing: -0.02em; line-height: 1; }
.head-nav { position: absolute; left: 50%; transform: translateX(-50%); gap: 26px; padding: 0 26px; font-size: 14.5px; color: var(--ink-2); white-space: nowrap; }
.head-nav a { text-decoration: none; }
.head-nav a:hover { color: var(--ink); }
.head-nav a.on { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; text-decoration-color: rgba(31, 28, 25, .3); }
.head-acts { gap: 4px; padding: 0 6px 0 4px; margin-left: auto; }
.head-acts .login { font-size: 14.5px; font-weight: 600; text-decoration: none; padding: 10px 14px; }
.jl .head-cta { min-height: 40px; }

/* footer: a page of the notebook */
.foot { margin-top: 24px; padding: 56px 0 36px; background: var(--sunk); border-top: 1px solid var(--hair); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 28px; }
.foot h4 { font-size: 13px; font-weight: 600; margin: 0 0 12px; }
.foot ul { list-style: none; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.foot ul a { text-decoration: none; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }

/* paper surfaces: the live shader on the site, this tile where it can't run */
.paper { background-image: var(--paper); background-size: 512px 512px; background-blend-mode: multiply; }
.panel { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 20px 40px -32px rgba(31, 28, 25, .18); }
.p-dawn { background-color: var(--dawn); } .p-butter { background-color: var(--butter); } .p-sage { background-color: var(--sage); } .p-peri { background-color: var(--peri); } .p-peach { background-color: var(--peach); } .p-white { background-color: #fff; }

/* torn header: marketing pages open on a sheet of dawn paper, torn off along the bottom like the home page.
   The header floats over it; the edge is the home page's own tear, baked at 2560px as a seamless tile that repeats on wide screens. */
.torn { margin-top: -78px; padding: 10px 10px 0; }
.torn-sheet { position: relative; border-radius: 34px 34px 0 0; background-color: var(--dawn); background-image: var(--paper); background-size: 512px 512px; background-blend-mode: multiply; padding: 112px 0 110px; }
.torn-sheet::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 64px; background: url('/apps/web/assets/site/tear-2560.svg?v=20261019') left bottom / 2560px 64px repeat-x; pointer-events: none; }
.torn-sheet > * { position: relative; z-index: 1; }

/* cards */
.card { background: var(--card); border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); }
.card.raised { box-shadow: inset 0 0 0 1px var(--hair), var(--shadow-card); }
.well { position: relative; padding: 12px; border-radius: 30px; background: rgba(31, 28, 25, .07); display: grid; gap: 14px; }
.ui-card { background: #fff; border-radius: 24px; padding: 16px; box-shadow: inset 0 0 0 1px rgba(71, 70, 69, .1); }
.app-title { font-family: var(--serif); font-size: 19px; letter-spacing: -0.01em; }

/* faq */
.qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.q { background: var(--card); border-radius: var(--r-md); padding: 26px 28px; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 6px 18px; align-content: start; box-shadow: inset 0 0 0 1px var(--line); }
.q img { width: 32px; height: 32px; grid-row: span 2; margin-top: 2px; }
.q h3 { font: 600 17px/1.35 var(--sans); }
.q p { color: var(--ink-2); font-size: 15.5px; }
/* accordion FAQ: the same cards as the FAQ grid, stacked and expandable */
.acc { display: grid; gap: 12px; }
.acc details { background: var(--card); border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); }
.acc summary { list-style: none; display: grid; grid-template-columns: 32px minmax(0, 1fr) 24px; gap: 18px; align-items: center; padding: 22px 26px; cursor: pointer; font: 600 17px/1.35 var(--sans); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary img { width: 32px; height: 32px; }
.acc summary i { font-style: normal; font-family: var(--serif); font-size: 28px; line-height: 1; color: var(--ink-3); justify-self: end; transition: transform .2s ease; }
.acc details[open] summary i { transform: rotate(45deg); }
.acc details p { margin: -8px 26px 24px 76px; color: var(--ink-2); font-size: 15.5px; max-width: 60ch; }

/* plans */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; max-width: 900px; margin: 0 auto; width: 100%; }
.plan { background: #fff; border-radius: 26px; padding: 32px; display: grid; grid-row: span 5; grid-template-rows: subgrid; gap: 20px; align-content: start; box-shadow: var(--shadow-card); }
.plan .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan .desc { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price .num { font-family: var(--serif); letter-spacing: var(--serif-track); font-size: 60px; line-height: 1; }
.price .cur { font-size: .5em; letter-spacing: 0; margin-right: .06em; }
.price .cents { font-size: .56em; }
.price .per { color: var(--ink-2); font-size: 15px; }
.plan .alt { color: var(--ink-2); font-size: 13.5px; margin-top: -12px; }
.checks { list-style: none; padding: 20px 0 0; margin: 0; display: grid; align-content: start; gap: 11px; font-size: 15px; border-top: 1px solid var(--line); }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { content: ""; width: 20px; height: 20px; flex: none; margin-top: 1px; background: var(--check) center / 20px 20px no-repeat; }
.checks li.no { color: var(--ink-3); }
.checks li.no::before { background-image: var(--cross); opacity: .5; }
.plan.hi { background: var(--ink); color: #FBF6EE; }
.plan.hi .desc, .plan.hi .per, .plan.hi .alt { color: rgba(251, 246, 238, .7); }
.plan.hi .checks { border-top-color: rgba(251, 246, 238, .16); }
.plan.hi .checks li::before { filter: invert(1); }

/* a scrap torn off a yellow pad */
.scrap { position: relative; display: inline-block; padding: 6px 13px 7px; font-size: 12px; font-weight: 600; color: var(--ink); transform: rotate(-2.5deg); filter: drop-shadow(0 1px .6px rgba(0, 0, 0, .3)) drop-shadow(0 4px 6px rgba(0, 0, 0, .18)); white-space: nowrap; }
.scrap::before, .scrap::after { content: ""; position: absolute; inset: -3px; z-index: -1; clip-path: polygon(0% 14%, 4% 6%, 9% 11%, 14% 3%, 21% 9%, 27% 2%, 34% 8%, 41% 1%, 48% 7%, 55% 2%, 62% 9%, 69% 3%, 76% 8%, 83% 1%, 90% 7%, 96% 3%, 100% 12%, 98% 30%, 100% 50%, 98% 70%, 100% 88%, 96% 97%, 89% 92%, 82% 99%, 75% 93%, 68% 100%, 61% 94%, 54% 99%, 47% 92%, 40% 98%, 33% 93%, 26% 99%, 19% 94%, 12% 100%, 6% 93%, 1% 98%, 2% 78%, 0% 58%, 2% 38%); }
.scrap::before { background: #FFFDF8; }
.scrap::after { inset: -1px; background: var(--paper) 0 0 / 256px 256px, linear-gradient(176deg, #FFE98F 0%, var(--butter-strong) 55%, #F5D35E 100%); background-blend-mode: multiply, normal; }

/* sticky note */
.note { position: relative; width: 184px; aspect-ratio: 1; padding: 30px 18px 16px; display: grid; align-content: start; gap: 8px; background-color: var(--c, var(--postit-yellow)); background-image: linear-gradient(180deg, rgba(31, 28, 25, .06) 0 22px, transparent 22px), linear-gradient(155deg, transparent 70%, rgba(31, 28, 25, .035) 100%), var(--paper); background-size: auto, auto, 256px 256px; background-blend-mode: normal, normal, multiply; border-radius: 2px 2px 34px 2px / 2px 2px 7px 2px; filter: drop-shadow(0 1px 1px rgba(31, 28, 25, .09)) drop-shadow(0 4px 6px rgba(31, 28, 25, .06)); }
.note .tm { font-family: var(--serif); font-size: 34px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.note .wh { font-family: var(--hand); font-weight: 500; font-size: 19px; line-height: 1.18; }
.note .rp { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; opacity: .62; }

/* tape: how paper gets stuck to the page */
.tape { position: absolute; top: -11px; left: 50%; width: 86px; height: 24px; transform: translateX(-50%) rotate(-3deg); background: rgba(255, 252, 240, .62); box-shadow: 0 1px 2px rgba(31, 28, 25, .08); clip-path: polygon(0 8%, 6% 0, 12% 10%, 18% 2%, 24% 8%, 100% 0, 96% 50%, 100% 100%, 0 100%, 4% 50%); }

/* controls */
.chip { display: inline-flex; align-items: center; gap: 6px; background: #F3F3F3; color: #6B6661; border-radius: 30px; padding: 4px 9px; font-size: 12px; font-weight: 600; line-height: 16px; white-space: nowrap; }
.chip.ink { background: #2C2825; color: #fff; }
.chip.butter { background: var(--butter-strong); color: var(--ink); }
.tog { position: relative; display: inline-block; width: 42px; height: 24px; border-radius: 12px; background: #D9D6D2; flex: none; }
.tog i { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 10px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); }
.tog.on { background: var(--go); }
.tog.on i { left: 20px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(31, 28, 25, .07); gap: 2px; }
.seg button { border: 0; background: transparent; font: 600 14px/1 var(--sans); padding: 10px 16px; border-radius: 999px; color: var(--ink-2); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(31, 28, 25, .1); }
.field { display: grid; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 600; }
.field .hint { font-size: 12.5px; color: var(--ink-3); }
.input { width: 100%; height: 48px; border: 0; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px rgba(71, 70, 69, .14), 0 2px 2px -1px rgba(0, 0, 0, .04); padding: 0 14px; font: 500 15.5px var(--sans); color: var(--ink); }
.input::placeholder { color: var(--ink-3); }
.input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--ink), 0 0 0 4px rgba(255, 226, 122, .55); }
.input-ic { position: relative; }
.input-ic img { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; pointer-events: none; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* long-form reading */
.prose { font-size: 18px; line-height: 1.7; color: #33302C; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--serif); font-style: italic; font-size: 28px; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); margin-top: 1.8em; }
.prose h3 { font: 600 19px/1.35 var(--sans); color: var(--ink); margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: .35em; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; box-shadow: inset 3px 0 0 var(--butter-strong); font-family: var(--serif); font-size: 24px; line-height: 1.35; letter-spacing: -0.015em; color: var(--ink); border-radius: 0; }
.prose a { text-decoration-color: rgba(47, 91, 211, .4); text-underline-offset: 3px; color: var(--pen); }
/* long-form pages (blog, legal, about) read a touch heavier: Crimson Pro Light */
.blog, .reading { --serif-weight: 300; }

/* list styles: add one class to any ul or ol */
.ls-dot, .ls-tick, .ls-num, .ls-dash, .ls-note { list-style: none; padding-left: 0; display: grid; gap: .55em; counter-reset: ls; }
.ls-dot li, .ls-tick li, .ls-num li, .ls-dash li, .ls-note li { position: relative; padding-left: 34px; margin: 0; }
.ls-dot li::before { content: ""; position: absolute; left: 9px; top: .62em; width: 8px; height: 7px; background: var(--ink); border-radius: 55% 45% 50% 40% / 50% 55% 45% 50%; transform: rotate(-12deg); opacity: .9; }
.ls-tick li::before { content: ""; position: absolute; left: 2px; top: .22em; width: 22px; height: 22px; background: var(--check) center / 22px 22px no-repeat; }
.ls-num li { counter-increment: ls; }
.ls-num li::before { content: counter(ls); position: absolute; left: 0; top: -.06em; width: 24px; text-align: right; font-family: var(--serif); font-style: italic; font-weight: var(--serif-weight); font-size: 1.35em; line-height: 1.2; color: var(--ink-3); }
.ls-dash li::before { content: ""; position: absolute; left: 6px; top: .78em; width: 14px; height: 2px; border-radius: 2px; background: var(--ink); transform: rotate(-6deg); }
.ls-note { gap: 0; padding: 22px 24px 20px; background-color: var(--postit-yellow); background-image: linear-gradient(180deg, rgba(31, 28, 25, .06) 0 14px, transparent 14px), var(--paper); background-size: auto, 256px 256px; background-blend-mode: normal, multiply; border-radius: 2px 2px 26px 2px / 2px 2px 6px 2px; box-shadow: 0 1px 1px rgba(31, 28, 25, .08), 0 6px 14px -8px rgba(31, 28, 25, .25); transform: rotate(-.6deg); }
.ls-note li { padding: 10px 0 10px 34px; border-top: 1px dashed rgba(31, 28, 25, .18); }
.ls-note li:first-child { border-top: 0; }
.ls-note li::before { content: ""; position: absolute; left: 4px; top: calc(10px + .22em); width: 20px; height: 20px; background: var(--check) center / 20px 20px no-repeat; }
.prose .ls-dot li + li, .prose .ls-tick li + li, .prose .ls-num li + li, .prose .ls-dash li + li { margin-top: 0; }

.toc { position: sticky; top: 96px; display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.toc a { text-decoration: none; }
.toc a.on { color: var(--ink); font-weight: 600; }

/* legal document: the policy is a printed page taped to the canvas */
.doc { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 760px); gap: 48px; justify-content: center; align-items: start; }
.toc-card { position: sticky; top: 96px; display: grid; gap: 2px; padding: 18px; border-radius: var(--r-md); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.toc-card a { display: flex; gap: 10px; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--ink-2); }
.toc-card a b { width: 18px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.toc-card a.on { background: rgba(255, 226, 122, .45); color: var(--ink); }
.doc-sheet { position: relative; padding: 64px clamp(28px, 6vw, 72px) 56px; background-color: #FFFEFB; background-image: var(--paper); background-size: 512px 512px; background-blend-mode: multiply; border-radius: 4px; box-shadow: 0 1px 1px rgba(31, 28, 25, .06), 0 24px 48px -30px rgba(31, 28, 25, .35); }
.doc-sheet .tape { top: -12px; }
.doc-sheet .tape.l { left: 18%; transform: translateX(-50%) rotate(-4deg); }
.doc-sheet .tape.r { left: 82%; transform: translateX(-50%) rotate(3deg); }
.doc-sec { display: grid; gap: 14px; padding-top: 40px; margin-top: 40px; border-top: 1px solid var(--line); }
.doc-sec:first-of-type { border-top: 0; margin-top: 8px; padding-top: 0; }
.doc-sec h2 { display: flex; align-items: baseline; gap: 14px; font-family: var(--serif); font-style: italic; font-weight: var(--serif-weight); font-size: 28px; line-height: 1.2; letter-spacing: -0.01em; }
.doc-num { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--butter-strong); font: 600 13px/1 var(--sans); font-style: normal; transform: translateY(-4px) rotate(-6deg); corner-shape: round; }
.doc-sec p, .doc-sec li { font-size: 16.5px; line-height: 1.7; color: #33302C; }
.terms { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); margin: 0; border-top: 1px solid var(--hair); }
.terms dt, .terms dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--hair); font-size: 15.5px; line-height: 1.55; }
.terms dt { font-weight: 600; padding-right: 20px; }
.terms dd { color: #33302C; }
@media (max-width: 860px) { .doc { grid-template-columns: minmax(0, 1fr); } .toc-card { position: static; } .terms { grid-template-columns: minmax(0, 1fr); } .terms dt { border-bottom: 0; padding-bottom: 0; } }

/* cookie note: a taped paper note (the consent sheet uses the same look, see consent.css) */
.cookie { position: relative; width: min(380px, calc(100% - 32px)); padding: 24px 22px 20px; background-color: #FFFDF6; background-image: var(--paper); background-size: 512px 512px; background-blend-mode: multiply; border-radius: 4px 4px 18px 4px; box-shadow: 0 1px 1px rgba(31, 28, 25, .08), 0 18px 34px -18px rgba(31, 28, 25, .35); transform: rotate(-1deg); display: grid; gap: 10px; }
.cookie h3 { font-family: var(--serif); font-size: 22px; letter-spacing: -0.02em; }
.cookie p { font-size: 14px; color: var(--ink-2); }
.cookie .row { display: flex; gap: 8px; align-items: center; margin-top: 4px; }

/* toast */
.toast { display: inline-flex; align-items: center; gap: 12px; padding: 12px 16px 12px 14px; border-radius: 16px; background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 500; box-shadow: 0 16px 30px -16px rgba(31, 28, 25, .5); }
.toast img { width: 20px; height: 20px; filter: invert(1); }

/* marker icons are ink drawings; flip them on dark */
.mi { display: block; flex: none; }
.on-dark .mi, .mi.inv { filter: invert(1); }

@media (max-width: 860px) {
  .jl .head-nav { display: none; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qa, .plans { grid-template-columns: minmax(0, 1fr); }
}

/* live paper texture (shared/paper.js) mounts a canvas layer behind the content and retires the CSS tile */
.paper-fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit; overflow: hidden; }
.paper-fx canvas { display: block; width: 100%; height: 100%; }
.paper-live { isolation: isolate; background-image: none !important; }

/* the landing's every-day row: a slow carousel of marker icons (home, use cases, about) */
.daily { padding-block: 56px 64px; text-align: center; display: grid; justify-items: center; gap: 40px; }
.uses-row { width: 100vw; margin-inline: calc(50% - 50vw); overflow: hidden; padding-block: 6px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%); }
.uses-track { display: flex; gap: 56px; width: max-content; animation: drift-uses 48s linear infinite; }
@keyframes drift-uses { to { transform: translateX(calc(-50% - 28px)); } }
.uses-row:hover .uses-track { animation-play-state: paused; }
.use { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 16px; white-space: nowrap; }
.ic { fill: currentColor; display: block; overflow: visible; }
.use svg { width: 30px; height: 30px; flex: none; }

@media (prefers-reduced-motion: reduce) { .uses-track { animation: none; } }

/* plan badge: the landing's scrap torn off a yellow pad (edges cut by shared/scraps.js; fibres need the tear-fibres filter on the page) */
.plan .badge { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--butter-strong); color: var(--ink); white-space: nowrap; }
/* the badge is a scrap torn off a yellow pad: ragged white paper core around the edge, fibres, grain, a slight tilt and a contact shadow */
.plan .badge.scrap { position: relative; background: none; border-radius: 0; padding: 6px 13px 7px; transform: rotate(-2.5deg); filter: drop-shadow(0 1px .6px rgba(0, 0, 0, .35)) drop-shadow(0 4px 6px rgba(0, 0, 0, .22)); }
.scrap-fringe, .scrap-paper { position: absolute; inset: -3px; pointer-events: none; }
.scrap-fringe { filter: url(#tear-fibres); }
.scrap-fringe i { position: absolute; inset: 0; background: #FFFDF8; }
.scrap-paper { background: var(--grain) 0 0 / 120px 120px, linear-gradient(176deg, color(display-p3 0.9943 0.9162 0.5644) 0%, var(--butter-strong) 55%, color(display-p3 0.9512 0.83 0.3799) 100%); background-blend-mode: multiply, normal; }
.scrap-txt { position: relative; letter-spacing: .01em; }
.plan .badge.scrap::before, .plan .badge.scrap::after { content: none; }

/* button groups: on phones they stack, every button the same width */
.btn-stack { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
@media (max-width: 560px) { .btn-stack { flex-direction: column; align-items: stretch; width: min(340px, 100%); margin-inline: auto; } .btn-stack > .pill { width: 100%; } }

/* ---------- site shell ---------- */
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
app-footer { display: block; }
/* hold the header's space until the element upgrades, so the page doesn't jump */
app-navbar[type="site"]:not(:defined) { display: block; height: 68px; }
app-footer[variant="site"]:not(:defined) { display: block; min-height: 400px; background: var(--sunk); }
.site-head .menu-btn { display: none; width: 52px; height: 52px; border: 0; cursor: pointer; place-items: center; corner-shape: round; }
.site-head .menu-btn span, .site-head .menu-btn span::before, .site-head .menu-btn span::after { content: ""; display: block; width: 18px; height: 1.75px; border-radius: 2px; background: var(--ink); position: relative; transition: transform .2s ease, opacity .2s ease; }
.site-head .menu-btn span::before { position: absolute; top: -6px; }
.site-head .menu-btn span::after { position: absolute; top: 6px; }
.site-head .menu-btn[aria-expanded="true"] span { background: transparent; }
.site-head .menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.site-head .menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
/* the menu floats over the page; in the flow it would push the hero down when opened at the top */
.menu-panel { position: absolute; left: 16px; right: 16px; top: calc(100% + 8px); z-index: 41; max-width: 1120px; margin: 0 auto; padding: 10px; border-radius: 26px; background: rgba(255, 255, 255, .96); box-shadow: var(--shadow-float); display: grid; gap: 2px; }
.menu-panel[hidden] { display: none; }
.menu-panel a { display: block; padding: 13px 16px; border-radius: 14px; font-size: 16px; font-weight: 500; text-decoration: none; }
.menu-panel a.on { background: rgba(255, 226, 122, .45); }
/* the main CTA stays in the header at every width; on phones Log in moves into the menu */
@media (max-width: 860px) { .site-head .menu-btn { display: inline-grid; } }
@media (max-width: 860px) { .head-acts { padding: 0 5px; } .head-acts .login { display: none; } }
@media (max-width: 420px) { .site-head { padding-inline: 12px; } .head-row { gap: 6px; } .brand.hpill { padding: 0 14px 0 12px; } .brand span { font-size: 22px; } .jl .head-cta { padding: 8px 13px; font-size: 13.5px; } }
@media (min-width: 861px) { .menu-panel { display: none !important; } }

/* footer with the torn top edge: the page above was torn off, so the edge is the home tear flipped */
.foot.torn-top { position: relative; margin-top: 0; padding-top: 96px; border-top: 0; background-color: var(--sunk); background-image: var(--paper); background-size: 512px 512px; background-blend-mode: multiply; }
.foot.torn-top::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 64px; background: url('/apps/web/assets/site/tear-2560.svg?v=20261019') left bottom / 2560px 64px repeat-x; transform: scaleY(-1); pointer-events: none; }
.foot .tagline { font-family: var(--serif); font-weight: var(--serif-weight); font-size: 24px; line-height: 1.12; letter-spacing: -0.02em; }
.foot .tagline em { font-style: italic; }
.foot-base a { text-decoration: none; }
.foot button.linkish { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }

/* sign-off: the brand line on the plain canvas, then one action */
.signoff { padding: 110px 16px 120px; display: grid; gap: 26px; justify-items: center; text-align: center; }
.signoff .d1 { font-size: clamp(42px, 6vw, 80px); }

/* section heading block, centred */
.sec-head { display: grid; gap: 12px; justify-items: center; text-align: center; margin-bottom: 40px; }
.sec-head .lede { margin-inline: auto; }

/* page header for content pages: centred, no paper */
.page-head { width: min(900px, 100%); margin: 0 auto; padding: 80px 16px 48px; display: grid; gap: 18px; justify-items: center; text-align: center; }
.page-head .lede { margin-inline: auto; }

/* torn header content block */
.torn-head { display: grid; gap: 18px; justify-items: center; text-align: center; }
.torn-head .lede { margin-inline: auto; max-width: 44ch; }

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