/* tabule.app: the public website. Static pages, one stylesheet, no build step. */

@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-latin-wdth-normal.woff2') format('woff2-variations'),
    url('/fonts/archivo-latin-wdth-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --green: #1f4e3d;
  --green-deep: #163a2d;
  --leaf: #2e7d58;
  --brass: #e8b44a;
  --brass-hover: #f0c565;
  --mist: #edf2ee;
  --paper: #ffffff;
  --text: #22322b;
  --muted: #586860;
  --rule: #d3dcd6;
  --on-green: #e3ece6;
  --on-green-quiet: #b7cbbf;
  --font: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
p,
ul,
ol,
figure {
  margin: 0;
}
a {
  color: var(--leaf);
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--green);
}
:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
  border-radius: 4px;
}
.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}
@media (min-width: 720px) {
  .wrap {
    width: min(100% - 3rem, var(--wrap));
  }
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  background: var(--brass);
  color: var(--green-deep);
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  font-weight: 650;
}
.skip:focus {
  top: 1rem;
}

/* ---- Type ------------------------------------------------------------- */
h1,
h2,
h3 {
  margin: 0;
  color: var(--green);
  font-stretch: 112%;
  letter-spacing: -0.015em;
  line-height: 1.05;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.4rem, 1.4rem + 3.9vw, 4.4rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.75rem, 1.25rem + 1.7vw, 2.6rem);
  font-weight: 760;
  line-height: 1.1;
}
h3 {
  font-size: 1.15rem;
  font-weight: 700;
  font-stretch: 104%;
  letter-spacing: 0;
  line-height: 1.3;
}
.lede {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.55;
  max-width: 34em;
}
.section-lede {
  margin-top: 0.75rem;
  color: var(--muted);
  max-width: 40em;
}

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 680;
  font-stretch: 106%;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.btn-brass {
  background: var(--brass);
  color: var(--green-deep);
}
.btn-brass:hover {
  background: var(--brass-hover);
  color: var(--green-deep);
}
.btn-green {
  background: var(--green);
  color: #fff;
}
.btn-green:hover {
  background: var(--green-deep);
  color: #fff;
}
.btn-outline {
  border-color: var(--green);
  color: var(--green);
  background: transparent;
}
.btn-outline:hover {
  background: var(--mist);
  color: var(--green);
}
.btn-quiet {
  border-color: rgba(227, 236, 230, 0.55);
  color: var(--on-green);
  background: transparent;
}
.btn-quiet:hover {
  border-color: var(--on-green);
  color: #fff;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---- Header ----------------------------------------------------------- */
.site-head {
  background: var(--green-deep);
  color: var(--on-green);
}
.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
  font-weight: 760;
  font-stretch: 116%;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}
.logo:hover {
  color: #fff;
}
.logo svg {
  width: 30px;
  height: 30px;
  flex: none;
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.4rem;
}
.nav a:not(.btn) {
  color: var(--on-green);
  text-decoration: none;
  font-weight: 560;
}
.nav a:not(.btn):hover,
.nav a[aria-current='page'] {
  color: #fff;
  text-decoration: underline;
}
.nav .btn {
  min-height: 42px;
  padding: 0.5rem 1.1rem;
}
@media (max-width: 560px) {
  .nav .wide-only {
    display: none;
  }
  .nav {
    gap: 0.9rem;
  }
}

/* ---- Hero ------------------------------------------------------------- */
.hero {
  background: var(--green-deep);
  color: var(--on-green);
  padding: 2.5rem 0 4.5rem;
}
.hero h1 {
  color: #fff;
}
.hero-grid {
  display: grid;
  gap: 2.75rem;
  align-items: center;
}
.hero-copy {
  display: grid;
  gap: 1.4rem;
}
.hero-note {
  color: var(--on-green-quiet);
  font-size: 0.95rem;
}
@media (min-width: 960px) {
  .hero {
    padding: 4rem 0 5.5rem;
  }
  .hero-grid {
    grid-template-columns: 5fr 6fr;
    gap: 3.5rem;
  }
}

