/* Snapjar styles. Warm, editorial, a little scrapbook-y. */

:root {
  --paper: #faf6ef;
  --paper-deep: #f3ecdf;
  --ink: #211c15;
  --ink-soft: #5d564a;
  --accent: #d4502b;
  --accent-deep: #b03e1f;
  --sage: #7d8f69;
  --card: #fffdf9;
  --line: #e5dccb;
  --radius: 14px;
  --shadow: 0 2px 6px rgba(33, 28, 21, 0.06), 0 12px 32px rgba(33, 28, 21, 0.08);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

/* ---------- nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 56px);
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
}

.logo-dot { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
  font-weight: 500;
}

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

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

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

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  font-family: var(--font-body);
}

.btn:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-small { padding: 9px 20px; font-size: 0.9rem; }
.btn-big { padding: 17px 36px; font-size: 1.1rem; }

.btn-outline {
  background: transparent;
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.btn:disabled { opacity: 0.5; cursor: wait; transform: none; }

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

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(40px, 8vh, 90px) clamp(20px, 5vw, 56px) 70px;
}

.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  margin-bottom: 20px;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 34em;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-note { font-size: 0.9rem; color: var(--ink-soft); }

/* polaroid stack */

.hero-visual {
  position: relative;
  height: 420px;
  min-width: 280px;
}

.polaroid {
  position: absolute;
  background: #fff;
  padding: 12px 12px 14px;
  border-radius: 6px;
  box-shadow: var(--shadow);
  width: 210px;
}

.polaroid .photo {
  width: 100%;
  height: 190px;
  border-radius: 3px;
  display: block;
  object-fit: cover;
}

.polaroid span {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 10px;
  text-align: center;
}

.grad-a { background: linear-gradient(140deg, #f2b880, #d4502b 85%); }
.grad-b { background: linear-gradient(140deg, #a8bf97, #5f7350 85%); }
.grad-c { background: linear-gradient(140deg, #9db8cf, #4a6b8a 85%); }

.p1 { top: 10px; left: 8%; transform: rotate(-6deg); z-index: 1; }
.p2 { top: 90px; right: 4%; transform: rotate(4deg); z-index: 2; }
.p3 { top: 200px; left: 22%; transform: rotate(-2deg); z-index: 3; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { height: 380px; max-width: 420px; margin: 0 auto; width: 100%; }
}

/* ---------- strip ---------- */

.strip {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 14px 20px;
  font-size: 0.92rem;
  font-weight: 500;
}

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

.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(56px, 9vh, 96px) clamp(20px, 5vw, 56px);
}

.section h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 14px;
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--ink-soft);
  margin-bottom: 40px;
}

.section-alt {
  max-width: none;
  background: var(--paper-deep);
}

.section-alt > * {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

/* steps */

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

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

.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.step h3 { font-size: 1.25rem; margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: 0.97rem; }

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

/* split + quote */

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

.split h2 { text-align: left; }
.split p { color: var(--ink-soft); margin-bottom: 14px; }

.quote-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}

.quote-card p {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 16px;
}

.quote-card span { font-size: 0.85rem; color: var(--ink-soft); }

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

/* plans */

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 380px));
  justify-content: center;
  gap: 26px;
  margin-top: 20px;
}

.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.plan-featured {
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
}

.plan-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan h3 { font-size: 1.3rem; margin-bottom: 6px; }

.price {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.price span {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.plan ul {
  list-style: none;
  margin-bottom: 28px;
  flex-grow: 1;
}

.plan li {
  padding: 7px 0 7px 28px;
  position: relative;
  font-size: 0.97rem;
}

.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--sage);
  border-bottom: 2.5px solid var(--sage);
  transform: rotate(-45deg);
}

.plan .btn { text-align: center; }

.pricing-note {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-top: 28px;
}

@media (max-width: 780px) {
  .plans { grid-template-columns: minmax(0, 420px); }
}

/* faq */

.faq { max-width: 720px; margin: 36px auto 0; }

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 0 22px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 18px 0;
  list-style: none;
  position: relative;
  padding-right: 32px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 14px;
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 400;
}

.faq details[open] summary::after { content: "\2013"; }

.faq details p { color: var(--ink-soft); padding-bottom: 20px; }

/* cta + footer */

.cta-final {
  text-align: center;
  padding: clamp(56px, 10vh, 110px) 20px;
}

.cta-final h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  max-width: 18em;
  margin: 0 auto 30px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px clamp(20px, 5vw, 56px);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.footer > span:first-child {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}

