/* Rokn consultation & demo (Figma 174:2593). Laid out on the 1728 landing frame: same gutters and scaling as /crm-petshop. */

@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn-wght.woff2") format("woff2-variations"), url("fonts/Vazirmatn-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --accent: #6254c7; --soft: #f0edfa; --line: #e5e3eb; --cream: #f7f6f2;
  --ink: #161616; --muted: #686672;
  --gutter-r: 52px; --gutter-l: 54px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: "Vazirmatn", Tahoma, sans-serif; font-size: 16px; line-height: 28px; overflow-x: hidden; }
h1, h2, h3, p, ol { margin: 0; padding: 0; }
ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid rgba(98, 84, 199, .45); outline-offset: 3px; }

.c-container { max-width: 1728px; margin-inline: auto; padding-right: var(--gutter-r); padding-left: var(--gutter-l); }

/* Header */
.c-header { max-width: 1728px; margin-inline: auto; height: 160px; padding: 32px var(--gutter-r) 0 var(--gutter-r); }
.c-bar {
  display: flex; align-items: center; justify-content: space-between; height: 96px; padding: 0 32px;
  background: #fff; border-radius: 48px; filter: drop-shadow(0 0 13.35px rgba(0, 0, 0, .08));
}
.c-brand { display: flex; align-items: center; gap: 8px; }
.c-brand img { width: 24px; height: 44px; object-fit: cover; }
.c-brand span { display: flex; flex-direction: column; align-items: flex-start; font-weight: 900; color: var(--ink); white-space: nowrap; }
.c-brand b:first-child { font-size: 17px; line-height: 23px; }
.c-brand b:last-child { font-size: 15px; line-height: 19px; }
.c-back { display: flex; align-items: center; gap: 8px; height: 44px; font-size: 16px; line-height: 28px; font-weight: 500; color: var(--muted); transition: color .2s; }
.c-back:hover { color: var(--accent); }
.c-back img { width: 16px; height: 16px; }

