  .hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .hero {
    max-width: 720px;
    margin: 0 auto;
    padding: 64px 24px 0;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(32px, 6vw, 48px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.1;
    margin-bottom: 16px;
    color: var(--text-primary);
  }

  .hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto 48px;
    line-height: 1.6;
  }

  .create-card {
    max-width: 520px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
  }

  .form-group { margin-bottom: 20px; }
  .form-group:last-of-type { margin-bottom: 28px; }

  .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: 0.01em;
  }

  .form-group label .optional {
    font-weight: 400;
    color: var(--text-tertiary);
    margin-left: 4px;
  }

  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="url"],
  .form-group input[type="number"],
  .form-group input[type="date"],
  .form-group textarea,
  .form-group select {
    width: 100%;
    padding: 10px 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: var(--text-primary);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
  }

  .form-group input:focus,
  .form-group textarea:focus,
  .form-group select:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(28, 25, 23, 0.06);
  }

  .form-group textarea {
    resize: vertical;
    min-height: 72px;
  }

  .form-group input::placeholder,
  .form-group textarea::placeholder {
    color: var(--text-tertiary);
  }

  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    /* Bottom-aligned so the two inputs stay level when one label wraps to a second
       line - which the limit hints ("up to 2000") make likely at narrow widths. */
    align-items: end;
  }

  .advanced-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    margin-bottom: 20px;
    border: none;
    background: none;
    font-family: inherit;
    padding: 4px 0;
    transition: color 0.15s;
  }

  .advanced-toggle:hover { color: var(--text-primary); }
  .advanced-toggle svg { transition: transform 0.2s; }
  .advanced-toggle.open svg { transform: rotate(90deg); }

  .advanced-fields { display: none; }
  .advanced-fields.show { display: block; }

  .btn-create {
    width: 100%;
    padding: 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-text);
    background: var(--accent);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    letter-spacing: -0.01em;
  }

  .btn-create:hover { background: var(--accent-hover); }
  .btn-create:active { transform: scale(0.99); }

  .preview-hint {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-tertiary);
  }

  .preview-hint code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2px 8px;
    border-radius: 6px;
    color: var(--text-secondary);
  }

  .how-it-works {
    max-width: 720px;
    margin: 80px auto 0;
    padding: 0 24px;
  }

  .how-it-works h2 {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 40px;
  }

  .steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
  }

  .step { text-align: center; }

  .step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
    font-family: 'JetBrains Mono', monospace;
  }

  .step h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
  .step p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

  .use-cases {
    max-width: 720px;
    margin: 80px auto 0;
    padding: 0 24px;
  }

  .use-cases h2 {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
  }

  .use-cases .subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 36px;
  }

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

  .case-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  }

  .case-card:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
    transform: translateY(-3px);
  }

  @media (prefers-reduced-motion: reduce) {
    .case-card:hover { transform: none; }
  }

  .case-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    background: var(--bg);
    color: var(--text-primary);
  }

  .case-icon svg { width: 20px; height: 20px; }

  .case-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.01em; }
  .case-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

  .faq {
    max-width: 520px;
    margin: 80px auto 0;
    padding: 0 24px;
  }

  .faq h2 {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 32px;
  }

  .faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
  .faq-item:first-child { border-top: 1px solid var(--border); }

  .faq-q {
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .faq-q svg { flex-shrink: 0; transition: transform 0.2s; color: var(--text-tertiary); }
  .faq-item.open .faq-q svg { transform: rotate(45deg); }

  .faq-a {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .faq-item.open .faq-a { max-height: 200px; padding-top: 12px; }

  .form-errors {
    background: var(--red-bg);
    color: var(--red);
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
  }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .hero h1 { animation: fadeUp 0.5s ease both; }
  .hero p { animation: fadeUp 0.5s ease 0.05s both; }
  .create-card { animation: fadeUp 0.5s ease 0.1s both; }

  /* ---- Intro splash (shown once per session, activated by JS) ---- */
  .intro-overlay { display: none; }

  .intro-active { overflow: hidden; }

  /* Hold hero entrance until the overlay leaves, then play from the start */
  .intro-active .hero h1,
  .intro-active .hero p,
  .intro-active .create-card { animation-play-state: paused; }

  .intro-active .intro-overlay {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 100;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    animation: introOut 0.4s ease-in 1.4s both;
  }

  .intro-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: min(480px, 90vw);
  }

  /* Giant wordmark that "uploads": text fills left-to-right in sync with the bar */
  .intro-logo {
    font-size: clamp(52px, 9vw, 104px);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1.25;
    padding-bottom: 0.08em;
    margin-bottom: -0.08em;
    white-space: nowrap;
    background: linear-gradient(90deg, var(--accent-text) 50%, rgba(255, 255, 255, 0.22) 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: introLogoIn 0.3s ease both, introFillText 0.8s ease-out 0.15s forwards;
  }

  .intro-logo span { font-weight: 400; }

  .intro-file {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 18px 22px;
    box-shadow: var(--shadow-lg);
    animation: introFly 0.45s cubic-bezier(0.5, 0, 0.8, 0.4) 1.05s both;
  }

  .intro-file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg);
    color: var(--text-primary);
    flex-shrink: 0;
  }

  .intro-file-icon svg { width: 20px; height: 20px; }

  .intro-file-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
  }

  .intro-file-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 15px;
    color: var(--text-primary);
  }

  .intro-bar {
    display: block;
    height: 8px;
    border-radius: 999px;
    background: var(--border);
    overflow: hidden;
  }

  .intro-bar-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: var(--accent);
    animation: introFill 0.8s ease-out 0.15s forwards;
  }

  .intro-check {
    width: 24px;
    height: 24px;
    color: var(--green);
    flex-shrink: 0;
    opacity: 0;
    animation: introPop 0.25s ease 0.95s forwards;
  }

  @keyframes introLogoIn {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }

  @keyframes introFillText {
    to { background-position: 0% 0; }
  }

  @keyframes introFill {
    from { width: 0; }
    to { width: 100%; }
  }

  @keyframes introPop {
    from { opacity: 0; transform: scale(0.4); }
    to { opacity: 1; transform: scale(1); }
  }

  @keyframes introFly {
    to { transform: translateX(120vw) rotate(4deg); }
  }

  @keyframes introOut {
    to { transform: translateX(100%); }
  }

  /* Scroll-reveal: .reveal is added by JS only, so no-JS users see everything */
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Stagger siblings inside grids */
  .steps .reveal:nth-child(2), .cases-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
  .steps .reveal:nth-child(3), .cases-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
  .cases-grid .reveal:nth-child(4) { transition-delay: 0.08s; }
  .cases-grid .reveal:nth-child(5) { transition-delay: 0.16s; }
  .cases-grid .reveal:nth-child(6) { transition-delay: 0.24s; }

  @media (prefers-reduced-motion: reduce) {
    .hero h1, .hero p, .create-card { animation: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
  }

  .btn-text {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    padding: 4px 0;
    transition: color 0.15s;
  }
  .btn-text:hover { color: var(--text-primary); }

  .checklist-toggle-btn { margin-bottom: 20px; }

  .checklist-section { margin-bottom: 20px; }

  .checklist-section .form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
  }

  .checklist-hint {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 12px;
    line-height: 1.5;
  }

  .checklist-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
    padding: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
  }

  .checklist-row-fields {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .checklist-row-fields input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    outline: none;
    transition: border-color 0.15s;
  }

  .checklist-row-fields input[type="text"]:focus {
    border-color: var(--border-focus);
  }

  .checklist-row-fields .input-sm {
    font-size: 13px;
    padding: 6px 10px;
    color: var(--text-secondary);
  }

  .checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
  }

  .btn-icon {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 8px;
    font-size: 16px;
    border-radius: var(--radius);
    flex-shrink: 0;
  }
  .btn-icon:hover {
    background: var(--surface);
    color: var(--text-primary);
  }

  /* Branding section */
  .branding-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
  }

  .form-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
  }

  .logo-upload {
    margin-bottom: 8px;
  }

  .logo-dropzone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    color: var(--text-tertiary);
    font-size: 14px;
    transition: border-color 0.2s;
  }

  .logo-dropzone:hover {
    border-color: var(--accent);
  }

  .logo-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
  }

  .logo-preview img {
    max-height: 48px;
    max-width: 200px;
    object-fit: contain;
  }

  .color-picker-row {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .color-input {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    padding: 2px;
    background: var(--surface);
  }

  .color-hex {
    width: 90px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
  }

  .mini-preview {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 12px;
    transition: background-color 0.3s, color 0.3s;
    background: #FAFAF9;
  }

  .mini-preview-header {
    margin-bottom: 16px;
  }

  .mini-preview-logo {
    font-size: 16px;
    font-weight: 600;
  }

  .mini-preview-logo img {
    max-height: 32px;
    max-width: 160px;
  }

  .mini-preview-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
  }

  .mini-preview-dropzone {
    border: 2px dashed currentColor;
    opacity: 0.3;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    font-size: 13px;
    margin-bottom: 12px;
  }

  .mini-preview-btn {
    padding: 10px 24px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    background: #1C1917;
    color: #FAFAF9;
    transition: background-color 0.3s, color 0.3s;
  }

  @media (max-width: 640px) {
    .hero { padding-top: 48px; }
    .hero h1 { font-size: 32px; }
    .create-card { padding: 24px; }
    .form-row { grid-template-columns: 1fr; }
    .cases-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; gap: 24px; }
  }
