/* Plain CSS, no framework. */
:root {
  --ink: #1f2328;
  --muted: #59636e;
  --line: #d1d9e0;
  --paper: #ffffff;
  --page: #f6f8fa;
  --accent: #0b6e4f;
  --warn: #9a3412;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page);
}

.top {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.top .brand { display: inline-flex; gap: 10px; align-items: center; font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.top .brand img { display: block; }
.top nav { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.top nav a[aria-current="page"] { color: var(--ink); font-weight: 600; text-decoration: none; }
.top nav form { display: inline; }

main { max-width: 860px; margin: 24px auto; padding: 0 16px; }

.bottom { max-width: 860px; margin: 40px auto 24px; padding: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.bottom p { margin: 8px 0 0; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 16px;
}

h1 { font-size: 1.5rem; margin: 0 0 12px; }
h2 { font-size: 1.15rem; margin: 0 0 8px; }

a { color: var(--accent); }

.button, button, input[type="submit"] {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

button.link {
  border: 0;
  background: none;
  color: var(--accent);
  padding: 0;
  text-decoration: underline;
}

label { display: block; font-weight: 600; margin-top: 12px; }
.hint { color: var(--muted); font-size: 0.9rem; margin: 2px 0 0; }
.choice { font-weight: normal; display: flex; gap: 8px; align-items: center; margin-top: 4px; }

/* Form fields (2026-10-28). Each field follows its label, so display: block puts it on its own line under the label.
   Only fields in main: the header's Sign out form and the checkbox rows (.choice) keep their own look. */
main input[type="text"],
main input[type="password"],
main select {
  display: block;
  width: 100%;
  max-width: 420px;
  margin-top: 4px;
  padding: 8px 10px;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}

main input[type="text"]:focus,
main input[type="password"]:focus,
main select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 110, 79, 0.2);
}

.flash { padding: 10px 14px; border-radius: 6px; background: #e6f4ea; border: 1px solid #a7d7b5; }
.flash-alert { background: #fdecea; border-color: #f5b5ab; color: var(--warn); }

.admin-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; justify-content: space-between; }

table { width: 100%; border-collapse: collapse; background: var(--paper); }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.85rem; color: var(--muted); }
.status-failed { color: var(--warn); font-weight: 600; }
/* A wide table scrolls inside this box. A shadow on the right edge says there is more: the shadow stays at the box's
   edge (scroll), and a cover in the box's colour sits at the end of the table (local) and hides it once the table is
   scrolled to its end, or when the table fits. On a narrow screen the scrollbar always shows. */
.table-wrap {
  overflow-x: auto;
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0), var(--paper) 60%) 100% 0 / 3rem 100% no-repeat local,
    linear-gradient(to right, rgba(31, 35, 40, 0), rgba(31, 35, 40, 0.18)) 100% 0 / 1.5rem 100% no-repeat scroll,
    var(--paper);
  scrollbar-color: #9aa4b2 transparent;
}

.table-wrap table { background: transparent; }

.table-wrap::-webkit-scrollbar {
  height: 10px;
}

.table-wrap::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background: #9aa4b2;
}

@media (max-width: 900px) {
  .table-wrap { overflow-x: scroll; }
}

/* Landing page (2026-10-28): "/" for signed-out visitors. Wider than the other pages. */
main:has(> .home) { max-width: 1040px; }
body:has(.home) .bottom { max-width: 1008px; }

.button-large { padding: 11px 20px; border-radius: 8px; font-weight: 600; }

