/* ============================================================
   SOUPCASE — Editorial-warm travel magazine aesthetic
   ============================================================ */

:root {
  /* Brand palette */
  --purple: #5B3FD6;
  --purple-deep: #3A258C;
  --purple-ink: #1A1340;

  /* Warm neutrals */
  --cream: #FAF5EE;
  --cream-soft: #F4EDE0;
  --paper: #FFFEFB;

  /* Sunset accents (pulled from the in-app art) */
  --coral: #FF7A4D;
  --coral-soft: #FFB893;
  --peach: #FFE0CB;

  /* Type colors */
  --ink: #1A1340;
  --ink-soft: #4A3F75;
  --ink-mute: #786E9D;

  /* Layout */
  --max: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 18px;
  --radius-lg: 28px;

  /* Type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "DM Sans", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* ============================================================
   Reset & base
   ============================================================ */

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

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--purple-ink);
  margin: 0 0 0.5em;
  font-variation-settings: "SOFT" 30, "WONK" 0, "opsz" 144;
}

h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; }

::selection { background: var(--coral); color: white; }

/* ============================================================
   Layout primitives
   ============================================================ */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--coral);
  margin-bottom: 1.2rem;
  display: inline-block;
}

.eyebrow.on-purple { color: var(--coral-soft); }

/* ============================================================
   Nav
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 245, 238, 0.85);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid rgba(58, 37, 140, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.nav-brand {
  display: flex;
  align-items: center;
}

.nav-brand img {
  height: 30px;
  width: auto;
  display: block;
}

.nav-brand:hover { text-decoration: none; opacity: 0.85; }

.nav-links {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
  align-items: center;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover { color: var(--purple); text-decoration: none; }

@media (max-width: 580px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

.nav-cta {
  background: var(--purple-ink);
  color: white !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.88rem !important;
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav-cta:hover { background: var(--purple); transform: translateY(-1px); }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  background:
    radial-gradient(ellipse at top right, rgba(255, 122, 77, 0.25), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(91, 63, 214, 0.4), transparent 60%),
    linear-gradient(180deg, var(--purple) 0%, var(--purple-deep) 100%);
  color: white;
  overflow: hidden;
  padding: clamp(60px, 9vw, 120px) 0 clamp(80px, 10vw, 140px);
}

/* Decorative dot grain */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at center, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.6;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
}

.hero-title {
  color: white;
  font-weight: 400;
  font-variation-settings: "SOFT" 40, "WONK" 0, "opsz" 144;
  margin-bottom: 1.4rem;
}

.hero-title em {
  font-style: italic;
  color: var(--coral-soft);
  font-variation-settings: "SOFT" 80, "WONK" 1, "opsz" 144;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(255,255,255,0.85);
  max-width: 30em;
  margin-bottom: 2.2rem;
  line-height: 1.55;
}

@media (max-width: 860px) {
  .hero-sub { margin-left: auto; margin-right: auto; }
}

.hero-store-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .hero-store-buttons { justify-content: center; }
}

/* Phone screenshot column */
.hero-phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 480px;
}

.hero-phones img {
  width: 100%;
  max-width: 270px;
  filter: drop-shadow(0 30px 60px rgba(26, 19, 64, 0.45));
  transform: rotate(-3deg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-phones img:hover { transform: rotate(-1deg) translateY(-4px); }

/* ============================================================
   App Store / Google Play buttons
   ============================================================ */

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: black;
  color: white !important;
  border-radius: 14px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(255,255,255,0.12);
}

.store-btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.store-btn .icon { width: 26px; height: 26px; flex-shrink: 0; }

.store-btn .label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.store-btn .label small {
  font-size: 0.65rem;
  opacity: 0.7;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.store-btn .label strong {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ============================================================
   Section base
   ============================================================ */

section {
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative;
}

section.tight { padding: clamp(60px, 7vw, 100px) 0; }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 6vw, 70px);
}

.section-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-head p {
  font-size: 1.18rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-top: 0.4em;
}

/* ============================================================
   Features (Why Soupcase)
   ============================================================ */

.features {
  background: var(--cream);
  position: relative;
}

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

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

.feature {
  background: var(--paper);
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(58, 37, 140, 0.07);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(58, 37, 140, 0.12);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--peach);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--coral);
}

.feature-icon svg { width: 26px; height: 26px; }

.feature h3 {
  font-size: 1.45rem;
  margin-bottom: 0.5em;
  font-weight: 500;
}

.feature p {
  color: var(--ink-soft);
  font-size: 0.97rem;
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   Showcase (in-app screenshots, alternating)
   ============================================================ */

.showcase {
  background: var(--cream-soft);
  position: relative;
  overflow: hidden;
}

.showcase::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 380px;
  height: 380px;
  background: var(--peach);
  border-radius: 50%;
  opacity: 0.4;
  filter: blur(60px);
}

.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  margin-bottom: clamp(60px, 8vw, 120px);
}

