﻿:root {
  --paper: #f4efe5;
  --ink: #202018;
  --muted: #696355;
  --line: rgba(32, 32, 24, 0.14);
  --brand: #d95f2d;
  --brand-dark: #9d341d;
  --sage: #6c7f59;
  --sand: #ead8b7;
  --card: rgba(255, 252, 245, 0.86);
  --shadow: 0 22px 60px rgba(58, 45, 24, 0.14);
}

html {
  min-height: 100%;
  font-size: 16px;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(217, 95, 45, 0.20), transparent 28rem),
    radial-gradient(circle at 88% 16%, rgba(108, 127, 89, 0.18), transparent 26rem),
    linear-gradient(135deg, #f8f1e4 0%, var(--paper) 46%, #ede1cb 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(32, 32, 24, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(32, 32, 24, 0.035) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

a {
  color: var(--brand-dark);
}

.app-container {
  max-width: 1180px;
  margin: 0 auto;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(244, 239, 229, 0.76);
  border-bottom: 1px solid var(--line);
}

.app-nav {
  padding: 0.9rem 0;
}

.brand-mark {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.nav-pills-soft,
.auth-nav {
  gap: 0.35rem;
}

.nav-link {
  color: var(--ink);
  border-radius: 999px;
  padding: 0.55rem 0.9rem !important;
}

.nav-link:hover,
.nav-cta {
  color: var(--ink);
  background: rgba(217, 95, 45, 0.13);
}

.page-shell {
  padding-top: 2.2rem;
  padding-bottom: 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 2rem;
  align-items: stretch;
  min-height: 520px;
}

.auth-grid {
  grid-auto-rows: 1fr;
}

.auth-grid > .content-card,
.auth-grid > .hero-panel {
  height: 100%;
  margin-bottom: 0;
}

.hero-copy,
.hero-panel,
.content-card,
.feature-card,
.table-card {
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.hero-copy {
  min-width: 0;
  padding: clamp(2rem, 5vw, 4.5rem);
}

.hero-copy h1 {
  max-width: 100%;
  font-size: clamp(2.35rem, 4.8vw, 4.9rem);
  line-height: 1;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 1.2rem;
  padding: 0.4rem 0.75rem;
  color: var(--brand-dark);
  background: rgba(217, 95, 45, 0.12);
  border: 1px solid rgba(217, 95, 45, 0.24);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 850px;
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  line-height: 0.94;
  overflow-wrap: anywhere;
}

.hero-text {
  max-width: 680px;
  margin: 1.35rem 0 2rem;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  border-radius: 999px;
  font-weight: 700;
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
}

.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.hero-panel {
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 2rem;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(32, 32, 24, 0.88), rgba(74, 83, 54, 0.88)),
    radial-gradient(circle at 100% 0, rgba(217, 95, 45, 0.7), transparent 16rem);
}

.phone-stack {
  display: grid;
  width: min(100%, 430px);
  gap: 1rem;
}

.phone-card {
  width: 100%;
  padding: 1.65rem;
  color: #fff8eb;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.10);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.24);
  transform: rotate(-2deg);
}

.phone-card-compact {
  padding: 1.15rem 1.3rem;
  border-radius: 24px;
  transform: rotate(1.4deg) translateX(1.2rem);
  background: rgba(255, 255, 255, 0.085);
}

.phone-card-compact.delay-card {
  transform: rotate(-1deg) translateX(-0.8rem);
}

.phone-status {
  margin-bottom: 1.1rem;
  color: #f5c29b;
  font-weight: 700;
}

.phone-card h2 {
  font-size: clamp(2rem, 3.6vw, 2.5rem);
}

.phone-card-compact h2 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
}

.phone-card-compact .phone-status {
  margin-bottom: 0.55rem;
  font-size: 0.92rem;
}

.phone-card-compact p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.delivery-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.5rem;
}

.delivery-stack span,
.status-pill {
  display: inline-flex;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.86rem;
  font-weight: 700;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.feature-card,
.content-card,
.table-card {
  padding: 1.5rem;
}

.feature-number {
  color: var(--brand);
  font-weight: 800;
}

.content-card,
.table-card {
  margin-bottom: 1rem;
}

.narrow-card {
  max-width: 760px;
}

.page-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.page-title-row h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.form-control,
.form-select {
  border-color: var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.2rem rgba(217, 95, 45, 0.14);
}

.reminder-list {
  display: grid;
  gap: 1rem;
}

.reminder-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
}

.reminder-card p {
  margin-bottom: 0.7rem;
  color: var(--muted);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-content: start;
  justify-content: end;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
}

.stat-card {
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  font-family: Georgia, "Times New Roman", serif;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.channel-card {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
}

.app-footer {
  padding: 1.4rem 0 2rem;
  color: var(--muted);
}

.app-footer .app-container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.reveal-card {
  animation: reveal-card 620ms ease both;
}

.delay-1 {
  animation-delay: 120ms;
}

@keyframes reveal-card {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .feature-grid,
  .channel-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
  }

  .page-title-row,
  .reminder-card {
    grid-template-columns: 1fr;
  }

  .card-actions {
    justify-content: start;
  }
}

@media (max-width: 560px) {
  .page-shell {
    padding-top: 1rem;
  }

  .hero-copy,
  .hero-panel,
  .content-card,
  .table-card {
    border-radius: 24px;
    padding: 1rem;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .hero-actions .btn,
  .page-title-row .btn {
    width: 100%;
  }
}
