@font-face { font-family: "Google Sans Flex"; src: url(fonts/GoogleSansFlex.woff2) format("woff2"); font-weight: 300 800; font-display: swap; }
:root {
  --ease: cubic-bezier(.34, 1.56, .64, 1);      /* the expressive spring: a little overshoot */
  --ease-out: cubic-bezier(.2, 0, 0, 1);
  --r-xl: 36px; --r-lg: 28px; --r-md: 20px;
  --gutter: 16px;
  color-scheme: light dark;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--c-surface); color: var(--c-on-surface); font: 400 17px/1.55 "Google Sans Flex", system-ui, sans-serif; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-underline-offset: 3px; }
h1, h2, h3 { font-weight: 700; line-height: 1.08; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 8px; }
h3 { font-size: 1.3rem; margin-bottom: 8px; font-weight: 650; }
code { font: 500 .92em ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; background: var(--c-surface-container-high); padding: .1em .4em; border-radius: 8px; }
section, footer { max-width: 1160px; margin: 0 auto; padding: 72px var(--gutter); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; z-index: 20; background: var(--c-primary); color: var(--c-on-primary); padding: 8px 14px; border-radius: 999px; }
:focus-visible { outline: 3px solid var(--c-tertiary); outline-offset: 3px; border-radius: 12px; }

/* top bar */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 8px; padding: 10px var(--gutter); background: color-mix(in srgb, var(--c-surface) 82%, transparent); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--c-on-surface); text-decoration: none; margin-right: auto; }
.mark { width: 26px; height: 26px; background: var(--c-primary); clip-path: polygon(50% 0, 62% 8%, 77% 6%, 84% 19%, 97% 26%, 94% 41%, 100% 54%, 91% 66%, 92% 81%, 78% 86%, 69% 98%, 54% 93%, 41% 100%, 29% 91%, 14% 91%, 11% 76%, 0 66%, 6% 52%, 0 38%, 11% 28%, 13% 13%, 28% 11%, 38% 2%); display: inline-block; animation: spin 24s linear infinite; }
.top nav { display: none; gap: 4px; } .top nav a { padding: 8px 14px; border-radius: 999px; color: var(--c-on-surface-variant); text-decoration: none; font-weight: 550; transition: background .2s; } .top nav a:hover { background: var(--c-surface-container-high); }
.icon, .gh { display: grid; place-items: center; height: 44px; border: 0; border-radius: 999px; background: var(--c-surface-container-high); color: var(--c-on-surface); cursor: pointer; }
.icon { width: 44px; } .icon svg, .gh svg { width: 22px; height: 22px; fill: currentColor; }
.gh { grid-auto-flow: column; gap: 8px; padding: 0 16px; text-decoration: none; font-weight: 600; background: var(--c-primary-container); color: var(--c-on-primary-container); } .gh span { display: none; }
@media (min-width: 760px) { .top nav { display: flex; } .gh span { display: inline; } .top { padding-inline: 28px; } }

