/* Pitchkit: order page (tracker + intake form) and account page */
body { background: var(--paper); color: var(--ink); }
.top .wrap { height: 72px; }
.flow { padding-top: 32px; padding-bottom: 80px; max-width: 760px; }
.flow h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 6vw, 52px); line-height: 1.05; letter-spacing: -0.02em; max-width: 18ch; }
html[lang="ar"] .flow h1 { font-family: var(--sans); font-weight: 600; line-height: 1.3; letter-spacing: 0; }
.flow-lede { margin-top: 14px; font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 52ch; }
.order-line { margin-top: 18px; font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.notice { margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: var(--paper-2); font-size: 15px; }
.help { font-size: 14px; line-height: 1.5; color: var(--muted); }
.error { font-size: 14px; color: var(--rose-2); min-height: 0; }
.error:empty { display: none; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; }

/* ---------- progress tracker ---------- */
.track { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; counter-reset: s; }
.track-step { position: relative; display: grid; justify-items: start; gap: 10px; padding-inline-end: 8px; }
.track-step::before { content: ""; position: absolute; top: 8px; inset-inline-start: 0; inset-inline-end: 0; height: 2px; background: var(--line-2); }
.track-step:last-child::before { inset-inline-end: auto; width: 0; }
.track-step.is-done::before { background: var(--ink); }
.track-dot { position: relative; z-index: 1; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line-2); }
.is-done .track-dot { background: var(--ink); border-color: var(--ink); }
.is-done .track-dot::after { content: ""; position: absolute; inset: 3px 5px 5px 4px; border: solid var(--paper); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.is-now .track-dot { border-color: var(--rose); box-shadow: 0 0 0 5px rgba(194, 52, 76, .16); background: var(--rose); }
.track-label { font-size: 13px; line-height: 1.3; color: var(--muted); max-width: 12ch; }
.is-done .track-label { color: var(--ink); }
.is-now .track-label { color: var(--ink); font-weight: 700; }
.track-done .track-step:last-child .track-dot { background: #2f7d5b; border-color: #2f7d5b; }
@media (max-width: 560px) {
  .track { grid-template-columns: 1fr; gap: 0; }
  .track-step { grid-template-columns: 18px 1fr; align-items: center; gap: 12px; padding: 0 0 18px; }
  .track-step::before { top: 18px; bottom: 0; inset-inline-start: 8px; inset-inline-end: auto; width: 2px; height: auto; }
  .track-step:last-child::before { display: none; }
  .track-label { max-width: none; font-size: 15px; }
}
@media (prefers-reduced-motion: no-preference) {
  .is-now .track-dot { animation: pulse 2.4s cubic-bezier(.22, 1, .36, 1) infinite; }
  @keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(194, 52, 76, .06); } }
}

.deliver-list { list-style: none; padding: 0; margin: 22px 0 10px; display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- intake form ---------- */
.intake { margin-top: 36px; display: grid; gap: 20px; }
.intake-sec { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px; display: grid; gap: 22px; }
.intake-sec[hidden] { display: none; }
.intake-sec h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; letter-spacing: -0.01em; }
html[lang="ar"] .intake-sec h2 { font-family: var(--sans); font-weight: 600; font-size: 24px; }
.sec-intro { margin-top: -12px; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.q { display: grid; gap: 8px; }
.q[hidden] { display: none; }
.q-label, .opts legend { font-weight: 650; font-size: 16px; line-height: 1.4; }
.opts { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
.opts legend { padding: 0; margin-bottom: 2px; }
.q input[type="text"], .q input[type="email"], .q input[type="tel"], .q input[type="url"], .q input[type="password"], .q select, .q textarea, .signin-form input {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: var(--paper); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; min-height: 50px;
}
.q textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.q input[type="url"]:focus, .q input:focus, .q select:focus, .q textarea:focus, .signin-form input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(194, 52, 76, .18); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--rose-2); }
.has-error .add-files { border-color: var(--rose-2); color: var(--rose-2); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 15px; background: var(--paper); transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.pill input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill input:focus-visible + span { outline: 2px solid var(--rose); outline-offset: 2px; }
.radios { display: grid; gap: 8px; }
.radio { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--paper); cursor: pointer; }
.radio:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.radio input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.tick { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; cursor: pointer; line-height: 1.5; }
.tick input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--ink); }

