/* unquiz
   The page is a slide editor's pasteboard. The tool is the slide. The hidden
   notice sits off the slide's left edge, which is where the product puts it.
   Pink is the logo's misprinted second layer: it marks the notice, and offsets the slide and the main buttons. */
:root {
  --pasteboard: #f5efe6;
  --slide: #ffffff;
  --board: #12332f;
  --teal: #0f766e;
  --teal-deep: #0c5f59;
  --text: #2a4541;
  --muted: #566864;
  --line: #dcd2c2;
  --line-soft: #e8dfd1;
  --tint: #faf6ef;
  --hi: #ff4f8b;
  --hi-soft: #ffe3ec;
  --red: #b8321f;
  --red-soft: #f8e4df;
  --gutter: 196px;
  --gap: 36px;
  --display: "Space Grotesk", "Trebuchet MS", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--pasteboard); color: var(--text); font: 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--board); outline-offset: 3px; border-radius: 4px; }
.muted { color: var(--muted); font-weight: 400; }
mark { background: var(--hi); color: var(--board); padding: 1px 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--board); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 20; }
.skip:focus { left: 8px; }

.wrap { width: min(1080px, calc(100% - 48px)); margin: 0 auto; }

/* ---------- header ---------- */
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: inline-flex; text-decoration: none; }
.lockup { display: block; height: 36px; width: auto; }
.top nav { display: flex; gap: 4px; }
.top nav a { color: var(--text); text-decoration: none; font-size: 16px; padding: 8px 12px; border-radius: 6px; }
.top nav a:hover { background: var(--line-soft); color: var(--board); }

/* ---------- hero ---------- */
.hero { padding: 52px 0 44px; }
h1 {
  font: 700 clamp(38px, 6.6vw, 76px)/.98 var(--display); letter-spacing: -.035em; color: var(--board);
  margin: 0 0 22px; max-width: 13.5em; text-wrap: balance;
}
.sub { font-size: clamp(17px, 1.7vw, 20px); margin: 0; max-width: 34em; text-wrap: pretty; }

/* ---------- stage: pasteboard gutter + slide ---------- */
.stage { display: grid; grid-template-columns: var(--gutter) minmax(0, 1fr); column-gap: var(--gap); align-items: start; }

