/* VictoriaApp - shared styles. System fonts only, no external requests. */

:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --surface-2: #f4efe6;
  --ink: #1a1d1b;
  --muted: #5e6661;
  --line: #e7e1d6;
  --accent: #2f5d50;
  --accent-dark: #234539;
  --accent-soft: #e6efea;
  --clay: #c4704f;
  --clay-soft: #f8ebe4;
  --danger: #b3261e;
  --danger-soft: #fcebea;
  --warn-soft: #fff4e0;
  --warn-ink: #7a4b00;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(26, 29, 27, 0.05), 0 8px 24px rgba(26, 29, 27, 0.06);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }
a { color: var(--accent); }
img, video { max-width: 100%; display: block; }
code {
  font: 0.86em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--surface-2);
  padding: 0.12em 0.4em;
  border-radius: 5px;
  white-space: nowrap;
}

[hidden] { display: none !important; }

.container {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

/* ------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

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

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.site-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 0.95rem var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
}

.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover:not([disabled]) { background: var(--accent-dark); }

.btn-tiktok { background: #000; color: #fff; }
.btn-tiktok:hover { background: #222; }

.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover:not([disabled]) { border-color: var(--ink); }

.btn-danger { background: transparent; border-color: #e6c3c0; color: var(--danger); }
.btn-danger:hover:not([disabled]) { background: var(--danger-soft); }

.btn-lg { padding: 15px 28px; font-size: 1.02rem; }
.btn-sm { padding: 7px 14px; font-size: 0.86rem; }

/* ------------------------------------------------------------ banners */

.banner {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: 0 0 20px;
  font-size: 0.94rem;
  border: 1px solid transparent;
}

.banner-error { background: var(--danger-soft); border-color: #f1c9c6; color: #7d1a15; }
.banner-warn { background: var(--warn-soft); border-color: #f3dcae; color: var(--warn-ink); }
.banner-info { background: var(--accent-soft); border-color: #cfe0d8; color: var(--accent-dark); }
.banner-success { background: var(--accent-soft); border-color: #b9d4c8; color: var(--accent-dark); }

/* --------------------------------------------------------------- hero */

.hero { padding: 72px 0 56px; }

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero p.lead {
  font-size: 1.16rem;
  color: var(--muted);
  max-width: 34em;
  margin-bottom: 1.8em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.legal-note { font-size: 0.86rem; color: var(--muted); }

/* Product preview card in the hero */
.preview {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 22px;
  transform: rotate(0.6deg);
}

.preview-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.preview-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--clay));
}

.preview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.preview-stats div {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.preview-stats strong { display: block; font-size: 1.15rem; }
.preview-stats span { font-size: 0.76rem; color: var(--muted); }

.preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.preview-grid i {
  display: block;
  aspect-ratio: 9 / 14;
  border-radius: 8px;
  background: linear-gradient(160deg, #dfe9e3, #c8d9d0);
}

.preview-grid i:nth-child(2) { background: linear-gradient(160deg, #f3ddd1, #e2b9a5); }
.preview-grid i:nth-child(3) { background: linear-gradient(160deg, #ece5d6, #d8ccb2); }
.preview-grid i:nth-child(4) { background: linear-gradient(160deg, #d5e2e6, #b3c9d1); }

.preview-caption {
  margin: 14px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

/* ----------------------------------------------------------- sections */

.section { padding: 72px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 46em; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.section-alt .card { background: var(--bg); }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.card-icon svg { width: 22px; height: 22px; }

.tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  margin-top: 6px;
}

.tag-accent { background: var(--accent-soft); color: var(--accent-dark); }
.tag-clay { background: var(--clay-soft); color: #8a452b; }

.steps { counter-reset: step; }

.step { position: relative; padding-top: 58px; }

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 26px;
  left: 26px;
  width: 34px;
  height: 34px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* Data-use table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  min-width: 640px;
}

table.data th,
table.data td {
  text-align: left;
  vertical-align: top;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

table.data th {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
}

table.data tr:last-child td { border-bottom: 0; }

/* Roadmap */
.roadmap-col h3 { display: flex; align-items: center; gap: 10px; }
.roadmap-col ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.roadmap-col li { margin-bottom: 0.55em; }
.roadmap-col li strong { color: var(--ink); font-weight: 600; }

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 12px 0 0; color: var(--muted); max-width: 52em; }

.cta-band {
  background: var(--accent);
  color: #fff;
  border-radius: 24px;
  padding: 52px 40px;
  text-align: center;
}

.cta-band p { color: rgba(255, 255, 255, 0.82); max-width: 36em; margin: 0 auto 1.6em; }

/* ------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  margin-top: 72px;
  font-size: 0.92rem;
  color: var(--muted);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: var(--ink); font-weight: 500; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-note { flex-basis: 100%; font-size: 0.8rem; margin: 0; }

/* -------------------------------------------------------- app screens */

.app-main { padding: 40px 0 0; min-height: 60vh; }

.page-title {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.page-title h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin: 0; }
.page-title p { margin: 6px 0 0; color: var(--muted); }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-head h2 { font-size: 1.25rem; margin: 0; }
.source-note { font-size: 0.76rem; color: var(--muted); }

.profile {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
}

.avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.avatar-sm { width: 40px; height: 40px; }

.profile h2 {
  font-size: 1.6rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.verified { color: #20a0d8; display: inline-flex; }
.verified svg { width: 20px; height: 20px; }
.profile .handle { color: var(--muted); margin: 2px 0 8px; }
.profile .bio { margin: 0; white-space: pre-line; max-width: 46em; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1.1;
}

.stat span { font-size: 0.84rem; color: var(--muted); }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}

.video-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s, transform 0.15s;
}

.video-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.video-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--surface-2);
}

.video-cover img { width: 100%; height: 100%; object-fit: cover; }

.video-duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.74rem;
  padding: 2px 7px;
  border-radius: 6px;
}

.video-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.video-title {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.video-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px 10px;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: auto;
}

.video-metrics span { white-space: nowrap; }
.video-metrics b { color: var(--ink); font-weight: 600; }
.video-date { font-size: 0.76rem; color: var(--muted); }

.empty {
  text-align: center;
  padding: 36px 16px;
  color: var(--muted);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.skeleton {
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--surface-2) 25%, #ece6da 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  min-height: 90px;
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

/* ------------------------------------------------------- publish page */

.publish-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
  align-items: start;
}

.segmented {
  display: inline-flex;
  padding: 4px;
  background: var(--surface-2);
  border-radius: 999px;
  margin-bottom: 18px;
}

.segmented button {
  border: 0;
  background: transparent;
  padding: 8px 16px;
  border-radius: 999px;
  font: 600 0.88rem var(--font-sans);
  color: var(--muted);
  cursor: pointer;
}

.segmented button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.segmented button[disabled] { opacity: 0.4; cursor: not-allowed; }

.library { display: grid; gap: 10px; }

.library-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.library-item:hover { border-color: var(--accent); }
.library-item[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }

.library-thumb {
  width: 54px;
  height: 72px;
  border-radius: 7px;
  object-fit: cover;
  background: var(--surface-2);
  flex: none;
}

.library-item strong { display: block; font-size: 0.95rem; }
.library-item span { font-size: 0.82rem; color: var(--muted); }

.dropzone {
  border: 1.5px dashed #cfc7b8;
  border-radius: var(--radius-sm);
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
}

.preview-player {
  margin-top: 18px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
}

.preview-player video { width: 100%; max-height: 460px; }

.posting-as {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  margin-bottom: 22px;
}

.posting-as strong { display: block; line-height: 1.3; }
.posting-as span { font-size: 0.84rem; color: var(--muted); }

.field { margin-bottom: 22px; }

.field > label:not(.check),
.field .label {
  display: block;
  font-weight: 600;
  font-size: 0.93rem;
  margin-bottom: 8px;
}

.field .hint { font-size: 0.82rem; color: var(--muted); margin: 6px 0 0; }

textarea,
select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #d5cebf;
  border-radius: var(--radius-sm);
  background: var(--surface);
  font: inherit;
  color: inherit;
}

textarea { resize: vertical; min-height: 96px; }

textarea:focus,
select:focus,
.btn:focus-visible,
.library-item:focus-visible,
.segmented button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.counter { float: right; font-size: 0.78rem; color: var(--muted); font-weight: 400; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  font-size: 0.95rem;
}

.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.check.is-disabled { color: #a3a9a5; }
.check small { display: block; color: var(--muted); font-size: 0.82rem; }

.switch-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.switch-row p { margin: 4px 0 0; font-size: 0.84rem; color: var(--muted); }

.switch { position: relative; flex: none; width: 46px; height: 27px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; z-index: 1; }

.switch i {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cfc9bc;
  transition: background 0.15s;
}

.switch i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s;
}

.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(19px); }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }

.disclosure-options {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.consent { font-size: 0.88rem; color: var(--muted); margin: 0 0 14px; }

.submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.submit-hint { font-size: 0.84rem; color: var(--muted); }

.status-steps { list-style: none; margin: 0 0 16px; padding: 0; }

.status-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  color: var(--muted);
}

.status-steps li::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #cfc9bc;
  flex: none;
}

.status-steps li.is-active { color: var(--ink); font-weight: 600; }

.status-steps li.is-active::before {
  border-color: var(--accent);
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

.status-steps li.is-done { color: var(--ink); }
.status-steps li.is-done::before { background: var(--accent); border-color: var(--accent); }
.status-steps li.is-failed { color: var(--danger); font-weight: 600; }
.status-steps li.is-failed::before { background: var(--danger); border-color: var(--danger); }

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* -------------------------------------------------------- legal pages */

.legal { padding: 56px 0 0; }
.legal .container { width: min(780px, 100% - 40px); }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2.2em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.5em; }
.legal .updated { color: var(--muted); margin-bottom: 2.2em; }

/* --------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .hero { padding: 48px 0 40px; }
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr; }
  .publish-layout { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .profile { grid-template-columns: auto 1fr; }
  .profile .profile-actions { grid-column: 1 / -1; }
  .section { padding: 52px 0; }
}

@media (max-width: 720px) {
  .site-nav .nav-section { display: none; }
  .site-header .container { gap: 14px; }
  .site-nav { gap: 16px; }
  .cta-band { padding: 40px 22px; }
}

@media (max-width: 480px) {
  .brand { font-size: 1.12rem; }
  .site-header .btn-sm { padding: 6px 12px; font-size: 0.8rem; gap: 7px; }
  .btn-lg { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
