/* ============================================================================
   clipppics — page styles

   An implementation of the Claude Design files `clipppics.dc.html` and
   `Shortcuts.dc.html`. Design tokens come from ds.css (vendored); everything
   here is page-level.

   The design files express themselves in inline styles, as their editor emits
   them. They are lifted into classes here — same values, one place to change
   them — and the fixed display sizes are wrapped in clamp() so the page
   survives a phone. Each clamp tops out at the design's own number, so at
   desktop widths this renders what the design file renders.
   ============================================================================ */

/* ── Type ─────────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'SB Aggro';
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url('assets/fonts/SBAggro-L.otf') format('opentype');
}
@font-face {
  font-family: 'SB Aggro';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('assets/fonts/SBAggro-M.otf') format('opentype');
}
@font-face {
  font-family: 'SB Aggro';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('assets/fonts/SBAggro-B.otf') format('opentype');
}

:root {
  --font-body: 'SB Aggro', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  --shell: 1080px;
  --sep: rgba(60, 60, 67, 0.13);

  /* The design's accent is a neutral gray, not the iOS system blue that
     ds.css tints with by default. Overriding --tint here rather than editing
     ds.css keeps that file a faithful copy of the design system. */
  --tint: #6E6E73;
  --tint-hover: #5A5A5F;

  /* The two easings the design uses: a soft overshoot-free curve for size and
     opacity, and a snappier one for press states. */
  --ease-soft: cubic-bezier(.32, .72, 0, 1);
  --ease-press: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; background: #fff; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--label-primary, #000);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--tint); text-decoration: none; }
a:hover { color: var(--tint-hover); text-decoration: underline; }

