/* Productive Workflows · site styles
   Brand: near-black ground, off-white text, orange-to-amber accent, Inter (self-hosted). */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/inter-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/inter-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/inter-latin-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/inter-latin-800.woff2") format("woff2"); }

:root {
  --ground: #1a1a1a;
  --surface: #232323;
  --surface-2: #2c2c2c;
  --line: #3a3a3a;
  --text: #f2f2f2;
  --muted: #b9b9b9;      /* 9.1:1 on --ground */
  --orange: #ff6b00;
  --amber: #ffb000;
  --accent-text: #ff9a3d; /* 7.3:1 on --ground, used for links and eyebrows */
  --grad: linear-gradient(90deg, var(--orange), var(--amber));
  --on-grad: #1a1a1a;    /* text on the gradient, fixed so light sections do not flip it */
  --radius: 14px;
  --max: 1120px;
  --gutter: 16px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--ground);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { color: var(--amber); }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: var(--gutter); top: -60px;
  background: var(--text); color: var(--on-grad);
  padding: 10px 16px; border-radius: 8px; font-weight: 600; z-index: 100;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--on-grad); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 760px) { :root { --gutter: 32px; } }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px; padding-top: 16px; padding-bottom: 16px;
}
.brand { display: inline-block; line-height: 0; }
.brand img { width: 168px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.nav a {
  display: inline-block; padding: 8px 10px; border-radius: 8px;
  color: var(--text); text-decoration: none; font-weight: 500; font-size: 15px;
}
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a[aria-current="page"] { color: var(--accent-text); }
.nav a.nav-cta { background: var(--grad); background-origin: border-box; color: var(--on-grad); font-weight: 700; padding: 8px 14px; }
.nav a.nav-cta:hover { filter: brightness(1.08); color: var(--on-grad); }
.nav a.nav-cta[aria-current="page"] { color: var(--on-grad); }
@media (max-width: 559px) {
  .brand img { width: 150px; }
  .nav { width: 100%; }
  .nav ul { justify-content: space-between; }
  .nav a { padding: 8px 6px; font-size: 14.5px; }
  .nav a.nav-cta { padding: 8px 12px; }
}

/* Type */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 42rem; }
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: var(--amber); -webkit-text-fill-color: transparent;
}
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-text); margin-bottom: 12px;
}
.muted { color: var(--muted); }

/* Sections */
.section { padding: 56px 0; }
.section + .section { border-top: 0; } /* grounds alternate instead, see "Alternating grounds" */
@media (min-width: 760px) { .section { padding: 88px 0; } }
.hero { padding: 64px 0 56px; }
@media (min-width: 760px) { .hero { padding: 112px 0 96px; } }
.hero h1 { max-width: 16ch; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px; border-radius: 10px;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary { background: var(--grad); background-origin: border-box; color: var(--on-grad); }
.btn-primary:hover { filter: brightness(1.08); color: var(--on-grad); }
.btn-ghost { border-color: #7c7c7c; color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }

/* Cards */
.grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 20px; } .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card .num {
  display: inline-flex; width: 36px; height: 36px; border-radius: 50%;
  align-items: center; justify-content: center; font-weight: 800; font-size: 15px;
  background: var(--grad); color: var(--on-grad); margin-bottom: 14px;
}
.card-link { display: inline-block; margin-top: 12px; font-weight: 600; }

/* Steps */
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.steps li {
  counter-increment: step; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}
.steps li::before {
  content: counter(step); display: inline-flex; width: 32px; height: 32px; border-radius: 50%;
  align-items: center; justify-content: center; font-weight: 800; font-size: 14px;
  background: var(--grad); color: var(--on-grad); margin-bottom: 10px;
}
.steps h3 { font-size: 1.05rem; margin-bottom: 6px; }
.steps p { font-size: 15px; color: var(--muted); margin: 0; }

/* Callout */
.callout {
  border-radius: var(--radius); padding: 28px; background: var(--surface);
  border: 1px solid var(--line); position: relative; overflow: hidden;
}
.callout::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--grad); }
.callout h2, .callout h3 { margin-top: 0; }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: 0.45em; width: 14px; height: 8px;
  border-left: 3px solid var(--amber); border-bottom: 3px solid var(--amber); transform: rotate(-45deg);
}

