/* GrabPaste website. One family (Schibsted Grotesk, self-hosted so the site makes no
   third-party requests), the app icon's indigo as the hero field, and the app's own
   clip-type colors as the only other accents. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("schibsted-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --indigo: #5e5ce6;
  --indigo-deep: #4341c4;
  --on-indigo: #ffffff;
  --on-indigo-soft: #dcdcff;
  --ink: #1e1d4a;
  --ink-soft: #55547a;
  --paper: #ffffff;
  --lilac: #efeffd;
  --line: #dddcf3;
  --card: #ffffff;
  --card-ink: #1e1d4a;
  --shelf: rgba(255, 255, 255, 0.16);
  --shelf-line: rgba(255, 255, 255, 0.28);
  --link: var(--indigo-deep);

  --t-text: #636366;
  --t-link: #0066d6;
  --t-file: #0e7c93;
  --t-color: #d3164a;
  --t-image: #b35600;

  --font: "Schibsted Grotesk", ui-sans-serif, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --measure: 68ch;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --indigo: #4b49c9;
    --indigo-deep: #9d9bff;
    --on-indigo-soft: #d0d0ff;
    --ink: #ecebff;
    --ink-soft: #aeadd6;
    --paper: #14132d;
    --lilac: #1d1c40;
    --line: #2f2e5c;
    --card: #232250;
    --card-ink: #ecebff;
    --link: #a9a7ff;
    --t-text: #a1a1a6;
    --t-link: #4ea1ff;
    --t-file: #3fb8d1;
    --t-color: #ff5c86;
    --t-image: #f08a2c;
  }
}
:root[data-theme="dark"] {
  --indigo: #4b49c9;
  --indigo-deep: #9d9bff;
  --on-indigo-soft: #d0d0ff;
  --ink: #ecebff;
  --ink-soft: #aeadd6;
  --paper: #14132d;
  --lilac: #1d1c40;
  --line: #2f2e5c;
  --card: #232250;
  --card-ink: #ecebff;
  --link: #a9a7ff;
  --t-text: #a1a1a6;
  --t-link: #4ea1ff;
  --t-file: #3fb8d1;
  --t-color: #ff5c86;
  --t-image: #f08a2c;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-feature-settings: "ss01" 0;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--t-link); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.1; font-weight: 750; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--paper); padding: 8px 12px; }

/* Header */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.125rem; text-decoration: none; color: inherit; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav { display: flex; gap: clamp(14px, 3vw, 28px); font-size: 0.975rem; }
.nav a { color: inherit; text-decoration: none; opacity: 0.9; }
.nav a:hover { text-decoration: underline; opacity: 1; }
.site-header.on-indigo { background: var(--indigo); color: var(--on-indigo); }
.on-indigo .brand img { box-shadow: 0 0 0 1.5px rgba(255,255,255,.5); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: inherit; font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-light { background: var(--on-indigo); color: #23216b; }
.btn-light:hover { background: #f1f1ff; }
.btn-ghost { color: var(--on-indigo); border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { border-color: #fff; }
.btn-solid { background: var(--indigo); color: #fff; }
.btn-solid:hover { background: var(--indigo-deep); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-solid:hover { background: #5856e0; } }
:root[data-theme="dark"] .btn-solid:hover { background: #5856e0; }

/* Hero */
.hero-band { background: var(--indigo); color: var(--on-indigo); overflow: hidden; }
.hero { padding-top: clamp(40px, 8vw, 96px); }
.hero h1 {
  font-size: clamp(2.6rem, 7.4vw, 5.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
  max-width: 13ch;
}
.hero .lede { margin-top: 24px; font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--on-indigo-soft); max-width: 46ch; }
.hero .actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero .fine { margin-top: 14px; font-size: 0.925rem; color: var(--on-indigo-soft); }

/* The shelf: a copy of the Mac shelf that opens with ⌃⌥V */
.shelf-stage { margin-top: clamp(48px, 8vw, 88px); }
.shelf-hint { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; color: var(--on-indigo-soft); margin-bottom: 14px; }
.keys { display: inline-flex; gap: 4px; }
kbd {
  font: inherit; font-weight: 650; font-size: 0.85rem;
  min-width: 28px; height: 28px; padding: 0 7px;
  display: inline-grid; place-items: center;
  border-radius: 7px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35);
  border-bottom-width: 3px; color: #fff;
}
.shelf {
  background: var(--shelf);
  border: 1px solid var(--shelf-line);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  padding: 14px 14px 22px;
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  animation: shelf-open 700ms cubic-bezier(.2,.8,.2,1) 150ms both;
}
@keyframes shelf-open { from { transform: translateY(70px); opacity: 0; } to { transform: none; opacity: 1; } }
.shelf-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.shelf-search {
  flex: 1 1 200px; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px;
  border-radius: 10px; background: rgba(255,255,255,.18); color: var(--on-indigo-soft); font-size: 0.95rem;
}
.shelf-search svg { width: 15px; height: 15px; }
.shelf-tabs { display: flex; gap: 4px; font-size: 0.9rem; font-weight: 600; }
.shelf-tabs span { padding: 7px 12px; border-radius: 9px; color: var(--on-indigo-soft); }
.shelf-tabs span[aria-current] { background: rgba(255,255,255,.95); color: #23216b; }
.clips { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
.clips::-webkit-scrollbar { display: none; }
.clip {
  --type: var(--t-text);
  flex: 0 0 210px; height: 168px; scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 8px; text-align: left;
  padding: 12px 14px 12px; border-radius: 14px;
  background: var(--card); color: var(--card-ink);
  border: 0; border-top: 4px solid var(--type);
  font: inherit; font-size: 0.95rem; line-height: 1.35; cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.clip:hover, .clip:focus-visible { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(20, 18, 90, .35); }
.clip:active { transform: translateY(-2px); }
.clip-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--type); font-weight: 650; }
.clip-meta .shortcut { color: #8e8db0; font-weight: 600; }
.clip-body { flex: 1; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.clip-src { font-size: 0.8rem; color: #8e8db0; }
.clip[data-type="link"] { --type: var(--t-link); }
.clip[data-type="file"] { --type: var(--t-file); }
.clip[data-type="color"] { --type: var(--t-color); }
.swatch { width: 100%; height: 54px; border-radius: 8px; background: #5e5ce6; }
.clip.copied .shortcut { color: var(--t-file); }
.shelf-status { min-height: 1.5em; margin-top: 10px; font-size: 0.925rem; color: var(--on-indigo-soft); }

/* Sections */
section { padding: clamp(64px, 10vw, 120px) 0; }
.section-head { max-width: 44rem; }
.section-head h2 { max-width: 18ch; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.section-head p { margin-top: 16px; color: var(--ink-soft); font-size: 1.15rem; max-width: 52ch; }

/* Three places */
.places { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.place h3 { font-size: 1.45rem; margin-top: 22px; }
.place p { margin-top: 10px; color: var(--ink-soft); }
.place p strong { color: var(--ink); font-weight: 650; }
.visual { height: 150px; border-radius: 18px; background: var(--lilac); display: grid; place-items: center; padding: 18px; }
.visual .keys kbd { background: var(--paper); border-color: var(--line); color: var(--ink); min-width: 44px; height: 44px; font-size: 1.1rem; border-radius: 10px; }
.kb { width: 100%; max-width: 240px; display: grid; gap: 8px; }
.kb-row { display: flex; gap: 6px; }
.kb-chip { flex: 1; height: 44px; border-radius: 8px; background: var(--paper); border-top: 3px solid var(--t-text); font-size: 0.72rem; padding: 5px 7px; color: var(--ink-soft); overflow: hidden; line-height: 1.25; }
.kb-chip.l { border-top-color: var(--t-link); }
.kb-chip.f { border-top-color: var(--t-file); }
.kb-keys { display: flex; gap: 6px; }
.kb-keys span { height: 26px; border-radius: 6px; background: var(--paper); flex: 1; font-size: 0.68rem; display: grid; place-items: center; color: var(--ink-soft); }
.kb-keys span.wide { flex: 3; }
.visual svg { width: 100%; max-width: 250px; height: auto; color: var(--ink); }

/* Privacy */
.privacy-band { background: var(--lilac); }
.privacy-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.promises { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.promises li { padding: 20px 0; border-top: 1px solid var(--line); }
.promises li:last-child { border-bottom: 1px solid var(--line); }
.promises strong { display: block; font-size: 1.15rem; font-weight: 700; }
.promises span { display: block; margin-top: 4px; color: var(--ink-soft); }

/* Details */
.details { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 32px; }
.details h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
.details p { margin-top: 6px; color: var(--ink-soft); font-size: 0.98rem; }
.details kbd { background: var(--lilac); border-color: var(--line); color: var(--ink); min-width: 22px; height: 22px; font-size: 0.78rem; border-radius: 5px; border-bottom-width: 2px; padding: 0 5px; }

/* Pricing */
.pricing { margin-top: 48px; display: grid; grid-template-columns: 1fr 1.25fr; gap: 20px; align-items: stretch; }
.plan { border-radius: 22px; padding: clamp(24px, 3.4vw, 36px); border: 1px solid var(--line); }
.plan h3 { font-size: 1.6rem; }
.plan .price-note { margin-top: 6px; color: var(--ink-soft); }
.plan ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 12px; height: 7px; border-left: 2.5px solid var(--indigo-deep); border-bottom: 2.5px solid var(--indigo-deep); transform: rotate(-45deg); }
.plan-pro { border: 2px solid var(--indigo); background: var(--paper); }
.prices { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.prices div { background: var(--lilac); border-radius: 14px; padding: 14px; }
.prices b { display: block; font-size: 1.6rem; font-weight: 780; letter-spacing: -0.02em; }
.prices span { color: var(--ink-soft); font-size: 0.92rem; }
.trial { margin-top: 22px; padding: 16px 18px; border-radius: 14px; background: var(--indigo); color: #fff; }
.trial strong { display: block; font-size: 1.1rem; }
.trial span { color: var(--on-indigo-soft); }
.pricing-foot { margin-top: 20px; color: var(--ink-soft); font-size: 0.95rem; max-width: var(--measure); }

/* Closing */
.closing { text-align: left; border-top: 1px solid var(--line); }
.closing .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.closing h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.closing p { margin-top: 8px; color: var(--ink-soft); }

/* Footer */
.site-footer { padding: 36px 0 48px; font-size: 0.95rem; color: var(--ink-soft); border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { color: inherit; }

/* Long-form pages (privacy, support) */
.page-band { background: var(--indigo); color: var(--on-indigo); }
.page-title { padding-top: clamp(32px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.page-title h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: -0.03em; }
.page-title p { margin-top: 14px; color: var(--on-indigo-soft); font-size: 1.15rem; max-width: 52ch; }
.prose { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(64px, 8vw, 96px); }
.prose .wrap > * { max-width: var(--measure); }
.prose h2 { font-size: 1.6rem; margin-top: 52px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin-top: 30px; font-weight: 700; letter-spacing: -0.01em; }
.prose p, .prose ul, .prose ol { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 6px; }
.prose .summary { margin-top: 14px; padding: 22px 24px; border-radius: 18px; background: var(--lilac); }
.prose .summary p:first-child { margin-top: 0; }
.prose .meta { color: var(--ink-soft); font-size: 0.95rem; }
.contact-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px; border-radius: 18px; background: var(--lilac); }
.contact-box p { margin: 0; }
.contact-box .email { font-size: 1.35rem; font-weight: 700; }
details { border-top: 1px solid var(--line); padding: 4px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 14px 0; font-weight: 650; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 500; font-size: 1.4rem; line-height: 1; color: var(--indigo-deep); }
details[open] summary::after { content: "–"; }
details > :not(summary) { margin-top: 0; margin-bottom: 16px; color: var(--ink-soft); }
details ol, details ul { color: var(--ink-soft); }

/* Responsive */
@media (max-width: 900px) {
  .places { grid-template-columns: 1fr; gap: 48px; }
  .privacy-grid { grid-template-columns: 1fr; }
  .details { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav a.hide-sm { display: none; }
  .details { grid-template-columns: 1fr; gap: 26px; }
  .prices { grid-template-columns: 1fr; }
  .prices div { display: flex; justify-content: space-between; align-items: baseline; }
  .clip { flex-basis: 180px; height: 160px; }
  .hero .actions .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .shelf { animation: none; }
  .clip { transition: none; }
  .clip:hover, .clip:focus-visible { transform: none; }
}