.photo-credits {
  flex-basis: 100%;
  font-size: 0.76rem;
  opacity: 0.75;
}

.photo-credits a { color: inherit; }

/* ==================================================
   app pages (create + event)
   ================================================== */

.app-main {
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(28px, 6vh, 60px) 20px 80px;
}

.app-main h1 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  margin-bottom: 8px;
}

.app-sub { color: var(--ink-soft); margin-bottom: 32px; }

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

.field { margin-bottom: 20px; }

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 7px;
}

.field input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.05rem;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease;
}

.field input:focus { border-color: var(--accent); }

.field .hint { font-size: 0.82rem; color: var(--ink-soft); margin-top: 5px; }

.form-error {
  color: var(--accent-deep);
  font-size: 0.92rem;
  margin-top: 14px;
  display: none;
}

.form-error.show { display: block; }

/* success panel */

.success-panel { text-align: center; }

.success-panel h2 {
  font-size: 1.6rem;
  margin-bottom: 6px;
  text-align: center;
}

.success-panel .app-sub { margin-bottom: 24px; }

.qr-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: inline-block;
  margin-bottom: 18px;
}

.qr-wrap img { display: block; width: 240px; height: 240px; }

.qr-wrap .qr-caption {
  font-family: var(--font-display);
  font-weight: 600;
  margin-top: 12px;
}

.share-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.share-row input {
  flex: 1;
  min-width: 0;
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink-soft);
}

.success-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* past events */

.past-events { margin-top: 36px; }

.past-events h2 { font-size: 1.15rem; margin-bottom: 12px; }

.past-events a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 8px;
  text-decoration: none;
  font-weight: 500;
}

.past-events a:hover { border-color: var(--accent); }

.past-events .code-chip {
  font-size: 0.8rem;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
}

/* ---------- event page ---------- */

.event-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px clamp(16px, 4vw, 40px) 90px;
}

.event-header {
  text-align: center;
  padding: clamp(20px, 5vh, 44px) 0 26px;
}

.event-header .eyebrow { margin-bottom: 8px; }

.event-header h1 { font-size: clamp(1.8rem, 5vw, 2.7rem); }

.event-header .event-meta {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-top: 8px;
}

.upload-bar {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(8px);
  padding: 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  max-width: 560px;
  margin: 0 auto 30px;
}

.upload-bar input[type="text"] {
  font-family: var(--font-body);
  font-size: 0.92rem;
  padding: 11px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  outline: none;
  flex: 1 1 150px;
  min-width: 0;
  max-width: 220px;
}

.upload-bar input[type="text"]:focus { border-color: var(--accent); }

.upload-status {
  text-align: center;
  font-size: 0.9rem;
  color: var(--sage);
  font-weight: 600;
  min-height: 1.4em;
  margin-bottom: 18px;
}

/* gallery */

.gallery {
  columns: 4 220px;
  column-gap: 14px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper-deep);
  position: relative;
  cursor: pointer;
  border: 1px solid var(--line);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
}

.gallery-item .credit {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 10px 8px;
  font-size: 0.78rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  opacity: 0;
  transition: opacity 0.15s ease;
}

.gallery-item:hover .credit { opacity: 1; }

.empty-gallery {
  text-align: center;
  padding: 70px 20px;
  color: var(--ink-soft);
}

.empty-gallery .big { font-size: 2.4rem; margin-bottom: 12px; }

/* lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 17, 12, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 86vh;
  border-radius: 8px;
}

.lightbox-actions {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 10px;
}

.lightbox-actions a,
.lightbox-actions button {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
}

.lightbox-actions a:hover,
.lightbox-actions button:hover { background: rgba(255, 255, 255, 0.24); }

/* host bar + limit notice */

.header-actions { margin-top: 16px; }

.badge-pill {
  display: inline-block;
  background: var(--sage);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
}

.host-bar {
  background: var(--ink);
  color: var(--paper);
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 22px;
}

.host-bar a { color: #f2b880; font-weight: 600; }

.limit-note {
  background: #fdf0e7;
  border: 1px solid #efc9ae;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.92rem;
  text-align: center;
  margin-bottom: 22px;
}

.limit-note a { font-weight: 600; color: var(--accent-deep); }

.page-state {
  text-align: center;
  padding: 90px 20px;
  color: var(--ink-soft);
}

/* print: only the QR card */

@media print {
  body * { visibility: hidden; }
  .print-card, .print-card * { visibility: visible; }
  .print-card {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
}
