@import url('https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,300..800&display=swap');

:root {
  --black: #000000;
  --white: #ffffff;
  --ash: #9a9a9a;
  --well: #161616;
  --line: rgba(255, 255, 255, 0.3);
  --line-strong: rgba(255, 255, 255, 0.75);
  --radius: 2px;
  --gap: 24px;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* Icon colours: one per icon, all at least 7:1 against the black background. */
  --ic-camera: #ff8a65;       /* coral */
  --ic-photos: #4fc3f7;       /* sky blue */
  --ic-record: #c792ea;       /* violet */
  --ic-video-upload: #ffd54f; /* yellow */
  --ic-voice: #f48fb1;        /* pink */
  --ic-voice-upload: #4db6ac; /* teal */
  --ic-music: #c5e1a5;        /* light green */
  --ic-picture: #4fc3f7;      /* sky blue: pictures */
  --ic-video: #c792ea;        /* violet: video */
  --ic-presenter: #ffb74d;    /* amber */
  --ic-voiceover: #f48fb1;    /* pink: voice */
  --ic-script: #81c784;       /* green */
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--black); color: var(--white); }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--white); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* ------------------------------------------------ header */
.top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding-top: 22px; padding-bottom: 18px;
}
.wordmark {
  font-stretch: 125%; font-weight: 700; font-size: 17px; letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap;
}
.wordmark span { font-weight: 300; }
.account { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.plan-badge { color: var(--white); white-space: nowrap; }

.linkish {
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--white);
  text-decoration: underline; text-underline-offset: 3px; font-size: 14px;
}
.linkish:hover { text-decoration-thickness: 2px; }

.instruction {
  font-size: 18px; color: var(--white); margin: 8px 0 28px; max-width: 70ch;
  font-weight: 400;
}

/* ------------------------------------------------ the two makers */
.makers { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 900px) { .makers { grid-template-columns: 1fr 1fr; } }

.maker {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  min-height: 420px;
}
.maker h2 {
  margin: 0; padding: 20px 22px 0;
  font-stretch: 125%; font-weight: 800; font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.05; letter-spacing: -0.01em;
}
.maker textarea {
  flex: 1; width: 100%; resize: none; border: 0; background: transparent;
  padding: 16px 22px 12px; font-size: 19px; line-height: 1.45; min-height: 150px;
}
.maker textarea::placeholder { color: var(--ash); }
.maker textarea:focus-visible { outline: none; }
.maker:focus-within { border-color: var(--white); box-shadow: 0 0 0 1px var(--white); }

.attachments { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 22px 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 8px 6px 6px; font-size: 14px;
}
.chip img, .chip video { width: 40px; height: 40px; object-fit: cover; border-radius: 1px; background: var(--well); }
.chip .remove { background: none; border: 0; color: var(--ash); cursor: pointer; font-size: 18px; line-height: 1; padding: 2px 4px; }
.chip .remove:hover { color: var(--white); }

.controls {
  border-top: 1px solid var(--line);
  padding: 14px 22px 18px;
  display: flex; flex-direction: column; gap: 14px;
}
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.row.end { justify-content: space-between; }

.tool {
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 12px; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.tool:hover { border-color: var(--white); }
.tool svg { width: 16px; height: 16px; }

select, .field {
  background: var(--well); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 10px; font-size: 14px; max-width: 100%;
}
select:hover, .field:hover { border-color: var(--line-strong); }

.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); }
.segmented button {
  background: none; border: 0; padding: 8px 12px; font-size: 14px; cursor: pointer; color: var(--ash);
}
.segmented button + button { border-left: 1px solid var(--line); }
.segmented button[aria-pressed='true'] { background: var(--white); color: var(--black); }
.segmented button:not([aria-pressed='true']):hover { color: var(--white); }

.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { accent-color: var(--white); width: 16px; height: 16px; }

.script {
  width: 100%; background: var(--well); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 12px; font-size: 15px; resize: vertical; min-height: 76px;
}
.hint { font-size: 13px; color: var(--ash); }

