:root {
    --bg: linear-gradient(135deg, #2f2f2f, #444, #2f2f2f);
    --accent: #ffef9f;
    --accent2: #a5e0d2;
    --text: #222;
    --shadow: rgba(0, 0, 0, 0.5);
  }

  * { box-sizing: border-box; margin:0; padding:0; }

  body {
    font-family: system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    gap: 2rem;
  }

  header { text-align: center; margin-bottom: 1rem; }
  header h1 {
    font-size: 4.2rem;
    transform: rotate(-1deg);
    display: inline-block;
    background: var(--accent);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    box-shadow: 0 3px 6px var(--shadow);
  }

  main {
    display: grid;
    width: 100%;
    max-width: 1000px;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  }

  .postit {
    background: linear-gradient(120deg, #ffef9f, #fff3c0);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px var(--shadow);
    transform: rotate(var(--angle,0deg));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .postit.alt {  background: linear-gradient(120deg, #a5e0d2, #c7f0e6); }

  .postit h2 {
    font-family: system-ui, sans-serif;
    font-size: 1.7rem;
    text-align: center;
    margin-bottom: 0.3rem;
  }

  .content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }

  .icon {
    flex: 0 0 20%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: var(--text);
    opacity: 0.8;
  }

  .text { 
    flex: 1;
    min-width: 0;
    font-family: 'Poppins', sans-serif;
  }

  .text p {
    line-height: 1.1; 
    font-size: 0.95rem;
  }

  .reverse .content { flex-direction: row-reverse; }

  .postit:hover { transform: rotate(0deg) scale(1.02); box-shadow: 0 6px 10px var(--shadow); z-index:1; }

  footer {
    text-align:center;
    font-size:0.85rem;
    color:#ddd;
    margin-top:auto;
  }

  .invite {
    background: #fff9c4;
    grid-column: span 2;
    text-align:center;
    flex-direction: column;
  }

  .invite h2 {
    font-family: system-ui, sans-serif;
    font-size: 1.6rem;
    margin-bottom:0.5rem;
  }

  .invite p { font-family: 'Poppins', sans-serif; margin-bottom:1rem; }
  .invite button {
    background: var(--accent2);
    border: none;
    padding: 0.8rem 1.2rem;
    font-weight:600;
    border-radius:6px;
    box-shadow:0 3px 5px var(--shadow);
    cursor:pointer;
    transition: transform 0.2s ease;
  }

  .invite button:hover { transform: scale(1.05); }

  .cta-btn {
    display: inline-block;
    background: var(--accent2);
    border: none;
    padding: 0.8rem 1.2rem;
    font-weight: 600;
    border-radius: 6px;
    box-shadow: 0 3px 5px var(--shadow);
    cursor: pointer;
    transition: transform 0.2s ease;
    text-decoration: none;
    color: var(--text);
  }
  
  .cta-btn:hover {
    transform: scale(1.05);
  }

  .signup-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    margin-top: 0.8rem;
  }
  
  .signup-form input {
    padding: 0.6rem 1rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    width: 100%;
    max-width: 240px;
    text-align: center;
    font-size: 1rem;
  }
  
  .signup-msg {
    margin-top: 0.6rem;
    font-weight: 500;
  }
  
  .cta-form { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 1rem; }
.cta-form input, .cta-form textarea { padding: 0.6rem; border: 1px solid #ccc; border-radius: 4px; font: inherit; }
.cta-form button { align-self: flex-start; }

.upload-group { margin: 0.5rem 0; }
.upload-group label { display: block; margin-bottom: 0.3rem; font-weight: 600; }

.preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 0.5rem; margin-top: 0.5rem; }
.preview-grid img { width: 100%; height: 80px; object-fit: cover; border-radius: 4px; border: 1px solid #ddd; }

.tier-hint { font-size: 0.9rem; color: #666; margin: 0.5rem 0; }
.upsell { color: #0066cc; }

.invite-form {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 0.6rem;
}

.invite-form > div {
  width: 100%;
  max-width: 640px;
}


  /* Responsive */
/* >=901px → 3 kolommen */
@media (min-width:901px){
  main {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Invite = 2 kolommen breed (bijv. kolom 1–2) */
  .invite {
    grid-column: span 2;
  }
}

/* 600–900px → 2 kolommen */
@media (max-width:900px) and (min-width:601px){
  main {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Invite = volledige rij */
  .invite {
    grid-column: 1 / span 2;
  }
}

/* <=600px → 1 kolom */
@media (max-width:600px){
  main {
    grid-template-columns: 1fr;
  }

  .invite {
    grid-column: auto;
  }
}

