/* The Kyvo Guide. Same paper, forest and glass as the waitlist; no canvas or WebGL, and the words never wait for a script. */
:root {
  color-scheme: light;
  --paper: #F3EEE5; --paper-soft: #F8F4ED; --paper-2: #ECE4D7; --card: #FFFFFF;
  --ink: #121212; --ink-soft: #4A463F; --ink-faint: #6B655B; --line: #E1D9CA;
  --forest: #1E3B2A; --forest-2: #284C37; --mint: #9ED9AC; --stage-ink: #F3EEE5;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --glass-fill: rgba(251, 248, 243, .72); --glass-edge: rgba(255, 255, 255, .7); --glass-blur: blur(20px) saturate(1.5);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .85); --glass-shadow: 0 18px 40px -16px rgba(15, 35, 22, .35);
  --r: 22px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.62 "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: var(--forest); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(30, 59, 42, .4); transition: text-decoration-color .6s var(--ease), color .6s var(--ease); }
a:hover { text-decoration-color: var(--forest); color: var(--forest-2); }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* nav: the waitlist's glass pill */
.nav { position: fixed; z-index: 50; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + 12px); pointer-events: none; }
.pill { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; padding: 0 9px 0 22px; border-radius: 999px;
  background: var(--glass-fill); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-edge); box-shadow: var(--glass-hi), var(--glass-shadow);
  transition: background .7s var(--ease), border-color .7s var(--ease), box-shadow .7s var(--ease); }
.brand { display: inline-flex; color: var(--ink); transition: color .7s var(--ease); }
.brand svg { display: block; }
.tabs { display: flex; gap: 22px; align-items: center; }
.tabs a { font-size: 15px; font-weight: 600; color: var(--ink-soft); text-decoration: none; transition: color .6s var(--ease); }
.tabs a:hover, .tabs a.on { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 20px; border-radius: 999px; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
  background: linear-gradient(180deg, #2B533B 0%, #1E3B2A 100%); color: var(--paper); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 8px 18px -12px rgba(20, 50, 32, .6);
  transition: transform .7s var(--ease), box-shadow .7s var(--ease), background .7s var(--ease), color .7s var(--ease); }
.btn:hover { color: var(--paper); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 12px 24px -12px rgba(20, 50, 32, .6); }
.nav.on-dark .pill { background: rgba(18, 40, 28, .42); border-color: rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 18px 40px -20px rgba(0, 0, 0, .45); }
.nav.on-dark .brand { color: var(--paper); }
.nav.on-dark .tabs a { color: rgba(243, 238, 229, .72); }
.nav.on-dark .tabs a:hover, .nav.on-dark .tabs a.on { color: var(--paper); }
.nav.on-dark .btn { background: var(--paper); color: var(--forest); box-shadow: inset 0 1px 0 #fff, 0 8px 20px -10px rgba(0, 0, 0, .5); }

/* the forest opening: soft folds of light, fading into the paper with no line */
.ghero { position: relative; isolation: isolate; color: var(--stage-ink); padding: 138px 0 132px; overflow: hidden; background: var(--forest); }
/* the folds stay bright on the right and sink into forest behind the words */
.ghero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(90deg, rgba(20, 42, 30, .92) 0%, rgba(20, 42, 30, .88) 46%, rgba(20, 42, 30, .66) 64%, rgba(20, 42, 30, .3) 82%, rgba(20, 42, 30, .2) 100%),
    var(--forest) url("/guide/fold.jpg") center 30% / cover no-repeat; }
@media (max-width: 1040px) { .ghero::before { background: linear-gradient(180deg, rgba(20, 42, 30, .66) 0%, rgba(20, 42, 30, .86) 26%, rgba(20, 42, 30, .86) 100%), var(--forest) url("/guide/fold.jpg") center 30% / cover no-repeat; } }
.ghero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 124px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(243, 238, 229, 0) 0%, rgba(243, 238, 229, .03) 14%, rgba(243, 238, 229, .1) 28%, rgba(243, 238, 229, .23) 42%, rgba(243, 238, 229, .42) 56%, rgba(243, 238, 229, .64) 70%, rgba(243, 238, 229, .83) 82%, rgba(243, 238, 229, .95) 92%, #F3EEE5 100%); }
/* a tap, rippling out from the K */
.ripple { position: absolute; z-index: -1; right: max(20px, calc(50% - 620px)); top: 46%; width: 380px; height: 380px; margin-top: -190px; pointer-events: none; }
.ripple svg { position: absolute; left: 50%; top: 50%; width: 76px; height: auto; transform: translate(-50%, -50%); color: var(--paper); opacity: .92; }
.ripple i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(201, 242, 210, .55); opacity: 0; transform: scale(.32); animation: ring 7.5s cubic-bezier(.2, .6, .35, 1) infinite; }
.ripple i:nth-of-type(2) { animation-delay: 2.5s; } .ripple i:nth-of-type(3) { animation-delay: 5s; }
@keyframes ring { 0% { opacity: 0; transform: scale(.32); } 14% { opacity: .85; } 100% { opacity: 0; transform: scale(1); } }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -10px 0 12px; padding: 0; list-style: none; font-size: 15px; color: rgba(243, 238, 229, .92); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a { color: inherit; text-decoration-color: rgba(243, 238, 229, .35); }
.crumbs a:hover { color: var(--paper); text-decoration-color: var(--paper); }
.ghero h1 { margin: 0; max-width: 15em; font-size: clamp(42px, 6.2vw, 76px); line-height: 1.04; letter-spacing: -.035em; font-weight: 650; text-wrap: balance; }
.ghero .lede { margin: 22px 0 0; max-width: 32em; font-size: clamp(19px, 2vw, 22px); line-height: 1.45; color: rgba(243, 238, 229, .92); text-wrap: pretty; }
.meta { margin: 22px 0 0; font-size: 14.5px; color: rgba(243, 238, 229, .92); }