img { max-width: 100%; }

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ── Shared layout ────────────────────────────────────────────────────── */
.section { display: grid; justify-items: center; padding: 96px 24px; }
.section--grouped { background: #F2F2F7; }
.section--dark { background: #1C1C1E; color: #fff; }
.section--center { text-align: center; padding-bottom: 112px; }

.shell { width: 100%; max-width: var(--shell); display: grid; gap: 40px; }

.lede-block { display: grid; gap: 12px; max-width: 620px; }

.h2 {
  margin: 0;
  font-size: clamp(30px, 4.6vw, 40px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.lede {
  margin: 0;
  font-size: clamp(16px, 1.9vw, 19px);
  line-height: 1.45;
  color: var(--label-secondary, rgba(60, 60, 67, 0.6));
  text-wrap: pretty;
}
.section--dark .lede { color: rgba(235, 235, 245, 0.6); }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease-press), background 160ms ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }

.btn--primary { background: var(--tint); color: #fff; }
.btn--primary:hover { background: var(--tint-hover); color: #fff; }

/* On the tinted pricing card: an inverted fill, and a translucent companion. */
.btn--onDark { background: #fff; color: var(--tint); }
.btn--onDark:hover { background: #fff; color: var(--tint); }

.btn--ghost { background: rgba(255, 255, 255, 0.24); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.34); color: #fff; }

.btn--sm  { height: 34px; padding: 0 16px; font-size: 14px; }
.btn--lg  { height: 50px; padding: 0 28px; font-size: 17px; }
.btn--xl  { min-width: 190px; height: 56px; padding: 0 28px; font-size: 19px; }

/* ── Header ───────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  padding: 12px 24px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 100%;
  padding: 8px 10px 8px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  box-shadow:
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 32px rgba(0, 0, 0, 0.10);
}

.nav__mark { display: block; height: 20px; width: auto; }

.nav__wordmark {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--label-primary, #000);
}
.nav__wordmark:hover { color: var(--label-primary, #000); text-decoration: none; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: var(--label-secondary, rgba(60, 60, 67, 0.6));
}
.nav__links a { color: inherit; transition: color 160ms ease; }
.nav__links a:hover { color: #000; text-decoration: none; }

/* The page you are already on: present, but not a link. */
.nav__here { color: var(--label-primary, #000); font-weight: 500; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 40px;
  padding: 72px 24px 0;
  text-align: center;
}

/* ── Hero glow ────────────────────────────────────────────────────────── */
/* Three blurred discs drifting behind the copy. The container starts above
   the hero so the field reaches up behind the nav pill, clips its own
   children so a 46vw disc can never widen the page, and masks itself out
   before the mock starts. */
.hero__glow {
  position: absolute;
  inset: -220px 0 auto 0;
  height: 900px;
  z-index: 0;
  overflow: clip;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 45%, rgba(0,0,0,0) 88%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 45%, rgba(0,0,0,0) 88%);
}

.hero__blob {
  position: absolute;
  display: block;
  border-radius: 50%;
  animation-timing-function: cubic-bezier(.45, .05, .55, .95);
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.hero__blob--a {
  top: 60px; left: 8%;
  width: 46vw; height: 46vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(circle at 50% 50%, rgba(138,138,142,0.55), rgba(138,138,142,0) 70%);
  filter: blur(60px);
  animation-name: drift-a;
  animation-duration: 19s;
}
.hero__blob--b {
  top: 0; right: 4%;
  width: 40vw; height: 40vw; max-width: 640px; max-height: 640px;
  background: radial-gradient(circle at 50% 50%, rgba(110,110,115,0.45), rgba(110,110,115,0) 70%);
  filter: blur(70px);
  animation-name: drift-b;
  animation-duration: 25s;
}
.hero__blob--c {
  top: 240px; left: 34%;
  width: 36vw; height: 36vw; max-width: 560px; max-height: 560px;
  background: radial-gradient(circle at 50% 50%, rgba(174,174,178,0.55), rgba(174,174,178,0) 70%);
  filter: blur(64px);
  animation-name: drift-c;
  animation-duration: 31s;
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(9vw, 5vh, 0) scale(1.18); }
}
@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.1); }
  to   { transform: translate3d(-11vw, 7vh, 0) scale(0.9); }
}
@keyframes drift-c {
  from { transform: translate3d(0, 0, 0) scale(0.95); }
  to   { transform: translate3d(6vw, -6vh, 0) scale(1.25); }
}

.hero__copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 20px;
  max-width: 760px;
  justify-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(120, 120, 128, 0.12);
  font-size: 13px;
  color: var(--label-secondary, rgba(60, 60, 67, 0.6));
}

.hero__title {
  margin: 0;
  font-size: clamp(38px, 7.2vw, 68px);
  line-height: 1.03;
  font-weight: 700;
  letter-spacing: -0.0353em;
  text-wrap: balance;
}

.hero__lede {
  margin: 0;
  max-width: 560px;
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.4;
  color: var(--label-secondary, rgba(60, 60, 67, 0.6));
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 8px;
  flex-wrap: wrap;
}

.fine-print {
  margin: 0;
  font-size: 13px;
  color: var(--label-tertiary, rgba(60, 60, 67, 0.3));
}

/* ── Hero mock ────────────────────────────────────────────────────────── */
/* The design scales a fixed 1068px inner box down to fit its wrapper. The
   inner box holds one image, so width alone does that job here — the script
   only has to run the reveal.

   The stage has no bottom padding and clips: the mock is pushed 24px past
   the panel's lower edge and loses that strip, so the window reads as
   continuing below the fold rather than floating in a box. */
.hero__stage {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1240px;
  padding: 56px 0 0;
  border-radius: 36px;
  background-image: url('assets/wallpaper.jpg');
  background-size: cover;
  background-position: center;
  display: grid;
  justify-items: center;
  overflow: hidden;
}

.hero__mock {
  width: 92%;
  max-width: 1068px;
  min-width: 0;
  text-align: left;
  transform: translateY(24px);
  transform-origin: bottom center;
  transition:
    transform 700ms var(--ease-soft),
    opacity 500ms var(--ease-soft);
}

/* The starting state is applied only when script is running to undo it. The
   hero is the whole point of the page, so it must not depend on JS: with no
   script the .js class is never set and the mock is simply visible. */
.js .hero__mock { transform: translateY(42px) scale(0.965); opacity: 0; }
.js .hero__mock.is-revealed { transform: translateY(24px) scale(1); opacity: 1; }

/* No radius here on purpose: the capture is RGBA and carries its own
   rounded corners, so clipping it again would shave them twice. */
.hero__mock img {
  display: block;
  width: 100%;
  height: auto;
}

/* No animation for anyone who has asked not to see one. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__mock, .js .hero__mock {
    transform: translateY(24px);
    opacity: 1;
    transition: none;
  }
  .hero__blob { animation: none; }
  .btn, .toggle__btn { transition: none; }
  .btn:active { transform: none; }
}

/* ── Cards ────────────────────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.cards--narrow { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.card__title { margin: 0; font-size: 19px; font-weight: 600; }

.card__body {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--label-secondary, rgba(60, 60, 67, 0.6));
}

.card--wide .card__body { max-width: 720px; }

/* Dark variant, used in the privacy band. */
.card--dark {
  background: rgba(120, 120, 128, 0.24);
  padding: 24px;
  gap: 8px;
}
.card--dark .card__title { font-size: 17px; }
.card--dark .card__body { color: rgba(235, 235, 245, 0.6); }

.footnote {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(235, 235, 245, 0.4);
  max-width: 720px;
}

/* ── Key table (the shortcuts page) ───────────────────────────────────── */
.keys { border-radius: 14px; background: #fff; overflow: hidden; }

.keys__row {
  display: grid;
  grid-template-columns: var(--keys-cols, 190px 1fr 1fr);
  gap: 16px;
  padding: 16px 24px;
  border-top: 1px solid var(--sep);
  font-size: 15px;
  line-height: 1.4;
}

.keys__head {
  display: grid;
  grid-template-columns: var(--keys-cols, 190px 1fr 1fr);
  gap: 16px;
  padding: 14px 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--label-secondary, rgba(60, 60, 67, 0.6));
  background: rgba(120, 120, 128, 0.08);
  border-top: 0;
}

.keys__key { font-weight: 600; }
.keys__none { color: var(--label-tertiary, rgba(60, 60, 67, 0.4)); }

/* Two-column tables (the mouse list) */
.keys--pairs { --keys-cols: 190px 1fr; }

/* First row in a headless table should not carry a top rule. */
.keys--pairs .keys__row:first-child { border-top: 0; }

/* ── Pricing ──────────────────────────────────────────────────────────── */
.shell--pricing { max-width: 900px; gap: 36px; justify-items: center; }

.pricing__head {
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
}

.pricing__title {
  margin: 0;
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.0344em;
  text-wrap: balance;
}

.pricing__head .lede { max-width: 620px; font-size: clamp(17px, 2.2vw, 21px); line-height: 1.4; }

.plan {
  width: 100%;
  background: var(--tint);
  border-radius: 28px;
  padding: 56px 40px 48px;
  display: grid;
  gap: 28px;
  justify-items: center;
  text-align: center;
  color: #fff;
}

.plan__head { display: grid; gap: 12px; justify-items: center; }

.plan__name {
  margin: 0;
  font-size: clamp(34px, 5.6vw, 52px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.0346em;
}

.plan__desc {
  margin: 0;
  max-width: 420px;
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}

.toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.toggle__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 26px;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  box-shadow: none;
  transition:
    background 180ms var(--ease-press),
    color 180ms var(--ease-press),
    transform 160ms var(--ease-press),
    box-shadow 180ms ease;
}
.toggle__btn:active { transform: scale(0.97); }
.toggle__btn[aria-pressed="true"] {
  background: #fff;
  color: var(--tint);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.plan__pricing { display: grid; gap: 12px; justify-items: center; }

.plan__price-row { display: flex; align-items: baseline; justify-content: center; }

.plan__price {
  font-size: clamp(44px, 6.4vw, 60px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.0333em;
}

.plan__unit {
  font-size: clamp(24px, 3.2vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.plan__note-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.plan__note { font-size: 18px; color: rgba(255, 255, 255, 0.72); }

.plan__save {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 14px;
  font-weight: 700;
}
/* Paddle quotes a total, not a saving; the badge is hidden rather than
   guessed at whenever it cannot be stated from the published prices. */
.plan__save:empty { display: none; }

/* The trial terms belong beside the button that starts them, not only in the
   terms page. Paddle's review reads the point of sale for exactly this. */
.plan__trial {
  margin: 0;
  max-width: 46ch;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  color: rgba(255, 255, 255, 0.66);
}

.plan__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 8px;
}

/* Paddle is fetching a price. */
.plan__price.is-loading {
  color: transparent;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  min-width: 4ch;
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer {
  display: grid;
  justify-items: center;
  padding: 40px 24px 56px;
  border-top: 1px solid var(--sep);
}

.site-footer__inner {
  width: 100%;
  max-width: var(--shell);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--label-secondary, rgba(60, 60, 67, 0.6));
}
.site-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px; }
.site-footer__links a { color: inherit; }

/* ── Shortcuts page ───────────────────────────────────────────────────── */
.page--grouped { background: #F2F2F7; min-height: 100vh; }

.doc { display: grid; justify-items: center; padding: 56px 24px 96px; }
.doc__shell { width: 100%; max-width: 900px; display: grid; gap: 40px; }
.doc__head { display: grid; gap: 14px; max-width: 680px; }

.doc__title {
  margin: 0;
  font-size: clamp(32px, 5.4vw, 46px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.0348em;
  text-wrap: balance;
}

.doc__lede {
  margin: 0;
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.45;
  color: var(--label-secondary, rgba(60, 60, 67, 0.6));
  text-wrap: pretty;
}
.doc__lede--sm { font-size: clamp(15px, 1.8vw, 17px); line-height: 1.5; }

.doc__group { display: grid; gap: 12px; }

.doc__label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--label-secondary, rgba(60, 60, 67, 0.6));
}

.panel { border-radius: 14px; background: #fff; padding: 24px; }
.panel p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--label-secondary, rgba(60, 60, 67, 0.6)); }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .section { padding: 72px 20px; }
  .section--center { padding-bottom: 88px; }
  .hero { padding: 48px 20px 0; }
  .hero__stage { border-radius: 28px; padding: 36px 0 0; }
  .plan { padding: 44px 28px 40px; }
  .doc { padding: 40px 20px 72px; }
}

@media (max-width: 760px) {
  /* Three columns of key bindings do not fit a phone. Stack each row and let
     the zone labels, which the header used to carry, ride with the value. */
  .keys__head { display: none; }
  .keys__row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 18px;
  }
  .keys__row > :not(.keys__key)::before {
    content: attr(data-zone) " — ";
    color: var(--label-tertiary, rgba(60, 60, 67, 0.4));
  }
  .keys__row > .keys__none { display: none; }
  .keys--pairs .keys__row > :not(.keys__key)::before { content: none; }
}

@media (max-width: 680px) {
  /* The pill nav becomes a two-row block rather than overflowing. */
  .site-header { padding: 10px 14px; }
  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 22px;
  }
  .nav__links { gap: 16px; font-size: 13px; }
  .hero__actions { flex-direction: column; align-items: stretch; width: 100%; }
  .hero__actions .btn { width: 100%; }
  .plan__actions { flex-direction: column; align-self: stretch; }
  .plan__actions .btn { width: 100%; }
  .card { padding: 22px; }
  .site-footer__inner { justify-content: center; text-align: center; }
}

