/* Every page of josun.app except the legal and invite pages: the landing
   page (web/index.html, which adds its own layout in a <style>), the topic
   pages and the articles (scripts/render-site.cjs writes them; the articles'
   own rules are in web/articles.css) and 404.html.

   The look (owner, 29 Nov 2026: "more shapes and different shade as well
   instead of just a beige page. Have white background with different shades
   of marigold as accent in huge half circles, waves, different sizes"):
   - The ground is white. Colour is one hue, the logo's marigold, in six
     shades (--m50 to --sun). Nothing else is added.
   - Shapes are circles and half circles of very different sizes, the big
     ones running off the edge of the page. Where two bands meet there is a
     wave or a row of half circles, never a straight line.
   - Things move a little as the page is scrolled (web/site.js): parts rise
     into place, the shapes drift at their own pace, the sun comes up over
     the footer. A reader who asked their device for less motion gets none,
     and without the script every part is simply there. */
:root {
  --ground: #FFFFFF; --card: #FFFFFF; --ink: #2B2722; --ink2: #5A534A; --muted: #8A8478;
  --rule: #F1E8DA; --night: #1B1A24; --night-text: #C9C4D6;
  /* Marigold, palest to the logo's own. */
  --m50: #FFF6E6; --m100: #FFECCB; --m200: #FFDFA6; --m300: #FFCD7A; --m400: #F7B04A; --sun: #EE9420;
  --sun-soft: var(--m50);
  /* The edges between bands, used as masks so one drawing serves any colour. */
  --wave-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 46C200 0 420 0 700 34S1180 84 1440 26V80H0Z'/%3E%3C/svg%3E");
  --wave-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 30C160 70 380 78 640 44S1100 -6 1440 40V80H0Z'/%3E%3C/svg%3E");
  --scallop: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='720' height='100' viewBox='0 0 720 100'%3E%3Ccircle cx='0' cy='100' r='70'/%3E%3Ccircle cx='140' cy='100' r='95'/%3E%3Ccircle cx='300' cy='100' r='75'/%3E%3Ccircle cx='450' cy='100' r='90'/%3E%3Ccircle cx='610' cy='100' r='80'/%3E%3Ccircle cx='720' cy='100' r='70'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: Figtree, -apple-system, system-ui, sans-serif; font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip; }
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
.narrow { max-width: 760px; }

header { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.scrolled header { border-bottom-color: var(--rule); box-shadow: 0 10px 30px -24px rgba(43, 39, 34, .45); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.nav .logo img { height: 30px; width: auto; display: block; }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; font-size: 15px; color: var(--ink2); }
.nav ul a { text-decoration: none; position: relative; padding: 6px 0; }
.nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: var(--sun); scale: 0 1; transition: scale .25s ease; }
.nav ul a:hover, .nav ul a[aria-current] { color: var(--ink); }
.nav ul a:hover::after, .nav ul a[aria-current]::after { scale: 1 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 10px 18px; font-weight: 500; text-decoration: none; font-size: 15px; border: 1px solid var(--ink); color: var(--ink); background: transparent; white-space: nowrap; transition: translate .2s ease, box-shadow .2s ease; }
.btn.solid { background: var(--ink); color: #FFFFFF; }
.btn:hover { translate: 0 -2px; box-shadow: 0 10px 20px -12px rgba(43, 39, 34, .55); }

/* ── Bands and shapes. A band is a full-width strip of the page: every
   <section>, the strip at the top of a page (.band) and the footer. Each one
   draws its own top edge over the band before it, so any two colours meet
   in a curve. Shapes sit in a .deco behind the band's words. */
.band, section, footer { position: relative; background: var(--ground); }
/* The turning ring is a square as far as the page's width is concerned: keep
   it in. ("clip", not "hidden": an article's side rail has to keep sticking.) */
.band { overflow: hidden; }
@supports (overflow: clip) { .band { overflow: clip; } }
section::before, footer::before { content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: 48px; background: inherit; pointer-events: none; z-index: 2;
  -webkit-mask: var(--wave-a) center bottom / max(100%, 900px) 100% no-repeat; mask: var(--wave-a) center bottom / max(100%, 900px) 100% no-repeat; }
section:nth-of-type(even)::before { -webkit-mask-image: var(--wave-b); mask-image: var(--wave-b); }
section[id] { scroll-margin-top: 72px; }
.deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blob { position: absolute; display: block; border-radius: 50%; aspect-ratio: 1; background: var(--m100); }
.blob.half { aspect-ratio: 2 / 1; border-radius: 9999px 9999px 0 0; }
.blob.ring { background: none; border: 2px solid var(--m200); }
.c50 { background: var(--m50); } .c100 { background: var(--m100); } .c200 { background: var(--m200); }
.c300 { background: var(--m300); } .c400 { background: var(--m400); } .c500 { background: var(--sun); } .cw { background: #FFFFFF; }

/* The top of a page. */
.d-top .b1 { width: clamp(520px, 62vw, 980px); right: -14vw; top: clamp(-320px, -22vw, -180px); --drift: .06; }
.d-top .b2 { width: clamp(220px, 26vw, 420px); left: -6vw; bottom: 0; --drift: .05; }
.d-top .b3 { width: 34px; left: 46%; top: 92px; --drift: .22; }
.d-top .b4 { width: 18px; left: 3.5%; top: 66px; border-width: 4px; border-color: var(--m300); --drift: .14; }
/* A tinted band, and the last band before the download block. */
.d-tint .b1 { width: clamp(300px, 40vw, 560px); right: -12vw; top: 30px; --drift: .08; }
.d-tint .b2 { width: clamp(240px, 30vw, 420px); left: -11vw; bottom: -110px; --drift: -.07; }
.d-tint .b3 { width: 22px; right: 9%; bottom: 16%; --drift: .2; }
/* A plain white band that wants some life. */
.d-plain .b1 { width: clamp(420px, 52vw, 780px); left: -24vw; top: 8%; --drift: .05; }
.d-plain .b2 { width: clamp(200px, 22vw, 340px); right: -10vw; bottom: 10%; --drift: -.09; }
.d-plain .b3 { width: 28px; right: 13%; top: 11%; --drift: .2; }
/* The footer. */
.d-foot .b1 { width: clamp(300px, 34vw, 520px); right: -9vw; bottom: -52%; }
.d-foot .b2 { width: 20px; left: 4%; top: 22%; border-width: 4px; }

/* The sun behind a phone: a disc, and a ring round it with two small
   circles on it, as in the logo. The ring turns very slowly. */
.sunny { position: relative; isolation: isolate; }
.sunny .sun, .sunny .orbit { position: absolute; z-index: -1; left: 50%; top: 50%; aspect-ratio: 1; border-radius: 50%; translate: -50% -48%; }
.sunny .sun { width: min(450px, 124vw); background: var(--m300); animation: sunup 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.sunny .orbit { width: min(590px, 160vw); border: 2px solid var(--m200); animation: turn 90s linear infinite; }
.sunny .orbit i { position: absolute; border-radius: 50%; translate: -50% -50%; }
.sunny .orbit i:first-child { width: 30px; height: 30px; background: var(--sun); left: 14.6%; top: 14.6%; }
.sunny .orbit i:last-child { width: 16px; height: 16px; background: #FFFFFF; border: 3px solid var(--m300); left: 93.3%; top: 75%; }
.sunny .phone { animation: bob 7s ease-in-out infinite alternate; }
@keyframes sunup { from { scale: .6; opacity: 0; } }
@keyframes turn { to { rotate: 360deg; } }
@keyframes bob { from { translate: 0 6px; } to { translate: 0 -6px; } }

.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.hero { padding: 48px 20px 76px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.hero.solo { grid-template-columns: 1fr; }
.eyebrow { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 0 0 14px; }
h1 { font-size: clamp(34px, 4.8vw, 52px); line-height: 1.06; letter-spacing: -.02em; font-weight: 600; margin: 0 0 18px; text-wrap: balance; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink2); margin: 0 0 26px; max-width: 620px; }
.badges { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.badges a { display: block; line-height: 0; transition: translate .2s ease; }
.badges a:hover { translate: 0 -3px; }
.badges .apple { height: 50px; width: auto; }
.badges .google { height: 74px; width: auto; margin: -12px; }
.shot { display: flex; justify-content: center; }
.phone { position: relative; width: min(270px, 70vw); aspect-ratio: 9 / 19.4; border-radius: 44px; background: var(--night); padding: 10px; box-shadow: 0 34px 60px -34px rgba(43, 39, 34, .5); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 34px; display: block; background: var(--card); }

section { padding: 52px 0; }
section.alt, section.tint { background: var(--m50); padding-bottom: 84px; }
h2 { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.14; letter-spacing: -.015em; font-weight: 600; margin: 0 0 14px; text-wrap: balance; }
h3 { font-size: 20px; line-height: 1.25; font-weight: 600; margin: 0 0 6px; }
p { margin: 0 0 16px; color: var(--ink2); }
p strong, li strong { color: var(--ink); font-weight: 600; }
.prose a, .faq a, .fine a { text-decoration: underline; text-decoration-color: var(--sun); text-underline-offset: 3px; }
.answer { font-size: 19px; color: var(--ink); background: var(--m50); border-left: 6px solid var(--sun); border-radius: 6px 20px 20px 6px; padding: 18px 22px; margin: 0 0 8px; }
section.alt .answer { background: #FFFFFF; }
.answer p:last-child { margin-bottom: 0; }
.answer p { color: var(--ink); }

.ticks { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink2); }
.ticks li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); margin-top: 9px; }
.ticks.no li::before { background: transparent; border: 2px solid var(--muted); }
.cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cols.three { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: 20px; padding: 24px; }
.card.plus { border-color: var(--sun); background: linear-gradient(180deg, var(--m100), var(--card) 60%); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .price { color: var(--muted); font-size: 15px; margin: 0 0 14px; }

.steps { list-style: none; margin: 0 0 16px; padding: 0; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding: 2px 0 0 46px; color: var(--ink2); min-height: 32px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--m300); color: var(--ink); font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: center; }

.cmp { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; font-size: 16px; margin: 0 0 14px; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--rule); color: var(--ink2); }
.cmp thead th { color: var(--ink); font-weight: 600; background: var(--m100); }
.cmp tbody th { color: var(--ink); font-weight: 600; width: 28%; }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.cmp .yes { color: var(--ink); font-weight: 600; }
.fine { font-size: 14px; color: var(--muted); }
.fine p { color: var(--muted); margin-bottom: 8px; }
.byline { display: flex; align-items: center; gap: 14px; }
.byline img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }

.faq details { border-top: 1px solid var(--rule); padding: 16px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
section.alt .faq details, section.alt.faq details, section.alt.faq details:last-of-type { border-color: rgba(43, 39, 34, .12); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--m200); color: var(--ink); font-weight: 500; display: flex; align-items: center; justify-content: center; transition: rotate .25s ease, background .25s ease; }
.faq details[open] summary::after { content: "\2013"; background: var(--m400); rotate: 180deg; }
.faq details p { margin: 10px 0 0; max-width: 700px; }

.more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.more a { display: block; height: 100%; text-decoration: none; background: var(--card); border: 1px solid var(--rule); border-radius: 16px; padding: 16px 18px; transition: translate .2s ease, border-color .2s ease, box-shadow .2s ease; }
.more a:hover { border-color: var(--sun); translate: 0 -3px; box-shadow: 0 16px 26px -20px rgba(43, 39, 34, .45); }
.more strong { display: block; font-weight: 600; margin-bottom: 2px; }
.more span { color: var(--ink2); font-size: 15px; }

/* The download block: the sun coming up behind the footer's wave. */
.download { text-align: center; padding: 120px 0 104px; }
.download .badges { justify-content: center; }
.download p { max-width: 560px; margin-left: auto; margin-right: auto; color: var(--ink); }
.symbol { width: 64px; height: 64px; margin: 0 auto 14px; display: block; }
.rise { position: absolute; left: -100vw; right: -100vw; bottom: 0; margin: 0 auto; aspect-ratio: 2 / 1; border-radius: 9999px 9999px 0 0; transform-origin: 50% 100%; }
.rise.r1 { width: min(880px, 190vw); background: var(--m100); }
.rise.r2 { width: min(650px, 140vw); background: var(--m200); }
.rise.r3 { width: min(430px, 94vw); background: var(--m300); }

.facts { display: grid; grid-template-columns: 200px 1fr; gap: 0; margin: 0 0 16px; border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; background: var(--card); }
.facts dt, .facts dd { margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--ink); font-weight: 600; }
.facts dd { color: var(--ink2); }
.facts dt:last-of-type, .facts dd:last-of-type { border-bottom: 0; }
.assets { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; }