/* The pretend restaurant website: its own colours and type, so the pop-up visibly belongs to it. */
.demo {
  display: grid;
  gap: 0.9rem;
}
.demo-frame {
  border-radius: 14px;
  overflow: hidden;
  background: #fbf6ef;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18), 0 24px 60px -24px rgba(0, 0, 0, 0.55);
}
.demo-url {
  padding: 0.55rem 1rem;
  background: #e9e1d6;
  color: #6d5b4c;
  font-size: 0.8rem;
  font-stretch: 100%;
}
.fig-site {
  font-family: Georgia, 'Times New Roman', serif;
  color: #3b1733;
}
.fig-nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.4rem;
  background: #5e2752;
  color: #fbeef3;
}
.fig-name {
  font-style: italic;
  font-size: 1.35rem;
}
.fig-links {
  font-size: 0.9rem;
  word-spacing: 0.9rem;
  opacity: 0.85;
}
.fig-hero {
  display: grid;
  gap: 1rem;
  justify-items: start;
  padding: 2.4rem 1.4rem 2.6rem;
  background:
    radial-gradient(circle at 88% 18%, rgba(208, 138, 85, 0.28) 0 22%, transparent 23%),
    radial-gradient(circle at 96% 72%, rgba(94, 39, 82, 0.14) 0 16%, transparent 17%),
    #fbf6ef;
}
.fig-line {
  font-size: clamp(1.45rem, 1.1rem + 1.3vw, 2.05rem);
  line-height: 1.2;
  font-style: italic;
  max-width: 17em;
}
.fig-hours {
  font-size: 0.98rem;
  color: #6b4a60;
}
.fig-book {
  margin-top: 0.4rem;
  min-height: 46px;
  padding: 0.65rem 1.5rem;
  border: 0;
  border-radius: 4px;
  background: #5e2752;
  color: #fff;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.fig-book:hover {
  background: #4a1d40;
}
.fig-book:focus-visible {
  outline-color: #d08a55;
}
.demo figcaption {
  color: var(--on-green-quiet);
  font-size: 0.95rem;
  max-width: 36em;
}
.demo figcaption strong {
  color: #fff;
  font-weight: 650;
}

/* ---- Sections --------------------------------------------------------- */
.section {
  padding: 4.5rem 0;
}
.section-mist {
  background: var(--mist);
}
@media (min-width: 960px) {
  .section {
    padding: 6rem 0;
  }
}

/* Getting started: a real sequence, so it is numbered. */
.steps {
  list-style: none;
  padding: 0;
  margin-top: 2.5rem;
  display: grid;
  gap: 2.25rem;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  display: grid;
  gap: 0.5rem;
  align-content: start;
}
.steps li::before {
  content: counter(step);
  font-size: 3.4rem;
  font-weight: 820;
  font-stretch: 125%;
  line-height: 1;
  color: var(--brass);
  -webkit-text-stroke: 1.5px var(--green);
}
.steps p {
  color: var(--muted);
}
@media (min-width: 820px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

/* What it does: three audiences, each a short list. */
.audiences {
  margin-top: 2.5rem;
  display: grid;
  gap: 2.5rem;
}
.audiences ul {
  list-style: none;
  padding: 0;
  margin-top: 0.75rem;
  border-top: 2px solid var(--green);
}
.audiences li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 900px) {
  .audiences {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.25rem;
  }
}

