/* JobCatch website. Brand tokens mirror frontend/src/common/theme.ts, so a
   colour change in the app has one obvious counterpart here.
   Phone first: the app's own rule is that a layout must hold from a 288dp
   phone to a tablet, and most visitors arrive from a phone. Nothing here pins
   a width on anything with text in it; grids widen at 640px and 960px. */
:root {
  --deep: #0f4c5c;
  --teal: #14857b;
  --amber: #f59e0b;
  --amber-hi: #fbbf24;
  --bg: #f5f7fa;
  --tint: #eaf4f2;
  --surface: #ffffff;
  --accent: #0f766e;
  --accent-soft: #d5efec;
  --text: #102a43;
  --body: #334e68;
  --muted: #5b7083;
  --border: #d9e2ec;
  --radius: 14px;
  --gutter: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
code { font-family: ui-monospace, "Roboto Mono", Menlo, monospace; font-size: 0.92em; background: var(--accent-soft); padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
@media (min-width: 640px) { :root { --gutter: 24px; } }
.center { text-align: center; }
.small { font-size: 14px; color: var(--muted); }
.sub { color: var(--muted); margin: -6px auto 24px; max-width: 640px; }
.center.sub { margin-left: auto; margin-right: auto; }

/* --- buttons ------------------------------------------------------------- */
.btn {
  display: inline-block;
  background: var(--amber);
  color: #102a43;
  font-weight: 700;
  padding: 13px 22px;
  border-radius: 999px;
  text-decoration: none;
  text-align: center;
  line-height: 1.3;
  border: 2px solid var(--amber);
}
.btn:hover { background: var(--amber-hi); border-color: var(--amber-hi); }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); border-color: var(--accent); }
.btn-small { padding: 8px 14px; font-size: 14px; }

/* --- header -------------------------------------------------------------- */
header.site { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.nav {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "brand cta" "links links";
  align-items: center;
  gap: 6px 12px;
  padding-top: 10px;
  padding-bottom: 6px;
}
.brand { grid-area: brand; display: inline-flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: -0.2px; }
.brand img { border-radius: 8px; }
.brand b { color: var(--accent); font-weight: 700; }
.nav .btn { grid-area: cta; }
.links { grid-area: links; display: flex; gap: 4px 18px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; padding-bottom: 4px; }
.links::-webkit-scrollbar { display: none; }
.links a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 4px 0; }
.links a:hover, .links a[aria-current] { color: var(--accent); }
.links a[aria-current] { font-weight: 600; }
@media (min-width: 760px) {
  .nav { grid-template-columns: auto 1fr auto; grid-template-areas: "brand links cta"; padding-top: 12px; padding-bottom: 12px; gap: 24px; }
  .links { justify-content: flex-end; gap: 26px; padding-bottom: 0; }
}

