:root {
  --ink: #0b0b10;
  --muted: #5b5d66;
  --line: #e8e9ee;
  --soft: #f4f5f9;
  --accent: #4f46e5;
  --accent-deep: #3730a3;
  --night: #0c0c12;
  --radius: 24px;
  --card-shadow: 0 1px 2px rgb(11 11 16 / 0.04), 0 16px 40px rgb(30 34 90 / 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: 'Google Sans Flex', 'SF Pro Display', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  background: linear-gradient(180deg, #6366f1, #4338ca);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.3),
    0 1px 2px rgb(49 46 129 / 0.5),
    0 8px 20px rgb(79 70 229 / 0.28);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition:
    filter 0.15s,
    transform 0.15s;
}

.button:hover {
  filter: brightness(1.08);
}

.button:active {
  transform: translateY(1px);
}

.button.small {
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 15px;
}

.button.plain {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 1px 2px rgb(11 11 16 / 0.06);
  color: var(--ink);
}

.button.plain:hover {
  filter: none;
  background: var(--soft);
}

/* Header */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.top.scrolled {
  border-color: var(--line);
  background: rgb(255 255 255 / 0.8);
  backdrop-filter: saturate(1.6) blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgb(79 70 229 / 0.3);
}

.nav .links {
  display: flex;
  gap: 32px;
  margin-right: auto;
}

.nav .links a {
  font-size: 15.5px;
  font-weight: 500;
  text-decoration: none;
}

.nav .links a:hover {
  color: var(--accent);
}

/* Hero */

.hero {
  position: relative;
  padding-block: 64px 72px;
  text-align: center;
}

.hero::before {
  position: absolute;
  inset: -72px 0 auto;
  z-index: -1;
  height: 640px;
  background:
    radial-gradient(52% 60% at 50% 30%, rgb(199 210 254 / 0.75), transparent 70%),
    radial-gradient(40% 50% at 78% 20%, rgb(224 231 255 / 0.7), transparent 70%);
  content: '';
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 5px;
  border-radius: 12px;
  background: var(--night);
  box-shadow: 0 6px 18px rgb(11 11 16 / 0.18);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.pill b {
  padding: 1px 8px;
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: 8px;
  font-weight: 500;
}

.hero h1 {
  margin: 44px auto 0;
  font-size: clamp(38px, 5.6vw, 62px);
}

.hero h1 span {
  display: block;
  background: linear-gradient(90deg, var(--ink) 0%, var(--accent-deep) 45%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  max-width: 600px;
  margin: 24px auto 0;
  font-size: 18.5px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.hero .note {
  margin-top: 18px;
  font-size: 15px;
  font-weight: 500;
}

/* Hero showcase */

.showcase {
  position: relative;
  overflow: hidden;
  height: 520px;
  margin-top: 64px;
  border-radius: var(--radius);
  background:
    radial-gradient(60% 80% at 20% 0%, #c7d2fe, transparent 70%),
    linear-gradient(180deg, #e0e7ff 0%, #818cf8 60%, #3730a3 100%);
  text-align: left;
}

.browser {
  position: absolute;
  top: 56px;
  left: 50%;
  display: grid;
  grid-template-columns: 1fr 290px;
  grid-template-rows: 44px 1fr;
  width: min(1000px, calc(100% - 48px));
  height: 560px;
  transform: translateX(-50%);
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: #fff;
  box-shadow: 0 30px 80px rgb(30 27 75 / 0.45);
}

.browser-bar {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #f7f7fa;
}

.browser-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}

.browser-bar i:nth-child(2) {
  background: #febc2e;
}

.browser-bar i:nth-child(3) {
  background: #28c840;
}

.browser-bar span {
  flex: 1;
  max-width: 420px;
  margin: 0 auto;
  padding: 4px 14px;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
}

.viewer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: #1b1c24;
}

/* A drawn slide, reused across the page */

.deck-slide {
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 8% 8% 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff 40%, #fde7f3 75%, #dbeafe);
}

.deck-slide i {
  display: block;
  height: 7%;
  margin-bottom: 4.5%;
  border-radius: 99px;
  background: #d9dcec;
}

.deck-slide i:first-child {
  width: 58%;
  height: 15%;
  margin-bottom: 7%;
  background: #1c1d2b;
}

.deck-slide i:nth-child(2) {
  width: 80%;
}

.deck-slide i:nth-child(3) {
  width: 66%;
}

.deck-slide i:nth-child(4) {
  width: 30%;
  height: 12%;
  margin-top: 7%;
  background: var(--accent);
}

/* The extension panel, drawn */

.ext {
  padding: 16px;
  border-left: 1px solid var(--line);
  background: #fafaf9;
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 12.5px;
  line-height: 1.4;
}

.ext-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
}

.ext-head img {
  width: 24px;
  height: 24px;
}

.ext-head em {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 99px;
  background: #eef2ff;
  color: var(--accent-deep);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
}

.ext-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.ext-card small {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
}

.ext-card small::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
  content: '';
}

.ext-card b {
  display: block;
  margin-top: 4px;
  font-size: 14px;
}

.ext-card span {
  color: var(--muted);
}

.ext-label {
  margin: 14px 0 6px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.chips {
  display: flex;
  gap: 6px;
}

.chips span {
  flex: 1;
  padding: 9px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  text-align: center;
}

.chips span.on {
  border-color: var(--accent);
  background: #eef2ff;
  color: var(--accent-deep);
}

.ext-save {
  margin-top: 14px;
  padding: 11px 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-align: center;
}

/* Sections */

section {
  padding: 96px 0;
}

.head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 56px;
}

.head h2 {
  font-size: clamp(30px, 3.6vw, 40px);
}

.head p {
  max-width: 640px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 18.5px;
}

/* Bento grid */

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 420px;
  padding: 30px;
  border-radius: var(--radius);
}

.tile.wide {
  grid-column: span 2;
}

.tile h3 {
  font-size: 20px;
}

.tile h3 a {
  text-decoration: none;
}

.tile h3 a::after {
  content: ' \2192';
}

.tile h3 a:hover {
  text-decoration: underline;
}

.tile p {
  max-width: 30em;
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.55;
  opacity: 0.78;
}

.tile .art {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
}

.tile .art.bottom {
  align-items: flex-end;
  margin-bottom: -30px;
}

.peach {
  background: linear-gradient(180deg, #fbf1ea, #f5d5c6);
}

.sky {
  background: linear-gradient(180deg, #eef2ff 20%, #a5b4fc);
}

.mist {
  background: linear-gradient(180deg, #f1f5ff, #c7d2fe);
}

.night {
  background:
    radial-gradient(90% 60% at 50% 100%, #3730a3, transparent 70%),
    #07071a;
  color: #fff;
}

.indigo {
  background: linear-gradient(155deg, #4338ca 0%, #1e1b4b 55%, #4f46e5 100%);
  color: #fff;
}

.dusk {
  background: linear-gradient(180deg, #4f5fb8, #a9a6d6);
  color: #fff;
}

/* Tile art */

.glass {
  border: 1px solid rgb(255 255 255 / 0.6);
  border-radius: 14px;
  background: rgb(255 255 255 / 0.72);
  box-shadow: 0 10px 30px rgb(30 27 75 / 0.14);
  color: var(--ink);
}

.night .glass,
.indigo .glass {
  border-color: rgb(255 255 255 / 0.16);
  background: rgb(255 255 255 / 0.1);
  box-shadow: none;
  color: #fff;
}

.linkbar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 10px 10px 16px;
  font-size: 15px;
  font-weight: 500;
}

.linkbar span {
  overflow: hidden;
  flex: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.linkbar b {
  padding: 7px 14px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.format-stack {
  display: grid;
  gap: 10px;
  width: 100%;
}

.format-stack div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 600;
}

.format-stack small {
  font-size: 12.5px;
  font-weight: 500;
  opacity: 0.6;
}

.format-stack .on {
  outline: 2px solid var(--accent);
}

.progress {
  width: 100%;
  padding: 18px;
}

.progress header {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
}

.progress header span {
  font-weight: 500;
  opacity: 0.6;
}

.progress .bar {
  height: 8px;
  margin: 12px 0 14px;
  border-radius: 99px;
  background: rgb(79 70 229 / 0.16);
}

.progress .bar i {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: 99px;
  background: var(--accent);
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.thumbs .deck-slide {
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgb(11 11 16 / 0.08);
}

.thumbs .deck-slide:nth-child(2) {
  background: linear-gradient(135deg, #1c1d2b, #4338ca);
}

.thumbs .deck-slide:nth-child(2) i:first-child {
  background: #fff;
}

.thumbs .deck-slide:nth-child(3) {
  background: linear-gradient(135deg, #fef3c7, #fff);
}

.thumbs .deck-slide:nth-child(4) {
  opacity: 0.35;
}

.pages {
  position: relative;
  width: min(300px, 80%);
  aspect-ratio: 16 / 11;
}

.pages .deck-slide {
  position: absolute;
  bottom: 0;
  width: 86%;
  box-shadow: 0 10px 30px rgb(124 45 18 / 0.18);
}

.pages .deck-slide:nth-child(1) {
  right: 0;
  transform: rotate(5deg);
  opacity: 0.7;
}

.pages .deck-slide:nth-child(2) {
  left: 0;
  transform: rotate(-3deg);
}

.badge {
  position: absolute;
  top: -6px;
  left: -10px;
  z-index: 1;
  padding: 6px 12px;
  border-radius: 10px;
  background: #e11d48;
  box-shadow: 0 6px 14px rgb(225 29 72 / 0.35);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.pages .badge {
  top: 16%;
}

.badge.blue {
  background: var(--accent);
  box-shadow: 0 6px 14px rgb(79 70 229 / 0.4);
}

.badge.orange {
  top: auto;
  right: 18px;
  bottom: 22px;
  left: auto;
  background: #ea580c;
  box-shadow: 0 6px 14px rgb(234 88 12 / 0.4);
}

.files {
  display: grid;
  gap: 8px;
  width: 100%;
}

.files div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 13.5px;
  font-weight: 500;
}

.files .deck-slide {
  width: 34px;
  flex-shrink: 0;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgb(11 11 16 / 0.1);
}

.ppt {
  position: relative;
  width: 100%;
}

.ppt .deck-slide {
  box-shadow: 0 20px 50px rgb(0 0 0 / 0.4);
}

.strike {
  display: grid;
  gap: 10px;
  width: 100%;
  font-size: 14.5px;
  font-weight: 500;
}

.strike div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
}

.strike s {
  flex: 1;
  opacity: 0.75;
}

.strike b {
  color: #86efac;
  font-size: 12.5px;
  font-weight: 500;
}

.range {
  display: flex;
  gap: 10px;
  width: 100%;
}

.range div {
  display: flex;
  flex: 1;
  justify-content: space-between;
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 600;
}

.range span {
  font-weight: 500;
  opacity: 0.6;
}

.screen {
  width: min(520px, 100%);
  padding: 14px 14px 0;
  border-radius: 16px 16px 0 0;
  background: rgb(255 255 255 / 0.22);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.3);
}

.screen .deck-slide {
  border-radius: 8px 8px 0 0;
}

/* Split section */

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.split .head {
  display: block;
  margin: 0;
}

.vault {
  display: grid;
  gap: 14px;
  padding: 56px;
  border-radius: var(--radius);
  background:
    radial-gradient(70% 90% at 80% 0%, #a5b4fc, transparent 70%),
    linear-gradient(180deg, #312e81, #0f0d2e);
}

.vault li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 14px;
  background: rgb(255 255 255 / 0.1);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}

.tick {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #22c55e
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 11.5 3.2 3.2L16 8'/%3E%3C/svg%3E")
    center / 22px;
}

/* Pricing */

.tinted {
  background: linear-gradient(180deg, #fff, #f5f6ff 30%, #f5f6ff 70%, #fff);
}

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  gap: 24px;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--card-shadow);
}

.plan.featured {
  border-color: transparent;
  background: linear-gradient(160deg, #1e1b4b, #0c0c12 70%);
  color: #fff;
}

.plan h3 {
  font-size: 20px;
}

.price {
  margin-top: 14px;
  font-size: 52px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.price small {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0;
  opacity: 0.65;
}

.plan .sub {
  margin-top: 6px;
  font-size: 15.5px;
  opacity: 0.65;
}

.plan ul {
  display: grid;
  gap: 14px;
  margin: 28px 0 32px;
  font-size: 16px;
}

.plan li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.plan .button {
  margin-top: auto;
}

/* FAQ */

.faq {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
}

.faq .head {
  display: block;
  margin: 0;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-of-type {
  border-top: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--soft);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  content: '+';
}

.faq details[open] summary::after {
  content: '\2212';
}

.faq details p {
  max-width: 44em;
  padding-bottom: 22px;
  color: var(--muted);
}

/* Closing and footer */

.closing {
  position: relative;
  overflow: hidden;
  padding: 128px 0 120px;
  background: var(--night);
  color: #fff;
  text-align: center;
}

.closing::before {
  position: absolute;
  inset: -20% -10% 30%;
  background:
    radial-gradient(34% 60% at 30% 40%, rgb(190 24 93 / 0.5), transparent 70%),
    radial-gradient(40% 70% at 72% 30%, rgb(67 56 202 / 0.75), transparent 70%);
  filter: blur(40px);
  content: '';
}

.closing .wrap {
  position: relative;
}

.closing img {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  box-shadow: 0 20px 50px rgb(0 0 0 / 0.5);
}

.closing h2 {
  max-width: 560px;
  margin: 36px auto 0;
  font-size: clamp(30px, 3.8vw, 42px);
}

.closing p {
  margin: 16px 0 34px;
  font-size: 18.5px;
  opacity: 0.7;
}

.closing .button {
  background: #fff;
  box-shadow: none;
  color: var(--ink);
}

footer {
  padding: 36px 0 48px;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  background: var(--night);
  color: rgb(255 255 255 / 0.6);
  font-size: 14.5px;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
}

footer p {
  max-width: 640px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

footer a {
  text-decoration: none;
}

footer a:hover {
  color: #fff;
}

/* Plain text pages */

.prose {
  max-width: 760px;
  padding-top: 56px;
  padding-bottom: 112px;
}

.prose h1 {
  font-size: 44px;
}

.prose h2 {
  margin-top: 44px;
  font-size: 23px;
}

.prose p,
.prose ul {
  margin-top: 14px;
  color: var(--muted);
}

.prose ul {
  padding-left: 22px;
  list-style: disc;
}

@media (max-width: 960px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .split,
  .faq {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .browser {
    grid-template-columns: 1fr 250px;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 16px;
  }

  .wrap {
    padding: 0 16px;
  }

  .nav {
    justify-content: space-between;
    height: 64px;
  }

  .nav .links {
    display: none;
  }

  .hero {
    padding-block: 40px 56px;
  }

  .hero h1 {
    margin-top: 32px;
  }

  .cta .button {
    width: 100%;
  }

  .showcase {
    height: 470px;
    margin-top: 48px;
  }

  .browser {
    top: 32px;
    grid-template-columns: 1fr;
    width: min(300px, calc(100% - 32px));
  }

  .viewer {
    display: none;
  }

  .ext {
    border-left: 0;
  }

  section {
    padding: 64px 0;
  }

  .head {
    display: block;
    margin-bottom: 36px;
  }

  .head .button {
    margin-top: 24px;
  }

  .bento,
  .plans {
    grid-template-columns: 1fr;
  }

  .tile.wide {
    grid-column: auto;
  }

  .tile {
    min-height: 300px;
    padding: 24px;
  }

  .tile .art.bottom {
    margin-bottom: -24px;
  }

  .vault {
    padding: 24px;
  }

  .plan {
    padding: 28px;
  }

  .closing {
    padding: 88px 0 80px;
  }
}