/* Consultation and demo */
.c-main { display: flex; align-items: center; gap: 64px; padding-top: 16px; padding-bottom: 40px; }
.c-value { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.c-promise { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.c-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 30px; background: var(--soft);
  font-size: 14px; line-height: 26px; font-weight: 700; color: var(--accent);
}
.c-eyebrow img { width: 15px; height: 15px; }
.c-title { position: relative; width: 100%; min-height: 94px; font-size: 44px; line-height: 72px; font-weight: 900; color: var(--ink); }
.c-title span { color: var(--accent); }
.c-underline { position: absolute; right: 173.06px; top: 70.5px; width: 246.91px; height: 20.835px; max-width: none; }
.c-lead { font-size: 20px; line-height: 34px; color: var(--muted); }
.c-demo { display: flex; flex-direction: column; gap: 12px; }
.c-preview { display: flex; flex-direction: column; gap: 20px; padding: 24px; background: var(--soft); border: 1px solid #ded9f2; border-radius: 30px; }
.c-preview-head { display: flex; align-items: center; justify-content: space-between; white-space: nowrap; }
.c-preview-head p { font-size: 18px; line-height: 30px; font-weight: 700; color: var(--accent); }
.c-preview-head span { font-size: 12px; line-height: 22px; color: var(--muted); }
.c-summary { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px; background: #fff; border-radius: 20px; box-shadow: 0 6px 18px rgba(69, 64, 108, .04); }
.c-summary-title { display: flex; align-items: center; gap: 8px; font-size: 18px; line-height: 30px; font-weight: 700; color: var(--ink); }
.c-summary-title img { width: 18px; height: 18px; }
.c-summary-text { font-size: 16px; line-height: 28px; color: var(--muted); }
.c-tag { padding: 4px 10px; border-radius: 6px; background: var(--soft); font-size: 13px; line-height: 24px; font-weight: 500; color: var(--accent); }
.c-outcomes { display: flex; align-items: center; justify-content: center; gap: 24px; }
.c-outcomes > img { flex: 0 0 20px; width: 20px; height: 20px; }
.c-outcome {
  flex: 0 1 240px; min-height: 96px; padding: 14px 16px; background: #fff; border-radius: 16px;
  filter: drop-shadow(0 6px 9px rgba(69, 64, 108, .04)); color: var(--ink);
}
.c-outcome b { display: block; font-size: 17px; line-height: 28px; font-weight: 700; }
.c-outcome span { display: block; margin-top: 10px; font-size: 14px; line-height: 24px; }
.c-note { font-size: 14px; line-height: 26px; color: var(--muted); }

/* Form */
.c-form {
  flex: 0 0 560px; display: flex; flex-direction: column; gap: 16px; padding: 24px 28px;
  background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 6px 18px rgba(69, 64, 108, .04);
}
.c-form-intro { display: flex; flex-direction: column; gap: 4px; }
.c-form-intro h2 { font-size: 26px; line-height: 40px; font-weight: 900; color: var(--ink); }
.c-form-intro p { font-size: 14px; line-height: 24px; color: var(--muted); }
.c-fields { display: flex; gap: 16px; }
.c-field { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.c-field > span:first-child { font-size: 14px; line-height: 26px; font-weight: 500; color: var(--ink); }
.c-field em { font-style: normal; color: var(--accent); }
.c-input {
  display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s, box-shadow .2s;
}
.c-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(98, 84, 199, .12); }
.c-input img { flex: 0 0 18px; width: 18px; height: 18px; }
.c-input input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: none; font-size: 14px; line-height: 24px; color: var(--ink); }
.c-input input::placeholder { color: #8b8795; opacity: 1; }
.c-input input[dir="ltr"] { text-align: left; }
.c-field.is-invalid .c-input { border-color: #d64545; }
.c-submit { display: flex; flex-direction: column; gap: 8px; }
.c-submit button {
  display: flex; align-items: center; gap: 12px; width: 100%; height: 52px; padding: 0 18px;
  border: 0; border-radius: 30px; background: var(--accent); color: #fff; cursor: pointer; transition: background-color .2s;
}
.c-submit button:hover { background: #5244b5; }
.c-submit button:disabled { opacity: .7; cursor: progress; }
.c-submit button span { flex: 1; font-size: 18px; line-height: 30px; font-weight: 700; text-align: center; }
.c-submit button img { width: 20px; height: 20px; }
.c-status { font-size: 12px; line-height: 22px; color: var(--muted); text-align: center; }
.c-status.is-error { color: #c23a3a; }
.c-status.is-ok { color: #2e7d4f; font-weight: 700; }

/* Code and ready steps (consultation.js) */
.c-form.is-otp .c-fields, .c-form.is-otp .m-fields, .c-form.is-done .c-fields, .c-form.is-done .m-fields,
.c-form.is-done .c-otp, .m-form.is-otp .m-fields, .m-form.is-done .m-fields, .m-form.is-done .c-otp { display: none; }
.c-otp small { font-size: 12px; line-height: 22px; color: var(--muted); }
.c-otp input { letter-spacing: .4em; font-size: 18px; }
.c-done dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; padding: 16px; background: var(--soft); border-radius: 16px; }
.c-done dt { font-size: 13px; color: var(--muted); }
.c-done dd { margin: 0; font-size: 14px; font-weight: 700; word-break: break-all; color: var(--ink); }
.c-open { display: block; margin-top: 12px; padding: 12px; border-radius: 30px; background: #2e7d4f; color: #fff; font-weight: 700; text-align: center; }
.c-keep { margin-top: 8px; font-size: 12px; line-height: 22px; color: #9a5b00; text-align: center; }
.c-form.is-done .c-submit button, .m-form.is-done .m-submit button { display: none; }

/* After submitting */
.c-after { display: flex; flex-direction: column; gap: 24px; padding-top: 24px; padding-bottom: 36px; }
.c-after h2 { font-size: 32px; line-height: 52px; font-weight: 900; color: var(--ink); text-align: center; }
.c-journey { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.c-journey li {
  position: relative; min-height: 184px; padding: 18px 24px 24px; background: #fff; border: 1px solid var(--line); border-radius: 24px;
  filter: drop-shadow(0 6px 9px rgba(69, 64, 108, .04));
}
.c-num {
  position: absolute; top: 18px; right: 24px; width: 42px; height: 42px; border-radius: 21px; background: var(--soft);
  font-size: 18px; line-height: 42px; font-weight: 700; color: var(--accent); text-align: center;
}
.c-journey h3 { min-height: 42px; padding-right: 62px; font-size: 20px; line-height: 42px; font-weight: 700; color: var(--ink); }
.c-journey p { margin-top: 38px; font-size: 16px; line-height: 28px; color: var(--ink); }
.c-after-note { font-size: 14px; line-height: 26px; color: var(--muted); text-align: center; }

/* Footer */
.c-footer { display: flex; align-items: flex-start; justify-content: space-between; padding-top: 24px; padding-bottom: 24px; border-top: 1px solid var(--line); white-space: nowrap; }
.c-footer p { font-size: 12px; line-height: 22px; color: var(--muted); }
.c-footer a { font-size: 14px; line-height: 24px; color: var(--accent); }

/* Tablet: stacked, page scaled to 75% by consultation.js */
@media (max-width: 1100px) {
  :root { --gutter-r: 24px; --gutter-l: 24px; }
  .c-main { flex-direction: column; align-items: stretch; gap: 40px; }
  .c-form { flex: none; width: 100%; max-width: 760px; align-self: center; }
  .c-journey { grid-template-columns: 1fr; max-width: 760px; width: 100%; margin-inline: auto; gap: 16px; }
}
@media (max-width: 720px) {
  :root { --gutter-r: 16px; --gutter-l: 16px; }
  .c-header { height: auto; padding-top: 16px; padding-bottom: 8px; }
  .c-bar { height: 72px; padding: 0 18px; border-radius: 36px; }
  .c-title { font-size: 32px; line-height: 52px; min-height: 0; }
  .c-underline { top: 46px; right: 125px; width: 178px; height: auto; }
  .c-lead { font-size: 17px; line-height: 30px; }
  .c-preview { padding: 16px; border-radius: 22px; }
  .c-outcomes { flex-direction: column; gap: 10px; }
  .c-outcomes > img { transform: rotate(-90deg); }
  .c-outcome { flex: none; width: 100%; }
  .c-form { padding: 20px 16px; border-radius: 22px; }
  .c-fields { flex-direction: column; }
  .c-after h2 { font-size: 24px; line-height: 38px; }
  .c-footer { flex-direction: column; gap: 8px; white-space: normal; }
}

/* ---------- Mobile view (Figma 174:2698), below 768px ---------- */
.m { display: none; }
@media (max-width: 767px) {
  .page { display: none; }
  .m { display: block; width: 100%; }
}
.m-bar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  height: 76px; padding: 0 20px; background: #fff; border-bottom: 1px solid var(--line);
}
.m-back { display: flex; align-items: center; gap: 8px; height: 44px; font-size: 12px; color: var(--muted); }
.m-back img { width: 16px; height: 16px; }
.m-intro { display: flex; flex-direction: column; gap: 10px; padding: 24px 20px; }
.m-intro h1 { font-size: 24px; line-height: 38px; font-weight: 700; color: var(--ink); }
.m-rokn { font-weight: 900; color: #4273b9; }
.m-accent { color: var(--accent); }
.m-intro p { font-size: 14px; line-height: 1.8; color: var(--muted); }
.m-section { display: flex; flex-direction: column; gap: 12px; padding: 0 20px 24px; }
.m-form {
  display: flex; flex-direction: column; gap: 16px; padding: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 12px 32px rgba(64, 51, 98, .04);
}
.m-form-intro { display: flex; flex-direction: column; gap: 2px; }
.m-form-intro h2 { font-size: 24px; line-height: 38px; font-weight: 700; color: var(--ink); }
.m-form-intro p { font-size: 11px; line-height: 20px; color: var(--muted); }
.m-fields { display: flex; flex-direction: column; gap: 10px; }
.m-fields .c-field { gap: 4px; }
.m-fields .c-field > span:first-child { font-size: 16px; line-height: 26px; }
.m-fields .c-input { height: 48px; }
.m-fields small { font-size: 11px; line-height: 20px; color: var(--muted); }
.c-select { position: relative; }
.c-select select {
  flex: 1; min-width: 0; width: 100%; height: 100%; padding: 0 0 0 28px; border: 0; outline: 0;
  appearance: none; -webkit-appearance: none; pointer-events: none;
  background: url("chevron-down.svg") left center / 18px 18px no-repeat transparent;
  font-family: inherit; font-size: 14px; font-weight: 400; line-height: 24px; color: var(--ink); cursor: pointer;
}
.c-select select:invalid { color: #8b8795; }
.c-select.is-open { z-index: 5; }
.c-menu {
  position: absolute; z-index: 6; top: calc(100% + 6px); inset-inline: -14px;
  display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 6px 18px rgba(69, 64, 108, .08);
}
.c-menu[hidden] { display: none; }
.c-menu button {
  display: block; width: 100%; padding: 8px 12px; border: 0; border-radius: 8px;
  background: transparent; color: var(--ink); font-family: inherit; font-size: 14px; font-weight: 400;
  line-height: 24px; text-align: right; cursor: pointer;
}
.c-menu button:hover, .c-menu button:focus-visible { background: var(--soft); color: var(--accent); outline: none; }
.c-menu button.is-on { background: var(--soft); color: var(--accent); font-weight: 500; }
.m-submit { display: flex; flex-direction: column; gap: 8px; }
.m-submit button {
  display: flex; align-items: center; gap: 12px; width: 100%; height: 56px; padding: 0 18px;
  border: 0; border-radius: 48px; background: var(--accent); color: #fff; cursor: pointer;
}
.m-submit button:disabled { opacity: .7; cursor: progress; }
.m-submit button span { flex: 1; font-size: 18px; line-height: 28px; font-weight: 500; text-align: center; }
.m-submit button img { width: 20px; height: 20px; }
.m-submit .c-status { line-height: 20px; }
.m-h2 { font-size: 24px; line-height: 38px; font-weight: 700; color: var(--ink); }
.m-preview { display: flex; flex-direction: column; gap: 16px; padding: 20px; background: var(--soft); border-radius: 24px; }
.m-preview-head { display: flex; align-items: center; justify-content: space-between; white-space: nowrap; }
.m-preview-head p { font-size: 14px; font-weight: 700; color: var(--accent); }
.m-preview-head span { font-size: 10px; color: var(--muted); }
.m-summary { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; background: #fff; border-radius: 16px; }
.m-summary-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink); }
.m-summary-title img { width: 18px; height: 18px; }
.m-summary-text { font-size: 13px; line-height: 1.8; color: var(--muted); }
.m-tag { padding: 4px 10px; border-radius: 6px; background: var(--soft); font-size: 11px; color: var(--accent); }
.m-outcomes { display: flex; align-items: center; justify-content: center; gap: 16px; }
.m-outcomes > img { flex: 0 0 20px; width: 20px; height: 20px; }
.m-outcome { flex: 0 1 134px; min-height: 76px; padding: 10px 8px 0; background: #fff; border-radius: 10px; line-height: 20px; }
.m-outcome b { display: block; font-size: 12px; color: var(--ink); }
.m-outcome span { display: block; margin-top: 5px; font-size: 11px; color: var(--muted); }
.m-note { font-size: 12px; line-height: 1.8; color: var(--muted); }
.m-after { gap: 20px; padding-top: 8px; padding-bottom: 32px; }
.m-steps { display: flex; flex-direction: column; gap: 12px; }
.m-steps li {
  display: flex; align-items: center; gap: 16px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 20px;
  filter: drop-shadow(0 6px 9px rgba(69, 64, 108, .06));
}
.m-step-icon { flex: 0 0 48px; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 24px; background: var(--soft); }
.m-step-icon img { width: 24px; height: 24px; }
.m-steps li > div { flex: 1; min-width: 0; }
.m-steps b { display: block; font-size: 15px; line-height: 24px; color: var(--ink); }
.m-steps p { margin-top: 4px; font-size: 13px; line-height: 20px; color: var(--muted); }
.m-step-num { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 14px; background: var(--soft); font-size: 13px; line-height: 28px; font-weight: 700; color: var(--accent); text-align: center; }