/* reading column and contents */
.layout { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 64px; justify-content: center; align-items: start; padding-top: 22px; padding-bottom: 72px; }
.toc { position: sticky; top: 100px; font-size: 14.5px; line-height: 1.35; }
.toc p { margin: 0 0 12px; font-weight: 650; color: var(--ink); }
.toc ul { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--ink-faint); text-decoration: none; transition: color .6s var(--ease), border-color .6s var(--ease); }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--forest); font-weight: 600; border-left-color: var(--forest); }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 54px 0 14px; font-size: clamp(27px, 3vw, 33px); line-height: 1.14; letter-spacing: -.022em; font-weight: 650; text-wrap: balance; }
.prose p { margin: 0 0 16px; text-wrap: pretty; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 1.25em; }
.prose li { margin-bottom: 8px; padding-left: .2em; }
.prose blockquote { margin: 0 0 18px; padding: 18px 22px; border-radius: var(--r); background: var(--paper-soft); font-size: 21px; line-height: 1.35; letter-spacing: -.01em; color: var(--forest); }
.answer { margin: 0 0 30px; padding: 24px 26px; border-radius: var(--r); background: var(--glass-fill); border: 1px solid var(--glass-edge); box-shadow: var(--glass-hi), 0 18px 40px -26px rgba(15, 35, 22, .4); font-size: 19px; line-height: 1.5; }
.answer strong { color: var(--forest); }

/* tables: cards on a phone */
.tbl { margin: 0 0 20px; border-radius: var(--r); background: var(--paper-soft); border: 1px solid var(--line); overflow: hidden; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 16.5px; line-height: 1.45; }
.tbl th { text-align: left; font-weight: 650; padding: 14px 18px; background: rgba(30, 59, 42, .06); }
.tbl td { padding: 14px 18px; vertical-align: top; border-top: 1px solid var(--line); }
@media (max-width: 640px) {
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tbl tr { display: block; padding: 14px 18px; border-top: 1px solid var(--line); }
  .tbl tbody tr:first-child { border-top: 0; }
  .tbl td { display: block; padding: 3px 0; border: 0; }
  .tbl td[data-label]:not([data-label=""])::before { content: attr(data-label); display: block; margin-top: 8px; font-size: 13.5px; font-weight: 650; color: var(--ink-faint); }
  .tbl td:first-child::before { margin-top: 0 !important; }
}

/* click for more */
details { border-bottom: 1px solid var(--line); }
.prose h2 + details, .prose p + details { border-top: 1px solid var(--line); margin-top: 6px; }
details:last-of-type { margin-bottom: 22px; }
summary { position: relative; display: block; padding: 17px 44px 17px 0; font-weight: 600; font-size: 18.5px; line-height: 1.35; cursor: pointer; list-style: none; transition: color .6s var(--ease); }
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--forest); }
summary::before, summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 15px; height: 1.6px; margin-top: -1px; border-radius: 2px; background: currentColor; transition: transform .6s var(--ease); }
summary::after { transform: rotate(90deg); }
details[open]:not(.closing) > summary::after { transform: rotate(0); }
.more { overflow: hidden; }
.more > :first-child { margin-top: 0; }
.more > :last-child { margin-bottom: 0; padding-bottom: 18px; }
.sources { font-size: 15.5px; color: var(--ink-faint); }
.sources li { margin-bottom: 6px; }

/* the Guide's front page */
.search { position: relative; margin: 30px 0 0; max-width: 560px; }
.search input { width: 100%; height: 56px; padding: 0 22px; border-radius: 999px; font: inherit; font-size: 17px; color: var(--paper); background: rgba(18, 40, 28, .42); border: 1px solid rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); transition: border-color .6s var(--ease), background .6s var(--ease); outline: 0; }
.search input::placeholder { color: rgba(243, 238, 229, .9); }
.search input:focus { border-color: rgba(201, 242, 210, .6); background: rgba(18, 40, 28, .6); }
.hub { padding-top: 22px; padding-bottom: 76px; }
.hub h2 { margin: 46px 0 16px; font-size: clamp(25px, 2.6vw, 30px); letter-spacing: -.02em; font-weight: 650; line-height: 1.15; }
.hub section:first-child h2 { margin-top: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 148px; padding: 24px 26px; overflow: hidden; border-radius: var(--r); text-decoration: none; color: var(--ink); background: var(--paper-soft); border: 1px solid var(--line);
  transition: transform .7s var(--ease), box-shadow .7s var(--ease), border-color .7s var(--ease), background .7s var(--ease); }