/* The footer is the site's table of contents (owner, 29 Nov 2026), with
   where to follow Josun. scripts/render-site.cjs writes it into every page,
   the landing page included. */
footer { background: var(--m50); padding: 44px 0 36px; font-size: 15px; color: var(--ink2); }
footer .toc { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px 24px; }
footer .brand img { height: 30px; width: auto; display: block; }
footer .brand p { margin: 14px 0 18px; max-width: 250px; }
footer h2 { font-size: 13px; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); font-weight: 600; margin: 6px 0 14px; }
footer nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
footer a { text-decoration: none; }
footer nav a:hover, footer .legal a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.socials a { display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 14px 0 11px; border-radius: 999px; background: #FFFFFF; border: 1px solid var(--m200); color: var(--ink); font-weight: 500; transition: translate .2s ease, background .2s ease, border-color .2s ease; }
.socials a:hover { translate: 0 -2px; background: var(--m200); border-color: var(--m300); }
.socials svg { width: 22px; height: 22px; flex: none; }
footer .legal { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(43, 39, 34, .1); font-size: 14px; color: var(--muted); }

.lost { position: relative; z-index: 1; min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px 20px; }
.lost p { max-width: 460px; }

/* ── Motion (web/site.js adds .rv to a part that starts below the fold, and
   .in when it comes into view). */
.rv { opacity: 0; translate: 0 30px; transition: opacity .7s cubic-bezier(.2, .7, .2, 1), translate .7s cubic-bezier(.2, .7, .2, 1), scale .9s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.rv.in { opacity: 1; translate: none; }
.rise.rv { opacity: 0; translate: none; scale: .55; }
.rise.rv.in { opacity: 1; scale: 1; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv, .rise.rv { opacity: 1; translate: none; scale: none; transition: none; }
  .sunny .sun, .sunny .orbit, .sunny .phone { animation: none; }
  .btn, .badges a, .more a, .socials a { transition: none; }
}
@media print { .rv, .rise.rv { opacity: 1; translate: none; scale: none; } }

@media (max-width: 860px) {
  .nav ul { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 32px; gap: 40px; }
  .cols, .cols.three, .more { grid-template-columns: 1fr; }
  section { padding: 40px 0; }
  section.alt, section.tint { padding-bottom: 68px; }
  section::before, footer::before { height: 34px; }
  .download { padding: 96px 0 84px; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { border-bottom: 0; padding-bottom: 0; }
  /* On a narrow page the small circles would sit on the words. */
  .d-top .b3, .d-top .b4, .d-tint .b3, .d-plain .b3, .d-foot .b2 { display: none; }
  footer .toc { grid-template-columns: 1fr 1fr; }
  footer .brand { grid-column: 1 / -1; }
  footer .brand p { max-width: none; }
}
@media (max-width: 700px) {
  /* The comparison table: each feature becomes a heading over two labelled cells. */
  .cmp thead { display: none; }
  .cmp, .cmp tbody { display: block; }
  .cmp tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--rule); }
  .cmp tr:last-child { border-bottom: 0; }
  .cmp tbody th { grid-column: 1 / -1; width: auto; border-bottom: 0; padding-bottom: 4px; }
  .cmp td { border-bottom: 0; padding-top: 6px; font-size: 15px; }
  .cmp td::before { content: attr(data-label); display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
}
