:root {
  --cream: #fef8ed;
  --cream-deep: #fdf4e1;
  --paper: #fffdfb;
  --orange: #f87830;
  --orange-deep: #c24e12;
  --orange-hot: #a33b0e;
  --orange-soft: #ffe4d0;
  --peach: #f8b070;
  --ink: #3e484e;
  --muted: #6f6560;
  --line: #f0e4d4;
  --posted: #1f7a4a;
  --posted-soft: #e5f6ec;
  --shadow: 0 22px 50px rgba(248, 120, 48, 0.14);
  color-scheme: light;
  font-family: "Nunito", "Trebuchet MS", "Segoe UI", sans-serif;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 110% -10%, rgba(248, 120, 48, 0.18), transparent 60%),
    radial-gradient(680px 420px at -12% 8%, rgba(248, 176, 112, 0.35), transparent 58%),
    var(--cream);
  line-height: 1.5;
}

body.app {
  background: var(--cream);
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--orange-deep);
  font-weight: 800;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid rgba(248, 120, 48, 0.45);
  outline-offset: 2px;
}

::selection {
  background: #f8b070;
  color: var(--ink);
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: white;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 10px;
  z-index: 20;
}

.skip:focus {
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.3rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
}

p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(254, 248, 237, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 92px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange-deep);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand img,
.side-brand img {
  height: 58px;
  width: auto;
}

.brand:hover,
.side-brand:hover {
  text-decoration: none;
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--orange-deep);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.nav-links {
  display: flex;
  gap: 18px;
}

.nav-links a {
  color: var(--ink);
  font-weight: 700;
}

.nav-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  padding: 10px 16px;
  font-weight: 800;
  background: white;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.2;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--orange-deep);
  color: white;
}

.btn-primary:hover {
  background: var(--orange-hot);
}

.btn-secondary {
  background: white;
  border-color: #f0c7a6;
  color: var(--orange-deep);
}

.btn-secondary:hover {
  background: var(--orange-soft);
}

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

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.7);
}

.btn-danger {
  background: #fde8e4;
  color: #9f2d2d;
}

.btn-danger:hover {
  background: #f8d2cc;
}

.btn-lg {
  padding: 14px 20px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

.btn-small {
  padding: 8px 12px;
  font-size: 0.86rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
  padding: 28px 0 72px;
}

.hero > * {
  min-width: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--orange-deep);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 800;
  font-size: 0.92rem;
  border: 1px solid var(--line);
}

.pill-soft {
  background: var(--orange-soft);
  border-color: transparent;
}

