/* ResumeBanwalo site styles.
   Idea: the neighbourhood typing-and-photocopy shop, done properly.
   Carbon-paper blue for actions, violet rubber-stamp ink for the price, marigold for highlights. */
:root {
  --paper: #f5f6fa; --white: #ffffff; --ink: #182033; --muted: #5a6480; --line: #dce1ec;
  --blue: #2340c9; --blue-dark: #1a30a0; --violet: #6a3fa1; --marigold: #f2a93b; --green: #18794e; --red: #b42318;
  --display: 'Rozha One', Georgia, serif; --body: 'Hind', 'Segoe UI', Arial, sans-serif;
  --r: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); }
a { color: var(--blue); }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0 0 .4em; letter-spacing: -.005em; }
h1 { font-size: clamp(38px, 6vw, 66px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }
.narrow { width: min(760px, 100% - 32px); margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }

/* buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 8px; border: 2px solid var(--blue);
  background: var(--blue); color: #fff; font: 600 16px/1.2 var(--body); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn.ghost { background: transparent; color: var(--blue); }
.btn.ghost:hover { background: rgba(35,64,201,.07); }
.btn.small { padding: 7px 14px; font-size: 14px; }
.btn.warn { background: var(--white); color: var(--red); border-color: #f0c3bf; }
.btn.gold { background: var(--marigold); border-color: var(--marigold); color: var(--ink); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; cursor: pointer; text-decoration: underline; }
label { display: block; font-weight: 500; font-size: 15px; margin: 12px 0 4px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], select, textarea {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--white); font: 400 16px/1.4 var(--body); color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(35,64,201,.15); }
textarea { min-height: 90px; resize: vertical; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 6px; }

/* header */
.devbar { background: var(--ink); color: #cfd5e6; font-size: 14px; text-align: center; padding: 6px 16px; }
.devbar a { color: var(--marigold); }
.top { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 66px; }
.logo { font-family: var(--display); font-size: 26px; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo .seal { width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid var(--violet); display: grid; place-items: center; color: var(--violet);
  font: 700 13px/1 var(--body); transform: rotate(-12deg); }
.nav { display: flex; gap: 22px; align-items: center; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--blue); }
.nav form { margin: 0; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1.5px solid var(--line); border-radius: 8px; padding: 6px 10px; font: 600 15px var(--body); }
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 66px; background: var(--white); flex-direction: column; align-items: flex-start; padding: 16px; border-bottom: 1px solid var(--line); gap: 14px; }
  .nav.open { display: flex; }
}

