@font-face { font-family: "DM Sans"; src: url("assets/fonts/dm-sans-regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("assets/fonts/dm-sans-medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("assets/fonts/dm-sans-semibold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("assets/fonts/dm-sans-bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Kalam"; src: url("assets/fonts/kalam-regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }

/* The clay palette, from the logo and the illustrations */
:root {
  --cream: #faf7f2;
  --cream-deep: #f2ebe0;
  --card: #fffdf9;
  --ink: #1f1c26;
  --ink-soft: #5d5866;
  --line: rgb(31 28 38 / 0.1);
  --coral: #ef7158;
  --purple: #8460bb;
  --purple-deep: #6a479f;
  --yellow: #f3ce67;
  --sticky: #fff1b0;
  --radius: 28px;
  --shadow: 0 30px 80px -30px rgb(60 40 20 / 0.35), 0 8px 24px -12px rgb(60 40 20 / 0.2);
  --clay-shadow: 0 1px 0 rgb(255 255 255 / 0.6) inset, 0 -3px 0 rgb(0 0 0 / 0.08) inset, 0 10px 30px -12px rgb(60 40 20 / 0.3);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 19px/1.55 "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: var(--purple-deep); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; }
h1 { font-size: clamp(52px, 8.4vw, 112px); }
h2 { font-size: clamp(40px, 5.6vw, 72px); }
h3 { font-size: 26px; letter-spacing: -0.02em; line-height: 1.15; }
h1 em, h2 em { font-style: normal; color: var(--purple); }
.sub, .lede { color: var(--ink-soft); }
.lede { margin: 28px auto 0; max-width: 640px; font-size: clamp(20px, 2.2vw, 25px); line-height: 1.45; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

section { padding: clamp(96px, 13vw, 168px) 24px 0; text-align: center; }
section > h2 + .sub { margin: 20px 0 0; font-size: 21px; }

/* Buttons: soft and a little squishy, like the clay */
.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 30px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 -3px 0 rgb(0 0 0 / 0.35) inset, 0 14px 30px -12px rgb(31 28 38 / 0.6);
  transition: transform 0.18s cubic-bezier(.3,1.6,.6,1), box-shadow 0.18s;
}
.button:hover { transform: translateY(-2px) scale(1.02); }
.button:active { transform: translateY(1px) scale(0.98); }
.button img { width: 28px; height: 28px; }
.button-small { padding: 10px 20px; font-size: 16px; }
.cta { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 40px; }
.cta-note { color: var(--ink-soft); font-size: 16px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgb(250 247 242 / 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
/* The wordmark: the clay P from the logo, then "agic", sharing a baseline */
.brand { display: inline-flex; align-items: baseline; color: var(--ink); font-size: 30px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; text-decoration: none; }
.brand img { width: auto; height: 1.15em; margin: 0 -0.13em -0.04em 0; }
.site-header nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); }
.site-header nav a:not(.button) { color: var(--ink); font-size: 17px; font-weight: 500; text-decoration: none; }
.site-header nav a:not(.button):hover { color: var(--purple); }

/* 1. Hero */
.hero { position: relative; padding-top: clamp(64px, 9vw, 120px); }
.hero-cursor {
  position: absolute;
  top: clamp(24px, 3vw, 48px);
  right: max(2vw, calc(50% - 660px));
  width: clamp(110px, 15vw, 210px);
  aspect-ratio: 1000 / 667;
  transform: rotate(-8deg);
  pointer-events: none;
}
/* The three clay pieces, placed as in the original still life, each
   floating on its own rhythm */
.hero-cursor img { position: absolute; }
.clay-arrow { left: 28.2%; top: 20.2%; width: 45.7%; animation: bob 6s ease-in-out infinite; }
.clay-star { left: 55.1%; top: 2.1%; width: 33.8%; animation: twinkle 4.4s ease-in-out -1.2s infinite; }
.clay-dot { left: 12.6%; top: 62.1%; width: 20.6%; animation: drift 5.3s ease-in-out -2.6s infinite; }
@keyframes bob { 50% { transform: rotate(4deg) translateY(-12px); } }
@keyframes twinkle { 50% { transform: translate(6px, -10px) rotate(18deg) scale(1.08); } }
@keyframes drift { 50% { transform: translate(-8px, 8px); } }
.hero-shot {
  position: relative;
  max-width: 1180px;
  margin: clamp(56px, 7vw, 88px) auto 0;
}
.hero-shot img, .slider, .detail img:not(.detail-panel) {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  outline: 1px solid var(--line);
}
.hero-shot::before {
  content: "";
  position: absolute;
  inset: 8% -4% -6%;
  z-index: -1;
  border-radius: 48px;
  background: radial-gradient(60% 60% at 30% 40%, rgb(243 206 103 / 0.45), transparent 70%),
              radial-gradient(50% 60% at 75% 60%, rgb(132 96 187 / 0.3), transparent 70%);
  filter: blur(30px);
}

/* 2. Before and after */
.tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 40px 0 28px; padding: 6px; border-radius: 999px; background: var(--cream-deep); }
.tabs button {
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--card); box-shadow: var(--clay-shadow); }
.slider {
  --pos: 50%;
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--card);
  user-select: none;
}
.slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.slider-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 4px;
  margin-left: -2px;
  background: var(--card);
  box-shadow: 0 0 12px rgb(0 0 0 / 0.25);
  pointer-events: none;
}
.slider-handle::after {
  content: "‹ ›";
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  box-shadow: var(--clay-shadow);
}
.slider input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.slider-label {
  position: absolute;
  top: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgb(31 28 38 / 0.72);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  pointer-events: none;
}
.slider-label.left { left: 18px; }
.slider-label.right { right: 18px; background: var(--purple); }

