:root {
  /* Brand colours, taken from the Alcaraz Accounting logo */
  --navy-900: #0B2545;
  --navy-700: #13315C;
  --gold-600: #A87830;
  --gold-500: #C9A04A;
  --gold-400: #E2BE6A;
  --gold-300: #D9C79E;
  --gold-text: #7E5B1C;
  --cream: #F8F5EE;
  --ivory: #EDE6D6;
  --line-warm: #E6DECD;
  --ink: #1F2937;
  --muted: #566070;
  --line: #E5E7EB;
  --bg: #FFFFFF;
  --radius: 12px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  color: var(--navy-900);
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5.2vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.4rem); margin-bottom: 28px; letter-spacing: -0.015em; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy-700); }

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

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.narrow { max-width: 780px; }

/* Sections */
main > section { padding: 64px 0; scroll-margin-top: 16px; }
main > section:nth-of-type(even) { background: var(--cream); }

/* Top bar */
.topbar { border-bottom: 1px solid var(--line); background: var(--bg); }

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy-900);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
}

.site-nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-nav a:not(.btn):hover { color: var(--navy-700); }

.menu-toggle {
  display: none;
  min-height: 44px;
  padding: 0 16px;
  font: inherit;
  font-weight: 600;
  color: var(--navy-900);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

/* Buttons and links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  font-weight: 600;
  color: #fff;
  background: var(--navy-900);
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
}

.btn:hover { background: var(--navy-700); }

.btn-small { min-height: 44px; padding: 0 18px; }

.btn-light { color: var(--navy-900); background: var(--gold-400); }
.btn-light:hover { background: var(--gold-500); }

.text-link {
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-underline-offset: 4px;
}

/* Hero and page heads */
.hero { padding: 72px 0 80px; }
.hero h1 { max-width: 18ch; }

.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 20px;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink);
  max-width: 62ch;
  margin-bottom: 28px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}

.btn-outline {
  color: var(--navy-900);
  background: #fff;
  border: 1px solid var(--gold-300);
}

.btn-outline:hover { background: var(--cream); }

.note { margin-top: 16px; font-size: 0.95rem; color: var(--muted); }

.hero {
  background:
    radial-gradient(ellipse at 88% 8%, var(--cream) 0, rgba(248, 245, 238, 0) 42%),
    var(--bg);
}

.hero-grid { display: grid; gap: 40px; align-items: center; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

.byline { display: flex; align-items: center; gap: 12px; }

.avatar {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--gold-500);
}

.messenger { margin: 4px 0 0; }
.messenger .text-link { gap: 8px; }

/* Reconciliation example beside the hero text */
.recon {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line-warm);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(11, 37, 69, 0.08);
  font-variant-numeric: tabular-nums;
}

.recon-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.recon-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.recon-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.recon-row.is-off { border-color: #F3C4BE; background: #FFF8F7; }

.recon-source { font-weight: 600; color: var(--ink); }
.recon-amount { font-weight: 700; color: var(--navy-900); text-align: right; }

.recon-gap {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #B42318;
}

.recon-gap .icon { width: 1.1em; height: 1.1em; }

.recon-step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.recon-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--gold-300);
  border-radius: 10px;
  background: var(--cream);
}

.recon-result .icon { width: 28px; height: 28px; color: var(--gold-600); }
.recon-result p { margin: 0; line-height: 1.35; }
.recon-result strong { display: block; color: var(--navy-900); }
.recon-result span { font-size: 0.95rem; color: var(--ink); }

.page-head .grid { margin-top: 12px; }

/* Problem */
.lead-in { font-size: 1.15rem; font-weight: 600; color: var(--navy-700); margin: -12px 0 24px; }

.checklist {
  display: grid;
  gap: 12px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding: 16px 18px 16px 54px;
  background: #fff;
  border: 1px solid var(--line-warm);
  border-radius: var(--radius);
}

/* An empty box to tick in your head */
.checklist li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 18px;
  width: 20px;
  height: 20px;
  border: 2px solid var(--gold-500);
  border-radius: 5px;
  background: #fff;
}

.closing {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-900);
}

/* Grids and cards */
.grid { display: grid; gap: 20px; }

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin: 0;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.card-head h3 { margin: 0; }

.badge {
  flex: none;
  padding: 3px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy-700);
  background: var(--cream);
  border: 1px solid var(--line-warm);
  border-radius: 999px;
}

