/* CutPico — UI styles. White canvas, dark text, one blue action color. */

:root {
  --bg: #ffffff;
  --surface: #f7f9fc;
  --surface-strong: #eef3fa;
  --line: #d9e2ef;
  --line-soft: #e8eef7;
  --ink: #0d1526;
  --ink-soft: #46536b;
  --ink-mute: #6b7890;
  --blue: #2563eb;
  --blue-strong: #1d4ed8;
  --blue-tint: #eff5ff;
  --danger: #b42318;
  --danger-bg: #fef3f2;
  --danger-line: #fecdca;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(13, 21, 38, 0.06);
  --shadow-md: 0 10px 30px rgba(13, 21, 38, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --checker: #e6ebf3;
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--blue-strong);
}

img {
  max-width: 100%;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

:where(a, button, input, [tabindex]):focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.45);
  outline-offset: 2px;
  border-radius: 8px;
}

/* Header */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
}

.brand-mark {
  display: inline-flex;
  color: var(--blue);
}

.brand-name {
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
  font-size: 0.95rem;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 9px;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 550;
}

.site-nav a:hover {
  background: var(--surface-strong);
  color: var(--ink);
}

/* Hero */

main {
  display: block;
}

.hero {
  display: grid;
  gap: 28px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 20px 44px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue-strong);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  max-width: 20ch;
}

.lede {
  color: var(--ink-soft);
  font-size: 1.06rem;
  max-width: 46ch;
}

/* Upload card */

.upload-card {
  margin-top: 22px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.dropzone {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 100%;
  padding: 30px 22px 26px;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.dropzone:hover,
.dropzone.is-dragging {
  border-color: var(--blue);
  background: var(--blue-tint);
}

.dropzone.is-dragging {
  transform: translateY(-1px);
}

.dropzone-icon {
  color: var(--blue);
  line-height: 0;
  margin-bottom: 4px;
}

.dropzone-title {
  font-size: 1.15rem;
  font-weight: 650;
}

.dropzone-sub {
  color: var(--ink-mute);
  font-size: 0.94rem;
}

.dropzone .btn {
  margin-top: 12px;
  pointer-events: none;
}

.hint {
  margin: 12px 2px 2px;
  color: var(--ink-mute);
  font-size: 0.88rem;
  text-align: center;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 11px;
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--blue-strong);
}

.btn-secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue-strong);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-ghost:hover {
  color: var(--ink);
}

.alert {
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--danger-line);
  border-radius: 11px;
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 0.94rem;
}

.alert:focus-visible {
  outline-offset: 3px;
}

/* Before / after sample */

.demo {
  margin: 0;
}

.demo-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.demo-item {
  margin: 0;
}

.demo-frame {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-strong);
}

.demo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.demo-frame-result {
  border: 1px solid var(--line-soft);
  background-color: #fff;
  background-image:
    conic-gradient(var(--checker) 25%, transparent 25% 50%, var(--checker) 50% 75%, transparent 75%);
  background-size: 18px 18px;
}

.demo-label {
  margin-top: 10px;
  color: var(--ink-mute);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.demo-note,
.demo-pending {
  margin: 14px 0 0;
  color: var(--ink-mute);
  font-size: 0.88rem;
}

.demo-pending {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

/* Content pages (privacy, terms, how it works) */

.content-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 20px 56px;
  font-size: 1.02rem;
}

.content-page h1 {
  margin-bottom: 1rem;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.content-page h2 {
  margin: 2.4rem 0 0.75rem;
  font-size: clamp(1.3rem, 2.6vw, 1.65rem);
}

.content-page h3 {
  margin: 1.6rem 0 0.5rem;
  font-size: 1.1rem;
}

.content-page p {
  margin: 0 0 1.1rem;
}

.content-page ul,
.content-page ol {
  margin: 0 0 1.2rem;
  padding-left: 1.4rem;
}

.content-page li {
  margin-bottom: 0.5rem;
}

.content-page li h3 {
  margin-top: 0.2rem;
}

.content-page a {
  color: var(--blue-strong);
}

.content-page strong {
  font-weight: 650;
}

.content-page nav {
  margin: 2rem 0 0;
}

@media (max-width: 620px) {
  .content-page {
    padding: 4px 16px 44px;
  }

  .content-page h2 {
    margin-top: 1.9rem;
  }
}