.price { font-size: 1.15rem; font-weight: 700; margin: 4px 0 16px; }
.price .grad-text { font-weight: 800; }
.placeholder {
  background: #3a2a10; color: #ffd9a0; border: 1px dashed #b77a1c; border-radius: 6px;
  padding: 1px 6px; font-weight: 600; font-size: 0.92em;
}
.anh-prompt {
  display: block; background: #2b2412; border: 1px dashed #b77a1c; color: #ffe2b8;
  border-radius: 10px; padding: 14px 16px; margin: 0 0 16px; font-size: 15px;
}

.service { scroll-margin-top: 24px; }
.service + .service { margin-top: 0; }
.service-grid { display: grid; gap: 20px; }
@media (min-width: 860px) { .service-grid { grid-template-columns: 1.1fr 1fr; gap: 40px; } }
.service h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-top: 8px; }

/* Alternating grounds (Anh, 2026-09-25): odd sections stay dark (hero first), even sections go light.
   Light tokens are redefined on the section, so every component inside follows. */
main > section:nth-of-type(even) {
  --ground: #f7f5f1; --surface: #ffffff; --surface-2: #efebe4; --line: #e3ded5;
  --text: #1a1a1a; --muted: #555555;      /* 6.9:1 on #f7f5f1 */
  --accent-text: #b84a00;                 /* 4.8:1 on #f7f5f1 */
  --error-text: #a61b1b;                  /* 6.9:1 on #f7f5f1 */
  --error-line: #c62828;                  /* 5.6:1 on #ffffff */
  color-scheme: light;
  background: var(--ground); color: var(--text);
}
main > section:nth-of-type(even) .grad-text { background: linear-gradient(90deg, #e05a00, #b36b00); -webkit-background-clip: text; background-clip: text; }
main > section:nth-of-type(even) .btn-ghost { border-color: #8a8a8a; }
main > section:nth-of-type(even) .checklist li::before { border-color: #e07000; }
main > section:nth-of-type(odd):not(:first-of-type) { background: var(--ground); }

/* Forms */
.form { display: grid; gap: 18px; max-width: 640px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: 15px; }
.field .hint { font-size: 14px; color: var(--muted); }
.req { color: var(--accent-text); }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: var(--surface); border: 1.5px solid #7c7c7c; border-radius: 10px;
  padding: 12px 14px; min-height: 48px;
}
textarea { min-height: 150px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--amber); outline: 3px solid var(--amber); outline-offset: 1px; }
/* Selector carries .form so it outranks input[type="text"] above; the light
   sections swap both colours (the dark-ground pinks were 1.6:1 there). */
.form [aria-invalid="true"] { border-color: var(--error-line, #ff7b7b); }
.field-error { color: var(--error-text, #ffb0b0); font-size: 14px; font-weight: 600; }
.field-error:empty { display: none; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: 10px; padding: 14px 16px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.ok { background: #13301c; border: 1px solid #2f7a45; color: #c9f5d5; }
.form-status.err { background: #3a1616; border: 1px solid #a33; color: #ffd0d0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

.prose { max-width: 44rem; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

@media print {
  @page { margin: 0.3in; }
  body { background: #fff; color: #111; font-size: 12pt; }
  .site-header .nav, .skip-link, .actions, .form, .site-footer ul { display: none; }
  .card, .steps li, .callout { background: #fff; border-color: #bbb; break-inside: avoid; }
  .muted, .lead, .steps p { color: #333; }
  .grad-text { -webkit-text-fill-color: #c24f00; color: #c24f00; background: none; }
  a { color: #111; }
  .brand img { filter: invert(1) hue-rotate(180deg); }
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