/* 3. Selling points */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1180px;
  margin: clamp(48px, 6vw, 72px) auto 0;
}
.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 28px 36px;
  border: 0;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--clay-shadow);
  text-align: center;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(.3,1.5,.6,1);
}
.feature img { width: auto; height: 170px; object-fit: contain; margin-bottom: 18px; transition: transform 0.3s cubic-bezier(.3,1.6,.6,1); }
.feature p { margin: 10px 0 0; color: var(--ink-soft); font-size: 18px; }
.feature::after { content: "See how →"; margin-top: 18px; color: var(--purple); font-size: 16px; font-weight: 600; opacity: 0; transition: opacity 0.2s; }
.feature:hover { transform: translateY(-6px); }
.feature:hover img { transform: scale(1.06) rotate(-3deg); }
.feature:hover::after, .feature:focus-visible::after { opacity: 1; }

.detail {
  width: min(880px, calc(100% - 32px));
  max-height: calc(100% - 48px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.detail::backdrop { background: rgb(31 28 38 / 0.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.detail[open] { animation: pop 0.3s cubic-bezier(.3,1.4,.6,1); }
@keyframes pop { from { opacity: 0; transform: scale(0.94) translateY(12px); } }
.detail .close {
  position: sticky;
  top: 14px;
  float: right;
  z-index: 1;
  width: 44px;
  height: 44px;
  margin: 14px 14px 0 0;
  border: 0;
  border-radius: 50%;
  background: var(--cream-deep);
  font-size: 18px;
  cursor: pointer;
}
.detail-body { padding: 28px clamp(24px, 5vw, 48px) 40px; }
.detail-body img { margin: 0 0 32px; }
.detail-body .detail-panel { width: 240px; margin: 0 auto 32px; border-radius: 18px; box-shadow: var(--shadow); }
.detail-body h3 { font-size: 34px; }
.detail-body p { margin: 14px 0 0; }
.detail-body ul { margin: 18px 0 0; padding-left: 1.2em; color: var(--ink-soft); }
.detail-body li { margin-top: 8px; }
.detail-body li::marker { color: var(--coral); }
kbd { padding: 2px 8px; border-radius: 6px; background: var(--cream-deep); font: inherit; font-size: 0.9em; }

/* A small clay icon above a section's heading */
.section-icon { width: 120px; margin: 0 0 20px -8px; }
.faq .section-icon { margin: 0 auto 12px; }

/* 4. Simple and Advanced */
.modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  max-width: 1080px;
  margin: 0 auto;
  text-align: left;
}
.switch { display: inline-flex; margin: 36px 0 24px; padding: 6px; border-radius: 999px; background: var(--cream-deep); }
.switch button { padding: 12px 28px; border: 0; border-radius: 999px; background: transparent; font-size: 18px; font-weight: 600; cursor: pointer; }
.switch button[aria-checked="true"] { background: var(--ink); color: var(--cream); }
.mode-text { max-width: 440px; margin: 0; color: var(--ink-soft); font-size: 21px; }
.modes-art {
  display: grid;
  place-items: center;
  min-height: 560px;
  padding: 40px;
  border-radius: 40px;
  background: radial-gradient(70% 60% at 40% 30%, rgb(243 206 103 / 0.55), transparent),
              radial-gradient(60% 60% at 70% 80%, rgb(132 96 187 / 0.35), transparent),
              var(--cream-deep);
}
.mode-shot { width: 302px; border-radius: 18px; box-shadow: var(--shadow); }
.mode-shot[data-for="advanced"] { max-height: 640px; object-fit: cover; object-position: top; }

/* 5. The first review */
.review { display: flex; flex-direction: column; align-items: center; }
.badge {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--clay-shadow);
  color: var(--ink-soft);
  font-size: 16px;
  font-weight: 500;
}
.sticky {
  position: relative;
  max-width: 520px;
  margin: 40px 0 0;
  padding: 44px 44px 36px;
  background: var(--sticky);
  color: #3a3115;
  font-family: "Kalam", cursive;
  text-align: left;
  transform: rotate(-2.5deg);
  box-shadow: 0 24px 40px -20px rgb(80 60 10 / 0.45), 0 2px 4px rgb(80 60 10 / 0.1);
}
.sticky::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 120px;
  height: 30px;
  translate: -50% 0;
  rotate: 3deg;
  background: rgb(132 96 187 / 0.35);
}
.stars { color: var(--coral); font-size: 30px; letter-spacing: 4px; }
.sticky blockquote { margin: 10px 0 0; }
.sticky blockquote p { margin: 0; font-size: 26px; line-height: 1.4; }
.sticky figcaption { margin-top: 18px; font-size: 21px; opacity: 0.75; }
.sticky figcaption::before { content: "- "; }

/* 6. Questions */
.faq { max-width: 800px; margin: 0 auto; }
.faq h2 { margin-bottom: 40px; }
.faq details { border-bottom: 1px solid var(--line); text-align: left; }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 4px;
  font-size: 22px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream-deep);
  font-size: 22px;
  transition: transform 0.25s, background 0.25s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--yellow); }