@media (max-width: 380px) {
  .toggle__btn { padding: 0 18px; font-size: 15px; }
}

/* ── Anchors ──────────────────────────────────────────────────────────── */
/* The nav is sticky, so a jump to #features would otherwise land underneath
   it. Keep a section's heading clear of the pill. */
[id] { scroll-margin-top: 88px; }

/* ── Legal pages ──────────────────────────────────────────────────────── */
/* `shortcuts.html` uses `.panel` for a single paragraph. The policy pages put
   headings, lists, and links inside one, so the prose variant supplies the
   vertical rhythm `.panel p { margin: 0 }` deliberately withholds. */
.panel--prose p + p,
.panel--prose p + ul,
.panel--prose ul + p { margin-top: 12px; }

.panel--prose h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--label-primary);
}
.panel--prose h3:not(:first-child) { margin-top: 26px; }

.panel--prose ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}
.panel--prose li {
  font-size: 15px;
  line-height: 1.55;
  color: var(--label-secondary);
}
.panel--prose li > strong { color: var(--label-primary); font-weight: 600; }

.panel--prose a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* The "last reviewed" stamp under a policy title. */
.doc__stamp {
  margin: 0;
  font-size: 13px;
  color: var(--label-tertiary);
}

/* The English/Korean switch at the head of each privacy notice. */
.lang-switch { font-size: 14px; }
.lang-switch a { color: var(--label-secondary); text-decoration: underline; text-underline-offset: 2px; }
