/* gocofwe page for cafeterias in Naif. Colours: the app's light theme and the logo's four diamonds. */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --text-2: #475569;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --logo-blue: #1f9ddf;
  --logo-orange: #ff7a00;
  --logo-magenta: #d5169b;
  --logo-green: #45903b;
  --bad: #b91c1c;
  --good: #047857;
  --good-bg: #ecfdf5;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

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

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 640px; }

/* Top bar */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; color: var(--text); text-decoration: none; }
.brand-small { font-size: 15px; gap: 6px; color: var(--text-2); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #ffffff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--accent-hover); }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.btn-small { min-height: 44px; padding: 0 14px; font-size: 15px; white-space: nowrap; }

a:focus-visible, .btn:focus-visible, input:focus-visible, summary:focus-visible, .thanks:focus-visible {
  outline: 3px solid var(--logo-blue);
  outline-offset: 2px;
}

/* Hero */
.hero { padding: 40px 0 48px; }
.hero-grid { display: grid; gap: 32px; }
@media (min-width: 880px) {
  .hero { padding: 72px 0; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 48px; }
}
.eyebrow { margin: 0 0 12px; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
h1 { margin: 0 0 16px; font-size: clamp(32px, 6vw, 48px); line-height: 1.1; }
.lead { max-width: 34em; margin: 0 0 24px; font-size: 19px; color: var(--text-2); }
.small { margin: 10px 0 0; font-size: 14px; color: var(--muted); }

/* Example check */
.check {
  margin: 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--logo-blue);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.check figcaption { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-weight: 700; }
.chip {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 10px 6px; border-top: 1px solid var(--border); text-align: left; vertical-align: top; }
thead th { border-top: 0; font-size: 13px; color: var(--muted); }
tbody th { font-weight: 700; }
td.bad { color: var(--bad); }
td.good { color: var(--good); }
td.bad::before { content: "\2715\00a0"; }
td.good::before { content: "\2713\00a0"; }

/* Sections */
.section { padding: 56px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
h2 { margin: 0 0 24px; font-size: clamp(26px, 4vw, 34px); line-height: 1.2; }
h3 { margin: 12px 0 6px; font-size: 19px; line-height: 1.3; }

.steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.steps li:nth-child(1) { border-top: 4px solid var(--logo-blue); }
.steps li:nth-child(2) { border-top: 4px solid var(--logo-orange); }
.steps li:nth-child(3) { border-top: 4px solid var(--logo-magenta); }
.num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
}
.steps p, .benefit p { margin: 0; color: var(--text-2); }

.benefits { display: grid; gap: 24px; }
@media (min-width: 760px) { .benefits { grid-template-columns: repeat(3, 1fr); } }
.benefit { padding-left: 14px; border-left: 4px solid var(--logo-green); }
.benefit h3 { margin-top: 0; }

/* Questions */
details { padding: 0 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
details + details { margin-top: 10px; }
summary { min-height: 48px; padding: 14px 0; font-weight: 700; cursor: pointer; }
details p { margin: 0 0 16px; color: var(--text-2); }

/* Sign-up */
.book { background: var(--surface); border-top: 1px solid var(--border); }
.book p { color: var(--text-2); }
form { display: grid; gap: 8px; margin-top: 16px; }
label { margin-top: 8px; font-size: 15px; font-weight: 700; }
input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  font-family: inherit;
  font-size: 17px;
}
input[aria-invalid="true"] { border-color: var(--bad); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
form .btn { width: 100%; margin-top: 16px; }
.form-msg { min-height: 1.5em; margin: 8px 0 0; font-size: 15px; color: var(--text-2); }
.form-msg.error { color: var(--bad); }
.thanks {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  background: var(--good-bg);
  color: #065f46;
  font-weight: 700;
}

/* Footer */
.foot { padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.foot a { color: var(--text-2); }
