@font-face{
  font-family: 'Rounded Elegance';
  src: url('Rounded_Elegance.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root{
  --bg: #ffffff;
  --ink:#0f172a;         /* slate-900 */
  --muted:#64748b;       /* slate-500 */
  --brand:#687690;       /* Liddy blue */
  --accent:#10b981;      /* emerald-500 */
  --line:#e5e7eb;        /* gray-200 */
  --panel:#f8fafc;       /* slate-50 */
}

*{box-sizing:border-box}
html,body{height:100%}
html{print-color-adjust:exact;-webkit-print-color-adjust:exact;scroll-behavior:smooth}
body{margin:0;color:var(--ink);background:var(--brand);font-family:"Rounded Elegance", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;line-height:1.45;-webkit-font-smoothing:antialiased}

.site{max-width:1120px;margin:0 auto;padding:28px}
.notice{padding:10px 14px;border:1px dashed var(--line);border-radius:10px;color:var(--muted);font-size:14px;margin-bottom:18px}

h1{font-size:32px;line-height:1.15;margin:0 0 10px 0}
h2{font-size:22px;margin:0 0 8px 0}
h3{font-size:16px;margin:0 0 6px 0}
p{margin:8px 0}
.tm{font-size:0.5em;vertical-align:super}
.muted{color:var(--muted)}
.kicker{letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-size:12px;margin:4px 0 8px 4px}

.sheet{display:grid;gap:18px;margin-bottom:22px}
.side{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.panel{background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:20px;min-height:280px;box-shadow:0 1px 0 #0000000b, 0 1px 3px #00000012}

/* Desktop tri-fold layout (reorder panels for tri-fold printing) */
@media (min-width:900px){
  /* FRONT SHEET (Outside): Sizes (left) | Welcome (center) | What's in Box (right) 
     Original was: Community | Welcome | Thank You, but keeping logical flow */
  .front .panel-welcome{order:2}     /* Center */
  .front .panel-inbox{order:1}       /* Left */
  .front .panel-sizes{order:3}       /* Right */
  
  /* BACK SHEET (Inside): Community (left) | Setup (center) | Thank You (right) */
  .back .panel-setup{order:2}        /* Center */
  .back .panel-thanks{order:3}       /* Right */
  .back .panel-community{order:1}    /* Left */
}

.brand{display:flex;align-items:center;gap:12px}
.brand img{height:28px}
.badge{display:inline-block;padding:3px 10px;border-radius:999px;background:linear-gradient(180deg, var(--brand), #58647a);color:#fff;font-weight:600;font-size:12px}

.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.list{padding-left:18px}

.qr{border:2px dashed var(--line);height:130px;border-radius:14px;display:grid;place-items:center;color:var(--muted);font-size:12px}
.faux-cta{display:inline-block;margin-top:10px;padding:10px 14px;border-radius:12px;background:var(--ink);color:#fff;font-weight:700;font-size:14px;text-decoration:none}

.sizes{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.sizecard{border:1px solid var(--line);border-radius:14px;padding:12px;background:#fff}

.steps{counter-reset: step;width:100%}
.step{display:grid;grid-template-columns:40px minmax(0,1fr);gap:12px;margin:12px 0;align-items:start;line-height:1.5}
.step::before{counter-increment: step;content: counter(step);height:40px;width:40px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(180deg, var(--brand), #58647a);color:#fff;font-weight:800;flex-shrink:0}

.tip{border-left:4px solid var(--accent);padding:10px 14px;background:#ecfdf5;border-radius:10px;margin-top:10px}
.foot{color:var(--muted);font-size:12px;margin-top:8px}
.icons{display:flex;gap:8px;align-items:center}
.icon{width:18px;height:18px}

.welcome-gif{text-align:center;margin:12px 0}
.welcome-gif img{max-width:180px;height:auto;border-radius:12px;box-shadow:0 4px 12px rgba(0,0,0,0.1)}

/* --- Responsive tweaks --- */
@media (max-width:900px){
  .site{padding:16px}
  .side{grid-template-columns:1fr}
  .grid-2{grid-template-columns:1fr}
  .panel{min-height:auto;padding:16px}
  
  h1{font-size:28px}
  h2{font-size:20px}
  
  /* Better spacing on mobile */
  .sheet{gap:14px;margin-bottom:16px}
  .side{gap:14px}
  
  /* Stack size cards on mobile */
  .sizes{grid-template-columns:1fr}
  
  /* Better touch targets */
  .icons a{display:inline-block;padding:6px 0;font-size:16px}
}

@media (max-width:480px){
  .site{padding:12px}
  .panel{padding:14px;border-radius:12px}
  
  h1{font-size:24px}
  h2{font-size:18px}
  
  .brand img{height:24px}
  .badge{font-size:10px;padding:2px 8px}
  
  .qr{height:100px;font-size:11px}
  
  .fun-fact{padding:12px;margin:12px 0}
  .fun-fact img{max-width:200px;margin:8px 0}
}

/* Fun fact callout styles */
.fun-fact {
  background: linear-gradient(135deg, #fff9e6, #fef3c7);
  border: 2px solid var(--accent);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.fun-fact h3 {
  color: var(--ink);
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.fun-fact p {
  margin: 0.5rem 0;
  color: var(--ink);
}

.fun-fact img {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 8px;
  margin: 1rem auto;
  display: block;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.fun-fact img:hover {
  transform: scale(1.02);
}

/* Lightbox styles for images */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  animation: fadeIn 0.3s ease;
}

.lightbox-content {
  margin: auto;
  display: block;
  width: 90%;
  max-width: 1000px;
  max-height: 90%;
  object-fit: contain;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  z-index: 1001;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: #ccc;
}

.lightbox-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.7);
  border-radius: 4px;
  padding: 10px 20px;
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

/* --- Print styles (keeping minimal for browser print if needed) --- */
@media print{
  .site{max-width:none;padding:0.25in}
  .panel{box-shadow:none}
}
