@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans.ttf") format("truetype");
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}
:root {
  --primary: #234fdb;
  --ink: #18313c;
  --muted: #596b76;
  --background: #f5f8fa;
  --surface: #ffffff;
  --mist: #dff3f4;
  --teal: #006e73;
  --line: #d4dee3;
  --danger: #b22c3c;
  --warning: #8a4c14;
  --radius: 0.625rem;
  --radius-lg: 1.25rem;
  --page-max: 78rem;
  --section-gap: 5rem;
  --scroll-thumb: #93a7b1;
  --scroll-track: #edf2f4;
  --scroll-hover: #596b76;
  --scroll-active: #18313c;
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
  font-size: 16px;
  line-height: 1.6;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
  scrollbar-width: thin;
  scrollbar-gutter: stable;
}
* {
  box-sizing: border-box;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
  scrollbar-width: thin;
}
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-track {
  background: var(--scroll-track);
}
*::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border: 2px solid var(--scroll-track);
  border-radius: 8px;
}
*::-webkit-scrollbar-thumb:hover {
  background: var(--scroll-hover);
}
*::-webkit-scrollbar-thumb:active {
  background: var(--scroll-active);
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
a,
button,
summary,
select,
input[type="file"],
input[type="checkbox"] {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
button {
  color: inherit;
}
img,
svg,
video {
  max-width: 100%;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}
::selection {
  background: var(--mist);
  color: var(--ink);
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: "Space Grotesk", Arial, sans-serif;
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -0.045em;
}
h1 {
  font-size: clamp(3.25rem, 7.6vw, 6.75rem);
}
h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}
h3 {
  font-size: 1.4rem;
}
p + p {
  margin-top: 1rem;
}
button {
  border: 0;
}
small,
.small {
  font-size: 0.82rem;
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: fixed;
  top: 10px;
  left: 20px;
  transform: translateY(-200%);
  background: var(--ink);
  color: var(--surface);
  padding: 12px;
  z-index: 100;
}
.skip:focus {
  transform: none;
}
.wrap {
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: 2rem;
}
.eyebrow {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.5;
}
.lede {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 35rem;
}
.logo {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 1.75rem;
  letter-spacing: -0.08em;
  font-weight: 700;
  line-height: 1;
}
.logo svg {
  color: var(--primary);
  width: 27px;
  flex: none;
}
.logo-dot {
  color: var(--primary);
}
.button {
  display: inline-flex;
  position: relative;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.8rem 1.25rem;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--surface);
  font-size: 0.88rem;
  line-height: 1.3;
  font-weight: 650;
  transition:
    background 0.16s,
    border-color 0.16s,
    transform 0.16s;
  white-space: normal;
}
.button:hover:not(:disabled) {
  background: var(--ink);
  border-color: var(--ink);
}
.button:active:not(:disabled) {
  transform: translateY(1px);
}
.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.button.secondary:hover:not(:disabled) {
  background: var(--mist);
  border-color: var(--teal);
}
.button.quiet {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
}
.button.quiet:hover:not(:disabled) {
  color: var(--ink);
  background: var(--background);
}
.button.danger {
  background: var(--danger);
  border-color: var(--danger);
}
.button:disabled {
  opacity: 0.5;
  transform: none;
}
.button[aria-busy="true"] > span {
  visibility: hidden;
}
.button-spinner,
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.button-spinner {
  display: none;
  position: absolute;
}
.button[aria-busy="true"] .button-spinner {
  display: block;
}
.link-button,
.text-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 650;
  background: none;
  padding: 0;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: var(--line);
}
.text-link:hover,
.link-button:hover {
  text-decoration-color: var(--primary);
  color: var(--primary);
}
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.header-inner {
  max-width: var(--page-max);
  margin: auto;
  padding: 1.4rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.header-inner nav {
  display: flex;
  gap: 1.8rem;
  margin-left: auto;
  font-size: 0.83rem;
  color: var(--muted);
}
.header-inner nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
}
.header-inner nav a:hover {
  color: var(--primary);
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-block: 4.5rem 6rem;
}
.hero-copy > .eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.8rem;
}
.tiny-mark {
  width: 6px;
  height: 6px;
  background: var(--teal);
  display: inline-block;
}
.hero h1 {
  line-height: 0.99;
  font-weight: 600;
  margin-bottom: 1.7rem;
}
.hero h1 > span {
  color: var(--primary);
}
.hero .lede {
  max-width: 28rem;
  font-size: 1.04rem;
}
.hero .actions {
  margin-top: 2rem;
}
.hero-copy > .small {
  margin-top: 1.2rem;
}
.output-desk {
  padding: 1.5rem 1.5rem 1rem;
  background: var(--mist);
  border-radius: var(--radius-lg);
  position: relative;
  min-width: 0;
}
.desk-label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.6rem;
  color: var(--teal);
  font-family: ui-monospace, monospace;
  letter-spacing: 0.05em;
  padding: 0 0.5rem 0.8rem;
}
.tray {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.15rem;
  box-shadow: 0 12px 24px #18313c0a;
  position: relative;
  margin-bottom: 1rem;
}
.tray-leads {
  transform: translateX(-2rem) rotate(-2deg);
  width: 100%;
}
.tray-voice {
  transform: translateX(0.6rem) rotate(1.2deg);
  margin-top: -0.35rem;
}
.tray-clips {
  transform: translateX(-0.8rem) rotate(-0.6deg);
  margin-top: -0.2rem;
}
.tray-heading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}
.tool-symbol {
  display: grid;
  place-items: center;
  background: var(--primary);
  color: var(--surface);
  width: 26px;
  height: 26px;
  border-radius: 6px;
  font-size: 1rem;
}
.tool-symbol.teal {
  background: var(--teal);
}
.tool-symbol.dark {
  background: var(--ink);
}
.file-tag {
  font-size: 0.55rem;
  font-family: ui-monospace, monospace;
  letter-spacing: 0.07em;
  border: 1px solid var(--line);
  padding: 3px 6px;
  border-radius: 4px;
  margin-left: auto;
  color: var(--muted);
}
.sample-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
}
.sample-row b {
  font-weight: 600;
}
.sample-row small {
  display: block;
  font-size: 0.62rem;
}
.sample-initial {
  display: grid;
  place-items: center;
  background: var(--mist);
  color: var(--teal);
  font-size: 0.6rem;
  width: 29px;
  height: 29px;
  border-radius: 6px;
  flex: none;
}
.sample-initial.pale {
  background: var(--background);
  color: var(--muted);
}
.source-tag {
  margin-left: auto;
  font-size: 0.55rem;
  color: var(--teal);
  white-space: nowrap;
}
.wave {
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow: hidden;
}
.wave i {
  display: block;
  flex: 0 0 4px;
  height: var(--wave, 20px);
  border-radius: 3px;
  background: var(--teal);
}
.voice-sample p {
  font-size: 0.78rem;
  line-height: 1.6;
  text-align: center;
  margin: 0.2rem auto 0.5rem;
  max-width: 25rem;
}
.voice-sample > .small {
  display: block;
  text-align: center;
  font-size: 0.59rem;
}
.clip-sample {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.7rem;
}
.video-frame {
  background: var(--ink);
  color: var(--surface);
  aspect-ratio: 9/13;
  max-width: 135px;
  width: 40%;
  border-radius: 8px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.video-play {
  font-size: 18px;
  background: #ffffff20;
  border: 1px solid #ffffff55;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding-left: 2px;
}
.caption-sample {
  position: absolute;
  bottom: 35px;
  text-align: center;
  font-size: 0.55rem;
  line-height: 1.4;
  font-weight: 700;
  background: #18313cd9;
  padding: 4px;
}
.video-time {
  position: absolute;
  bottom: 8px;
  font-size: 0.5rem;
  opacity: 0.75;
}
.sample-files {
  display: grid;
  gap: 0.65rem;
  font-size: 0.7rem;
  color: var(--muted);
}
.sample-files span:before {
  content: "↳";
  display: inline-block;
  margin-right: 8px;
  color: var(--teal);
}
.desk-bottom {
  font-size: 0.66rem;
  color: var(--teal);
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}
.connection-dot {
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
}
.tools-section {
  padding-block: var(--section-gap);
  border-top: 1px solid var(--line);
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.section-heading h2 {
  margin-top: 0.9rem;
}
.section-heading > p {
  max-width: 24rem;
  color: var(--muted);
  font-size: 0.93rem;
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.tool-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.tool-card h3 {
  margin: 0.5rem 0 0.8rem;
}
.tool-card > p:not(.eyebrow) {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.4rem;
}
.tool-card > .text-link {
  margin-top: auto;
}
.card-art {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 150px;
  background: var(--background);
  border-radius: 12px;
  width: 100%;
  margin-bottom: 1.6rem;
  overflow: hidden;
}
.art-leads {
  flex-direction: column;
  transform: none;
  padding: 1.4rem;
}
.art-cell {
  display: block;
  background: var(--surface);
  width: 100%;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 0.65rem;
  color: var(--muted);
}
.art-cell:nth-child(2) {
  width: 85%;
  margin-left: 15%;
}
.art-cell:nth-child(3) {
  width: 70%;
  margin-left: 30%;
}
.art-voice {
  background: var(--mist);
}
.art-voice .wave {
  width: 85%;
  gap: 3px;
}
.art-voice .wave i {
  flex-basis: 3px;
}
.format-box {
  background: var(--ink);
  color: var(--surface);
  display: grid;
  place-items: center;
  font-size: 0.6rem;
  border-radius: 5px;
}
.format-box.landscape {
  width: 100px;
  height: 58px;
}
.format-box.portrait {
  width: 54px;
  height: 96px;
  background: var(--primary);
}
.connected-section {
  background: var(--background);
  padding-block: var(--section-gap);
  border-block: 1px solid var(--line);
}
.connected-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}
.connected-grid h2 {
  margin: 0.9rem 0 1.2rem;
}
.connected-grid .lede {
  font-size: 1rem;
  margin-bottom: 1.6rem;
}
.workspace-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  min-width: 0;
}
.preview-top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.1rem 1.3rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.83rem;
  font-weight: 600;
}
.preview-top > svg {
  width: 18px;
  color: var(--primary);
}
.preview-top > .small {
  margin-left: auto;
  font-weight: 400;
  font-size: 0.65rem;
}
.preview-body {
  display: grid;
  grid-template-columns: 135px 1fr;
  min-height: 260px;
}
.preview-nav {
  padding: 1.5rem 1rem;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  font-size: 0.67rem;
  color: var(--muted);
}
.preview-nav b {
  color: var(--primary);
}
.preview-results {
  padding: 1.6rem 1.4rem;
}
.preview-results > div {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-bottom: 1px solid var(--line);
  padding: 1.2rem 0;
  font-size: 0.72rem;
}
.preview-results > div > b {
  font-weight: 500;
}
.preview-results > div > span:last-child {
  font-size: 0.55rem;
  color: var(--muted);
  margin-left: auto;
}
.preview-check {
  color: var(--teal);
}
.preview-results > p {
  font-size: 0.6rem;
  margin-top: 1rem;
}
.membership {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  padding-block: var(--section-gap);
  border-bottom: 1px solid var(--line);
}
.membership h2 {
  margin-top: 0.9rem;
}
.membership .lede {
  margin-bottom: 1rem;
}
.membership p:not(.lede) {
  font-size: 0.9rem;
  color: var(--muted);
}
.membership .button {
  margin-top: 1.5rem;
}
.shopify-section {
  padding-block: var(--section-gap);
}
.shopify-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.store-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition:
    border-color 0.16s,
    background 0.16s;
}
.store-card:hover {
  border-color: var(--teal);
  background: var(--background);
}
.store-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.8rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 1.3rem;
}
.store-card h3 {
  font-size: 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.store-card h3 > span {
  font-size: 1rem;
  color: var(--muted);
}
.store-card p {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.8rem 0 1.2rem;
}
.store-card > .small {
  font-size: 0.7rem;
}
.closing {
  background: var(--mist);
  border-radius: var(--radius-lg);
  text-align: center;
  padding-block: 4rem;
  margin-bottom: var(--section-gap);
}
.closing h2 {
  margin: 1rem 0 2rem;
  font-size: clamp(2.8rem, 5vw, 4rem);
}
.site-footer {
  max-width: var(--page-max);
  padding: 2.5rem 2rem;
  margin: auto;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  align-items: center;
}
.site-footer .logo {
  font-size: 1.4rem;
}
.site-footer .logo svg {
  width: 22px;
}
.site-footer p {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.7rem;
}
.site-footer nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.75rem;
}
.site-footer nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
}
.site-footer nav a:hover {
  color: var(--primary);
}
.tool-detail {
  padding-block: 4rem;
  text-align: center;
}
.tool-detail h1 {
  font-size: clamp(2.7rem, 5.5vw, 5rem);
  margin: 1rem 0;
}
.tool-detail .lede {
  margin: 0 auto 1.7rem;
}
.detail-example {
  max-width: 550px;
  margin: 3rem auto 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  background: var(--background);
}
.detail-example > .eyebrow {
  margin-bottom: 1rem;
}
.tool-detail > .small {
  max-width: 40rem;
  margin: auto;
}
.policy {
  max-width: 53rem;
  padding-block: 4rem 6rem;
}
.policy h1 {
  font-size: 3rem;
  margin: 1rem 0 2rem;
}
.policy p {
  color: var(--muted);
  margin-bottom: 1.2rem;
}
.policy a {
  text-decoration: underline;
}
/* Product: the same tokens and primitives, with task-first density. */
.product {
  background: var(--background);
}
.app-header {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  min-height: 80px;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.app-header .logo {
  font-size: 1.45rem;
}
.app-header .logo svg {
  width: 23px;
}
.workspace-label {
  font-size: 0.75rem;
  border-left: 1px solid var(--line);
  padding-left: 1.4rem;
  color: var(--muted);
}
.app-header > .text-link {
  margin-left: auto;
  font-size: 0.75rem;
}
.app-header .button {
  font-size: 0.75rem;
}
.session-loading {
  padding: 15vh 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--muted);
}
.connection-status {
  padding: 0.7rem 2rem;
  background: var(--mist);
  color: var(--teal);
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
}
.app-layout {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  max-width: 1600px;
  margin: auto;
  min-height: calc(100vh - 80px);
}
.app-sidebar {
  border-right: 1px solid var(--line);
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  background: var(--surface);
}
.app-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.app-sidebar nav a {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  min-height: 46px;
  padding: 0.7rem 0.9rem;
  font-size: 0.82rem;
  border-radius: 8px;
  color: var(--muted);
  white-space: nowrap;
}
.app-sidebar nav a > span {
  width: 15px;
  font-size: 1.1rem;
  text-align: center;
}
.app-sidebar nav a:hover {
  background: var(--background);
  color: var(--ink);
}
.app-sidebar nav a[aria-current="page"] {
  color: var(--primary);
  background: #234fdb0d;
  font-weight: 650;
}
.nav-separator {
  height: 1px;
  background: var(--line);
  margin: 1.2rem 0.8rem;
}
.sidebar-foot {
  padding: 2.5rem 0.9rem 1rem;
  margin-top: auto;
  font-size: 0.73rem;
  color: var(--muted);
}
.sidebar-foot p {
  margin-top: 0.6rem;
}
.sidebar-foot a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin-top: 1rem;
  color: var(--ink);
}
.app-main {
  min-width: 0;
  padding: 2.5rem clamp(1.25rem, 3vw, 3.3rem) 5rem;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
}
.page-heading h1 {
  font-size: 2.25rem;
  letter-spacing: -0.04em;
  margin: 0.5rem 0 0.65rem;
}
.page-heading p:not(.eyebrow) {
  font-size: 0.87rem;
  max-width: 40rem;
  color: var(--muted);
}
.usage-label {
  font-size: 0.72rem;
  max-width: 180px;
  flex: none;
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.usage-label strong {
  display: block;
  font-size: 1.1rem;
  color: var(--ink);
}
.notice {
  background: var(--mist);
  color: var(--teal);
  border: 1px solid #006e7333;
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  font-size: 0.83rem;
  margin-bottom: 1.5rem;
}
.notice.warning {
  background: var(--surface);
  border-color: var(--line);
  color: var(--warning);
}
.tool-layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 1.6rem;
  min-width: 0;
}
.panel-heading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}
.panel-heading h2 {
  font-family: "DM Sans", sans-serif;
  font-size: 0.94rem;
  letter-spacing: -0.02em;
  font-weight: 650;
}
.panel-heading > .button {
  margin-left: auto;
  font-size: 0.72rem;
  min-height: 36px;
  padding: 0.5rem 0.8rem;
}
.panel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  flex: none;
}
.teal-dot {
  background: var(--teal);
}
.field {
  margin-bottom: 1.2rem;
}
.field label,
.file-field > label {
  display: block;
  font-size: 0.78rem;
  font-weight: 650;
  margin-bottom: 0.45rem;
}
.field input,
.field textarea,
.field select {
  display: block;
  width: 100%;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  min-height: 44px;
  font-size: 0.85rem;
  line-height: 1.5;
  transition: border-color 0.16s;
}
.field textarea {
  resize: none;
  height: 145px;
  overflow: auto;
}
.field input:hover,
.field textarea:hover,
.field select:hover {
  border-color: var(--muted);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--primary);
}
.field [aria-invalid="true"],
.file-field [aria-invalid="true"] {
  border-color: var(--danger);
}
.field small,
.file-field > small {
  display: block;
  min-height: 1.15rem;
  font-size: 0.69rem;
  line-height: 1.5;
  margin-top: 0.4rem;
}
.field small.error-text {
  color: var(--danger);
}
.form-feedback {
  min-height: 1.6rem;
  margin-top: 0.7rem;
  font-size: 0.78rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.form-feedback.error {
  color: var(--danger);
}
.form-feedback.success {
  color: var(--teal);
}
form > .button {
  width: 100%;
  margin-top: 0.3rem;
}
.fine-print {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 1.1rem;
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.7;
}
.empty-result {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.empty-symbol {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  background: var(--background);
  color: var(--teal);
  font-size: 2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 2rem;
}
.empty-result h2 {
  font-size: 1.65rem;
  margin: 0.7rem 0 1rem;
  letter-spacing: -0.04em;
}
.empty-result p {
  font-size: 0.83rem;
  color: var(--muted);
  max-width: 23rem;
}
.empty-result .button {
  margin-top: 1.5rem;
}
.business-details {
  border-top: 1px solid var(--line);
  margin-top: 1.7rem;
  padding-top: 0.8rem;
}
.business-details summary {
  font-size: 0.8rem;
  font-weight: 650;
  min-height: 44px;
  display: list-item;
  padding: 0.6rem 0;
}
.business-details form {
  padding-top: 1rem;
}
.file-field {
  padding: 1.3rem 1rem;
  border: 1px dashed var(--muted);
  border-radius: 12px;
  margin-bottom: 1rem;
  background: var(--background);
}
.file-field input {
  max-width: 100%;
  font-size: 0.73rem;
  min-height: 44px;
  padding-top: 0.5rem;
}
.file-field input::file-selector-button {
  font: inherit;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.5rem 0.65rem;
  background: var(--surface);
  border-radius: 6px;
  margin-right: 0.5rem;
  cursor: pointer;
}
.file-field input::file-selector-button:hover {
  background: var(--mist);
}
.check-field {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.76rem;
  margin: 1.2rem 0;
  cursor: pointer;
}
.check-field input {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
}
.check-field [aria-invalid="true"] {
  outline: 2px solid var(--danger);
  outline-offset: 2px;
}
.result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.result-heading h2 {
  font-size: 1.4rem;
  margin-top: 0.4rem;
}
.result-heading .button {
  font-size: 0.72rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 0.62rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge.succeeded {
  background: var(--mist);
  border-color: transparent;
  color: var(--teal);
}
.badge.failed {
  color: var(--danger);
}
.badge.running {
  color: var(--warning);
}
.result-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 1rem 0;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.74rem;
  text-align: left;
}
th {
  font-weight: 600;
  background: var(--background);
  color: var(--muted);
  font-size: 0.66rem;
  white-space: nowrap;
}
td,
th {
  padding: 0.9rem 0.8rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
tbody tr:last-child td {
  border-bottom: 0;
}
td:first-child {
  min-width: 150px;
  font-weight: 600;
}
td a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--primary);
}
td .contact-line {
  display: block;
  min-width: 140px;
  font-weight: 400;
  overflow-wrap: anywhere;
}
td .small {
  font-size: 0.65rem;
  font-weight: 400;
}
.voice-answer {
  font-size: 1rem;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 1.2rem 0;
}
.audio-player {
  width: 100%;
  margin: 1rem 0;
  height: 44px;
}
.question-label {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 1rem;
  background: var(--background);
  border-radius: 10px;
  overflow-wrap: anywhere;
}
.clip-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.clip-output {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem;
}
.clip-output video {
  aspect-ratio: 9/16;
  width: 100%;
  background: var(--ink);
  border-radius: 7px;
  object-fit: contain;
}
.clip-output h3 {
  font-size: 0.9rem;
  margin: 0.9rem 0 0.5rem;
  letter-spacing: -0.02em;
  line-height: 1.5;
}
.clip-output .button {
  font-size: 0.66rem;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.6rem 0.5rem;
  min-height: 40px;
}
.transcript {
  white-space: pre-wrap;
  max-height: 300px;
  overflow: auto;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 1rem;
}
.result-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding-top: 1rem;
}
.result-actions .button {
  font-size: 0.73rem;
}
.result-actions .link-button {
  font-size: 0.73rem;
  color: var(--danger);
}
.activity-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
  min-height: 80px;
}
.activity-row:last-child {
  border-bottom: 0;
}
.activity-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--background);
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 1.1rem;
  color: var(--teal);
  flex: none;
}
.activity-row > a:not(.button) {
  font-size: 0.85rem;
  font-weight: 600;
  flex: 1;
  min-width: 0;
}
.activity-row a:hover {
  color: var(--primary);
}
.activity-row time {
  display: block;
  font-size: 0.66rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 0.25rem;
}
.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.account-grid h2 {
  font-size: 1.5rem;
  margin: 0.8rem 0;
}
.account-grid h3 {
  font-size: 1rem;
  margin: 1.4rem 0 0.5rem;
}
.account-grid p {
  font-size: 0.85rem;
  color: var(--muted);
}
.account-grid form {
  margin-top: 1.5rem;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.5rem 0;
}
.auth-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  max-width: 1100px;
  margin: auto;
  padding: 6rem 2rem 5rem;
  align-items: center;
}
.auth-intro h1 {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  margin: 1rem 0 1.5rem;
}
.auth-intro p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 26rem;
}
.auth-intro .text-link {
  margin-top: 1.5rem;
}
.auth-panel {
  padding: 2.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 15px 45px #18313c08;
}
.auth-panel h2 {
  font-size: 1.75rem;
  margin: 0.6rem 0 1.7rem;
  letter-spacing: -0.04em;
}
.auth-panel p:not(.form-feedback) {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.4rem;
}
.auth-panel .field {
  margin-bottom: 0.6rem;
}
.auth-panel > .link-button,
.auth-panel .link-button {
  font-size: 0.75rem;
}
.auth-panel > div > p.small {
  margin-top: 1rem;
  margin-bottom: 0;
}
.auth-panel .notice {
  font-size: 0.78rem;
}
.saved-result {
  max-width: 1000px;
}
.result-working {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--background);
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.result-working .spinner {
  width: 16px;
  height: 16px;
  flex: none;
}
dialog {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 470px;
  width: calc(100% - 2rem);
  color: var(--ink);
  box-shadow: 0 25px 100px #18313c26;
}
dialog::backdrop {
  background: #18313c88;
}
dialog h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
dialog p {
  font-size: 0.85rem;
  color: var(--muted);
}
.dialog-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}
.dialog-actions .button {
  font-size: 0.75rem;
}
.button-with-note {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 1600px) {
  .hero {
    padding-block: 6rem 7rem;
  }
}
@media (max-width: 1100px) {
  .hero {
    gap: 2.5rem;
  }
  .hero h1 {
    font-size: 6rem;
  }
  .output-desk {
    padding: 1rem;
  }
  .desk-label {
    font-size: 0.52rem;
  }
  .tool-layout {
    grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
  }
  .app-sidebar {
    padding-inline: 0.6rem;
  }
  .app-layout {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .app-main {
    padding-inline: 1.5rem;
  }
  .shopify-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 1000px) {
  .tool-layout {
    grid-template-columns: 1fr;
  }
  .input-panel {
    max-width: none;
  }
  .empty-result {
    min-height: 300px;
  }
  .connected-grid {
    gap: 2rem;
  }
  .account-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 5.5rem;
  }
  .header-inner nav {
    gap: 1rem;
  }
  .header-inner {
    gap: 1.2rem;
  }
  .header-signin {
    font-size: 0.75rem;
  }
  .section-heading > p {
    max-width: 20rem;
  }
}
@media (max-width: 850px) {
  .wrap {
    padding-inline: 1.5rem;
  }
  .header-inner {
    padding: 1.2rem 1.5rem;
  }
  .header-inner nav {
    display: none;
  }
  .header-signin {
    margin-left: auto;
  }
  .hero {
    gap: 3.5rem;
    padding-block: 3rem 4rem;
    grid-template-columns: 1fr 1fr;
  }
  .hero h1 {
    font-size: 4.8rem;
  }
  .hero .lede {
    font-size: 0.9rem;
  }
  .hero .actions {
    gap: 1rem;
  }
  .hero .button {
    font-size: 0.75rem;
  }
  .desk-label {
    flex-direction: column;
    gap: 0.15rem;
  }
  .sample-row {
    font-size: 0.65rem;
  }
  .sample-row .source-tag {
    display: none;
  }
  .tray {
    padding: 0.9rem;
  }
  .tray-heading {
    font-size: 0.65rem;
  }
  .tray-leads {
    transform: translateX(-1rem) rotate(-2deg);
  }
  .tray-voice {
    transform: translateX(0.1rem) rotate(1deg);
  }
  .tray-clips {
    transform: translateX(-0.4rem);
  }
  .clip-sample {
    gap: 0.7rem;
  }
  .sample-files {
    font-size: 0.6rem;
  }
  .video-frame {
    max-width: 105px;
  }
  .caption-sample {
    font-size: 0.43rem;
  }
  .tool-grid {
    gap: 1rem;
  }
  .tool-card {
    padding: 1.1rem;
  }
  .card-art {
    height: 130px;
  }
  .format-box.landscape {
    width: 75px;
    font-size: 0.5rem;
  }
  .format-box.portrait {
    width: 42px;
    font-size: 0.5rem;
  }
  .section-heading {
    align-items: flex-start;
  }
  .connected-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .connected-grid > div:first-child {
    max-width: 550px;
  }
  .workspace-preview {
    max-width: 650px;
  }
  .membership {
    gap: 2.5rem;
  }
  .site-footer {
    flex-wrap: wrap;
    padding-inline: 1.5rem;
  }
  .site-footer > p {
    margin-left: auto;
  }
  .app-header {
    padding: 1rem 1.5rem;
    gap: 1rem;
  }
  .app-layout {
    display: block;
    min-height: auto;
  }
  .app-sidebar {
    display: block;
    padding: 0.6rem 1rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .app-sidebar nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 0.3rem;
    padding: 0.25rem 0.1rem;
  }
  .app-sidebar nav a {
    font-size: 0.74rem;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    min-height: 44px;
  }
  .nav-separator {
    width: 1px;
    height: 28px;
    margin: auto 0.2rem;
    flex: none;
  }
  .sidebar-foot {
    display: none;
  }
  .app-main {
    padding: 2rem 1.5rem 4rem;
  }
  .auth-view {
    gap: 2rem;
    padding-top: 4rem;
  }
  .auth-panel {
    padding: 1.8rem;
  }
  .auth-intro h1 {
    font-size: 3rem;
  }
  .workspace-label {
    display: none;
  }
  .page-heading h1 {
    font-size: 2rem;
  }
}
@media (max-width: 650px) {
  :root {
    --section-gap: 3.5rem;
  }
  .wrap {
    padding-inline: 1.2rem;
  }
  .logo {
    font-size: 1.5rem;
  }
  .logo svg {
    width: 24px;
  }
  .header-inner {
    padding: 1rem 1.2rem;
  }
  .header-signin {
    padding: 0.7rem 0.8rem;
    gap: 0.5rem;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: 2.7rem;
  }
  .hero h1 {
    font-size: clamp(4.7rem, 20vw, 6rem);
  }
  .hero .lede {
    font-size: 1rem;
    max-width: 30rem;
  }
  .hero .actions .button {
    font-size: 0.85rem;
  }
  .hero-copy > .eyebrow {
    margin-bottom: 1.5rem;
  }
  .output-desk {
    max-width: 430px;
    margin-inline: auto;
    width: calc(100% - 0.75rem);
    padding: 1.3rem 1.2rem;
  }
  .desk-label {
    flex-direction: row;
    font-size: 0.55rem;
  }
  .tray {
    padding: 1.05rem;
  }
  .tray-heading {
    font-size: 0.76rem;
  }
  .sample-row {
    font-size: 0.72rem;
  }
  .sample-row .source-tag {
    display: block;
  }
  .clip-sample {
    gap: 1.5rem;
  }
  .sample-files {
    font-size: 0.7rem;
  }
  .video-frame {
    max-width: 125px;
  }
  .caption-sample {
    font-size: 0.5rem;
  }
  .section-heading {
    display: block;
    margin-bottom: 2rem;
  }
  .section-heading > p {
    max-width: 32rem;
    margin-top: 1.2rem;
  }
  .tool-grid {
    grid-template-columns: 1fr;
  }
  .tool-card {
    padding: 1.5rem;
  }
  .card-art {
    height: 170px;
  }
  .art-leads {
    padding-inline: 2.5rem;
  }
  .art-voice .wave {
    max-width: 230px;
  }
  .format-box.landscape {
    width: 125px;
    height: 72px;
    font-size: 0.7rem;
  }
  .format-box.portrait {
    width: 65px;
    height: 116px;
    font-size: 0.65rem;
  }
  .membership {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .shopify-grid {
    gap: 0.75rem;
  }
  .store-card {
    padding: 1rem;
  }
  .store-card h3 {
    font-size: 1rem;
  }
  .store-card p {
    font-size: 0.75rem;
  }
  .closing {
    width: calc(100% - 2.4rem);
    padding: 3rem 1rem;
  }
  .site-footer {
    align-items: flex-start;
    gap: 1.2rem;
    padding: 2rem 1.2rem;
  }
  .site-footer > div {
    width: 100%;
  }
  .site-footer nav {
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.7rem;
  }
  .site-footer > p {
    margin-left: 0;
  }
  .auth-view {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1.2rem 4rem;
  }
  .auth-intro h1 {
    font-size: 2.4rem;
  }
  .auth-intro p {
    font-size: 0.9rem;
  }
  .auth-intro .text-link {
    margin-top: 0.6rem;
  }
  .auth-panel {
    padding: 1.5rem;
  }
  .auth-panel h2 {
    font-size: 1.5rem;
  }
  .app-header {
    padding: 0.9rem 1.2rem;
    min-height: 70px;
    gap: 0.6rem;
    flex-wrap: wrap;
  }
  .app-header .logo {
    font-size: 1.3rem;
  }
  .app-header .logo svg {
    width: 21px;
  }
  .app-header > .text-link {
    font-size: 0.68rem;
  }
  .app-header .button {
    padding: 0.6rem 0.5rem;
    font-size: 0.68rem;
    min-height: 40px;
  }
  .app-main {
    padding: 1.6rem 1.2rem 4rem;
  }
  .page-heading {
    align-items: flex-start;
    gap: 1rem;
  }
  .page-heading h1 {
    font-size: 1.85rem;
  }
  .page-heading p:not(.eyebrow) {
    font-size: 0.8rem;
  }
  .usage-label {
    max-width: 95px;
    font-size: 0.62rem;
    padding-top: 0.5rem;
  }
  .usage-label strong {
    font-size: 0.9rem;
  }
  .panel {
    padding: 1.3rem;
    border-radius: 14px;
  }
  .empty-result {
    padding: 1.3rem 0.3rem;
    min-height: 280px;
  }
  .empty-result h2 {
    font-size: 1.5rem;
  }
  .empty-result p {
    font-size: 0.78rem;
  }
  .activity-row {
    gap: 0.65rem;
    flex-wrap: wrap;
  }
  .activity-row > a:not(.button) {
    min-width: 125px;
  }
  .activity-icon {
    width: 34px;
    height: 34px;
  }
  .activity-row .badge {
    font-size: 0.58rem;
  }
  .result-heading {
    flex-wrap: wrap;
  }
  .result-heading h2 {
    font-size: 1.3rem;
  }
  .clip-results {
    grid-template-columns: 1fr;
  }
  .clip-output {
    max-width: 320px;
    margin: auto;
    width: 100%;
  }
  .tool-detail {
    padding-block: 3rem;
  }
  .tool-detail h1 {
    font-size: 2.7rem;
  }
  .detail-example {
    padding: 1.4rem;
  }
  .policy h1 {
    font-size: 2.3rem;
  }
  .policy {
    padding-block: 3rem;
  }
  .dialog-actions {
    flex-wrap: wrap;
  }
  .dialog-actions .button {
    flex: 1;
    min-width: 125px;
  }
  .preview-top {
    padding: 1rem;
    font-size: 0.75rem;
  }
  .preview-top > .small {
    font-size: 0.58rem;
  }
  .preview-body {
    grid-template-columns: 115px 1fr;
  }
  .preview-results {
    padding: 1.4rem 1rem;
  }
  .preview-nav {
    padding: 1.4rem 0.75rem;
    font-size: 0.61rem;
  }
  .preview-results > div {
    font-size: 0.65rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (forced-colors: active) {
  :root,
  * {
    scrollbar-color: auto;
  }
  .button {
    border: 1px solid ButtonText;
  }
  .panel,
  .tray,
  .notice,
  .store-card {
    border: 1px solid CanvasText;
  }
  .wave i {
    background: CanvasText;
  }
  .button-spinner,
  .spinner {
    border-color: CanvasText;
    border-right-color: transparent;
  }
}

@media (min-width: 851px) {
  .hero {
    padding-block: 3rem 4rem;
  }
  .output-desk {
    padding: 1rem 1.2rem 0.7rem;
  }
  .output-desk .tray {
    padding: 0.85rem 1rem;
    margin-bottom: 0.6rem;
  }
  .output-desk .tray-heading {
    margin-bottom: 0.6rem;
  }
  .output-desk .sample-row {
    padding: 0.4rem 0;
  }
  .output-desk .voice-sample .wave {
    height: 40px;
  }
  .output-desk .voice-sample p {
    font-size: 0.72rem;
    line-height: 1.5;
    margin: 0.2rem auto 0.3rem;
  }
  .output-desk .video-frame {
    max-width: 90px;
  }
  .output-desk .caption-sample {
    font-size: 0.4rem;
    bottom: 25px;
  }
  .output-desk .video-time {
    font-size: 0.42rem;
  }
  .output-desk .desk-bottom {
    padding: 0.3rem;
  }
  .hero h1 {
    font-size: clamp(4.8rem, 7vw, 6rem);
  }
}

.clip-output video {
  max-height: 400px;
  display: block;
  margin-inline: auto;
}