.flash { margin: 16px auto 0; padding: 12px 16px; border-radius: 8px; background: #fff6e5; border: 1px solid #f3d29a; }
main.site { min-height: 60vh; }
.section { padding: 72px 0; }
.section.white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lead { font-size: 20px; color: var(--muted); max-width: 46ch; }

/* hero */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero .hi { font: 500 20px var(--body); color: var(--violet); margin-bottom: 14px; }
.hero h1 { max-width: 13ch; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 18px; }
.hero .assure { font-size: 15px; color: var(--muted); }
.sheet-stage { position: relative; height: 560px; }
.sheet { position: absolute; right: 30px; top: 6px; width: 397px; height: 562px; border-radius: 4px; overflow: hidden; background: #fff; transform: rotate(2.5deg);
  box-shadow: 0 2px 4px rgba(24,32,51,.08), 0 24px 50px rgba(24,32,51,.16); }
.sheet iframe { width: 794px; height: 1123px; border: 0; transform: scale(.5); transform-origin: 0 0; pointer-events: none; }
.sheet.back { right: 120px; top: 30px; transform: rotate(-5deg); opacity: .9; }
.stamp { position: absolute; left: 6px; bottom: 34px; width: 190px; height: 190px; border-radius: 50%; color: var(--violet); border: 5px solid currentColor;
  display: grid; place-items: center; text-align: center; transform: rotate(-14deg); background: rgba(255,255,255,.55); filter: url(#ink);
  animation: stamp .5s cubic-bezier(.3,1.6,.5,1) .6s both; }
.stamp::before { content: ""; position: absolute; inset: 8px; border: 2px solid currentColor; border-radius: 50%; }
.stamp .big { font: 400 46px/1 var(--display); display: block; }
.stamp .sm { font: 700 13px/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; display: block; }
@keyframes stamp { from { transform: rotate(-14deg) scale(1.6); opacity: 0; } to { transform: rotate(-14deg) scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .stamp { animation: none; } }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .sheet-stage { height: 430px; }
  .sheet { width: 300px; height: 424px; right: auto; left: calc(50% - 130px); }
  .sheet iframe { transform: scale(.378); }
  .sheet.back { display: none; }
  .stamp { width: 150px; height: 150px; left: 0; bottom: 0; }
  .stamp .big { font-size: 36px; }
}

/* steps (a real sequence, so numbered) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 32px; counter-reset: s; }
.steps li { list-style: none; counter-increment: s; border-top: 3px solid var(--ink); padding-top: 14px; }
.steps li::before { content: counter(s); font: 400 44px/1 var(--display); color: var(--blue); display: block; margin-bottom: 8px; }
.steps { padding: 0; margin-bottom: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* template thumbnails */
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px 22px; margin-top: 28px; }
.thumb { text-decoration: none; color: var(--ink); display: block; }
.thumb .frame { aspect-ratio: 794 / 1123; overflow: hidden; border-radius: 6px; background: #fff; border: 1px solid var(--line); position: relative; }
.thumb iframe { width: 794px; height: 1123px; border: 0; transform-origin: 0 0; pointer-events: none; position: absolute; top: 0; left: 0; }
.thumb:hover .frame, .thumb:focus-visible .frame { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(35,64,201,.18); }
.thumb .name { font-weight: 600; margin-top: 10px; display: flex; justify-content: space-between; gap: 8px; }
.thumb .cat { font-weight: 400; color: var(--muted); font-size: 15px; }
.badge { display: inline-block; font-size: 13px; font-weight: 600; padding: 1px 9px; border-radius: 99px; background: #e4f4ec; color: var(--green); }
.badge.violet { background: #efe8f8; color: var(--violet); }
.badge.gray { background: #eceff5; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.filters button { border: 1.5px solid var(--line); background: var(--white); border-radius: 99px; padding: 6px 14px; font: 500 15px var(--body); cursor: pointer; color: var(--ink); }
.filters button[aria-pressed=true] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ATS band */
.ats-band .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .ats-band .wrap { grid-template-columns: 1fr; } }
.scorecard { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.score { display: flex; align-items: baseline; gap: 6px; }
.score b { font: 400 64px/1 var(--display); }
.bar { height: 8px; border-radius: 99px; background: #e8ebf3; overflow: hidden; margin: 4px 0 12px; }
.bar i { display: block; height: 100%; background: var(--blue); border-radius: 99px; }
.bar.good i { background: var(--green); } .bar.mid i { background: var(--marigold); } .bar.low i { background: var(--red); }
.checkrow { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.checkrow .tip { grid-column: 1 / -1; font-size: 15px; color: var(--muted); }
.kw { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 14px; }
.kw span { padding: 2px 10px; border-radius: 99px; font-size: 14px; background: #e4f4ec; color: var(--green); }
.kw.miss span { background: #fdecea; color: var(--red); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; align-items: stretch; }
.plan .amt { overflow-wrap: anywhere; }
.plan { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; }
.plan.best { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(106,63,161,.12); }
.plan .amt { font: 400 48px/1 var(--display); margin: 10px 0 4px; }
.plan .per { color: var(--muted); font-size: 15px; }
.plan ul { padding: 0; margin: 18px 0 22px; list-style: none; flex: 1; }
.plan li { padding: 5px 0 5px 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 10px; height: 6px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
.plan li.no { color: var(--muted); }
.plan li.no::before { border: 0; height: 2px; top: 15px; background: #b8bfd0; transform: none; }
.curswitch { display: inline-flex; border: 1.5px solid var(--line); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.curswitch a { padding: 6px 16px; text-decoration: none; color: var(--ink); font-weight: 500; }
.curswitch a.on { background: var(--ink); color: #fff; }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }

/* faq */
details { border-top: 1px solid var(--line); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 600; font-size: 18px; }
details p { margin: 10px 0 0; color: var(--muted); }

/* panels, tables */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid2 > * { min-width: 0; }   /* let wide tables scroll inside their box on phones */
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--muted); }
.tablewrap { overflow-x: auto; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 18px 0 26px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.stat b { display: block; font: 400 34px/1.1 var(--display); }

/* auth */
.authbox { width: min(440px, 100% - 32px); margin: 56px auto; }
.tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.tabs button { flex: 1; padding: 9px; border: 1.5px solid var(--line); background: var(--white); border-radius: 8px; font: 500 15px var(--body); cursor: pointer; }
.tabs button[aria-selected=true] { border-color: var(--ink); background: var(--ink); color: #fff; }
.otp { letter-spacing: .5em; font-size: 26px !important; text-align: center; }

/* dashboard */
.rlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; margin-top: 20px; }
.rcard { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.rcard .frame { aspect-ratio: 794 / 1123; overflow: hidden; border-radius: 4px; border: 1px solid var(--line); position: relative; margin-bottom: 10px; background: #fff; }
.rcard iframe { width: 794px; height: 1123px; border: 0; transform-origin: 0 0; pointer-events: none; position: absolute; }
.rcard .acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rcard form { margin: 0; }
.newcard { display: grid; place-items: center; text-align: center; border: 2px dashed var(--line); border-radius: var(--r); padding: 24px; min-height: 300px; }

/* footer */
footer.site { margin-top: 40px; padding: 40px 0; background: var(--ink); color: #cfd5e6; font-size: 15px; }
footer.site a { color: #fff; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; }
footer.site .logo { color: #fff; }
footer.site nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- template chooser ---------- */
.chooser { padding: 40px 0 20px; }
.ch-head { text-align: center; margin-bottom: 30px; }
.ch-head .lead { margin: 0 auto; }
.ch-grid { display: grid; grid-template-columns: 230px 1fr; gap: 40px; align-items: start; }
.ch-filters { position: sticky; top: 86px; }
.ch-ftop { display: flex; justify-content: space-between; align-items: baseline; }
.ch-ftop h2 { font-size: 26px; margin: 0; }
.ch-filters fieldset { border: 0; padding: 0; margin: 20px 0 0; }
.ch-filters legend { font-weight: 600; margin-bottom: 4px; }
.ch-filters .check { margin: 6px 0; font-size: 16px; }
.ch-filters .check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--blue); }
.ch-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 34px 26px; }
.ch-card[hidden] { display: none; }
.ch-pick { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; position: relative; text-align: left; }
.ch-pick .frame { display: block; aspect-ratio: 794 / 1123; overflow: hidden; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 4px; transition: box-shadow .15s; }
.ch-pick iframe { position: absolute; top: 0; left: 0; width: 794px; height: 1123px; border: 0; transform-origin: 0 0; pointer-events: none; }
.ch-pick:hover .frame { box-shadow: 0 6px 22px rgba(24,32,51,.14); }
.ch-pick[aria-pressed=true] .frame { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue); }
.rec { position: absolute; right: 0; bottom: 14px; background: #fde9b8; color: #7a4b00; font: 600 14px/1 var(--body); padding: 8px 12px; border-radius: 4px 0 0 4px; border: 1px solid #f2c96b; border-right: 0; }
.ch-sw { display: flex; gap: 9px; margin: 12px 0 8px; flex-wrap: wrap; }
.ch-sw button { width: 26px; height: 26px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.ch-sw button[aria-pressed=true] { box-shadow: 0 0 0 2px var(--ink); }
.ch-meta { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.ch-meta .tags { display: flex; gap: 4px; }
.ch-card p { margin: 4px 0 0; }
.ch-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(24,32,51,.06); }
.ch-bar .wrap { display: flex; align-items: center; justify-content: flex-end; gap: 24px; min-height: 76px; }
.ch-bar #picked { margin-right: auto; }
.ch-bar form { margin: 0; }
.ch-later { font-weight: 600; color: var(--ink); }
.ch-bar .btn[disabled], .ch-bar .btn[aria-disabled=true] { background: #c9d1ea; border-color: #c9d1ea; cursor: not-allowed; }
@media (max-width: 860px) {
  .ch-grid { grid-template-columns: 1fr; }
  .ch-filters { position: static; }
  .ch-filters fieldset { display: inline-block; margin-right: 18px; vertical-align: top; }
  .ch-bar #picked { display: none; }
}

/* job title search in the builder */
.jt { display: flex; gap: 8px; }
.jt input { flex: 1; min-width: 0; }
.jtcats { margin-top: 8px; }
.jtcats summary { cursor: pointer; color: var(--blue); }
.jtcats p { margin: 8px 0; }
.chipbtn { display: inline-block; margin: 3px 4px 0 0; padding: 4px 10px; border: 1px solid var(--line); border-radius: 99px; background: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.chipbtn:hover { border-color: currentColor; }