.showcase-row:last-child { margin-bottom: 0; }

.showcase-row.reverse { direction: rtl; }
.showcase-row.reverse > * { direction: ltr; }

@media (max-width: 760px) {
  .showcase-row, .showcase-row.reverse { grid-template-columns: 1fr; direction: ltr; }
  .showcase-row > * { direction: ltr; }
}

.showcase-text h2 {
  margin-bottom: 0.4em;
}

.showcase-text p {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 30em;
}

.showcase-img {
  position: relative;
  display: flex;
  justify-content: center;
}

.showcase-img img {
  max-width: 240px;
  width: 100%;
  filter: drop-shadow(0 20px 50px rgba(58, 37, 140, 0.18));
}

/* ============================================================
   Origin story (About / Why "Soupcase")
   ============================================================ */

.origin {
  background: var(--purple-ink);
  color: white;
  position: relative;
  overflow: hidden;
}

.origin::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top left, rgba(255, 122, 77, 0.18), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(91, 63, 214, 0.3), transparent 55%);
  pointer-events: none;
}

.origin h2 { color: white; }

.origin-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  position: relative;
}

@media (max-width: 760px) {
  .origin-inner { grid-template-columns: 1fr; }
}

.origin-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--purple-deep);
}

.origin-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.08) contrast(1.05);
}

.origin-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(91, 63, 214, 0.15));
  pointer-events: none;
}

.origin-text .eyebrow { color: var(--coral); }

.origin-text p {
  font-size: 1.15rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.85);
  max-width: 32em;
}

.origin-text p.lead {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  line-height: 1.4;
  font-weight: 400;
  font-style: italic;
  color: var(--coral-soft);
  margin-bottom: 1.5em;
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 144;
}

/* ============================================================
   Download CTA
   ============================================================ */

.cta {
  background: var(--cream);
  text-align: center;
}

.cta h2 {
  margin-bottom: 0.3em;
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "SOFT" 70, "WONK" 1, "opsz" 144;
}

.cta p {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
  max-width: 30em;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: var(--purple-ink);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 40px;
  font-size: 0.92rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

@media (max-width: 580px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
}

.footer-logo {
  height: 28px;
  width: auto;
  margin-bottom: 18px;
  opacity: 0.95;
}

.footer p { margin: 0 0 6px; }

.footer a { color: rgba(255,255,255,0.85); }
.footer a:hover { color: var(--coral-soft); text-decoration: none; }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 580px) {
  .footer-links { align-items: center; }
}

.footer-bottom {
  max-width: var(--max);
  margin: 40px auto 0;
  padding: 22px var(--gutter) 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

/* ============================================================
   Legal pages (Privacy / ToS / Deletion)
   ============================================================ */

.legal {
  background: var(--cream);
  padding: clamp(60px, 8vw, 100px) 0 clamp(40px, 6vw, 80px);
}

.legal-doc {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.legal-doc .eyebrow { color: var(--coral); }

.legal-doc h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 0.3em;
  font-weight: 500;
}

.legal-doc .updated {
  color: var(--ink-mute);
  font-size: 0.95rem;
  margin-bottom: 3em;
  font-style: italic;
}

.legal-doc h2 {
  font-size: 1.65rem;
  margin-top: 2.4em;
  margin-bottom: 0.6em;
  font-weight: 500;
  padding-bottom: 0.3em;
  border-bottom: 1px solid rgba(58, 37, 140, 0.12);
}

.legal-doc h3 {
  font-family: var(--body);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--purple-ink);
  margin-top: 2em;
  margin-bottom: 0.6em;
  letter-spacing: 0;
}

.legal-doc p, .legal-doc li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.legal-doc ul, .legal-doc ol {
  padding-left: 1.6em;
  margin: 0 0 1.4em;
}

.legal-doc li { margin-bottom: 0.6em; }

.legal-doc strong { color: var(--ink); }

.legal-doc .toc {
  background: var(--paper);
  border: 1px solid rgba(58, 37, 140, 0.08);
  border-radius: var(--radius);
  padding: 24px 32px;
  margin: 2em 0 3em;
}

.legal-doc .toc h4 {
  margin: 0 0 14px;
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--coral);
}

.legal-doc .toc ol {
  margin: 0;
  padding-left: 1.4em;
  font-size: 0.95rem;
}

.legal-doc .toc a { color: var(--purple-ink); }
.legal-doc .toc a:hover { color: var(--purple); }

/* Step images on deletion page */
.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 1.5em 0 2em;
}

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

.steps img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(58, 37, 140, 0.1);
}

/* Back link on legal pages */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--purple);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 2em;
}

.back-link:hover { text-decoration: none; gap: 10px; }
.back-link::before { content: "←"; }

/* ============================================================
   Print
   ============================================================ */

@media print {
  .nav, .footer, .nav-cta, .back-link { display: none; }
  body { background: white; color: black; }
  .legal-doc { padding: 0; max-width: none; }
}