.card-for { color: var(--muted); font-size: 0.95rem; }

.card-link {
  margin-top: auto;
  padding-top: 8px;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  text-underline-offset: 4px;
}

.result {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--navy-900);
}

/* Screenshot at the top of a tool card, edge to edge */
.card-img {
  width: calc(100% + 56px);
  max-width: none;
  margin: -28px -28px 20px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
}

/* Service cards: icon on top, result as a tinted strip along the bottom */
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 12px;
  color: var(--navy-700);
  background: var(--cream);
}

.service-icon .icon { width: 26px; height: 26px; }

.service .result {
  margin: auto -28px -28px;
  padding: 18px 28px;
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--cream);
}

.card-featured { background: var(--navy-900); border-color: var(--navy-900); color: var(--ivory); }
.card-featured h3 { color: #fff; }
.card-featured .result { color: #fff; border-top-color: rgba(255, 255, 255, 0.2); }
.card-featured .service-icon { color: #fff; background: rgba(255, 255, 255, 0.12); }
.card-featured.service .result { background: rgba(255, 255, 255, 0.1); }

/* Placeholder cards whose text still starts with TODO */
.card-todo { border-style: dashed; border-color: var(--gold-300); background: transparent; color: var(--muted); }

.fit {
  margin-top: 28px;
  padding: 20px 24px;
  background: var(--cream);
  border-radius: var(--radius);
}

.fit p { margin-bottom: 8px; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 24px;
  margin-bottom: 28px;
}

.section-head h2 { margin: 0; }

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
  counter-reset: step;
}

.steps li { counter-increment: step; }

.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 50%;
  font-weight: 700;
  color: var(--gold-400);
  background: var(--navy-900);
}

.steps h3 { margin-bottom: 6px; }

/* Results */
/* Results (case studies) */
.case-before { color: var(--muted); }
.case-after { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }

/* About */
.about { display: grid; gap: 28px; align-items: center; }

.about-photo {
  width: 100%;
  max-width: 320px;
  border-radius: var(--radius);
}

/* Blue band */
main > section.band {
  background: var(--navy-900);
  color: #fff;
  text-align: center;
  padding: 72px 0;
}

.band h2 { color: #fff; margin-bottom: 12px; }
.band p { max-width: 60ch; margin: 0 auto 28px; color: var(--ivory); text-wrap: balance; }
.band .messenger { margin: 12px auto 0; }
.band .messenger a { color: #fff; }
.band .messenger a:hover { color: var(--ivory); }
.band :focus-visible { outline-color: #fff; }

/* Footer */
.footer {
  padding: 40px 0 28px;
  font-size: 0.95rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer p { margin: 0; }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px 40px;
}

.footer-name { font-weight: 700; color: var(--navy-900); }

.footer-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.footer-social a {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.footer-social a:hover .brand-icon { transform: scale(1.08); }
.brand-icon { display: block; transition: transform 0.15s ease; }

.footer-legal { margin-top: 20px; }

/* Mobile menu (only collapses when JS is running) */
@media (max-width: 767px) {
  .js .menu-toggle { display: inline-flex; align-items: center; }

  .js .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 8px;
  }

  .js .site-nav.open { display: flex; }
  .js .site-nav .btn { margin-top: 8px; }
}

@media (min-width: 768px) {
  body { font-size: 18px; }
  .wrap { padding: 0 24px; }
  .narrow { max-width: 828px; }
  main > section { padding: 104px 0; }
  .hero { padding: 104px 0 112px; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .about { grid-template-columns: 320px 1fr; gap: 56px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
  .checklist { grid-template-columns: repeat(2, 1fr); }
  .about-no-photo { grid-template-columns: 1fr; }
  .about-no-photo > div { max-width: 780px; }
}

/* Brand touches from the logo: thin gold rules, gold-underlined links, logo mark */
.brand { gap: 10px; }
.brand-mark { width: 40px; height: 40px; border-radius: 9px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 1.1rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy-900); }
.brand-sub { margin-top: 4px; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: var(--navy-700); }

main h2::before {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-bottom: 18px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-400));
}

.band h2::before { margin-left: auto; margin-right: auto; }
.section-head h2::before { margin-bottom: 14px; }

a, .text-link { text-decoration-color: var(--gold-500); text-decoration-thickness: 2px; }
.band .messenger a { text-decoration-color: var(--gold-400); }

.card-featured .service-icon { color: var(--gold-400); }
.card-featured .result strong { color: var(--gold-400); }

/* ===== Pinoy Accounting Course ===== */
.brand-name-course { font-size: 1rem; letter-spacing: 0.02em; text-transform: none; }
.brand-sub-course { font-size: 0.72rem; letter-spacing: 0.04em; text-transform: none; color: var(--gold-text); }

.btn .icon { width: 1.1em; height: 1.1em; }

.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 20px; }
.price strong { font-size: 2rem; line-height: 1; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.price span { font-weight: 600; color: var(--gold-text); }

.guarantee { display: flex; align-items: flex-start; gap: 8px; max-width: 52ch; }
.guarantee .icon { margin-top: 2px; color: var(--gold-600); }

/* Free preview video beside the hero text */
.preview { margin: 0; }
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: var(--navy-900);
  box-shadow: 0 16px 40px rgba(11, 37, 69, 0.18);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-todo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; color: var(--ivory); }
.video-todo span { display: inline-flex; width: 64px; height: 64px; align-items: center; justify-content: center; border-radius: 50%; background: var(--gold-400); color: var(--navy-900); }
.video-todo span .icon { width: 30px; height: 30px; }
.video-todo p { margin: 0; font-size: 0.9rem; }
.preview figcaption { margin-top: 12px; font-size: 0.95rem; color: var(--muted); }
.preview figcaption strong { color: var(--navy-900); }

.tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--navy-900);
  background: var(--gold-400);
  border-radius: 999px;
  white-space: nowrap;
}