.faq details p { margin: 0; padding: 0 4px 26px; color: var(--ink-soft); }

/* 7. Get it */
.get { display: flex; flex-direction: column; align-items: center; padding-bottom: clamp(96px, 12vw, 160px); }
.get > img { width: clamp(120px, 16vw, 180px); margin-bottom: 36px; animation: bob 6s ease-in-out infinite; }
.get h2 { margin-bottom: 44px; }
.get .cta-note { margin: 16px 0 0; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  padding: 32px 24px 40px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 16px;
}
.site-footer a { color: inherit; }
.credits { flex-basis: 100%; margin: 0; font-size: 14px; text-align: center; opacity: 0.8; }

/* Privacy page */
.prose { max-width: 720px; margin: 0 auto; padding: 64px 24px 120px; }
.prose h1 { font-size: clamp(44px, 7vw, 72px); }
.prose h2 { margin-top: 56px; font-size: 30px; letter-spacing: -0.02em; }
.prose .sub { margin-top: 16px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-top: 8px; }

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .modes { grid-template-columns: 1fr; text-align: center; }
  .mode-text { margin: 0 auto; }
  .modes .section-icon { margin: 0 auto 16px; }
  .modes-art { min-height: 0; }
}
@media (max-width: 600px) {
  body { font-size: 18px; }
  section { padding-left: 16px; padding-right: 16px; }
  .wide-only { display: none; }
  .site-header nav a:not(.button) { display: none; }
  .hero-cursor { top: 8px; right: 6px; width: 84px; }
  .tabs { display: grid; grid-template-columns: 1fr 1fr; border-radius: 24px; }
  .tabs button { padding: 8px 14px; font-size: 15px; }
  .slider { aspect-ratio: 4 / 5; }
  .slider-label { top: 12px; font-size: 13px; }
  .slider-label.left { left: 12px; }
  .slider-label.right { right: 12px; }
  .feature-grid { gap: 12px; }
  .feature { padding: 20px 14px 24px; border-radius: 22px; }
  .feature img { height: 96px; margin-bottom: 12px; }
  .feature h3 { font-size: 19px; }
  .feature p { font-size: 15px; }
  .feature::after { display: none; }
  .modes-art { padding: 28px 16px; border-radius: 28px; }
  .mode-shot { width: 260px; }
  .sticky { padding: 36px 26px 28px; }
  .sticky blockquote p { font-size: 22px; }
  .faq summary { font-size: 19px; padding: 20px 2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
