/* AutoFlo — page-specific styles */

/* Flow hero */
.flow-hero { width: 100%; }
.flow-node {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; height: 100%;
  font-family: var(--font-sans);
}
.flow-node-hero {
  border-color: rgba(163, 230, 53, 0.5);
  background: linear-gradient(180deg, rgba(163, 230, 53, 0.08), transparent);
}
.flow-node-icon {
  width: 32px; height: 32px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px;
  flex-shrink: 0;
}
.flow-node-hero .flow-node-icon { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.flow-node-label { font-size: 13px; color: var(--text); font-weight: 500; line-height: 1.2; }
.flow-node-sub { font-size: 11px; color: var(--text-mute); margin-top: 2px; line-height: 1.2; }

/* WhatsApp demo */
.wa-demo {
  display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: 64px; align-items: start;
}
@media (max-width: 920px) { .wa-demo { grid-template-columns: 1fr; justify-items: start; } }

.wa-phone {
  width: 360px; max-width: 100%;
  background: #0B141A; border: 8px solid #1c1c1e; border-radius: 44px;
  overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px var(--line);
  display: flex; flex-direction: column; height: 700px;
  position: relative;
}
.wa-status { display: flex; justify-content: space-between; padding: 14px 24px 6px; font-size: 13px; color: #fff; font-family: var(--font-sans); font-weight: 600; }
.wa-icons span { margin-left: 6px; }
.wa-header { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: #1F2C33; color: #fff; }
.wa-back { background: transparent; border: 0; color: #fff; font-size: 22px; padding: 0 4px; }
.wa-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.wa-meta { flex: 1; min-width: 0; }
.wa-name { font-size: 15px; font-weight: 500; }
.wa-tick { color: var(--accent); font-size: 11px; margin-left: 4px; }
.wa-presence { font-size: 11px; color: #8696A0; }
.wa-actions span { margin-left: 14px; opacity: .8; font-size: 16px; }

.wa-thread {
  flex: 1; overflow-y: auto; padding: 12px 10px;
  background-color: #0B141A;
  background-image:
    radial-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 8px 8px, 18px 18px;
  background-position: 0 0, 4px 4px;
  display: flex; flex-direction: column; gap: 4px;
}
.wa-day-pill { align-self: center; background: #1F2C33; color: #8696A0; font-size: 11px; padding: 4px 10px; border-radius: 8px; margin: 4px 0 12px; }

.wa-bubble {
  max-width: 78%; padding: 7px 10px 16px; border-radius: 8px; font-size: 14px; line-height: 1.35;
  position: relative; word-wrap: break-word;
  animation: wa-pop 220ms ease-out;
}
@keyframes wa-pop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.wa-bubble.them { background: #1F2C33; color: #E9EDEF; align-self: flex-start; border-top-left-radius: 2px; }
.wa-bubble.me   { background: #005C4B; color: #E9EDEF; align-self: flex-end;   border-top-right-radius: 2px; }
.wa-bubble-time { position: absolute; bottom: 3px; right: 8px; font-size: 10px; color: #8696A0; }
.wa-bubble.me .wa-bubble-time { color: #B5C4C9; }
.wa-tick-blue { color: #53BDEB; }

.wa-typing { padding: 12px 14px; display: inline-flex; gap: 4px; }
.wa-typing span { width: 6px; height: 6px; border-radius: 50%; background: #8696A0; animation: wa-blink 1.2s infinite; }
.wa-typing span:nth-child(2) { animation-delay: .15s; }
.wa-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes wa-blink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }

.wa-attach { display: flex; gap: 10px; align-items: center; background: rgba(0,0,0,0.2); padding: 8px; border-radius: 6px; }
.wa-attach-icon { background: var(--accent); color: var(--accent-ink); padding: 8px 10px; border-radius: 4px; font-size: 11px; font-weight: 700; font-family: var(--font-mono); }
.wa-attach-name { font-size: 13px; }
.wa-attach-meta { font-size: 11px; color: #8696A0; margin-top: 2px; }

.wa-compose { padding: 8px; background: #0B141A; border-top: 1px solid rgba(255,255,255,0.04); }
.wa-input { display: flex; align-items: center; gap: 10px; background: #1F2C33; padding: 10px 14px; border-radius: 22px; color: #8696A0; font-size: 14px; }
.wa-placeholder { flex: 1; }
.wa-choices { display: flex; flex-direction: column; gap: 6px; }
.wa-choice { background: transparent; border: 1px solid var(--line-2); color: var(--text); padding: 10px 14px; border-radius: 22px; font-size: 13px; text-align: left; transition: background 150ms, border-color 150ms; }
.wa-choice:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.wa-restart { width: 100%; background: transparent; border: 1px dashed var(--line-2); color: var(--text-dim); padding: 12px; border-radius: 22px; font-size: 13px; }

.wa-callout { padding-top: 24px; }
.wa-callout h3 { margin-top: 14px; max-width: 14ch; font-size: clamp(28px, 3vw, 40px); }
.wa-callout p { margin-top: 16px; max-width: 50ch; }
.wa-feature-list { list-style: none; padding: 0; margin: 28px 0; display: flex; flex-direction: column; gap: 10px; color: var(--text); font-size: 15px; }
.wa-feature-list li { color: var(--text); }

/* Process steps */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.process-step { padding: 40px; border-right: 1px solid var(--line); position: relative; min-height: 320px; display: flex; flex-direction: column; }
.process-step:last-child { border-right: 0; }
.process-step .num { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.16em; }
.process-step h3 { margin-top: 24px; font-size: 26px; }
.process-step p { margin-top: 14px; color: var(--text-dim); font-size: 15px; }
.process-step .when { margin-top: auto; padding-top: 28px; font-family: var(--font-mono); font-size: 12px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.1em; }
@media (max-width: 900px) {
  .process-grid { grid-template-columns: 1fr; }
  .process-step { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* What we build */
.cat-card { display: flex; flex-direction: column; gap: 18px; padding: 32px; min-height: 280px; }
.cat-card .cat-letter { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.18em; }
.cat-card h3 { font-size: 26px; }
.cat-card ul { padding: 0; margin: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; color: var(--text-dim); font-size: 14px; }
.cat-card ul li::before { content: '→ '; color: var(--accent); margin-right: 4px; }
.cat-card .price { margin-top: auto; font-family: var(--font-mono); color: var(--text-mute); font-size: 12px; padding-top: 18px; border-top: 1px solid var(--line); }

/* Puzzle / system animation */
.puzzle {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 880px; margin: 0 auto;
}
.puzzle-tile {
  aspect-ratio: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  display: grid; place-items: center; padding: 18px; text-align: center;
  position: relative; overflow: hidden; transition: transform 200ms, border-color 200ms;
}
.puzzle-tile.lit { border-color: var(--accent); background: linear-gradient(180deg, rgba(163,230,53,0.10), var(--surface)); }
.puzzle-tile .pt-icon { font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }
.puzzle-tile .pt-label { font-size: 14px; color: var(--text); line-height: 1.25; }
.puzzle-tile.lit .pt-label { color: var(--accent); }
.puzzle-tile .pt-glow { position: absolute; inset: -1px; border-radius: 12px; opacity: 0; pointer-events: none; box-shadow: inset 0 0 30px rgba(163,230,53,0.2); transition: opacity 300ms; }
.puzzle-tile.lit .pt-glow { opacity: 1; }
@media (max-width: 720px) { .puzzle { grid-template-columns: repeat(2, 1fr); } }

/* Case study */
.case-card {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface);
}
.case-text { padding: 56px; display: flex; flex-direction: column; gap: 20px; }
.case-text h3 { font-size: clamp(28px, 3vw, 40px); max-width: 18ch; }
.case-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; padding-top: 28px; border-top: 1px solid var(--line); }
.case-stats .num { font-family: var(--font-display); font-size: 32px; font-weight: 500; letter-spacing: -0.02em; }
.case-stats .num .accent { color: var(--accent); }
.case-stats .lbl { font-size: 12px; color: var(--text-mute); margin-top: 4px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; }
.case-vis { background: #060708; padding: 56px; display: flex; flex-direction: column; gap: 14px; justify-content: center; border-left: 1px solid var(--line); }
.case-row { display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.case-row .step-num { font-family: var(--font-mono); font-size: 11px; color: var(--accent); width: 24px; }
.case-row .step-label { flex: 1; font-size: 14px; }
.case-row .step-meta { font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); }
@media (max-width: 900px) { .case-card { grid-template-columns: 1fr; } .case-vis { border-left: 0; border-top: 1px solid var(--line); } .case-text { padding: 32px; } .case-vis { padding: 32px; } }

/* Big CTA */
.big-cta {
  background: var(--accent); color: var(--accent-ink); border-radius: var(--radius-lg);
  padding: clamp(48px, 8vw, 96px); text-align: left;
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end;
}
.big-cta h2 { font-size: clamp(40px, 6vw, 80px); max-width: 16ch; color: var(--accent-ink); }
.big-cta .btn { background: var(--accent-ink); color: var(--text); }
.big-cta .btn:hover { background: #000; }
@media (max-width: 760px) { .big-cta { grid-template-columns: 1fr; } }

/* Packages page */
.flagship-card {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  padding: clamp(36px, 4vw, 56px);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px;
  position: relative; overflow: hidden;
}
.flagship-card::before { content: ''; position: absolute; top: -200px; right: -200px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(163,230,53,0.10), transparent 70%); pointer-events: none; }
.flagship-card .star { font-size: 14px; font-family: var(--font-mono); color: var(--accent); letter-spacing: 0.15em; text-transform: uppercase; }
.flagship-card h2 { font-size: clamp(36px, 4.5vw, 56px); margin-top: 14px; }
.flagship-card .lede { color: var(--text-dim); font-size: 17px; margin-top: 20px; max-width: 50ch; }
.flagship-card .includes { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.flagship-card .includes li { color: var(--text); font-size: 14px; list-style: none; }
.flagship-card .includes li::before { content: '✓ '; color: var(--accent); }
.flagship-price { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.flagship-price .row { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
.flagship-price .row:last-child { border-bottom: 0; }
.flagship-price .lbl { color: var(--text-dim); font-size: 14px; }
.flagship-price .val { font-family: var(--font-display); font-size: 22px; font-weight: 500; }
.flagship-price .val .accent { color: var(--accent); }
@media (max-width: 900px) { .flagship-card { grid-template-columns: 1fr; gap: 32px; } .flagship-card .includes { grid-template-columns: 1fr; } }

/* Package list */
.pkg-cat-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 28px; }
.pkg-cat-head .letter { font-family: var(--font-mono); font-size: 14px; color: var(--accent); letter-spacing: 0.15em; }
.pkg-cat-head h3 { font-size: 32px; }
.pkg-cat-head .count { font-family: var(--font-mono); font-size: 12px; color: var(--text-mute); margin-left: auto; }

.pkg-row {
  display: grid; grid-template-columns: 60px 1.4fr 2fr 1fr 1fr 100px;
  gap: 24px; align-items: center;
  padding: 24px; border-top: 1px solid var(--line);
  transition: background 150ms;
}
.pkg-row:hover { background: var(--surface); }
.pkg-row .id { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.pkg-row .name { font-size: 17px; font-weight: 500; }
.pkg-row .name .pop { display: inline-block; margin-left: 8px; font-family: var(--font-mono); font-size: 10px; color: var(--accent-ink); background: var(--accent); padding: 2px 6px; border-radius: 4px; vertical-align: middle; letter-spacing: 0.06em; }
.pkg-row .desc { color: var(--text-dim); font-size: 14px; line-height: 1.4; }
.pkg-row .build, .pkg-row .retain { font-family: var(--font-mono); font-size: 14px; }
.pkg-row .retain { color: var(--text-dim); }
.pkg-row .time { font-family: var(--font-mono); font-size: 12px; color: var(--text-mute); text-align: right; }
@media (max-width: 1000px) {
  .pkg-row { grid-template-columns: 44px 1fr auto auto; gap: 14px; }
  .pkg-row .desc, .pkg-row .time { display: none; }
  .pkg-row .build, .pkg-row .retain { white-space: nowrap; font-size: 13px; }
}

.pkg-table-head {
  display: grid; grid-template-columns: 60px 1.4fr 2fr 1fr 1fr 100px; gap: 24px;
  padding: 14px 24px; font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); letter-spacing: 0.12em; text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 1000px) {
  .pkg-table-head { grid-template-columns: 44px 1fr auto auto; gap: 14px; }
  .pkg-table-head .col-desc, .pkg-table-head .col-time { display: none; }
}

/* Audit form */
.audit-form { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.audit-form .field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.audit-form label { font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.12em; }
.audit-form input, .audit-form textarea, .audit-form select {
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  padding: 14px 16px; border-radius: 10px; font-family: inherit; font-size: 15px;
}
.audit-form input:focus, .audit-form textarea:focus, .audit-form select:focus {
  outline: none; border-color: var(--accent);
}
.audit-form textarea { min-height: 100px; resize: vertical; }
.audit-form button[type="submit"] { width: 100%; justify-content: center; padding: 18px; font-size: 15px; }
.audit-success { padding: 32px; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius); }
@media (max-width: 900px) { .audit-form { grid-template-columns: 1fr; } }

/* Tweaks tag */
.tweaks-floating-hint { position: fixed; bottom: 16px; left: 16px; font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); letter-spacing: 0.08em; pointer-events: none; opacity: .5; }