.files-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.add-files { min-height: 46px; padding: 0 18px; font-size: 15px; cursor: pointer; border-style: dashed; }
.add-files[hidden] { display: none; }
.files-row .count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.thumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.thumbs:empty { display: none; }
.thumb { position: relative; width: 74px; height: 130px; border-radius: 10px; overflow: hidden; background: var(--paper-2); border: 1px solid var(--line); display: grid; place-items: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-doc { font-weight: 700; color: var(--muted); }
.thumb-state { position: absolute; inset: auto 0 0 0; font-size: 11px; text-align: center; padding: 4px; background: rgba(251, 243, 238, .9); }
.thumb-state:empty { display: none; }
.is-busy img { opacity: .5; }
.thumb-x { position: absolute; top: 4px; inset-inline-end: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(27, 16, 13, .78); color: #fff; font-size: 17px; line-height: 1; cursor: pointer; }

.intake-end { display: grid; gap: 12px; padding: 6px 2px 0; }
.form-status { font-size: 15px; }

/* ---------- account ---------- */
.signin { max-width: 460px; }
.signin-form { display: grid; gap: 10px; margin-top: 18px; }
.gslot { margin-top: 22px; display: grid; gap: 12px; justify-items: start; }
.gslot:empty { display: none; }
.or { color: var(--muted); font-size: 14px; }
.acc-head { margin-bottom: 18px; }
.acc-head .help { margin-top: 8px; }
.acc-order { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin-top: 16px; display: grid; gap: 4px; }
.acc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.acc-top h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; }
html[lang="ar"] .acc-top h2 { font-family: var(--sans); font-weight: 600; font-size: 22px; }
.acc-order .btn { justify-self: start; margin-top: 14px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot nav a { display: inline-block; padding-block: 6px; }

.order-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 14px; }
.wa-btn { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* ---------- v18: progress, step labels, link boxes ---------- */
.intake-progress { position: sticky; top: 0; z-index: 5; display: grid; gap: 6px; padding: 12px 0 10px; margin-bottom: 8px; background: var(--paper); border-bottom: 1px solid var(--line); }
.ip-text { font-size: 14px; font-weight: 650; color: var(--ink-2); }
.ip-track { display: block; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.ip-track i { display: block; height: 100%; width: 0; background: var(--rose); border-radius: 4px; transition: width .4s ease; }
.sec-step { font-size: 14px; font-weight: 650; color: var(--rose); margin-bottom: -18px; }
.sec-step:empty { display: none; }
.link-boxes { display: grid; gap: 8px; }
.link-box { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; align-items: center; }
.link-n { font-family: "Fraunces", Georgia, serif; font-size: 20px; color: var(--rose); text-align: center; }
.add-link { justify-self: start; margin-top: 10px; }
.add-link[hidden] { display: none; }

/* v20: upgrade card */
.panel.upgrade { border: 1px solid var(--ink); display: grid; gap: 12px; }
.panel.upgrade h2 { font-family: "Fraunces", Georgia, serif; font-weight: 400; font-size: 1.6rem; }
.panel.upgrade .btn { justify-self: start; }

/* v20: contact page */
.contact h1 { font-family: "Fraunces", Georgia, serif; font-weight: 400; font-size: clamp(2.4rem, 8vw, 3.6rem); }
.contact-ways { display: grid; gap: 12px; margin-top: 28px; }
@media (min-width: 640px) { .contact-ways { grid-template-columns: 1fr 1fr; } }
.contact-way { display: grid; gap: 4px; padding: 22px; border-radius: 14px; border: 1px solid var(--ink); background: var(--white); text-decoration: none; color: var(--ink); transition: background-color .2s; }
.contact-way:first-child { background: var(--ink); color: var(--paper); }
.contact-way:hover { background: var(--paper-2); color: var(--ink); }
.cw-title { font-size: 1.4rem; font-weight: 650; }
.cw-sub { font-size: 15px; opacity: .8; }
.contact-note { margin-top: 16px; display: grid; gap: 8px; }
.contact-note h2 { font-size: 1.2rem; }
.contact-note a, .contact-legal a { color: var(--ink); }
.contact-legal { margin-top: 32px; font-size: 14px; color: var(--muted); }
.contact-note { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.contact-note h2 { font-family: "Fraunces", Georgia, serif; font-weight: 400; font-size: 1.35rem; }
.top .wordmark, .top .top-cta { white-space: nowrap; }
@media (max-width: 420px) { .top .wordmark small { display: none; } }
