/* DWorks website: the app's own colours (dworks-app src/theme/colors.ts). */
:root {
  --page: #F8F9FF; --card: #FFFFFF; --fill: #F1F5F9;
  --ink: #0F172A; --ink2: #334155; --muted: #64748B; --line: #E2E8F0;
  --brand: #3453E0; --brand-deep: #2A45C9; --brand-soft: #E8EEFF;
  --money: #059669; --money-soft: #ECFDF5;
  --wait: #D97706; --wait-soft: #FEF3C7;
  --danger: #E11D48; --danger-soft: #FFE4E6;
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #0B1020; --card: #141B2E; --fill: #1C2540;
    --ink: #F1F5F9; --ink2: #CBD5E1; --muted: #94A3B8; --line: #26304A;
    --brand: #6D86FF; --brand-deep: #3453E0; --brand-soft: #1E2A55;
    --money: #34D399; --money-soft: #0F2E26; --wait: #FBBF24; --wait-soft: #3A2A0A;
    --danger: #FB7185; --danger-soft: #3A1420;
  }
}
:root[data-theme="dark"] {
  --page: #0B1020; --card: #141B2E; --fill: #1C2540;
  --ink: #F1F5F9; --ink2: #CBD5E1; --muted: #94A3B8; --line: #26304A;
  --brand: #6D86FF; --brand-deep: #3453E0; --brand-soft: #1E2A55;
  --money: #34D399; --money-soft: #0F2E26; --wait: #FBBF24; --wait-soft: #3A2A0A;
  --danger: #FB7185; --danger-soft: #3A1420;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 17px/1.55 "Inter", "Noto Sans Tamil", system-ui, sans-serif;
}
:lang(ta) body, body:lang(ta) { font-family: "Noto Sans Tamil", "Inter", system-ui, sans-serif; }
a { color: var(--brand); }
img { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Header */
header.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--page) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
nav.links { display: flex; gap: 18px; margin-left: auto; }
nav.links a { color: var(--ink2); text-decoration: none; font-weight: 600; font-size: 15px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button { border: 0; background: transparent; color: var(--ink2); padding: 6px 12px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--brand); color: #fff; }
@media (max-width: 760px) { nav.links { display: none; } .lang { margin-left: auto; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 14px; font-weight: 800; text-decoration: none; font-size: 17px; border: 0; cursor: pointer; }
.btn.primary { background: var(--brand); color: #fff; }
.btn.ghost { background: var(--card); color: var(--brand); border: 1.5px solid var(--line); }
.btn svg { width: 22px; height: 22px; flex: none; }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero .grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.08; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.lead { font-size: 19px; color: var(--ink2); margin: 0 0 26px; max-width: 34em; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.where { display: inline-flex; align-items: center; gap: 8px; background: var(--wait-soft); color: var(--wait); font-weight: 800; font-size: 14px; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.where svg { width: 16px; height: 16px; }
@media (max-width: 820px) { .hero .grid { grid-template-columns: 1fr; } }

/* Phone-style card in the hero, drawn in CSS so it always matches the current colours */
.phone { background: var(--card); border: 1px solid var(--line); border-radius: 32px; padding: 18px; box-shadow: 0 30px 60px -30px rgba(52, 83, 224, .45); max-width: 360px; margin: 0 auto; }
.phone .heroCard { background: linear-gradient(135deg, #3757E7, #2A45C9); color: #fff; border-radius: 20px; padding: 18px; }
.phone .heroCard b { font-size: 44px; line-height: 1; display: block; }
.job { border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-top: 12px; display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; background: var(--card); }
.job .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: var(--brand-soft); }
.job .t { font-weight: 800; }
.job .s { color: var(--muted); font-size: 14px; }
.job .pay { font-weight: 900; color: var(--money); font-size: 18px; text-align: right; }
.job .pay small { display: block; color: var(--muted); font-weight: 600; font-size: 12px; }
.note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 10px; }

/* Sections */
section { padding: 48px 0; }
section h2 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 8px; letter-spacing: -0.01em; }
section .sub { color: var(--ink2); margin: 0 0 28px; font-size: 18px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card .i { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 12px; }
.card .i svg { width: 28px; height: 28px; }
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--ink2); font-size: 16px; }
.i.b { background: var(--brand-soft); color: var(--brand); }
.i.g { background: var(--money-soft); color: var(--money); }
.i.a { background: var(--wait-soft); color: var(--wait); }
.i.r { background: var(--danger-soft); color: var(--danger); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.side { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 26px; }
.side .tag { display: inline-block; font-size: 13px; font-weight: 900; letter-spacing: .08em; color: #fff; background: var(--brand); border-radius: 8px; padding: 4px 10px; margin-bottom: 12px; }
.side.hire .tag { background: var(--ink); }
.side h3 { font-size: 24px; margin: 0 0 14px; }
.side ul { list-style: none; padding: 0; margin: 0 0 20px; }
.side li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); }
.side li:first-child { border-top: 0; }
.side li svg { width: 24px; height: 24px; flex: none; color: var(--money); margin-top: 2px; }

ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
ol.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
ol.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 900; font-size: 20px; margin-bottom: 10px; }
ol.steps b { display: block; font-size: 18px; margin-bottom: 4px; }
ol.steps span { color: var(--ink2); font-size: 16px; }

.band { background: linear-gradient(135deg, #3757E7, #2A45C9); color: #fff; border-radius: 28px; padding: 36px 28px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.band h2 { color: #fff; }
.band p { color: #E0E7FF; margin: 0; }
.band .btn.primary { background: #fff; color: var(--brand-deep); }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; } }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
footer a { color: var(--ink2); text-decoration: none; font-weight: 600; }
footer .copy { margin-left: auto; }

/* Legal pages */
.doc { max-width: 760px; margin: 0 auto; padding: 40px 16px 60px; }
.doc h1 { font-size: 34px; margin: 0 0 6px; }
.doc h2 { font-size: 22px; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--ink2); }
.draft { background: var(--wait-soft); color: var(--ink); border: 1px solid var(--wait); border-radius: 12px; padding: 12px 16px; font-size: 15px; margin: 16px 0 24px; }
.fill { background: var(--danger-soft); color: var(--danger); font-weight: 700; padding: 0 4px; border-radius: 4px; }

/* Open-in-app pages */
.open { max-width: 460px; margin: 0 auto; padding: 56px 16px; text-align: center; }
.open img.logo { width: 84px; height: 84px; border-radius: 22px; }
.open h1 { font-size: 28px; margin: 18px 0 8px; }
.open p { color: var(--ink2); }
.open .btn { width: 100%; justify-content: center; margin-top: 12px; }

/* Hirer home: kinds of work, verified tag, the small worker strip */
.kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.kind { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 12px; text-align: center; }
.kind span { font-size: 34px; display: block; line-height: 1.2; }
.kind b { display: block; margin-top: 6px; font-size: 16px; }
.job .pay.vf { color: var(--brand); font-size: 13px; font-weight: 800; }
p.also { margin: 18px 0 0; font-weight: 700; color: var(--brand); }
section.workers .side { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center; }
section.workers .side h3 { margin: 0; }
section.workers .side p { margin: 0; color: var(--ink2); grid-column: 1; }
section.workers .side .btn { grid-column: 2; grid-row: 1 / span 2; }
@media (max-width: 760px) { section.workers .side { grid-template-columns: 1fr; } section.workers .side .btn { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 8px; } }

/* Tamil (and any long-word script): words are long and letters tall, so
   nothing may force the page wider than the screen, and headings get a
   lighter weight and more line height than English. */
.hero .grid > *, .split > *, .cards > *, ol.steps > li, .kinds > *, .band > * { min-width: 0; }
h1, h2, h3, p, li, .btn, .job .t, .job .s, .kind b, ol.steps b, ol.steps span { overflow-wrap: anywhere; }
.btn { white-space: normal; text-align: left; }
.phone { max-width: min(360px, 100%); }
.job { grid-template-columns: 44px minmax(0, 1fr) auto; }
.job .pay.vf { max-width: 6.5em; white-space: normal; line-height: 1.25; }

:lang(ta) .hero h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.3; font-weight: 700; letter-spacing: 0; }
:lang(ta) section h2 { font-size: clamp(22px, 3.4vw, 30px); line-height: 1.35; font-weight: 700; letter-spacing: 0; }
:lang(ta) .card h3, :lang(ta) .side h3, :lang(ta) ol.steps b { font-weight: 700; line-height: 1.35; }
:lang(ta) .btn, :lang(ta) .where, :lang(ta) .kind b { font-weight: 700; }
:lang(ta) body, :lang(ta) .lead, :lang(ta) p { line-height: 1.7; }
:lang(ta) nav.links a { font-size: 14px; }
@media (max-width: 760px) {
  :lang(ta) .hero .ctas .btn { width: 100%; justify-content: center; text-align: center; }
}

/* Language switch as links (/ and /ta/) */
.lang a { display: inline-block; color: var(--ink2); padding: 6px 12px; font-size: 14px; font-weight: 700; text-decoration: none; }
.lang a[aria-current="page"] { background: var(--brand); color: #fff; }
/* "Hire a … in Porur" pages */
.kindIcon { font-size: 44px; line-height: 1; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font-weight: 700; text-decoration: none; font-size: 15px; }
a.kind { color: var(--ink); text-decoration: none; }
a.kind:hover { border-color: var(--brand); }
/* Phones: one clean, short column. Equal-width buttons, 3 work tiles a row,
   steps and reasons as compact rows (icon left, text right), less empty space. */
@media (max-width: 600px) {
  section { padding: 28px 0; }
  section h2 { font-size: 24px; }
  section .sub { font-size: 16px; margin-bottom: 18px; }
  .hero { padding: 24px 0 8px; }
  .hero h1 { font-size: 32px; }
  .hero p.lead { font-size: 17px; margin-bottom: 18px; }
  .hero .ctas { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .hero .ctas .btn { width: 100%; justify-content: center; text-align: center; }
  .hero .grid { gap: 24px; }

  /* The sample card: smaller, and two workers are enough to show the idea. */
  .phone { padding: 12px; border-radius: 24px; }
  .phone .heroCard { padding: 14px; border-radius: 16px; }
  .phone .heroCard b { font-size: 34px; }
  .phone .job { padding: 10px; margin-top: 8px; }
  .phone .job:nth-of-type(4) { display: none; }

  .kinds { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .kind { padding: 12px 6px; border-radius: 14px; }
  .kind span { font-size: 26px; }
  .kind b { font-size: 13px; margin-top: 4px; }

  ol.steps { gap: 10px; }
  ol.steps li { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; padding: 14px; }
  ol.steps li::before { width: 34px; height: 34px; font-size: 16px; margin: 0; grid-row: span 2; }
  ol.steps b { font-size: 16px; margin: 0; }
  ol.steps span { font-size: 15px; }
  p.also { font-size: 15px; }

  .cards { gap: 10px; }
  .card { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; padding: 14px; }
  .card .i { width: 44px; height: 44px; margin: 0; grid-row: span 2; }
  .card .i svg { width: 24px; height: 24px; }
  .card h3 { font-size: 16px; margin: 0 0 2px; }
  .card p { font-size: 15px; }

  .band { padding: 22px 18px; border-radius: 20px; }
  .band .btn { width: 100%; justify-content: center; }
  section.workers .side { padding: 18px; }
  footer .copy { margin-left: 0; width: 100%; }
}