.offslide { padding-top: 34px; text-align: right; }
.notice {
  margin: 0 0 14px; font-size: 6px; line-height: 1.5; font-weight: 500; color: var(--board);
  user-select: none; overflow: hidden; max-height: 153px; overflow-wrap: anywhere;
}
.notice span { background: var(--hi); padding: 1px 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.offslide-note { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.offslide-note b { display: block; font-weight: 600; color: var(--board); }

.card {
  background: var(--slide); border-radius: 3px; padding: 40px;
  box-shadow: 0 0 0 1px var(--line), 7px 7px 0 var(--hi);
}
.state { animation: in .22s ease both; }
.state:not([data-state="pick"]) { max-width: 600px; }
@keyframes in { from { opacity: 0; } to { opacity: 1; } }

/* The empty state borrows the editor's "click to add title" placeholder. */
.drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
  min-height: 340px; padding: 32px; border: 1.5px dashed var(--line); border-radius: 2px; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.drop:hover, .drop:focus-visible { border-color: var(--board); background: var(--tint); outline: none; }
.drop.over { border-color: var(--board); border-style: solid; background: var(--hi-soft); }
.drop-icon { width: 34px; height: 34px; color: var(--board); margin-bottom: 6px; }
.drop-title { font: 600 clamp(24px, 3.4vw, 36px)/1.1 var(--display); letter-spacing: -.012em; color: var(--board); text-wrap: balance; }
.drop-sub { font-size: 16px; color: var(--muted); }
.drop u { color: var(--board); text-underline-offset: 3px; }

.file { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--tint); border: 1px solid var(--line-soft); border-radius: 6px; min-width: 0; }
.ext { flex: none; min-width: 44px; height: 32px; padding: 0 8px; border-radius: 3px; display: grid; place-items: center; background: var(--board); color: #fff; font: 600 13px var(--display); letter-spacing: .02em; }
.fmeta { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; }
.fname { font-weight: 600; color: var(--board); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fsize { font-size: 14px; color: var(--muted); }
.x { flex: none; width: 40px; height: 40px; border-radius: 6px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.x:hover { background: var(--line-soft); color: var(--board); }
.x svg { width: 18px; height: 18px; }
[data-state="processing"] .x { display: none; }

.field { border: 0; padding: 0; margin: 26px 0 0; }
.field legend { font: 600 17px var(--display); color: var(--board); margin-bottom: 10px; padding: 0; }
.seg { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 8px; gap: 2px; }
.seg button {
  flex: 1; min-height: 40px; border: 0; border-radius: 5px; background: transparent; cursor: pointer;
  font: 500 15px var(--body); color: var(--text); transition: background .15s, color .15s;
}
.seg button:hover { background: var(--tint); }
.seg button[aria-checked="true"] { background: var(--board); color: #fff; }
.hint { margin: 10px 2px 0; font-size: 15px; color: var(--muted); }
.hint b { font-weight: 600; color: var(--board); background: var(--hi); padding: 1px 5px; margin-right: 8px; }
textarea {
  display: block; width: 100%; margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px;
  font: 16px/1.5 var(--body); color: var(--board); background: var(--slide); resize: vertical;
}
textarea:focus { outline: 2px solid var(--board); outline-offset: 1px; border-color: var(--board); }
textarea.invalid { border-color: var(--red); outline-color: var(--red); background: var(--red-soft); }

.more { margin-top: 18px; border-top: 1px solid var(--line-soft); }
.more summary {
  display: flex; align-items: center; gap: 8px; min-height: 48px; cursor: pointer; list-style: none;
  font-size: 16px; font-weight: 600; color: var(--board);
}
.more summary::-webkit-details-marker { display: none; }
.more summary::after {
  content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translateY(-3px); transition: transform .15s;
}
.more[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.more-body { padding-bottom: 6px; }
.mini-label { font-size: 14px; color: var(--muted); margin: 4px 0 8px; }
#pptx-options .mini-label { margin-top: 18px; }
pre {
  margin: 0; padding: 12px 14px; background: var(--hi-soft); border-left: 4px solid var(--hi); color: var(--board);
  font: 14px/1.55 var(--body); white-space: pre-wrap; max-height: 190px; overflow: auto;
}
.check { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--board); flex: none; }
.check span { font-size: 16px; color: var(--board); line-height: 1.4; }
.check small { display: block; font-size: 14px; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 220px; min-height: 52px; padding: 0 26px; margin-top: 24px;
  border-radius: 8px; border: 0; cursor: pointer; text-decoration: none; font: 600 18px var(--display);
  transition: background .15s, transform .08s;
}
.btn svg { width: 19px; height: 19px; stroke-width: 2.1; }
.btn.primary { background: var(--teal); color: #fff; box-shadow: 3px 3px 0 var(--hi); }
.btn.primary:hover { background: var(--teal-deep); }
.btn:active { transform: translateY(1px); }
.btn.primary:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--hi); }
.btn.ghost { display: flex; min-width: 0; min-height: 44px; padding: 0 12px; margin: 12px 0 0 -12px; background: none; color: var(--text); font: 500 16px var(--body); text-decoration: underline; text-underline-offset: 3px; }
.btn.ghost:hover { color: var(--board); background: var(--tint); }
.btn.expired { opacity: .4; pointer-events: none; }

/* processing: a highlighter stroke runs along the line */
.progress { height: 5px; background: var(--board); overflow: hidden; margin: 24px 0 18px; position: relative; }
.progress i { position: absolute; inset: 0 auto 0 0; width: 30%; background: var(--hi); animation: slide 1.3s ease-in-out infinite; }
@keyframes slide { from { left: -30%; } to { left: 100%; } }

.steps { list-style: none; padding: 0; margin: 0; font-size: 16px; }
.steps li { display: flex; align-items: center; gap: 10px; padding: 5px 0; color: var(--muted); }
.steps li::before { content: ""; flex: none; width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid var(--line); }
.steps li.ok { color: var(--board); }
.steps li.ok::before {
  border-color: var(--board); background: var(--board) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-4.9' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.steps li.run { color: var(--board); }
.steps li.run::before { border-color: var(--board); border-right-color: transparent; animation: spin .7s linear infinite; }
.steps li.bad { color: var(--red); }
.steps li.bad::before { border-color: var(--red); background: var(--red); }
.steps .r { margin-left: auto; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }

/* result */
.result { display: flex; gap: 16px; align-items: flex-start; }
.result h2 { margin: 0; font: 700 clamp(24px, 3vw, 32px)/1.1 var(--display); letter-spacing: -.012em; color: var(--board); }
.result p { margin: 6px 0 0; color: var(--text); }
.badge { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.badge svg { width: 22px; height: 22px; stroke-width: 2.4; }
.badge.ok { background: var(--hi); color: var(--board); }
.badge.bad { background: var(--red-soft); color: var(--red); }
.expiry { margin: 10px 0 0; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--muted); }
[data-state="done"] .more:first-of-type { margin-top: 24px; }

.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-height: 320px; overflow-y: auto; padding: 2px 4px 12px 2px; }
.thumbs figure { margin: 0; }
.thumbs img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.thumbs figcaption { font-size: 13px; color: var(--muted); margin-top: 4px; }

.assure { display: flex; align-items: center; gap: 8px; margin: 24px 0 0; font-size: 15px; color: var(--muted); }
.assure svg { width: 16px; height: 16px; flex: none; }

/* ---------- sections: heading in the gutter, content on the slide column ---------- */
.band { display: grid; grid-template-columns: var(--gutter) minmax(0, 1fr); column-gap: var(--gap); padding-top: 104px; }
.band > h2 { font: 700 26px/1.1 var(--display); letter-spacing: -.012em; color: var(--board); margin: 0; }
.band-sub { margin: 0 0 24px; max-width: 36em; }

.how { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: how; }
.how li { counter-increment: how; border-top: 2px solid var(--board); padding-top: 14px; }
.how li::before { content: counter(how); display: block; font: 700 44px/1 var(--display); color: var(--board); margin-bottom: 14px; }
.how h3 { margin: 0 0 6px; font: 600 20px/1.2 var(--display); color: var(--board); }
.how p { margin: 0; font-size: 16px; }

.chat { display: grid; gap: 14px; max-width: 640px; }
.chat p, .chat blockquote { margin: 0; padding: 14px 18px; }
.chat p::before, .chat blockquote::before { display: block; font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.chat .q { justify-self: end; max-width: 85%; background: var(--board); color: #fff; border-radius: 14px 14px 2px 14px; }
.chat .q::before { content: "You"; color: #b7c9c5; }
.chat blockquote { justify-self: start; max-width: 92%; background: var(--slide); color: var(--text); border-radius: 14px 14px 14px 2px; box-shadow: 0 0 0 1px var(--line); }
.chat blockquote::before { content: "Gemini"; color: var(--muted); }

.faq { border-top: 2px solid var(--board); max-width: 720px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; gap: 12px; min-height: 60px; cursor: pointer; list-style: none;
  font: 600 19px/1.25 var(--display); color: var(--board); padding: 10px 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font: 400 26px/1 var(--display); color: var(--board); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 20px; max-width: 36em; }

/* ---------- footer ---------- */
.foot { margin-top: 112px; border-top: 1px solid var(--line); }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 26px 0 36px; }
.foot .lockup { height: 28px; }
.maker { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 14px; color: var(--muted); }
.maker img { height: 24px; width: auto; display: block; }
.maker:hover span { color: var(--board); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .stage, .band { grid-template-columns: minmax(0, 1fr); }
  /* the notice now hangs off the slide's top edge instead of its left one */
  .offslide { padding: 0 0 12px; text-align: left; display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 16px; align-items: end; }
  .notice { margin: 0; max-height: 72px; font-size: 5px; }
  .band { padding-top: 72px; }
  .band > h2 { margin-bottom: 20px; }
  .how { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .how li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 8px; }
  .how li::before { grid-row: span 2; font-size: 36px; margin: 0; }
  .card { padding: 28px; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .top-inner { height: 68px; }
  .lockup { height: 30px; }
  .top nav a { padding: 8px; font-size: 15px; }
  .hero { padding: 28px 0 32px; }
  .card { padding: 16px; }
  .drop { min-height: 230px; padding: 20px; }
  .seg { flex-wrap: wrap; }
  .seg button { flex: 1 1 30%; }
  .btn.primary { width: 100%; }
  .thumbs { grid-template-columns: repeat(2, 1fr); }
  .assure { align-items: flex-start; }
  .assure svg { margin-top: 4px; }
  .foot { margin-top: 80px; }
  .foot-inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ---------- what you can protect ---------- */
.protects { max-width: 720px; }
.protects p { margin: 0 0 16px; max-width: 36em; }
.protects ul { margin: 0 0 16px; padding: 0; list-style: none; border-top: 2px solid var(--board); }
.protects li { padding: 14px 0; border-bottom: 1px solid var(--line); max-width: none; }
.protects li b { font-family: var(--display); font-weight: 600; color: var(--board); }