/* ---- Pricing ---------------------------------------------------------- */
.plans {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 760px) {
  .plans {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}
.plan {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 1rem;
  padding: 1.75rem;
  border: 2px solid var(--green);
  border-radius: 18px;
  background: var(--paper);
}
.plan-pro {
  background: var(--green);
  color: var(--on-green);
  border-color: var(--green);
}
.plan h2 {
  font-size: 1.15rem;
  font-weight: 700;
  font-stretch: 104%;
  letter-spacing: 0;
  line-height: 1.3;
}
.plan-pro h2,
.plan-pro h3 {
  color: #fff;
}
.plans.flush {
  margin-top: 0;
}
.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.6rem;
}
.amount {
  font-size: clamp(3rem, 2.4rem + 2vw, 4rem);
  font-weight: 820;
  font-stretch: 120%;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--green);
}
.plan-pro .amount {
  color: #fff;
}
.per {
  color: var(--muted);
}
.plan-pro .per {
  color: var(--on-green-quiet);
}
.plan ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  align-content: start;
}
.plan li {
  padding-left: 1.5rem;
  position: relative;
}
.plan li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 0.55em;
  width: 0.55rem;
  height: 0.3rem;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  color: var(--leaf);
}
.plan-pro li::before {
  color: var(--brass);
}
.plan .btn {
  justify-self: start;
}
.fine {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Plan comparison on the pricing page. */
.compare {
  margin-top: 2rem;
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}
.compare caption {
  text-align: left;
  font-weight: 700;
  color: var(--green);
  padding-bottom: 0.75rem;
  font-size: 1.15rem;
}
.compare th,
.compare td {
  text-align: left;
  vertical-align: top;
  padding: 0.8rem 0.75rem 0.8rem 0;
  border-bottom: 1px solid var(--rule);
}
.compare thead th {
  border-bottom: 2px solid var(--green);
  color: var(--green);
  font-weight: 700;
}
.compare tbody th {
  font-weight: 500;
}
.compare td {
  width: 24%;
}
.table-scroll {
  overflow-x: auto;
  margin-top: 3rem;
}

/* ---- Questions -------------------------------------------------------- */
.faq-list {
  margin-top: 2rem;
  max-width: 760px;
  border-top: 2px solid var(--green);
}
.faq-list details {
  border-bottom: 1px solid var(--rule);
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 2.5rem 1.1rem 0;
  position: relative;
  font-weight: 650;
  font-stretch: 104%;
  color: var(--green);
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: '';
  position: absolute;
  right: 0.4rem;
  top: 1.45rem;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(45deg);
  transition: transform 0.15s;
}
.faq-list details[open] summary::after {
  transform: rotate(225deg);
  top: 1.7rem;
}
@media (prefers-reduced-motion: reduce) {
  .faq-list summary::after {
    transition: none;
  }
}
.faq-list details p {
  padding: 0 0 1.2rem;
  max-width: 40em;
}

/* ---- Closing band and footer ------------------------------------------ */
.closing {
  background: var(--green-deep);
  color: var(--on-green);
  padding: 4rem 0;
}
.closing h2 {
  color: #fff;
}
.closing-row {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}
.closing a:not(.btn) {
  color: #fff;
}
@media (min-width: 860px) {
  .closing-row {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .closing-row .btn {
    grid-row: 1 / span 2;
    grid-column: 2;
  }
}
.site-foot {
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
  color: var(--muted);
}
.foot-grid {
  display: grid;
  gap: 1.5rem;
}
.site-foot .logo {
  color: var(--green);
  font-size: 1.15rem;
}
.site-foot .logo:hover {
  color: var(--green);
}
.foot-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.foot-links a {
  color: var(--text);
}
.company {
  max-width: 52em;
  font-size: 0.9rem;
}
@media (min-width: 860px) {
  .foot-grid {
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 3rem;
  }
  .foot-links {
    justify-content: flex-end;
  }
  .company {
    grid-column: 1 / -1;
  }
}

/* ---- Plain pages (about, pricing, not found) -------------------------- */
.page-head {
  background: var(--green-deep);
  color: var(--on-green);
  padding: 2.5rem 0 3.5rem;
}
.page-head h1 {
  color: #fff;
}
.page-head .lede {
  margin-top: 1rem;
}
.prose {
  display: grid;
  gap: 1.1rem;
  justify-items: start;
}
.prose h2 {
  margin-top: 1.5rem;
  font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem);
}
.prose p {
  max-width: 40em;
}