.card b { font-size: 21px; line-height: 1.2; letter-spacing: -.014em; font-weight: 650; }
.card span { font-size: 16px; line-height: 1.42; color: var(--ink-soft); }
.card::after { content: ""; position: absolute; right: -36px; bottom: -36px; width: 120px; height: 120px; border-radius: 50%; border: 1px solid rgba(30, 59, 42, .3); box-shadow: 0 0 0 22px rgba(30, 59, 42, .05), 0 0 0 23px rgba(30, 59, 42, .14); opacity: 0; transform: scale(.5); transition: transform .9s var(--ease), opacity .9s var(--ease); }
.card:hover { color: var(--ink); transform: translateY(-3px); background: var(--card); border-color: rgba(30, 59, 42, .22); box-shadow: 0 24px 44px -26px rgba(15, 35, 22, .45); }
.card:hover::after { opacity: 1; transform: scale(1); }
.card[hidden], .hub section[hidden] { display: none; }
.none { margin: 24px 0 0; color: var(--ink-soft); }
.quick { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.quick li { border-bottom: 1px solid var(--line); }
.quick a { display: block; padding: 15px 0; font-weight: 600; font-size: 18px; text-decoration: none; color: var(--ink); transition: color .6s var(--ease), padding-left .7s var(--ease); }
.quick a:hover { color: var(--forest); padding-left: 8px; }
.note { max-width: 44em; color: var(--ink-soft); font-size: 17px; }

/* more pages, the last sign-up and the footer */
.next { padding-bottom: 78px; }
.next h2 { margin: 0 0 16px; font-size: clamp(25px, 2.6vw, 30px); letter-spacing: -.02em; font-weight: 650; }
.band { position: relative; isolation: isolate; padding: 108px 0 112px; text-align: center; color: var(--stage-ink); }
.band::before { content: ""; position: absolute; inset: -40px 0; z-index: -1;
  background: radial-gradient(50% 44% at 50% 50%, rgba(62, 122, 84, .55) 0%, rgba(62, 122, 84, 0) 100%),
    linear-gradient(180deg, rgba(30, 59, 42, 0) 0%, rgba(30, 59, 42, .08) 6%, rgba(30, 59, 42, .3) 13%, rgba(30, 59, 42, .66) 21%, rgba(30, 59, 42, .92) 28%, #1E3B2A 34%, #1E3B2A 66%, rgba(30, 59, 42, .92) 72%, rgba(30, 59, 42, .66) 79%, rgba(30, 59, 42, .3) 87%, rgba(30, 59, 42, .08) 94%, rgba(30, 59, 42, 0) 100%); }
.band h2 { margin: 0; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -.03em; font-weight: 650; }
.band p { margin: 14px auto 26px; max-width: 30em; color: rgba(243, 238, 229, .86); }
.band .btn { height: 52px; padding: 0 28px; font-size: 16.5px; background: var(--paper); color: var(--forest); box-shadow: inset 0 1px 0 #fff, 0 10px 24px -12px rgba(0, 0, 0, .55); }
.band .btn:hover { color: var(--forest); }
.foot { padding: 30px 0 42px; font-size: 15px; color: var(--ink-soft); }
.fbase { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.fleft { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.fright { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.fright a { font-weight: 600; color: var(--ink-soft); text-decoration: none; }
.fright a:hover { color: var(--forest); }

@media (max-width: 1040px) {
  .layout { grid-template-columns: minmax(0, 720px); gap: 0; }
  .toc, .ripple { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { width: calc(100% - 32px); }
  .pill { padding-left: 18px; }
  .tabs { display: none; }
  .ghero { padding: 112px 0 124px; }
  .answer { padding: 20px; font-size: 17.5px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .band { padding: 84px 0 92px; }
}
@media (min-width: 1041px) { .ghero h1 { max-width: min(15em, calc(100% - 400px)); } }
.ghero :focus-visible, .band :focus-visible, .nav.on-dark :focus-visible { outline-color: var(--paper); }
.search input:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }
.fright a, .crumbs a { display: inline-block; padding-block: 10px; }
@media (scripting: none) {
  .nav.on-dark .pill { background: rgba(18, 40, 28, .88); }
  .nav.on-dark .tabs a { color: var(--paper); }
  .search { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .ripple i { opacity: .5; }
  .ripple i:nth-of-type(1) { transform: scale(.45); } .ripple i:nth-of-type(2) { transform: scale(.72); } .ripple i:nth-of-type(3) { transform: scale(1); }
}