.hero { display: grid; gap: 32px; align-items: center; margin: 16px 0 48px; }
.hero h1 { font-size: 2.1rem; line-height: 1.15; margin: 0 0 16px; }
.subhead { font-size: 1.15rem; color: #3d444d; margin: 0 0 24px; }
.hero-note { color: var(--muted); font-size: 0.95rem; margin: 12px 0 0; }

@media (min-width: 860px) {
  .hero { grid-template-columns: 1fr 1.1fr; gap: 48px; }
  .hero h1 { font-size: 2.6rem; }
}

/* The example: a Zoho CRM panel and a Mailchimp panel, side by side on a wide screen, stacked on a phone. */
.sync-example { margin: 0; }
.panels { display: grid; gap: 8px; align-items: stretch; }
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 2px 10px rgba(31, 35, 40, 0.06);
  font-size: 0.9rem;
}
.panel p { margin: 0; }
.panel-name { font-weight: 700; }
.panel-label { color: var(--muted); font-size: 0.8rem; margin-bottom: 8px !important; }
.row { padding: 8px; border-top: 1px solid var(--line); }
.row-changed { background: #fdf3e7; border-radius: 6px; border-top-color: transparent; }
.row-name { font-weight: 600; overflow-wrap: anywhere; }
.row-name span { display: block; font-weight: 400; color: var(--muted); font-size: 0.8rem; }
.flag, .status { display: inline-flex; gap: 6px; align-items: center; margin-top: 4px !important; font-size: 0.82rem; }
.box {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  color: #fff;
  font-size: 0.7rem;
  line-height: 1;
}
.flag-ok .box { background: var(--accent); }
.flag-stop .box { background: var(--warn); }
.flag-stop { color: var(--warn); font-weight: 600; }
.status { padding: 1px 8px; border-radius: 999px; font-weight: 600; }
.status-ok { background: #e6f4ea; color: var(--accent); }
.status-stop { background: #fdecea; color: var(--warn); }
.arrows { display: flex; justify-content: center; align-items: center; gap: 4px; color: var(--muted); font-size: 1.3rem; line-height: 1; }
.arrows .arrow { transform: rotate(90deg); }
.sync-example figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--muted); }

@media (min-width: 560px) {
  .panels { grid-template-columns: 1fr auto 1fr; }
  .arrows { flex-direction: column; }
  .arrows .arrow { transform: none; }
}

.home section { margin-bottom: 48px; }
.home h2 { font-size: 1.5rem; margin: 0 0 16px; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li {
  counter-increment: step;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
}
.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}
.steps h3 { font-size: 1.05rem; margin: 0 0 4px; }
.steps p { margin: 0; }

.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.points li { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.points strong { display: block; margin-bottom: 4px; font-size: 1.05rem; }

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

#faq { max-width: 680px; }
#faq h3 { font-size: 1.05rem; margin: 24px 0 4px; }
#faq p { margin: 0; }

.cta {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
}
.cta h2 { margin-bottom: 8px; }
.cta p { margin: 0 0 16px; }
.cta .cta-links { margin: 16px 0 0; color: var(--muted); font-size: 0.95rem; }

/* Pricing page (2026-10-28): one plan card, centered, with questions and answers under it. */
.pricing-head { text-align: center; margin: 16px 0 24px; }
.pricing-head h1 { font-size: 2.1rem; line-height: 1.15; margin: 0 0 8px; }
.pricing-head .subhead { margin: 0; }

.plan {
  max-width: 420px;
  margin: 0 auto 48px;
  padding: 28px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(31, 35, 40, 0.06);
  text-align: center;
}
.plan h2 { font-size: 1.15rem; margin: 0 0 12px; }
.plan p { margin: 0; }
.plan-price { font-size: 1.1rem; color: var(--muted); }
.plan-amount { font-size: 3rem; font-weight: 700; line-height: 1.1; color: var(--ink); }
.plan-unit { color: var(--muted); }
.plan-trial {
  display: inline-block;
  margin-top: 12px !important;
  padding: 2px 12px;
  border-radius: 999px;
  background: #e6f4ea;
  color: var(--accent);
  font-weight: 600;
}
.plan-features { list-style: none; padding: 20px 0 0; margin: 20px 0 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; text-align: left; }
.plan-features li { display: flex; gap: 10px; align-items: center; }
.plan-features .box { flex: none; background: var(--accent); }
.plan-button { display: block; }
.plan-note { margin-top: 10px !important; color: var(--muted); font-size: 0.9rem; }

.pricing-faq { margin: 0 auto 24px; }
.pricing-faq h2 { font-size: 1.5rem; margin: 0 0 8px; }