/* --- hero ---------------------------------------------------------------- */
.hero { background: linear-gradient(160deg, var(--teal) 0%, var(--deep) 70%); color: #fff; overflow: hidden; }
.hero-grid { display: grid; gap: 32px; padding-top: 40px; padding-bottom: 0; }
.eyebrow { font-size: 14px; letter-spacing: 0.4px; color: #cde7e3; margin-bottom: 10px; font-weight: 600; }
.hero h1 { font-size: clamp(30px, 7.4vw, 52px); line-height: 1.1; letter-spacing: -0.5px; }
.hero h1 span { color: #fcd34d; }
.hero .lead { font-size: clamp(17px, 2.2vw, 19px); margin: 18px 0 24px; color: #e6f4f1; max-width: 600px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.facts { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 28px; max-width: 520px; }
.facts li { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 12px; padding: 10px 12px; font-size: 14px; color: #e6f4f1; line-height: 1.35; }
.facts strong { display: block; font-size: 20px; color: #fff; }
.hero-media { display: flex; justify-content: center; align-items: flex-end; }
.hero-phone { width: min(300px, 78vw); border-radius: 28px 28px 0 0; border: 6px solid #0b3540; border-bottom: 0; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35); }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: none; } }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.25fr 1fr; align-items: end; padding-top: 64px; gap: 48px; }
  .hero-text { padding-bottom: 64px; }
  .hero-phone { width: 340px; }
}

/* --- page heads (inner pages) --------------------------------------------- */
.page-head { background: linear-gradient(160deg, var(--teal) 0%, var(--deep) 80%); color: #fff; padding: 40px 0 36px; }
.page-head h1 { font-size: clamp(28px, 6vw, 44px); line-height: 1.15; letter-spacing: -0.4px; max-width: 820px; }
.page-head .lead { color: #e6f4f1; font-size: 18px; margin-top: 12px; max-width: 760px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips a { color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 999px; padding: 5px 13px; font-size: 14px; }
.chips a:hover { background: rgba(255, 255, 255, 0.14); }

/* --- sections ------------------------------------------------------------ */
.section { padding-top: 48px; padding-bottom: 48px; }
.section > h2, .section h2.center { font-size: clamp(24px, 4.4vw, 34px); line-height: 1.2; letter-spacing: -0.3px; margin-bottom: 14px; }
.tint { background: var(--tint); }
@media (min-width: 960px) { .section { padding-top: 72px; padding-bottom: 72px; } }

.steps { list-style: none; counter-reset: step; display: grid; gap: 16px; margin-top: 24px; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; position: relative; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 10px; }
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { color: var(--body); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* alternating feature rows */
.feature { display: grid; gap: 24px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--border); }
.feature:last-of-type { border-bottom: 0; }
.feature-text h3 { font-size: clamp(21px, 3.4vw, 26px); line-height: 1.25; margin-bottom: 8px; }
.feature-text > p { color: var(--body); font-size: 17px; margin-bottom: 12px; }
.feature-media { display: flex; justify-content: center; }
.phone { width: min(260px, 70vw); border-radius: 26px; border: 1px solid var(--border); box-shadow: 0 12px 40px rgba(16, 42, 67, 0.14); background: var(--surface); }
@media (min-width: 760px) {
  .feature { grid-template-columns: 1.2fr 1fr; gap: 48px; padding: 40px 0; }
  .feature.flip .feature-text { order: 2; }
}

.ticks { list-style: none; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 8px; color: var(--body); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%230f766e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.ticks li strong { color: var(--text); }

.scam-demo { width: min(340px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 18px; box-shadow: 0 12px 40px rgba(16, 42, 67, 0.12); font-size: 15px; }
.scam-demo .msg { background: #e7f6e9; border-radius: 12px 12px 12px 2px; padding: 12px; color: #1f3b2a; margin-bottom: 14px; }
.scam-demo .verdict { font-weight: 700; color: #9b1c1c; background: #fdecec; border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; }
.scam-demo ul { padding-left: 20px; color: var(--body); }
.scam-demo li { margin-bottom: 4px; }

/* cards */
.cards { display: grid; gap: 16px; margin-top: 8px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.card h3, .card h2 { font-size: 18px; line-height: 1.3; margin-bottom: 6px; color: var(--text); }
.card p { color: var(--body); }
.card.link { text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.card.link:hover { border-color: var(--accent); transform: translateY(-2px); }
@media (min-width: 640px) { .cards.two, .cards.three, .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.section .cards.three { margin-top: 32px; }

.fixes { display: grid; gap: 14px; margin-top: 24px; }
.fixes > div { background: var(--surface); border-radius: var(--radius); padding: 18px 20px; border-left: 4px solid var(--amber); }
.fixes h3 { font-size: 16px; line-height: 1.35; margin-bottom: 4px; }
.fixes p { color: var(--body); }
@media (min-width: 760px) { .fixes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* templates */
.tpl-strip { display: flex; gap: 14px; overflow-x: auto; padding: 8px 2px 18px; scroll-snap-type: x mandatory; margin-bottom: 16px; }
.tpl-strip .tpl { flex: 0 0 min(180px, 44vw); scroll-snap-align: start; }
.tpl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 40px; }
@media (min-width: 640px) { .tpl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .tpl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }
.tpl img { width: 100%; aspect-ratio: 360 / 509; object-fit: cover; object-position: top; border-radius: 8px; border: 1px solid var(--border); background: #fff; box-shadow: 0 4px 16px rgba(16, 42, 67, 0.08); }
.tpl figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.tpl figcaption strong { color: var(--text); font-size: 15px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase; padding: 1px 7px; border-radius: 999px; background: #e9eef3; color: var(--muted); vertical-align: 1px; }
.tag.free { background: #dcfce7; color: #166534; }
.tag.pro { background: #fef3c7; color: #92400e; }
.tag.ats { background: var(--accent-soft); color: #115e59; }
.tag.cols { background: #fdecec; color: #9b1c1c; }
h2.cat { font-size: 24px; margin-top: 16px; scroll-margin-top: 110px; }
h2.cat span { font-size: 15px; color: var(--muted); font-weight: 600; }
.note { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 32px; color: var(--body); }

/* comparison and plans */
.split { display: grid; gap: 40px; }
.split h2 { font-size: clamp(22px, 3.6vw, 28px); margin-bottom: 14px; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
table.compare { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); font-size: 15px; margin-bottom: 14px; }
.compare th, .compare td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare thead th { background: var(--tint); font-size: 14px; }
.compare tr:last-child td { border-bottom: 0; }
.compare td:first-child { color: var(--text); font-weight: 600; }
.compare td { color: var(--body); }
.prose table.compare { display: block; overflow-x: auto; }

.plans { display: grid; gap: 20px; max-width: 900px; margin: 0 auto 20px; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px; }
.plan.pro { border: 2px solid var(--accent); }
.plan h2 { font-size: 22px; }
.price { font-size: 36px; font-weight: 800; margin: 6px 0 2px; letter-spacing: -0.5px; }
.price span { font-size: 16px; font-weight: 500; color: var(--muted); }
.price-alt { color: var(--muted); margin-bottom: 14px; }
.plan .ticks { margin-top: 14px; }

/* FAQ */
.faq-list { max-width: 820px; margin: 20px auto 0; }
.faq-list details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.faq-list summary { cursor: pointer; font-weight: 600; list-style-position: outside; }
.faq-list details[open] summary { margin-bottom: 6px; }
.faq-list details p { color: var(--body); }

/* CTA band */
.band { background: var(--deep); color: #fff; }
.band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-top: 36px; padding-bottom: 36px; }
.band h2 { font-size: clamp(22px, 3.6vw, 28px); line-height: 1.25; }
.band p { color: #cde7e3; margin-top: 4px; max-width: 620px; }

/* --- reading pages (guides, about, legal) --------------------------------- */
.prose { max-width: 760px; padding-top: 32px; padding-bottom: 56px; }
.prose h1 { font-size: clamp(28px, 5.6vw, 40px); line-height: 1.18; letter-spacing: -0.4px; margin-bottom: 8px; }
.prose h2 { font-size: clamp(20px, 3.4vw, 24px); line-height: 1.3; margin: 36px 0 12px; scroll-margin-top: 110px; }
.prose p, .prose li { margin-bottom: 12px; }
.prose > p, .prose li { color: var(--body); }
.prose .lead { font-size: 18px; color: var(--text); }
.prose ul:not(.ticks), .prose ol:not(.numbered) { padding-left: 22px; }
.prose .big { font-size: 20px; font-weight: 600; }
.updated { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.callout { background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 12px; padding: 14px 18px; margin: 22px 0; }
.callout p:last-child { margin-bottom: 0; }
.prose .callout p { color: var(--text); }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px 6px; margin: 24px 0; }
.toc p { font-weight: 700; margin-bottom: 6px; color: var(--text); }
.toc ol { padding-left: 20px; }
.toc li { margin-bottom: 6px; }
ol.numbered { list-style: none; counter-reset: n; }
ol.numbered > li { counter-increment: n; position: relative; padding-left: 38px; }
ol.numbered > li::before { content: counter(n); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px; display: grid; place-items: center; }
blockquote { border-left: 4px solid var(--accent); background: var(--surface); padding: 12px 16px; margin: 12px 0 16px; border-radius: 0 10px 10px 0; color: var(--text); font-style: italic; }
.compare-lines p { padding: 10px 14px; border-radius: 10px; margin-bottom: 8px; }
.compare-lines .bad { background: #fdecec; color: #7f1d1d; }
.compare-lines .good { background: #dcfce7; color: #14532d; }
.app-note { background: var(--tint); border: 1px solid var(--accent-soft); border-radius: 16px; padding: 22px; margin-top: 40px; }
.app-note h2 { margin-top: 0; }
.app-note p { color: var(--body); }
.more { margin-top: 28px; font-size: 15px; color: var(--muted); }
main.legal h2 { font-size: 20px; }

/* --- footer -------------------------------------------------------------- */
footer.site { background: #0b3540; color: #cde7e3; }
.foot { display: grid; gap: 28px; padding-top: 40px; padding-bottom: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.foot-brand { grid-column: 1 / -1; }
.foot-brand .brand { color: #fff; margin-bottom: 10px; }
.foot-brand .brand b { color: #5eead4; }
.foot-brand p { font-size: 15px; margin-bottom: 14px; max-width: 360px; }
.foot nav { display: flex; flex-direction: column; gap: 8px; }
.foot nav h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.8px; color: #fff; margin-bottom: 4px; }
.foot nav a { color: #cde7e3; text-decoration: none; font-size: 15px; }
.foot nav a:hover { color: #fff; text-decoration: underline; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 16px; padding-bottom: 24px; font-size: 13px; color: #9cc5bf; }
@media (min-width: 760px) { .foot { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .foot-brand { grid-column: auto; } }