.primary {
  background: var(--white); color: var(--black); border: 1px solid var(--white); border-radius: var(--radius);
  padding: 11px 20px; font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap;
}
.primary:hover { background: #e6e6e6; }
.primary:disabled { background: transparent; color: var(--ash); border-color: var(--line); cursor: not-allowed; }
.secondary {
  background: none; color: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 10px 18px; font-size: 15px; cursor: pointer;
}
.secondary:hover { border-color: var(--white); }

.error { font-size: 14px; color: var(--white); border-left: 2px solid var(--white); padding-left: 10px; }

/* ------------------------------------------------ library */
.library { margin: 48px 0 64px; }
.library h3 { font-stretch: 112%; font-weight: 700; font-size: 20px; margin: 0 0 16px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.item { border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; }
.item .media {
  aspect-ratio: 1; background: var(--well); display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.item .media img, .item .media video { width: 100%; height: 100%; object-fit: contain; background: var(--black); }
.item .status { color: var(--ash); font-size: 14px; padding: 0 16px; text-align: center; }
.item .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.item .prompt { color: var(--ash); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item .headline { font-weight: 600; font-size: 15px; }
.item .actions { display: flex; gap: 16px; flex-wrap: wrap; }
.empty { color: var(--ash); font-size: 15px; }

.pulse { width: 28px; height: 28px; border: 1px solid var(--white); border-radius: 50%; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(0.6); opacity: 0.4; } 50% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }

/* ------------------------------------------------ auth + plans */
.panel { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 28px; max-width: 460px; }
.panel h2 { margin: 0 0 8px; font-stretch: 125%; font-weight: 800; font-size: 28px; line-height: 1.1; }
.panel p { margin: 0 0 18px; color: var(--ash); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.input {
  width: 100%; background: var(--well); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; font-size: 16px;
}
.input:focus-visible { outline: none; border-color: var(--white); }

.plans { display: grid; gap: var(--gap); grid-template-columns: 1fr; margin-top: 8px; }
@media (min-width: 720px) { .plans { grid-template-columns: 1fr 1fr; max-width: 820px; } }
.plan { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.plan h3 { margin: 0; font-stretch: 125%; font-weight: 800; font-size: 26px; }
.plan .price { font-size: 44px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: 16px; font-weight: 400; color: var(--ash); }
.plan .local { font-size: 14px; color: var(--ash); min-height: 21px; }
.plan ul { margin: 0; padding-left: 18px; color: var(--white); font-size: 15px; }
.plan li + li { margin-top: 4px; }
.currency { display: flex; align-items: center; gap: 10px; font-size: 14px; margin: 0 0 20px; }
.fineprint { color: var(--ash); font-size: 13px; max-width: 70ch; margin-top: 18px; }

/* ------------------------------------------------ dialogs */
dialog {
  background: var(--black); color: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 0; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto;
}
dialog::backdrop { background: rgba(0, 0, 0, 0.82); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.dialog-head h4 { margin: 0; font-size: 17px; font-weight: 600; }
.dialog-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.viewfinder { width: 100%; aspect-ratio: 3 / 4; max-height: 60vh; background: var(--well); object-fit: cover; border-radius: 1px; }
.meter { font-variant-numeric: tabular-nums; font-size: 14px; color: var(--ash); }
.account-list { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.account-list .label { color: var(--ash); }

/* ------------------------------------------------ footer */
.foot { margin-top: auto; border-top: 1px solid var(--line); padding: 18px 0 26px; font-size: 13px; color: var(--ash); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.foot a { color: var(--ash); }
.foot a:hover { color: var(--white); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50;
  background: var(--white); color: var(--black); padding: 10px 16px; border-radius: var(--radius); font-size: 14px;
  max-width: calc(100vw - 32px);
}

/* legal */
.legal { max-width: 70ch; padding-bottom: 48px; }
.legal h1 { font-stretch: 125%; font-weight: 800; font-size: 34px; margin: 12px 0 8px; }
.legal h2 { font-size: 20px; margin: 32px 0 8px; }
.legal p, .legal li { color: #d6d6d6; }
.working { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.secondary.small { padding: 7px 12px; font-size: 14px; }
.notice { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.notice .error { margin: 0; }
a.primary, a.secondary { display: inline-block; text-decoration: none; }

/* ------------------------------------------------ navigation */
.account a { white-space: nowrap; }
nav.account { gap: 18px; }
.primary.big { padding: 15px 28px; font-size: 17px; }
.text-link { font-size: 16px; }

/* ------------------------------------------------ homepage */
.hero {
  display: grid; gap: 48px; align-items: center;
  grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 72px;
}
@media (min-width: 980px) { .hero { grid-template-columns: 1.05fr 1fr; padding-top: 64px; padding-bottom: 104px; } }
.hero h1 {
  margin: 0; font-stretch: 125%; font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(42px, 6.4vw, 88px); line-height: 0.98; max-width: 12ch;
}
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; max-width: 52ch; margin: 28px 0 32px; color: #e9e9e9; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-bottom: 14px; }

.demo { border: 1px solid var(--line-strong); border-radius: var(--radius); }
.demo-prompt { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.demo-prompt p { margin: 6px 0 0; font-size: 18px; line-height: 1.4; }
.demo-label { display: block; font-size: 12px; color: var(--ash); letter-spacing: 0.02em; }
.demo-outputs { display: grid; grid-template-columns: 1.2fr 0.8fr 1fr; gap: 14px; padding: 18px 20px 20px; align-items: start; }
@media (max-width: 560px) { .demo-outputs { grid-template-columns: 1fr 1fr; } .demo-script { grid-column: 1 / -1; } }
.demo figure { margin: 0; }
.demo svg { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.demo-picture { position: relative; }
.demo-poster-text {
  position: absolute; left: 1px; right: 1px; top: 1px; padding: 10px 10px 0;
  display: flex; flex-direction: column; gap: 2px;
}
.demo-poster-text b { font-stretch: 125%; font-weight: 800; font-size: clamp(13px, 1.25vw, 16px); line-height: 1.05; max-width: 9ch; }
.demo-poster-text span { font-size: 10px; color: #d0d0d0; }
.demo figcaption { font-size: 12px; color: var(--ash); margin-top: 8px; }
.demo-script { border: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.demo-script p { margin: 0 0 6px; font-size: 14px; line-height: 1.45; }
.demo-script p.small { font-size: 13px; color: #d6d6d6; }

.band { padding-top: 64px; padding-bottom: 64px; }
.band h2, .closing h2 { font-stretch: 125%; font-weight: 800; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; margin: 0 0 28px; max-width: 22ch; }
.section-lede { max-width: 62ch; color: #e0e0e0; margin: -12px 0 24px; font-size: 17px; }

.features { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .features { grid-template-columns: repeat(3, 1fr); } }
.features article { padding: 24px 24px 26px 0; border-bottom: 1px solid var(--line); }
.features svg { width: 30px; height: 30px; }
.features h3 { margin: 14px 0 6px; font-size: 19px; font-weight: 650; }
.features p { margin: 0; color: #d6d6d6; max-width: 40ch; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.steps li { counter-increment: step; border-top: 2px solid var(--white); padding-top: 18px; }
.steps li::before { content: counter(step); font-stretch: 125%; font-weight: 800; font-size: 34px; line-height: 1; display: block; margin-bottom: 14px; }
.steps h3 { margin: 0 0 6px; font-size: 19px; font-weight: 650; }
.steps p { margin: 0; color: #d6d6d6; max-width: 42ch; }

.faq { max-width: 760px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-size: 17px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 10px 0 0; color: #d6d6d6; max-width: 64ch; }

.closing { padding-top: 48px; padding-bottom: 96px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }

/* ------------------------------------------------ account pages */
.account-page { display: flex; justify-content: center; padding-top: 32px; padding-bottom: 80px; }
.account-page .panel { width: 100%; max-width: 440px; }
.account-page h1 { margin: 0 0 8px; font-stretch: 125%; font-weight: 800; font-size: 30px; line-height: 1.1; }
.account-page .panel > p { color: #d6d6d6; margin: 0 0 20px; }
.account-page .panel p.hint { color: var(--ash); }
.field-label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #d6d6d6; }
.password-wrap { position: relative; display: block; }
.password-wrap .input { padding-right: 64px; }
.reveal { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; }
.switch { margin: 16px 0 0; font-size: 15px; color: #d6d6d6; }
.notice-line { border-left: 2px solid var(--white); padding-left: 10px; color: var(--white) !important; }
.account-page .stack .primary, .account-page .stack .secondary { width: 100%; }

/* ---------------------------------------------------------------- icon colours */
.icon { flex: none; }
.ic-camera { color: var(--ic-camera); }
.ic-photos { color: var(--ic-photos); }
.ic-record { color: var(--ic-record); }
.ic-video-upload { color: var(--ic-video-upload); }
.ic-voice { color: var(--ic-voice); }
.ic-voice-upload { color: var(--ic-voice-upload); }
.ic-picture { color: var(--ic-picture); }
.ic-video { color: var(--ic-video); }
.ic-presenter { color: var(--ic-presenter); }
.ic-voiceover { color: var(--ic-voiceover); }
.ic-script { color: var(--ic-script); }
.tool:disabled { opacity: 0.45; cursor: not-allowed; }
.tool:disabled:hover { border-color: var(--line); }

/* photo previews */
.chip img, .chip video { width: 56px; height: 56px; }

/* login: keep me signed in */
.remember { margin-top: 2px; }
.remember + .fineprint { margin-top: -6px; }

/* background music */
.ic-music { color: var(--ic-music); }
.volume { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.volume input[type=range] { accent-color: var(--white); width: 120px; }
.volume output { min-width: 3.5ch; color: var(--ash); }