/* What's included */
.tile h3 { font-size: 1.05rem; }
.tile p { font-size: 0.95rem; }
.included-note { margin-top: 20px; }

/* Course outline */
.modules { display: grid; gap: 12px; }
.module { background: #fff; border: 1px solid var(--line-warm); border-radius: var(--radius); }
.module summary {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 12px 18px;
  cursor: pointer;
  list-style: none;
}
.module summary::-webkit-details-marker { display: none; }
.module summary::after { content: "+"; margin-left: 4px; font-size: 1.4rem; line-height: 1; color: var(--gold-600); }
.module[open] summary::after { content: "−"; }
.module-num {
  display: inline-flex; flex: none; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  font-weight: 700; font-size: 0.9rem; color: var(--gold-400); background: var(--navy-900);
}
.module-title { flex: 1; font-weight: 700; color: var(--navy-900); }
.module-count { font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
.lessons { list-style: none; margin: 0; padding: 0 18px 8px; border-top: 1px solid var(--line-warm); }
.lessons li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.lessons li:last-child { border-bottom: 0; }
.lessons strong { display: block; color: var(--ink); font-weight: 600; }
.lessons small { display: block; color: var(--muted); font-size: 0.9rem; }
.lessons .tag { margin-left: auto; }
.lesson-icon { flex: none; margin-top: 2px; color: var(--navy-700); }
.module-tool { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 18px; border-top: 1px solid var(--line-warm); background: var(--cream); border-radius: 0 0 var(--radius) var(--radius); font-size: 0.95rem; }
.module-tool .icon { color: var(--gold-600); }

/* Reviews */
.review blockquote { margin: 0 0 20px; font-size: 1rem; }
.review figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review figcaption strong { display: block; color: var(--navy-900); }
.review figcaption small { display: block; font-size: 0.82rem; color: var(--muted); }
.initials {
  display: inline-flex; flex: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  font-weight: 700; color: var(--navy-900); background: var(--gold-400);
}
.card-featured.review figcaption strong { color: #fff; }
.card-featured.review figcaption small { color: var(--ivory); }

.not-for { margin-top: 8px; padding: 14px 18px; border-left: 3px solid var(--gold-500); background: #fff; border-radius: 0 var(--radius) var(--radius) 0; }

/* Enrol */
.enroll-box { margin-top: 36px; padding: 28px; text-align: center; background: #fff; border: 1px solid var(--line-warm); border-radius: 16px; }
.enroll-box .price { justify-content: center; }
.enroll-box .note { max-width: 56ch; margin: 16px auto 0; }

/* FAQ */
.faq { display: grid; gap: 10px; margin-bottom: 24px; }
.faq details { background: #fff; border: 1px solid var(--line-warm); border-radius: var(--radius); }
.faq summary { min-height: 52px; display: flex; align-items: center; gap: 12px; padding: 12px 18px; font-weight: 600; color: var(--navy-900); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font-size: 1.3rem; line-height: 1; color: var(--gold-600); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 18px 16px; }

@media (min-width: 768px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.footer p a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 767px) {
  .js .topbar-inner { flex-wrap: wrap; }
  .js .brand { flex: 1 1 0; min-width: 0; }
  .brand-name-course { font-size: 0.95rem; }
  .brand-sub-course { font-size: 0.68rem; }
}

/* ===== Account page (/my/) ===== */
main > section.account-page { padding: 48px 0 72px; background: var(--cream); min-height: 70vh; }
.account-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line-warm);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(11, 37, 69, 0.06);
}
.account-card h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); }
.account-card h2 { font-size: 1.1rem; margin: 28px 0 12px; }
.account-card h2::before { display: none; }
.account-card .btn { width: 100%; }
.account-card .actions { display: grid; gap: 10px; margin: 16px 0; }
.account-card .note { margin-top: 16px; }
.note.small { font-size: 0.88rem; }
.account-loading { color: var(--muted); }
.account-who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0 0 14px; font-size: 0.92rem; color: var(--muted); }
.account-who b { color: var(--ink); }
.link-btn {
  min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--navy-700);
  text-decoration: underline; text-decoration-color: var(--gold-500); text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.account-alert { margin-bottom: 16px; padding: 14px 18px; border: 1px solid #F3C4BE; border-radius: var(--radius); background: #FFF8F7; }
.account-alert p { margin: 4px 0 0; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; background: var(--cream); border: 1px solid var(--line-warm); border-radius: 12px; }
.seg-btn { min-height: 44px; border: 0; border-radius: 9px; background: none; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; }
.seg-btn.on { background: #fff; color: var(--navy-900); box-shadow: 0 1px 3px rgba(11, 37, 69, 0.15); }

.pay-panel { display: grid; gap: 10px; margin-top: 14px; }
.pay-panel[hidden] { display: none; }
.pay-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-warm); border-radius: 10px; }
.pay-row small { display: block; font-size: 0.8rem; color: var(--muted); }
.pay-row b { color: var(--navy-900); }
.pay-row .num { font-size: 1.15rem; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.pay-row .btn { width: auto; flex: none; }
.qr { width: 100%; max-width: 280px; margin: 6px auto; border-radius: 12px; border: 1px solid var(--line); }
.pay-check { margin: 14px 0 0; padding: 12px 14px; border-left: 3px solid var(--gold-500); background: var(--cream); border-radius: 0 10px 10px 0; font-size: 0.95rem; }

.field { display: grid; gap: 6px; font-weight: 600; color: var(--ink); }
.field input {
  min-height: 48px; padding: 0 14px; font: inherit; font-size: 1.05rem; letter-spacing: 0.03em;
  border: 1px solid var(--gold-300); border-radius: 10px; background: #fff; color: var(--ink);
}
.field input:focus-visible { outline: 3px solid var(--navy-700); outline-offset: 1px; }
.form-err { min-height: 1.4em; margin: 8px 0; color: #B42318; font-weight: 600; }

.msg-note { margin: 8px 0 0; padding: 14px; white-space: pre-wrap; font: inherit; font-size: 0.95rem; background: var(--cream); border: 1px dashed var(--gold-300); border-radius: 10px; }
.todo-box { margin-top: 16px; padding: 18px; border: 1px dashed var(--gold-300); border-radius: 12px; color: var(--muted); }
button.btn { font: inherit; font-weight: 600; border: 0; cursor: pointer; }
button.btn-outline { border: 1px solid var(--gold-300); }
button.btn:disabled { opacity: 0.6; cursor: progress; }

/* ===== Member area ===== */
.account-page.wide { background: var(--bg); }
.account-page.wide .wrap.narrow { max-width: 1100px; }
.member-head { padding: 24px; margin-bottom: 8px; background: var(--navy-900); color: var(--ivory); border-radius: 16px; }
.member-head h1 { color: #fff; font-size: clamp(1.5rem, 4vw, 2rem); }
.member-head .btn { background: var(--gold-400); color: var(--navy-900); }
.member-head .btn:hover { background: var(--gold-500); }
.member-head .note { color: var(--ivory); }
.member-progress { margin-bottom: 8px; }
.progress-bar { height: 8px; margin-bottom: 18px; background: rgba(255, 255, 255, 0.15); border-radius: 99px; overflow: hidden; }
.progress-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-600), var(--gold-400)); }
.member-h { margin: 36px 0 16px; font-size: 1.35rem; }
.member-module h3 { margin: 22px 0 10px; font-size: 1rem; color: var(--gold-text); text-transform: uppercase; letter-spacing: 0.06em; }
.lesson-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.lesson-card { display: block; padding-bottom: 12px; overflow: hidden; color: inherit; text-decoration: none; background: #fff; border: 1px solid var(--line-warm); border-radius: var(--radius); }
.lesson-card:hover { border-color: var(--gold-300); }
.lesson-card b { display: block; padding: 10px 12px 0; color: var(--navy-900); line-height: 1.3; }
.lesson-card small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding: 4px 12px 0; font-size: 0.85rem; color: var(--muted); }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb-num { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.4rem; font-weight: 800; color: rgba(226, 190, 106, 0.35); }
.thumb-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 44px; height: 44px; padding-left: 3px; border-radius: 50%; background: rgba(11, 37, 69, 0.7); color: var(--gold-400); }
.thumb-seen { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 99px; font-size: 0.75rem; font-weight: 700; color: var(--navy-900); background: var(--gold-400); }
.manager-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 24px; padding: 18px 20px; background: var(--cream); border: 1px solid var(--line-warm); border-radius: var(--radius); }
.manager-card b { color: var(--navy-900); }
.manager-card p { margin: 4px 0 0; }
.tool-grid { display: grid; gap: 12px; }
.tool-card { position: relative; display: block; padding: 18px 44px 18px 20px; color: inherit; text-decoration: none; background: #fff; border: 1px solid var(--line-warm); border-radius: var(--radius); }
.tool-card:hover { border-color: var(--gold-300); }
.tool-card b { display: block; color: var(--navy-900); }
.tool-card small { display: block; color: var(--muted); }
.tool-card span { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--gold-600); }
.sheet-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sheet-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: #fff; border: 1px solid var(--line-warm); border-radius: var(--radius); }
.sheet-list b { display: block; color: var(--navy-900); }
.sheet-list small { display: block; font-size: 0.85rem; color: var(--muted); }
.sheet-list .btn { flex: none; }
.muted-small { font-size: 0.85rem; color: var(--muted); }