/* hero */
.hero { position: relative; display: grid; gap: 32px; padding-top: 40px; padding-bottom: 40px; }
.blobs { position: absolute; inset: -40px -20px 0; z-index: -1; filter: blur(60px); opacity: .9; overflow: hidden; }
.blobs i { position: absolute; border-radius: 50%; animation: drift 18s ease-in-out infinite alternate; }
.b1 { width: 60vw; height: 60vw; max-width: 560px; max-height: 560px; left: -10%; top: 0; background: var(--c-primary-container); }
.b2 { width: 50vw; height: 50vw; max-width: 460px; max-height: 460px; right: -5%; top: 20%; background: var(--c-tertiary-container); animation-delay: -6s; }
.b3 { width: 40vw; height: 40vw; max-width: 380px; max-height: 380px; left: 30%; bottom: -10%; background: var(--c-secondary-container); animation-delay: -12s; }
.eyebrow { color: var(--c-primary); font-weight: 650; letter-spacing: .04em; text-transform: uppercase; font-size: .82rem; margin: 0 0 14px; }
.hero h1 { font-size: clamp(2.8rem, 9.5vw, 5.6rem); }
.hero em { font-style: normal; background: linear-gradient(100deg, var(--c-primary), var(--c-tertiary) 60%, var(--c-primary)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
.lead { font-size: clamp(1.1rem, 2.6vw, 1.4rem); max-width: 34ch; color: var(--c-on-surface-variant); margin: 20px 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; height: 56px; padding: 0 28px; border-radius: 999px; font-weight: 650; font-size: 1.05rem; text-decoration: none; transition: transform .35s var(--ease), box-shadow .2s; }
.btn:hover { transform: scale(1.05) rotate(-1deg); } .btn:active { transform: scale(.97); }
.filled { background: var(--c-primary); color: var(--c-on-primary); box-shadow: 0 8px 24px color-mix(in srgb, var(--c-primary) 40%, transparent); }
.tonal { background: var(--c-secondary-container); color: var(--c-on-secondary-container); }
.hero-art { position: relative; }
.screen { border-radius: var(--r-xl); overflow: hidden; box-shadow: 0 30px 80px -20px color-mix(in srgb, var(--c-primary) 55%, black); transform: perspective(1400px) rotateY(-4deg) rotateX(2deg); transition: transform .6s var(--ease-out); animation: float 7s ease-in-out infinite; }
.screen:hover { transform: none; }
.cookie { position: absolute; background: var(--c-tertiary); border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%; animation: morph 9s ease-in-out infinite alternate; }
.k1 { width: 84px; height: 84px; left: -14px; bottom: -22px; } .k2 { width: 56px; height: 56px; right: -8px; top: -20px; background: var(--c-primary); animation-delay: -4s; }
@media (min-width: 900px) { .hero { grid-template-columns: 1fr 1.1fr; align-items: center; gap: 56px; padding-top: 72px; } }

.card code { background: color-mix(in srgb, currentColor 14%, transparent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .blobs { opacity: .32; } }
:root[data-theme="dark"] .blobs { opacity: .32; }

/* install band */
.band { background: var(--c-surface-container); border-radius: var(--r-xl); max-width: calc(1160px - 2 * 0px); }
@media (min-width: 1200px) { .band { margin-block: 24px; } }
.band, section.band { padding: 40px 20px; }
@media (min-width: 760px) { .band { padding: 56px 48px; } }
.sub { color: var(--c-on-surface-variant); max-width: 60ch; margin: 6px 0 28px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.tabs button { flex: none; height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--c-surface-container-highest); color: var(--c-on-surface-variant); font: 600 .98rem inherit; font-family: inherit; cursor: pointer; transition: background .2s, color .2s, border-radius .3s var(--ease); }
.tabs button[aria-selected="true"] { background: var(--c-primary); color: var(--c-on-primary); border-radius: 14px; }
.panel { margin-top: 20px; animation: pop .45s var(--ease) both; }
.cmd { display: flex; align-items: stretch; gap: 10px; margin: 10px 0; background: var(--c-inverse-surface); color: var(--c-inverse-primary); border-radius: var(--r-md); padding: 6px 6px 6px 18px; }
.cmd code { flex: 1; min-width: 0; background: none; color: inherit; padding: 14px 0; font-size: clamp(.82rem, 2.4vw, 1.05rem); overflow-x: auto; white-space: nowrap; scrollbar-width: thin; }
.cmd .p { opacity: .6; user-select: none; margin-right: .6em; }
.copy { flex: none; border: 0; border-radius: 14px; padding: 0 20px; min-height: 48px; background: var(--c-inverse-primary); color: var(--c-inverse-surface); font: 700 .95rem "Google Sans Flex", system-ui; cursor: pointer; transition: transform .3s var(--ease); }
.copy:hover { transform: scale(1.06); } .copy.done { background: var(--c-tertiary-container); color: var(--c-on-tertiary-container); }
.note { color: var(--c-on-surface-variant); font-size: .98rem; max-width: 72ch; } .note.first { margin-top: 0; }

/* gallery */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { height: 40px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--c-outline-variant); background: transparent; color: var(--c-on-surface-variant); font: 600 .95rem "Google Sans Flex", system-ui; cursor: pointer; transition: all .3s var(--ease); }
.chip.on { background: var(--c-secondary-container); color: var(--c-on-secondary-container); border-color: transparent; border-radius: 999px; }
.gallery { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 18px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: thin; }
.gallery[hidden] { display: none; }
.gallery figure { flex: 0 0 min(86vw, 640px); margin: 0; scroll-snap-align: center; border-radius: var(--r-lg); overflow: hidden; background: var(--c-surface-container-high); }
.gallery figure.wide { flex-basis: min(92vw, 860px); }
.gallery figcaption { padding: 12px 18px 16px; font-weight: 600; color: var(--c-on-surface-variant); }
.gallery figure img { transition: transform .6s var(--ease-out); } .gallery figure:hover img { transform: scale(1.03); }

/* features */
.grid { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } } @media (min-width: 980px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card { padding: 28px; border-radius: var(--r-lg); transition: transform .45s var(--ease), border-radius .45s var(--ease); }
.card:hover { transform: translateY(-6px) rotate(-.6deg); border-radius: 44px 20px 44px 20px; }
.card p { margin: 0; opacity: .88; }
.c1 { background: var(--c-primary-container); color: var(--c-on-primary-container); } .c2 { background: var(--c-tertiary-container); color: var(--c-on-tertiary-container); }
.c3 { background: var(--c-secondary-container); color: var(--c-on-secondary-container); } .c4 { background: var(--c-surface-container-high); }
.c5 { background: var(--c-primary); color: var(--c-on-primary); } .c5 code { background: color-mix(in srgb, var(--c-on-primary) 18%, transparent); }
.c6 { background: var(--c-tertiary); color: var(--c-on-tertiary); }

/* steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding: 20px 20px 20px 76px; background: var(--c-surface-container-lowest); border-radius: var(--r-lg); }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 50%; translate: 0 -50%; width: 44px; height: 44px; display: grid; place-items: center; font-weight: 800; background: var(--c-primary); color: var(--c-on-primary); border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%; animation: morph 9s ease-in-out infinite alternate; }

/* faq */
details { background: var(--c-surface-container); border-radius: var(--r-md); margin: 10px 0; padding: 4px 20px; transition: background .2s; }
details[open] { background: var(--c-surface-container-high); }
summary { cursor: pointer; padding: 16px 40px 16px 0; font-weight: 650; font-size: 1.1rem; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.7rem; line-height: 1; transition: transform .35s var(--ease); } details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 18px; color: var(--c-on-surface-variant); }
footer { text-align: center; color: var(--c-on-surface-variant); padding-bottom: 56px; } footer .small { font-size: .85rem; opacity: .8; } footer .mark { width: 18px; height: 18px; vertical-align: -3px; }

/* motion */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); } .reveal.in { opacity: 1; transform: none; }
@keyframes spin { to { rotate: 360deg; } }
@keyframes drift { to { transform: translate(8%, 10%) scale(1.15); } }
@keyframes float { 50% { translate: 0 -10px; } }
@keyframes morph { 0% { border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%; rotate: 0deg; } 50% { border-radius: 58% 42% 40% 60% / 44% 58% 42% 56%; } 100% { border-radius: 40% 60% 58% 42% / 56% 40% 60% 44%; rotate: 25deg; } }
@keyframes shine { to { background-position: -200% 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(8px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } .reveal { opacity: 1; transform: none; } }

/* the splash's loading indicators (indicator.js, the same code as the editor) */
.ind { position: relative; display: inline-grid; place-items: center; }
.ind svg.wavy:not(.ring) { width: 100%; height: 28px; margin: 0; }
.ind svg.wavy.ring { position: absolute; inset: 0; margin: 0; width: 100%; height: 100%; }
.mini-cookie { width: 38%; aspect-ratio: 1; background: var(--c-tertiary); border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%; animation: morph 9s ease-in-out infinite alternate; }
.ind-card { position: absolute; right: -10px; bottom: -34px; display: flex; align-items: center; gap: 14px; padding: 12px 18px; background: var(--c-surface-container-high); border-radius: var(--r-xl); box-shadow: 0 18px 40px -16px color-mix(in srgb, var(--c-primary) 50%, black); }
.ind-card .ind[data-ind=ring] { width: 84px; height: 84px; }
.ind-card .ind[data-ind=bar] { width: 180px; }
.step-ind { display: grid; place-items: center; justify-content: start; margin-top: 8px; }
.step-ind[data-ind=bar] { place-items: stretch; }
.step-ind[data-ind=bar] { width: min(100%, 260px); }
.step-ind[data-ind=ring] { width: 56px; height: 56px; }
@media (max-width: 600px) { .ind-card { right: 0; left: 0; bottom: -60px; justify-content: center; } .ind-card .ind[data-ind=bar] { width: 120px; } }