.lead {
  margin-top: 16px;
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 38ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.stage {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.stage-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.queue {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.queue li {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  background: var(--cream);
  border-radius: 18px;
  padding: 8px;
}

.thumb {
  width: 64px;
  height: 80px;
  border-radius: 12px;
}

.thumb-a {
  background: linear-gradient(160deg, #f8b070, #f87830);
}

.thumb-b {
  background: linear-gradient(160deg, #fdf4e1, #f8b070);
}

.thumb-c {
  background: linear-gradient(160deg, #fde8d4, #e7a07a);
}

.queue strong,
.queue span {
  display: block;
}

.queue span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.badge-scheduled {
  background: var(--orange-soft);
  color: var(--orange-deep);
}

.badge-posted {
  background: var(--posted-soft);
  color: var(--posted);
}

.badge-draft {
  background: #f3ebe1;
  color: #6e6560;
}

.badge-failed {
  background: #fde8e4;
  color: #9f2d2d;
}

.section {
  padding: 28px 0 64px;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 22px;
}

.section-head p,
.step p,
.feature-list p,
.price-card p,
.faq p,
.footer-copy {
  color: var(--muted);
  margin-top: 8px;
}

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

.step,
.price-card,
.faq details,
.stat,
.pin-card,
.day {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.step {
  padding: 20px;
}

.step b {
  display: block;
  color: var(--orange);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.feature-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.feature-list li > span {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--orange-soft);
  color: var(--orange-deep);
  font-weight: 800;
}

.feature-list strong {
  display: block;
}

.preview-pin {
  width: min(320px, 100%);
  margin-left: auto;
  overflow: hidden;
}

.preview-art {
  width: 100%;
  aspect-ratio: 2 / 3;
  background: linear-gradient(165deg, #fdf4e1 0%, #f8b070 55%, #f87830 100%);
}

.preview-pin div {
  padding: 14px;
}

.preview-pin h3 {
  font-size: 1.15rem;
}

.price-wrap {
  display: grid;
  justify-content: center;
}

.price-card {
  width: min(460px, 100%);
  padding: 28px;
  text-align: left;
  box-shadow: var(--shadow);
}

.price-card h2 {
  margin: 12px 0 4px;
  color: var(--orange-deep);
}

.ticks {
  list-style: none;
  margin: 18px 0 22px;
  padding: 0;
}

.ticks li {
  position: relative;
  padding-left: 26px;
  margin: 8px 0;
  font-weight: 700;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--orange);
}

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

.faq details {
  padding: 14px 16px;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
}

.faq details p {
  margin-top: 8px;
}

.band {
  background: var(--ink);
  color: var(--cream);
  border-radius: 32px;
  padding: 42px 28px;
  text-align: center;
}

.band p {
  color: #f8e6d4;
  margin: 10px auto 18px;
  max-width: 42ch;
}

.band .btn-primary {
  background: var(--orange-deep);
  color: white;
}

.band .btn-primary:hover {
  background: white;
  color: var(--orange-deep);
}

.site-footer {
  padding: 10px 0 36px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  padding-top: 8px;
}

.footer-brand {
  font-size: 1.45rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: var(--ink);
}

.footer-note {
  margin-top: 18px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.legal {
  padding: 28px 0 64px;
  max-width: 760px;
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 8px;
}

.legal h2 {
  font-size: 1.35rem;
  margin-top: 28px;
  margin-bottom: 8px;
}

.legal p,
.legal li {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.5;
}

.legal p + p,
.legal ul {
  margin-top: 10px;
}

.legal ul {
  margin-bottom: 0;
  padding-left: 1.2rem;
}

.legal li + li {
  margin-top: 6px;
}

.legal-updated {
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 8px;
}

.side-legal {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.side-legal:hover {
  color: var(--orange-deep);
}

.sheet {
  border: none;
  border-radius: 28px;
  padding: 26px;
  width: min(440px, calc(100vw - 28px));
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(62, 72, 78, 0.2);
  max-height: calc(100vh - 28px);
  overflow: auto;
}

.sheet-wide {
  width: min(920px, calc(100vw - 28px));
}

.sheet::backdrop {
  background: rgba(62, 72, 78, 0.38);
}

.dialog-logo {
  height: 92px;
  width: auto;
  margin: 0 auto 8px;
}

.sheet h2 {
  text-align: center;
  padding-right: 28px;
}

#authDialog h2,
#authLead {
  text-align: center;
}

#authLead {
  color: var(--muted);
  margin: 8px 0 18px;
}

.icon-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  font-weight: 800;
  font-size: 0.92rem;
}

.field-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.field-head span:last-child,
.hint {
  color: var(--muted);
  font-weight: 700;
}

.hint {
  margin: -4px 0 12px;
  font-size: 0.88rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1.5px solid var(--line);
  background: white;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 600;
}

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

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(248, 120, 48, 0.22);
}

.password-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: white;
  padding-right: 6px;
}

.password-wrap:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(248, 120, 48, 0.22);
}

.password-wrap input {
  border: none;
  box-shadow: none;
}

.password-wrap button {
  border: none;
  background: var(--cream);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 800;
  color: var(--ink);
}

.form-error {
  color: #9f2d2d;
  background: #fde8e4;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 800;
  margin: 0 0 12px;
}

.shell {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}

.side {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--cream-deep);
  border-right: 1px solid var(--line);
}

.side-brand {
  margin-bottom: 8px;
}

.free-pill {
  align-self: center;
  margin-bottom: 8px;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  border-radius: 14px;
  padding: 12px;
  font-weight: 800;
}

.nav-btn svg {
  width: 20px;
  height: 20px;
}

.nav-btn.is-active {
  background: white;
  color: var(--orange-deep);
  box-shadow: 0 8px 18px rgba(248, 120, 48, 0.12);
}

.side-user {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
}

.side-user strong,
.side-user span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-user span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.workspace {
  padding: 28px 32px 64px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.eyebrow {
  color: var(--orange-deep);
  font-weight: 800;
  margin-bottom: 4px;
}

.workspace h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.next-up {
  color: var(--muted);
  margin-top: 6px;
  font-weight: 700;
}

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

.stat {
  padding: 16px 18px;
}

.stat b {
  display: block;
  font-size: 1.8rem;
  color: var(--orange-deep);
}

.stat span {
  color: var(--muted);
  font-weight: 800;
}

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

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

.chip {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
}

.chip.is-active {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.search input {
  min-width: min(260px, 100%);
}

.pin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.pin-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pin-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(62, 72, 78, 0.08);
}

.preview-card,
.preview-card:hover {
  transform: none;
  box-shadow: none;
}

.pin-media {
  position: relative;
  background: var(--cream-deep);
}

.pin-media img,
.pin-fallback {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.pin-fallback {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
  color: var(--orange-deep);
  font-weight: 800;
  background:
    radial-gradient(circle at 50% 42%, white, var(--cream-deep) 70%);
}

.pin-media .badge {
  position: absolute;
  top: 10px;
  left: 10px;
}

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

.pin-body h3 {
  font-size: 1.05rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pin-desc {
  color: var(--muted);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.is-placeholder {
  color: #b3a79c;
}

.board-chip {
  align-self: flex-start;
  background: var(--cream-deep);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.78rem;
  font-weight: 800;
}

.pin-when {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.pin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 42px 16px;
  background: white;
  border-radius: 28px;
  border: 1.5px dashed #f0c7a6;
}


.empty p {
  color: var(--muted);
  margin: 8px auto 16px;
  max-width: 36ch;
}

.cal-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cal-toolbar strong {
  min-width: 160px;
  text-align: center;
}

.cal-wrap {
  overflow-x: auto;
}

.cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  min-width: 720px;
}

.dow {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.day {
  min-height: 112px;
  padding: 8px;
}

.day.is-pad {
  background: transparent;
  border-color: transparent;
}

.day.is-today {
  border-color: var(--orange);
  box-shadow: inset 0 0 0 1px var(--orange);
}

.day-num {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 9px;
  background: transparent;
  font-weight: 800;
}

.day.is-today .day-num {
  background: var(--orange-deep);
  color: white;
}

.cal-pin {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  border-radius: 8px;
  margin-top: 4px;
  padding: 4px 6px;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-scheduled {
  background: var(--orange-soft);
  color: var(--orange-deep);
}

.cal-posted {
  background: var(--posted-soft);
  color: var(--posted);
}

.cal-draft {
  background: #f3ebe1;
  color: #6e6560;
}

.composer {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 22px;
  align-items: start;
}

.preview-label {
  font-weight: 800;
  margin-bottom: 8px;
}

.drop {
  display: grid;
  place-items: center;
  min-height: 132px;
  border: 1.5px dashed #f0c7a6;
  border-radius: 18px;
  background: #fff9f3;
  text-align: center;
  padding: 12px;
  cursor: pointer;
  margin-bottom: 12px;
}

.drop.is-hot {
  background: var(--orange-soft);
  border-color: var(--orange);
}

.drop img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 12px;
}

.drop strong {
  display: block;
  color: var(--ink);
}

.drop span {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

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

.form-actions .btn {
  flex: 1;
}

.toasts {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 60;
}

.toast {
  background: var(--ink);
  color: var(--cream);
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(62, 72, 78, 0.2);
  animation: rise 0.2s ease;
}

@keyframes rise {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hero,
  .steps,
  .feature-grid,
  .composer {
    grid-template-columns: 1fr;
  }

  .preview-pin {
    margin: 0 auto;
  }

  .brand img,
  .side-brand img {
    height: 48px;
  }

  .brand {
    font-size: 1.35rem;
  }
}

@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .side {
    position: sticky;
    top: 0;
    z-index: 8;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 12px;
  }

  .side-brand img {
    height: 48px;
    margin: 0;
  }

  .free-pill {
    display: none;
  }

  .side-nav {
    flex-direction: row;
  }

  .nav-btn {
    width: auto;
  }

  .side-user {
    margin: 0 0 0 auto;
    flex-direction: row;
    align-items: center;
    padding: 0;
  }

  .side-user span {
    display: none;
  }

  .workspace {
    padding: 18px 16px 48px;
  }
}

@media (max-width: 640px) {
  .top,
  .toolbar,
  .footer-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .nav-actions .btn {
    padding: 8px 12px;
  }

  .queue li {
    grid-template-columns: 56px 1fr auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
