/* ===========================================================================
   Ask-IT — site styles
   One stylesheet for every page. Design tokens first, then layout, then
   components, then the responsive rules at the bottom.
   =========================================================================== */

:root {
  --ink:        #14212A;
  --ink-soft:   #37474F;
  --muted:      #4A5A61;
  --muted-2:    #5A6B72;
  --line:       #E2DCD1;
  --line-soft:  #EFEAE0;
  --ground:     #F6F3EC;
  --ground-2:   #ECE7DC;
  --panel:      #FFFFFF;
  --deep:       #0E2A31;
  --deep-2:     #08191E;
  --deep-line:  #2E4B52;
  --on-deep:    #F6F3EC;
  --on-deep-2:  #D5E0DE;
  --on-deep-3:  #A9BDBC;
  --accent:     #A8421E;
  --accent-ink: #8E3717;
  --teal:       #0B6B5F;
  --teal-dark:  #084F46;
  --mint:       #64C2A8;

  --gutter: 80px;
  --radius: 8px;
  --radius-lg: 10px;
  --maxw: 1280px;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.4px;
}

p { margin: 0; }

a { color: var(--teal); }
a:hover { color: var(--teal-dark); }

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

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--panel);
  color: var(--ink);
  padding: 12px 18px;
  z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }

/* --- layout --------------------------------------------------------------- */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding: 76px 0; }
.section--tight { padding: 56px 0; }
.section--ground2 { background: var(--ground-2); }
.section--panel { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--deep { background: var(--deep); color: var(--on-deep); }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stack { display: flex; flex-direction: column; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

.measure { max-width: 68ch; }

/* --- type ----------------------------------------------------------------- */

.t-hero    { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.06; letter-spacing: -1.2px; }
.t-page    { font-size: clamp(30px, 4vw, 46px); letter-spacing: -1px; }
.t-section { font-size: clamp(27px, 3.1vw, 40px); letter-spacing: -0.8px; }
.t-sub     { font-size: clamp(22px, 2.4vw, 34px); letter-spacing: -0.7px; }
.t-card    { font-size: 20px; letter-spacing: -0.2px; }
.t-small   { font-size: 18px; letter-spacing: -0.1px; }

.lede { font-size: 18px; line-height: 1.6; color: var(--muted); }
.lede--on-deep { color: var(--on-deep-2); }
.note { font-size: 14px; color: var(--muted-2); line-height: 1.55; }
.note--on-deep { color: var(--on-deep-3); }
.body-sm { font-size: 15px; line-height: 1.6; color: var(--muted); }

.eyebrow { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted-2); }

/* --- buttons -------------------------------------------------------------- */

.btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 16px 28px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  min-height: 48px;
}
.btn--primary { background: var(--accent); color: #FFFFFF; }
.btn--primary:hover { background: var(--accent-ink); color: #FFFFFF; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; font-weight: 600; }
.btn--ghost:hover { background: var(--ink); color: var(--ground); }
.btn--on-deep { border-color: #6E8A8C; color: var(--on-deep); background: transparent; font-weight: 500; }
.btn--on-deep:hover { background: rgba(255,255,255,.08); color: #FFFFFF; }
.btn--sm { padding: 13px 22px; min-height: 44px; }
.btn--block { display: block; width: 100%; }

/* --- top bar + nav -------------------------------------------------------- */

.topbar {
  background: var(--deep);
  color: var(--on-deep-3);
  font-size: 13px;
}
.topbar .wrap {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar a { color: var(--on-deep-3); text-decoration: none; }
.topbar a:hover { color: #FFFFFF; }
.topbar__right { display: flex; gap: 20px; align-items: center; }
.topbar__sep { color: #6E8A8C; }

.masthead { background: var(--panel); border-bottom: 1px solid var(--line); }
.masthead .wrap {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo { display: inline-flex; align-items: baseline; gap: 2px; text-decoration: none; color: var(--ink); }
.logo__word { font-family: var(--serif); font-size: 28px; font-weight: 600; letter-spacing: -0.5px; }
.logo__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; margin: 0 4px; }
.logo__tld { font-size: 13px; color: var(--muted-2); margin-left: 10px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--teal-dark); }
.nav a.is-current { font-weight: 600; border-bottom: 2px solid var(--accent); padding-bottom: 3px; }

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

/* disclosure menu, phone only — no JS */
.menu { display: none; }
.menu > summary {
  list-style: none;
  width: 48px; height: 48px;
  border: 1px solid #D9D2C6;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  background: var(--panel);
}
.menu > summary::-webkit-details-marker { display: none; }
.menu__panel {
  position: absolute;
  left: 0; right: 0;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 8px 20px 20px;
  z-index: 40;
  display: flex;
  flex-direction: column;
}
.menu__panel a {
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
  color: var(--ink);
  font-size: 17px;
}

/* --- hero ----------------------------------------------------------------- */

.hero { background: var(--deep); color: var(--on-deep); padding: 72px 0 76px; }
.hero__inner { display: flex; gap: 64px; align-items: flex-start; }
.hero__copy { flex: 1 1 auto; max-width: 620px; display: flex; flex-direction: column; gap: 26px; }
.hero__actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 6px; }

.pill {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  border: 1px solid #3E6168;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  color: #C9D6D4;
}
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); display: inline-block; }

.hero__card {
  flex: 0 0 396px;
  width: 396px;
  background: var(--panel);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero__card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }

/* --- forms ---------------------------------------------------------------- */

.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field-label { font-size: 14px; color: var(--ink-soft); font-weight: 500; }

input[type=text], input[type=email], input[type=tel], input[type=url],
select, textarea {
  width: 100%;
  border: 1px solid #D9D2C6;
  border-radius: 6px;
  padding: 13px 12px;
  font: inherit;
  font-size: 16px;
  background: var(--panel);
  color: var(--ink);
  min-height: 48px;
}
textarea { resize: vertical; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235A6B72' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
input[type=file] {
  border: 1px dashed #D9D2C6;
  border-radius: 6px;
  padding: 16px 12px;
  font: inherit;
  font-size: 15px;
  background: #FBFAF7;
  width: 100%;
}
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; margin: 0; flex: 0 0 auto; accent-color: var(--teal); }

::placeholder { color: #8A9499; opacity: 1; }

.choice { display: flex; align-items: center; gap: 10px; }
.choice label { font-size: 15px; }

.choice-box {
  border: 1px solid #D9D2C6;
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--panel);
}
.choice-box label { font-size: 15px; line-height: 1.4; }
.choice-box input { margin-top: 2px; }
.choice-box:focus-within { border-color: var(--teal); }

.consent {
  background: #F1F6F3;
  border: 1px solid #CFE3DA;
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.consent label { font-size: 14px; line-height: 1.6; color: #2C4A44; }

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.form-error {
  background: #FBEDE8;
  border: 1px solid #E8C3B4;
  color: #7A2D12;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 15px;
}
.form-ok {
  background: #EAF3EF;
  border: 1px solid #BFDCD1;
  color: #17453B;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 15px;
}

/* --- cards and panels ----------------------------------------------------- */

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card__icon { color: var(--teal); }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
}
.panel--ground2 { background: var(--ground-2); border-color: transparent; }
.panel--deep { background: var(--deep); border-color: var(--deep); color: var(--on-deep-2); }

/* --- stats ---------------------------------------------------------------- */

.stats { background: var(--panel); border-bottom: 1px solid var(--line); }
.stats .wrap { padding-top: 30px; padding-bottom: 30px; }
.stat__num { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--teal); }
.stat__label { font-size: 14px; color: var(--muted); }

/* --- numbered steps ------------------------------------------------------- */

.step__num { font-family: var(--serif); font-size: 34px; color: var(--accent); line-height: 1; }

/* --- plans ---------------------------------------------------------------- */

.plan { display: flex; flex-direction: column; gap: 16px; }
.plan__list { border-top: 1px solid var(--line-soft); padding-top: 16px; display: flex; flex-direction: column; gap: 9px; margin: 0; list-style: none; }
.plan__list li { font-size: 15px; color: var(--ink-soft); }
.plan--deep .plan__list { border-top-color: var(--deep-line); }
.plan--deep .plan__list li { color: var(--on-deep-2); }
.plan__foot { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.plan__price { font-size: 15px; color: var(--muted-2); }
.plan--deep .plan__price { color: var(--on-deep-3); }
.plan__price strong { font-family: var(--serif); font-size: 24px; color: var(--ink); font-weight: 600; }
.plan--deep .plan__price strong { color: #FFFFFF; }
.tag {
  background: var(--mint);
  color: #05241F;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

/* --- comparison table ----------------------------------------------------- */

.table-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.cmp { width: 100%; border-collapse: collapse; }
.cmp th, .cmp td {
  text-align: left;
  padding: 16px 18px;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-weight: 400;
}
.cmp thead th { background: var(--ground-2); vertical-align: bottom; }
.cmp thead th:first-child { width: 260px; }
.cmp__name { font-family: var(--serif); font-size: 22px; font-weight: 600; display: block; }
.cmp__sub { font-size: 14px; color: var(--muted); margin-top: 4px; display: block; }
.cmp .is-featured { background: var(--deep); color: var(--on-deep-2); }
.cmp .is-featured .cmp__name { color: #FFFFFF; }
.cmp .is-featured .cmp__sub { color: #C9D6D4; }
.cmp .is-featured strong { color: #FFFFFF; }
.cmp th[scope=row] { color: var(--muted-2); font-weight: 400; }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: none; }

/* --- FAQ ------------------------------------------------------------------ */

.faq { display: flex; flex-direction: column; }
.faq__item { border-top: 1px solid #D9D2C6; padding: 22px 0; display: flex; flex-direction: column; gap: 8px; }
.faq__item:last-child { border-bottom: 1px solid #D9D2C6; }

/* --- tags ----------------------------------------------------------------- */

.tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.tags li {
  border: 1px solid #D9D2C6;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14px;
  background: var(--panel);
}

/* --- testimonial ---------------------------------------------------------- */

.quote__text { font-family: var(--serif); font-size: 23px; line-height: 1.45; font-weight: 500; }

/* --- CTA band ------------------------------------------------------------- */

.cta { background: var(--deep); color: var(--on-deep); }
.cta .wrap { padding-top: 56px; padding-bottom: 56px; display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.cta__actions { display: flex; flex-direction: column; gap: 12px; width: 300px; flex: 0 0 auto; }

/* --- footer --------------------------------------------------------------- */

.site-footer { background: var(--deep-2); color: var(--on-deep-3); font-size: 14px; }
.site-footer .wrap { padding-top: 42px; padding-bottom: 42px; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.site-footer a { color: var(--on-deep-3); text-decoration: none; }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.site-footer h2 { font-family: var(--sans); font-size: 14px; color: #FFFFFF; font-weight: 600; letter-spacing: 0; }
.site-footer__col { display: flex; flex-direction: column; gap: 8px; }
.site-footer__brand { max-width: 320px; }
.site-footer__logo { font-family: var(--serif); font-size: 20px; color: #FFFFFF; }

/* --- sticky mobile call bar ----------------------------------------------- */

.callbar { display: none; }

/* ===========================================================================
   Responsive
   =========================================================================== */

@media (max-width: 1180px) {
  :root { --gutter: 48px; }
  .hero__inner { gap: 40px; }
  .hero__card { flex-basis: 350px; width: 350px; }
}

@media (max-width: 1000px) {
  :root { --gutter: 32px; }

  .nav { display: none; }
  .menu { display: block; position: relative; }
  .masthead .wrap { min-height: 72px; }

  .hero__inner { flex-direction: column; }
  .hero__copy { max-width: none; }
  .hero__card { width: 100%; flex-basis: auto; }

  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .cta .wrap { flex-direction: column; align-items: flex-start; gap: 28px; }
  .cta__actions { width: 100%; max-width: 360px; }

  .split { flex-direction: column; }
  .split > * { width: 100% !important; max-width: none !important; flex-basis: auto !important; }

  /* the comparison table scrolls sideways rather than squashing */
  .table-wrap { overflow-x: auto; }
  .cmp { min-width: 720px; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }
  body { font-size: 15px; }

  .section { padding: 48px 0; }
  .section--tight { padding: 36px 0; }
  .hero { padding: 36px 0 44px; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .grid { gap: 16px; }

  .topbar { display: none; }

  .hero__actions .btn { width: 100%; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .form-foot .btn, .form-foot button { width: 100%; }

  .site-footer .wrap { flex-direction: column; gap: 28px; }

  /* leave room for the fixed call bar */
  body { padding-bottom: 76px; }
  .callbar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: var(--deep-2);
    padding: 10px 20px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 50;
    border-top: 1px solid #12333C;
  }
  .callbar__label { font-size: 12px; color: var(--on-deep-3); display: block; }
  .callbar__num { font-family: var(--serif); font-size: 17px; color: #FFFFFF; text-decoration: none; }
  .callbar .btn { padding: 12px 18px; min-height: 44px; }
}

@media (max-width: 420px) {
  .logo__word { font-size: 24px; }
  .logo__tld { display: none; }
  .cmp thead th:first-child { width: 160px; }
}

/* --- motion / print ------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media print {
  .topbar, .masthead, .cta, .callbar, .hero__card { display: none; }
  body { background: #fff; color: #000; padding-bottom: 0; }
  .section { padding: 18px 0; }
}
