/* =========================================================================
   Faked product UIs (Gmail, calendar buttons, WhatsApp, Typeform, Calendly).
   Ported from the skill's reference pages; product colours stay real
   (WhatsApp green, Gmail, Calendly blue). Page chrome re-tinted to system B.
   ========================================================================= */
:root { --accent: #0e4f47; --accent-2: #13665c; --accent-soft: rgba(14,79,71,.08); --text: #10302c; --text-2: #4e5f5b; --text-3: #5f6e6a; --surface: #fffdf8; --surface-2: #f7f3ea; }
  /* ---- calendar buttons (with brand logos) ---- */
  .cal-btns{display:flex;flex-wrap:wrap;gap:12px;justify-content:center}
  .cal-btn{display:inline-flex;align-items:center;gap:10px;font-weight:600;font-size:15px;
    color:var(--text);background:var(--surface-2);border:1px solid var(--line);
    border-radius:11px;padding:12px 18px;transition:border-color .2s ease,transform .2s ease}
  .cal-btn:hover{border-color:color-mix(in srgb,var(--accent) 45%,var(--line));transform:translateY(-2px)}
  .cal-btn svg{width:20px;height:20px;flex:none}

  /* =====================================================================
     GMAIL MOCKUP (Step 2), mimics real Gmail inbox
     ===================================================================== */
  .gmail{border-radius:14px;overflow:hidden;background:#fff;color:#202124;
    border:1px solid rgba(0,0,0,.12);box-shadow:0 30px 70px -40px rgba(16,48,44,.5);
    font-size:14px;line-height:1.3;text-align:left;width:100%;margin:0 auto}
  .gm-top{display:flex;align-items:center;gap:16px;padding:9px 16px;
    border-bottom:1px solid #eceff1;background:#fff}
  .gm-burger{width:20px;height:20px;color:#5f6368;flex:none}
  .gm-logo{display:flex;align-items:center;gap:8px;flex:none}
  .gm-logo svg{width:34px;height:26px}
  .gm-logo span{font-size:21px;color:#5f6368;font-weight:400;letter-spacing:-.01em}
  .gm-search{flex:1;max-width:560px;display:flex;align-items:center;gap:12px;
    background:#eaf1fb;border-radius:9px;padding:9px 16px;color:#5f6368}
  .gm-search svg{width:18px;height:18px;flex:none}
  .gm-search .ph{flex:1;font-size:15px}
  .gm-top-r{display:flex;align-items:center;gap:14px;margin-left:auto;color:#5f6368}
  .gm-top-r svg{width:20px;height:20px}
  .gm-ava{width:30px;height:30px;border-radius:50%;background:#1a73e8;color:#fff;
    display:grid;place-items:center;font-weight:600;font-size:14px}
  .gm-body{display:flex;min-height:340px}
  /* left rail */
  .gm-rail{width:210px;flex:none;padding:10px 8px 10px 12px;background:#fff}
  .gm-compose{display:inline-flex;align-items:center;gap:12px;background:#c2e7ff;color:#001d35;
    font-weight:500;font-size:15px;border-radius:16px;padding:12px 22px 12px 16px;margin:4px 0 14px}
  .gm-compose svg{width:20px;height:20px}
  .gm-nav div{display:flex;align-items:center;gap:16px;padding:7px 12px;border-radius:0 16px 16px 0;
    color:#202124;font-size:14px;font-weight:500}
  .gm-nav div svg{width:18px;height:18px;color:#5f6368;flex:none}
  .gm-nav div.on{background:#d3e3fd;color:#041e49;font-weight:700}
  .gm-nav div.on svg{color:#041e49}
  .gm-nav div .ct{margin-left:auto;font-size:13px;color:#5f6368}
  .gm-nav div.on .ct{color:#041e49}
  /* list */
  .gm-main{flex:1;border-left:1px solid #f1f3f4;background:#fff;min-width:0}
  .gm-tools{display:flex;align-items:center;gap:18px;padding:8px 18px;color:#5f6368;
    border-bottom:1px solid #f1f3f4}
  .gm-tools .cb{width:16px;height:16px;border:2px solid #5f6368;border-radius:3px}
  .gm-tools svg{width:18px;height:18px}
  .gm-tabs{display:flex;align-items:center;gap:8px;padding:0 8px;border-bottom:1px solid #f1f3f4}
  .gm-tab{display:flex;align-items:center;gap:10px;padding:12px 14px;font-size:14px;color:#5f6368;
    font-weight:600;border-bottom:3px solid transparent}
  .gm-tab.on{color:#1a73e8;border-bottom-color:#1a73e8}
  .gm-tab svg{width:18px;height:18px}
  .gm-row{display:grid;grid-template-columns:20px 20px 40px 1fr auto;align-items:center;gap:14px;
    padding:11px 18px;border-bottom:1px solid #f5f5f5;cursor:pointer}
  .gm-row .cb{width:16px;height:16px;border:2px solid #bdc1c6;border-radius:3px}
  .gm-row .star{width:18px;height:18px;color:#dadce0}
  .gm-av{width:36px;height:36px;border-radius:50%;color:#fff;display:grid;place-items:center;
    font-weight:600;font-size:15px;overflow:hidden}
  .gm-av img{width:100%;height:100%;object-fit:cover}
  .gm-txt{min-width:0;display:flex;flex-direction:column;gap:2px;overflow:hidden}
  .gm-sender{font-size:14px;color:#5f6368}
  .gm-line{font-size:13.5px;color:#5f6368;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .gm-line b{color:#202124}
  .gm-time{font-size:12.5px;color:#5f6368;white-space:nowrap}
  .gm-blur{filter:blur(3.5px);opacity:.85;user-select:none}
  /* the one real email, unread */
  .gm-hot{background:#fff;box-shadow:inset 4px 0 0 #1a73e8;border-bottom:1px solid #eee}
  .gm-hot .gm-sender{color:#202124;font-weight:700}
  .gm-hot .gm-line b{font-weight:700}
  .gm-hot .gm-time{color:#1a73e8;font-weight:700}
  .gm-hot .star{color:#f4b400}

  /* =====================================================================
     WHATSAPP JOIN (Step 3), exact WhatsApp branding
     ===================================================================== */
  .wa-btn{display:inline-flex;align-items:center;gap:12px;background:#25D366;color:#fff;
    font-weight:700;font-size:16px;border-radius:12px;padding:15px 26px;
    box-shadow:0 12px 30px -10px rgba(37,211,102,.5);transition:transform .2s ease,filter .2s ease}
  .wa-btn:hover{transform:translateY(-2px);filter:brightness(1.04)}
  .wa-btn svg{width:24px;height:24px}
  .wa-note{display:flex;align-items:center;justify-content:center;gap:9px;margin-top:16px;
    font-size:14px;color:var(--text-2);text-align:left}
  .wa-note svg{width:16px;height:16px;color:#25D366;flex:none}


  .typeform{max-width:760px;margin:0 auto;background:#fff;color:#2b2b31;border-radius:16px;
    position:relative;overflow:hidden;min-height:480px;
    box-shadow:0 30px 70px -40px rgba(16,48,44,.5);border:1px solid rgba(0,0,0,.08);
    display:flex;flex-direction:column}
  .tf-slide{flex:1;display:none;flex-direction:column;justify-content:center;
    padding:64px 60px;max-width:640px}
  .tf-slide.active{display:flex;animation:tfIn .38s cubic-bezier(.22,.61,.36,1)}
  @keyframes tfIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
  /* completion state */
  .tf-done{flex:1;display:none;flex-direction:column;align-items:center;justify-content:center;
    text-align:center;padding:64px 60px}
  .tf-done.active{display:flex;animation:tfIn .5s cubic-bezier(.22,.61,.36,1)}
  .tf-done .chk{width:66px;height:66px;border-radius:50%;margin-bottom:22px;display:grid;
    place-items:center;background:color-mix(in srgb,var(--accent) 15%,#fff);color:var(--accent)}
  .tf-done .chk svg{width:33px;height:33px}
  .tf-done h3{font-size:26px;font-weight:600;color:#33333b;letter-spacing:-.01em;line-height:1.25}
  .tf-done p{font-size:16px;color:#8a8a93;margin:10px 0 0}
  .tf-qnum{display:inline-flex;align-items:center;gap:6px;color:var(--accent);
    font-size:15px;font-weight:600;margin-bottom:14px}
  .tf-qnum svg{width:15px;height:15px}
  .tf-q{font-size:27px;font-weight:600;line-height:1.28;color:#33333b;letter-spacing:-.01em}
  .tf-q .req{color:var(--accent)}
  .tf-desc{font-size:15px;color:#8a8a93;margin-top:8px}
  .tf-opts{margin-top:26px;display:flex;flex-direction:column;gap:12px}
  .tf-opt{display:flex;align-items:center;gap:12px;padding:12px 14px;cursor:pointer;
    border:1.5px solid color-mix(in srgb,var(--accent) 45%,#fff);border-radius:9px;
    background:color-mix(in srgb,var(--accent) 6%,#fff);
    color:color-mix(in srgb,var(--accent) 88%,#111);font-size:16px;font-weight:500;
    transition:background .15s ease,border-color .15s ease}
  .tf-opt:hover{background:color-mix(in srgb,var(--accent) 14%,#fff)}
  .tf-opt.sel{background:color-mix(in srgb,var(--accent) 22%,#fff);border-color:var(--accent)}
  .tf-key{flex:none;width:26px;height:26px;border-radius:6px;display:grid;place-items:center;
    border:1.5px solid color-mix(in srgb,var(--accent) 45%,#fff);font-size:13px;font-weight:700;
    color:color-mix(in srgb,var(--accent) 88%,#111);background:#fff}
  .tf-opt .tick{margin-left:auto;width:18px;height:18px;color:var(--accent);opacity:0}
  .tf-opt.sel .tick{opacity:1}
  .tf-actions{display:flex;align-items:center;gap:16px;margin-top:30px}
  .tf-ok{display:inline-flex;align-items:center;gap:8px;background:var(--accent);color:#fff;
    font-weight:700;font-size:16px;border:none;border-radius:7px;padding:11px 22px;cursor:pointer;
    box-shadow:0 3px 0 color-mix(in srgb,var(--accent) 60%,#000)}
  .tf-ok:hover{filter:brightness(1.04)}
  .tf-hint{font-size:14px;color:#9a9aa2;display:flex;align-items:center;gap:6px}
  .tf-hint kbd{display:inline-flex;align-items:center;gap:4px;border:1px solid #d3d3d8;
    border-radius:4px;padding:1px 6px;font-size:12px;font-family:inherit;color:#6b6b73}
  /* progress + nav */
  .tf-bottom{position:absolute;left:0;right:0;bottom:0}
  .tf-progress{height:5px;background:#ececf0}
  .tf-progress i{display:block;height:100%;width:20%;background:var(--accent);
    border-radius:0 3px 3px 0;transition:width .3s ease}
  .tf-brandbar{display:flex;align-items:center;justify-content:space-between;padding:12px 18px}
  .tf-brand{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:#4a4a52}
  .tf-brand svg{width:18px;height:18px}
  .tf-nav{display:flex;gap:8px}
  .tf-nav button{width:34px;height:30px;border:none;background:var(--accent);color:#fff;
    border-radius:5px;display:grid;place-items:center;cursor:pointer;opacity:.9}
  .tf-nav button:first-child{opacity:.5}
  .tf-nav svg{width:16px;height:16px}

  /* routing connector */
  .route-note{display:flex;align-items:center;justify-content:center;gap:12px;
    margin:26px auto;max-width:760px;color:var(--text-3);font-size:13px;
    letter-spacing:.06em;text-transform:uppercase;font-weight:600}
  .route-note::before,.route-note::after{content:"";flex:1;height:1px;
    background:linear-gradient(90deg,transparent,var(--line),transparent)}

  /* =====================================================================
     CALENDLY MOCKUP, mimics a real Calendly booking embed
     ===================================================================== */
  .calendly{max-width:900px;margin:0 auto;background:#fff;color:#0a2540;border-radius:14px;
    overflow:hidden;border:1px solid rgba(0,0,0,.1);box-shadow:0 30px 70px -40px rgba(16,48,44,.5);
    display:grid;grid-template-columns:280px 1fr 210px;min-height:440px;font-size:14px}
  .cy-info{padding:26px 24px;border-right:1px solid #eef0f2}
  .cy-host{display:flex;align-items:center;gap:10px;margin-bottom:18px}
  .cy-host .av{width:34px;height:34px;border-radius:50%;background:#e6ecf5;overflow:hidden;
    display:grid;place-items:center;font-weight:700;color:#0a2540;font-size:14px}
  .cy-host .av img{width:100%;height:100%;object-fit:cover}
  .cy-hostname{font-size:14px;color:#6b7785;font-weight:600}
  .cy-title{font-size:22px;font-weight:700;color:#1a1a1a;line-height:1.2;margin:2px 0 18px}
  .cy-meta{display:flex;flex-direction:column;gap:12px;color:#4a5561;font-size:14.5px}
  .cy-meta div{display:flex;align-items:flex-start;gap:10px}
  .cy-meta svg{width:19px;height:19px;flex:none;color:#4a5561;margin-top:1px}
  .cy-desc{margin-top:22px;font-size:13.5px;color:#6b7785;line-height:1.5}
  /* calendar */
  .cy-cal{padding:26px 26px 20px}
  .cy-cal h4{margin:0 0 18px;font-size:17px;font-weight:700;color:#1a1a1a}
  .cy-month{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
  .cy-month b{font-size:15px;font-weight:700;color:#1a1a1a}
  .cy-month .nav{display:flex;gap:6px}
  .cy-month .nav button{width:30px;height:30px;border:none;background:transparent;border-radius:50%;
    color:#006BFF;cursor:pointer;display:grid;place-items:center}
  .cy-month .nav button:hover{background:#eef4ff}
  .cy-month .nav svg{width:16px;height:16px}
  .cy-dow{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;margin-bottom:6px}
  .cy-dow span{text-align:center;font-size:11px;font-weight:700;color:#8b98a5;letter-spacing:.02em}
  .cy-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
  .cy-day{aspect-ratio:1;display:grid;place-items:center;font-size:14px;border-radius:50%;
    color:#c5ccd3;font-weight:600}
  .cy-day.av{color:#006BFF;background:#eef4ff;cursor:pointer;font-weight:700}
  .cy-day.av:hover{background:#dbe8ff}
  .cy-day.sel{background:#006BFF;color:#fff}
  /* times */
  .cy-times{padding:26px 20px;border-left:1px solid #eef0f2;display:flex;flex-direction:column}
  .cy-times .lab{font-size:14px;font-weight:700;color:#1a1a1a;margin-bottom:4px}
  .cy-times .fmt{font-size:12.5px;color:#8b98a5;margin-bottom:14px}
  .cy-slot{border:1.5px solid #d3dce4;color:#006BFF;font-weight:700;text-align:center;
    padding:11px;border-radius:8px;margin-bottom:10px;cursor:pointer;font-size:14.5px;background:#fff}
  .cy-slot:hover{border-color:#006BFF}
  .cy-foot{grid-column:1/-1;border-top:1px solid #eef0f2;display:flex;align-items:center;
    justify-content:flex-end;padding:10px 22px}
  .cy-brand{display:flex;align-items:center;gap:7px;font-size:12px;color:#6b7785;font-weight:600}
  .cy-brand svg{width:18px;height:18px}
  .cy-slot.sel{border-color:#006BFF;background:#eef4ff;color:#0057cc}
  .cy-confirm{margin-top:auto;background:#006BFF;color:#fff;font-weight:700;border:none;
    border-radius:8px;padding:12px;cursor:pointer;font-size:15px;opacity:0;pointer-events:none;
    transform:translateY(4px);transition:opacity .22s ease,transform .22s ease}
  .cy-confirm.on{opacity:1;pointer-events:auto;transform:none}
  .cy-confirm:hover{background:#0057cc}
  /* booked confirmation state (replaces the picker on confirm) */
  .cy-booked{display:none;grid-column:1/-1;flex-direction:column;align-items:center;
    justify-content:center;text-align:center;padding:60px 30px;min-height:440px}
  .calendly.booked .cy-info,.calendly.booked .cy-cal,.calendly.booked .cy-times{display:none}
  .calendly.booked .cy-booked{display:flex;animation:tfIn .45s cubic-bezier(.22,.61,.36,1)}
  .cy-check{width:62px;height:62px;border-radius:50%;background:#e7f0ff;color:#006BFF;
    display:grid;place-items:center;margin-bottom:20px}
  .cy-check svg{width:31px;height:31px}
  .cy-booked h3{font-size:24px;color:#1a1a1a;font-weight:700}
  .cy-booked p{color:#4a5561;margin:11px 0 22px;font-size:15px}
  .cy-booked p b{color:#1a1a1a}
  .cy-addcal{display:inline-flex;background:#006BFF;color:#fff;font-weight:700;
    padding:11px 24px;border-radius:8px;font-size:14.5px}
  .cy-addcal:hover{background:#0057cc}

  /* booking step, hidden until the application is completed */
  .booking{margin-top:72px}
  .booking[hidden]{display:none}
  .booking.reveal-up{animation:revealUp .55s cubic-bezier(.22,.61,.36,1)}
  @keyframes revealUp{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
  .booking-head{text-align:center;max-width:560px;margin:0 auto 34px}
  .booking-head h3{font-size:clamp(22px,3vw,30px);font-weight:800;letter-spacing:-.02em}
  .booking-head p{font-size:16px;color:var(--text-2);margin:12px 0 0}

  @media(prefers-reduced-motion:reduce){
    *{animation:none!important}
    html{scroll-behavior:auto}
    .cy-confirm{transition:none}
  }

  
@media(max-width:860px){
    .typeform{min-height:auto}.tf-slide{padding:44px 30px}
    .calendly{grid-template-columns:1fr}
    .cy-info,.cy-times{border-right:none;border-left:none;border-bottom:1px solid #eef0f2}
}

.cal-btn { min-height: 48px; background: #fff; }
.gmail { max-width: 760px; }
@media (max-width: 820px) { .gm-rail { display: none; } .gm-main { border-left: none; } .gm-search { max-width: none; } }
@media (max-width: 560px) {
  .gm-row { grid-template-columns: 36px 1fr auto; gap: 10px; }
  .gm-row .cb, .gm-row .star { display: none; }
  .gm-logo span, .gm-top-r svg { display: none; }
  .gm-tab:not(.on) { display: none; }
  .tf-slide { padding: 40px 22px 90px; } .tf-q { font-size: 22px; }
  .cy-cal { padding: 20px 16px; } .cy-times { padding: 20px 16px; }
  .wa-btn { min-height: 52px; }
}

/* ---- thank-you: prep video + centred steps (system B) ---- */
.prep { max-width: 860px; margin: 8px auto 0; text-align: center; }
.prep-line { font-size: clamp(16px, 1.7vw, 18px); color: var(--ink-2); margin: 0 0 24px; }
.prep-player { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; border: 0; padding: 0; cursor: pointer; background: #0b1412; box-shadow: var(--shadow); }
.prep-player img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prep-player::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 70% at 50% 46%, rgba(0,0,0,.06), rgba(0,0,0,.38)); }
.prep-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--ink); box-shadow: 0 0 0 10px rgba(212,236,92,.28), 0 20px 46px -14px rgba(0,0,0,.6); transition: transform .3s var(--ease); }
.prep-play svg { width: 32px; height: 32px; margin-left: 4px; }
.prep-player:hover .prep-play { transform: translate(-50%, -50%) scale(1.07); }
.prep-len { position: absolute; z-index: 2; left: 16px; bottom: 14px; background: rgba(10, 30, 27, .72); color: #fff; font-size: 13px; font-weight: 600; padding: 6px 11px; border-radius: 8px; backdrop-filter: blur(6px); }
.steps { max-width: 860px; margin: clamp(48px, 7vw, 72px) auto 0; display: flex; flex-direction: column; gap: 22px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 36px clamp(18px, 4vw, 34px) 38px; text-align: center; box-shadow: var(--shadow-sm); }
.step-n { width: 46px; height: 46px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #fff; font-family: var(--display); font-weight: 600; font-size: 19px; box-shadow: 0 0 0 7px var(--teal-soft); }
.step h3 { font-size: clamp(21px, 2.4vw, 26px); max-width: 28ch; margin: 0 auto; }
.step p.sub { margin: 12px auto 24px; color: var(--ink-2); font-size: 16.5px; max-width: 50ch; }
.step .pad { display: flex; flex-direction: column; align-items: center; margin-top: 22px; }
.step .pad.tight { margin-top: 0; }
.wa-note { color: var(--ink-2); }

/* ---- replay ---- */
.replay-frame { position: relative; aspect-ratio: 16 / 9; max-width: 940px; margin: 40px auto 0; border-radius: 24px; overflow: hidden; background: #0b1412; box-shadow: var(--shadow); }
.replay-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.replay-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(6, 22, 20, .7)); }
.replay-frame .prep-play { z-index: 3; }
.rp-bar { position: absolute; z-index: 3; left: 18px; right: 18px; bottom: 16px; display: flex; align-items: center; gap: 12px; color: #fff; font-size: 13px; font-weight: 600; }
.rp-bar .trk { flex: 1; height: 5px; border-radius: 9px; background: rgba(255,255,255,.28); overflow: hidden; }
.rp-bar .trk i { display: block; height: 100%; width: 0; background: var(--lime); border-radius: 9px; }
.rp-badge { position: absolute; z-index: 3; left: 16px; top: 16px; display: inline-flex; align-items: center; gap: 8px; background: rgba(255,253,248,.95); color: var(--ink); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; }
.rp-badge i { width: 8px; height: 8px; border-radius: 50%; background: #e2462f; }
.apply-head { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.typeform { font-family: var(--sans); }
.tf-q { font-family: var(--sans); }
.booking-head h3 { font-family: var(--display); }

.cy-cal h4, .cy-title, .cy-booked h3 { font-family: var(--sans); letter-spacing: -0.01em; }
.tf-slide { padding-bottom: 104px; }