/* Lesson */
.member-back { margin: 0 0 4px; }
.lesson-meta { margin: 0 0 6px; font-size: 0.9rem; color: var(--gold-text); font-weight: 600; }
.lesson-title { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.video-wait { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; color: var(--ivory); }
.video-wait p { margin: 0; }
.account-page .video { margin: 18px 0; }
.tool-offer { margin: 18px 0; padding: 18px 20px; background: var(--cream); border-left: 3px solid var(--gold-500); border-radius: 0 var(--radius) var(--radius) 0; }
.tool-offer .btn { margin-top: 10px; }
.lesson-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 20px; }
.lesson-nav .btn { max-width: 100%; white-space: normal; text-align: left; }

/* ===== Calculators (sheet layout from Negosyo Tools) ===== */
.member-tool h1 { font-size: clamp(1.5rem, 4vw, 2rem); margin-top: 12px; }
.tk-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.tk-tabs { display: flex; flex-wrap: wrap; margin: 0 0 14px; }
.tk-tabs .seg-btn { flex: 1 1 auto; padding: 0 14px; font-size: 0.92rem; }
.tk-saved { margin: 0 0 12px; font-size: 0.88rem; color: var(--muted); }
.tk-legend { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; font-size: 0.82rem; color: var(--muted); }
.tk-legend i { display: inline-block; width: 18px; height: 18px; border-radius: 5px; border: 1px solid var(--line-warm); }
.tk-legend i.in { background: rgba(226, 190, 106, 0.2); border-color: var(--gold-300); }
.tk-legend i.calc { margin-left: 12px; }
.tk-card { min-width: 0; padding: 20px; background: #fff; border: 1px solid var(--line-warm); border-radius: 16px; }
.tk-card h2 { margin: 0 0 10px; font-size: 1.15rem; }
.tk-card h2::before, .member-tool h1::before, .member-head h1::before { display: none; }
.tk-sub { margin: 18px 0 10px; font-size: 1rem; }
.tk-help { font-size: 0.9rem; color: var(--muted); margin: 0 0 10px; }
.tk-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 10px; }
.tk-bar:not(:first-child) { margin-top: 20px; }
.tk-bar h2, .tk-bar h3 { margin: 0; }
.tk-bar h3 { font-size: 0.95rem; color: var(--muted); }
.tk-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-empty { padding: 22px 16px; text-align: center; border: 1px dashed var(--gold-300); border-radius: 12px; }
.tk-empty p { margin: 0 0 12px; color: var(--muted); }
.tk-empty .tk-tools { justify-content: center; }
.tk-title { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; font-weight: 700; }
.tk-title input { flex: 1; min-width: 0; min-height: 44px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--gold-300); background: rgba(226, 190, 106, 0.18); font: inherit; font-weight: 700; color: inherit; }
.tk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.tk-del { margin-left: auto; }
.tk-note { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #FFF8F7; border: 1px solid #F3C4BE; font-size: 0.9rem; }
.tk-toast { min-height: 1.4em; margin: 10px 0 0; font-weight: 600; color: var(--navy-700); }
.tk-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tk-sheet { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.tk-sheet th { padding: 8px 10px; font-size: 0.75rem; font-weight: 700; text-align: left; vertical-align: bottom; color: var(--muted); border-bottom: 2px solid var(--line-warm); background: #fff; }
.tk-sheet th.num { text-align: right; }
.tk-sheet th small { display: block; font-weight: 500; }
.tk-sheet td { height: 46px; padding: 0; border-bottom: 1px solid var(--line); background-color: #fff; }
.tk-sheet td.in { padding: 4px; }
.tk-sheet td input, .tk-sheet td select { display: block; width: 100%; min-width: 84px; height: 38px; padding: 0 8px; border: 1px solid var(--gold-300); border-radius: 7px; background: rgba(226, 190, 106, 0.16); font: inherit; color: inherit; }
.tk-sheet td input:focus, .tk-sheet td select:focus { outline: 2px solid var(--navy-700); outline-offset: 0; background: #fff; }
.tk-sheet td input[data-tk-num], .tk-sheet td.num { text-align: right; }
.tk-sheet td.calc { padding: 0 12px; white-space: nowrap; }
.tk-sheet td.lbl { padding: 0 10px; }
.tk-sheet tr.total td { font-weight: 800; border-top: 1px solid var(--line-warm); }
.tk-sheet tr.key td { background-color: var(--cream); font-weight: 800; font-size: 1.05rem; border-bottom: 0; color: var(--navy-900); }
.tk-sheet tr.key td:first-child { border-radius: 10px 0 0 10px; }
.tk-sheet tr.key td:nth-last-child(2) { border-radius: 0 10px 10px 0; }
.tk-sheet tr.none td { height: auto; padding: 14px 10px; text-align: center; color: var(--muted); }
.tk-sheet tr.none td.x { padding: 0; }
.tk-sheet tr.tap { cursor: pointer; }
.tk-sheet th.x, .tk-sheet td.x, .tk-sheet tr.key td.x, .tk-sheet tr.total td.x { width: 36px; min-width: 36px; padding: 0 0 0 6px; border: 0; background: transparent; }
.tk-sheet th:first-child, .tk-sheet td:first-child { position: sticky; left: 0; z-index: 1; }
.tk-sheet tbody tr:hover td:not(.x) { background-image: linear-gradient(rgba(201, 160, 74, 0.08), rgba(201, 160, 74, 0.08)); }
.tk-sheet tbody tr:focus-within td:not(.x) { background-image: linear-gradient(rgba(201, 160, 74, 0.12), rgba(201, 160, 74, 0.12)); }
.tk-x { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line-warm); background: #fff; color: var(--muted); font-size: 1rem; line-height: 1; cursor: pointer; }
.tk-overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(11, 37, 69, 0.45); }
.tk-dialog { width: min(480px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 22px; background: #fff; border-radius: 16px; }
.tk-dialog h2::before { display: none; }
.tk-pick { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tk-pick small { display: block; font-size: 0.82rem; color: var(--muted); }
.tk-dialog-actions { display: grid; gap: 8px; margin-top: 14px; }

@media (min-width: 768px) {
  .tool-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== Admin dashboard ===== */
.admin-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 14px; padding: 12px 16px; background: var(--cream); border: 1px dashed var(--gold-300); border-radius: var(--radius); }
.admin-panel b { margin-right: 6px; color: var(--navy-900); }
.admin-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; margin-left: 6px; padding: 0 6px; border-radius: 99px; font-size: 0.78rem; font-weight: 800; color: var(--navy-900); background: var(--gold-400); }
.admin-badge[hidden] { display: none; }
.admin-title { font-size: clamp(1.6rem, 4vw, 2.1rem); }
.admin-title::before { display: none; }
.admin-tabs { display: flex; flex-wrap: wrap; margin: 0 0 18px; }
.admin-tabs .seg-btn { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.metric { padding: 14px 16px; background: #fff; border: 1px solid var(--line-warm); border-radius: var(--radius); }
.metric span { display: block; font-size: 0.85rem; color: var(--muted); }
.metric b { display: block; margin-top: 4px; font-size: 1.6rem; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.admin-card { margin-bottom: 16px; padding: 20px; background: #fff; border: 1px solid var(--line-warm); border-radius: 16px; }
.admin-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 8px; }
.admin-bar h2 { margin: 0; font-size: 1.1rem; }
.admin-bar h2::before { display: none; }
.admin-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-tools .btn { min-height: 40px; padding: 0 12px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.admin-table th { padding: 8px 10px; font-size: 0.75rem; text-align: left; color: var(--muted); border-bottom: 2px solid var(--line-warm); }
.admin-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-dup { display: block; max-width: 240px; font-size: 0.78rem; font-weight: 600; color: #B42318; white-space: normal; }
.admin-add { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-add input { flex: 1 1 220px; min-height: 44px; padding: 0 12px; font: inherit; border: 1px solid var(--gold-300); border-radius: 10px; }
.admin-sum { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.admin-sum b { color: var(--navy-900); font-variant-numeric: tabular-nums; }
.admin-bars { display: grid; gap: 10px; }
.admin-line { display: flex; justify-content: space-between; gap: 12px; font-size: 0.92rem; }
.admin-line span { color: var(--muted); white-space: nowrap; }
.admin-meter { height: 8px; margin-top: 4px; background: var(--cream); border-radius: 99px; overflow: hidden; }
.admin-meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-600), var(--gold-400)); }
.admin-days { display: flex; align-items: flex-end; gap: 4px; height: 120px; }
.admin-days > div { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.admin-days i { display: block; width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--navy-700); }
.admin-days span { font-size: 0.7rem; color: var(--muted); }
.admin-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.admin-row.off .admin-row-main { opacity: 0.55; }
.admin-row-main { flex: 1; min-width: 180px; }
.admin-row-main b { display: block; color: var(--navy-900); }
.admin-row-main small { display: block; font-size: 0.85rem; color: var(--muted); }
.admin-hidden { font-weight: 700; }
.admin-form textarea { min-height: 88px; padding: 10px 12px; font: inherit; border: 1px solid var(--gold-300); border-radius: 10px; resize: vertical; }
.admin-form select { min-height: 48px; padding: 0 12px; font: inherit; border: 1px solid var(--gold-300); border-radius: 10px; background: #fff; }
.admin-form .field { margin-bottom: 12px; }
.admin-check { display: flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; }
.admin-check input { width: 20px; height: 20px; }
.admin-delete { color: #B42318; }

/* ===== Privacy & Terms, disclaimer ===== */
.legal-page h1 { font-size: clamp(1.8rem, 4.5vw, 2.4rem); }
.legal-page h2 { margin: 32px 0 10px; font-size: 1.25rem; }
.legal-page h2::before { width: 32px; margin-bottom: 12px; }
.legal-summary { margin: 24px 0 8px; padding: 20px 22px; background: var(--cream); border: 1px solid var(--line-warm); border-radius: var(--radius); }
.legal-summary h2 { margin-top: 0; }
.legal-summary h2::before { display: none; }
.legal-summary ul { margin: 0; padding-left: 20px; }
.legal-summary li { margin: 6px 0; }
.disclaimer { margin: 0 auto; padding-top: 24px; padding-bottom: 24px; font-size: 0.88rem; text-align: center; }
.disclaimer a { color: var(--muted); }
