/* Augusta Automations
   One family (Archivo, variable weight and width), one brand green, no shadows. */

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

:root {
  --paper: #ffffff;
  --ink: #14211b;
  --muted: #59665f;
  --rule: #dce3de;
  --green: #0f7a4a;
  --green-dark: #0b5e39;
  --pine: #0a3d27;
  --mint: #cfe8da;
  --wash: #f3f7f4;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

*, *::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;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

h1, h2, h3 { margin: 0; color: inherit; font-weight: 680; }
h1 {
  font-size: clamp(2.8rem, 8.2vw, 7rem);
  line-height: .96;
  font-weight: 700;
  font-stretch: 116%;
  letter-spacing: -0.038em;
}
.nowrap { white-space: nowrap; }
h2 {
  font-size: clamp(1.75rem, 2.9vw, 2.5rem);
  line-height: 1.1;
  font-stretch: 110%;
  letter-spacing: -0.022em;
}
h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 650;
  font-stretch: 106%;
  letter-spacing: -0.01em;
}
p { margin: 0; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--ink); color: #fff; padding: 8px 14px; }
.skip:focus { left: 8px; }

/* Buttons and links */
.button {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  font-stretch: 104%;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  padding: 1em 1.4em;
  border-radius: 6px;
  transition: background-color .15s;
}
.button:hover { background: var(--green-dark); color: #fff; }
.button-sm { font-size: .9375rem; padding: .7em 1.05em; }
.button-white { background: #fff; color: var(--green); }
.button-white:hover { background: var(--mint); color: var(--pine); }
.textlink { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 2px; text-underline-offset: .3em; }
.textlink:hover { color: var(--ink); text-decoration-color: var(--green); }

/* Masthead */
.bar { display: flex; align-items: center; gap: 40px; height: 88px; }
.logo { margin-right: auto; }
.logo img { height: 30px; width: auto; }
.nav { display: flex; gap: 32px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 1rem; font-weight: 500; }
.nav a:hover { color: var(--green); }

/* Hero */
.hero { padding: 56px 0 120px; }
.hero-row {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  margin-top: 64px;
  align-items: start;
}
.hero-intro { padding-top: 8px; }
.lede { font-size: 1.375rem; line-height: 1.5; max-width: 26em; }
.for { color: var(--muted); margin-top: 20px; max-width: 30em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 40px; }

/* Demo: the one moving part of the page */
.demo {
  margin: 0;
  background: var(--green);
  color: #fff;
  border-radius: 4px;
  padding: 36px 40px 28px;
}
.demo-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.22); }
.demo-name { font-weight: 650; font-stretch: 106%; }
.demo-sub { font-size: .875rem; color: var(--mint); }
.thread { display: flex; flex-direction: column; padding: 24px 0 8px; min-height: 380px; }
.msg {
  max-width: 78%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 1rem;
  line-height: 1.45;
  margin-bottom: 10px;
}
.them { align-self: flex-start; background: #fff; color: var(--ink); border-bottom-left-radius: 5px; }
.you { align-self: flex-end; background: var(--pine); color: #fff; border-bottom-right-radius: 5px; }
.typing {
  align-self: flex-start;
  display: flex; gap: 5px;
  background: #fff;
  border-radius: 18px; border-bottom-left-radius: 5px;
  padding: 0 16px;
  max-height: 0; overflow: hidden; opacity: 0;
}
.typing span { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.booked {
  align-self: center;
  margin-top: 10px;
  font-size: .875rem;
  color: var(--mint);
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.22);
}
.demo figcaption { font-size: .8125rem; color: var(--mint); margin-top: 14px; }

@media (prefers-reduced-motion: no-preference) {
  .msg, .booked { animation: appear .35s ease-out both; }
  .m1 { animation-delay: 1.7s; }
  .m2 { animation-delay: 2.9s; }
  .m3 { animation-delay: 4.7s; }
  .m4 { animation-delay: 5.9s; }
  .m5 { animation-delay: 6.7s; }
  .typing { animation: typing 1.1s ease both; }
  .t1 { animation-delay: .6s; }
  .t2 { animation-delay: 3.6s; }
  .typing span { animation: pulse 1s ease-in-out infinite; }
  .typing span:nth-child(2) { animation-delay: .15s; }
  .typing span:nth-child(3) { animation-delay: .3s; }
}
@media (prefers-reduced-motion: reduce) { .typing { display: none; } }
@keyframes appear { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes typing {
  0%   { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0; }
  12%  { opacity: 1; max-height: 44px; padding-top: 14px; padding-bottom: 14px; margin-bottom: 10px; }
  88%  { opacity: 1; max-height: 44px; padding-top: 14px; padding-bottom: 14px; margin-bottom: 10px; }
  100% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0; }
}
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* Statement */
.statement { padding: 0 0 120px; }
.big {
  font-size: clamp(1.6rem, 3.1vw, 2.6rem);
  line-height: 1.22;
  font-weight: 520;
  font-stretch: 104%;
  letter-spacing: -0.018em;
  max-width: 24em;
}
.big sup { font-size: .45em; vertical-align: top; position: relative; top: .25em; margin-left: .1em; }
.big sup a { text-decoration: none; }
.note { color: var(--muted); font-size: .875rem; margin-top: 28px; max-width: 46em; }
.note a { color: var(--muted); }

/* Sidehead sections */
.split { display: grid; grid-template-columns: 4fr 8fr; gap: 64px; }
.block .split { border-top: 1px solid var(--ink); padding-top: 32px; }
.block { padding: 0 0 120px; }
.side h2 { max-width: 12em; }
.side p { color: var(--muted); margin-top: 16px; max-width: 24em; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 72px 1fr; gap: 0 24px; padding: 28px 0; border-top: 1px solid var(--rule); }
.steps li:first-child { border-top: 0; padding-top: 4px; }
.num { font-size: 3rem; line-height: 1; font-weight: 700; font-stretch: 118%; color: var(--green); letter-spacing: -0.04em; }
.steps p { color: var(--muted); margin-top: 8px; max-width: 36em; }

/* Audit */
.audit { background: var(--green); color: #fff; padding: 112px 0; margin-bottom: 120px; }
.audit .side p { color: var(--mint); }
.audit .button { margin-top: 36px; }
.audit .side .fine { font-size: .875rem; margin-top: 16px; }
.days { list-style: none; margin: 0; padding: 0; }
.days li { padding: 24px 0; border-top: 1px solid rgba(255,255,255,.28); display: grid; grid-template-columns: 180px 1fr; gap: 24px; }
.days li:first-child { border-top: 0; padding-top: 6px; }
.days p { color: #e8f4ed; max-width: 34em; }

/* Points */
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 48px; }
.points p { color: var(--muted); margin-top: 8px; }

/* FAQ */
.faq details { border-top: 1px solid var(--rule); }
.faq details:first-child { border-top: 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0;
  font-size: 1.1875rem; font-weight: 600; font-stretch: 104%;
}
.faq details:first-child summary { padding-top: 4px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--green); }
.faq details p { color: var(--muted); padding-bottom: 24px; max-width: 38em; }

/* Contact */
.email { font-size: clamp(1.5rem, 3.4vw, 2.6rem); font-weight: 600; font-stretch: 106%; letter-spacing: -0.02em; color: var(--ink); text-decoration-color: var(--green); text-decoration-thickness: 3px; text-underline-offset: .2em; overflow-wrap: anywhere; }
.email:hover { color: var(--green); }
.area { color: var(--muted); margin-top: 16px; }

/* Footer */
.footer { border-top: 1px solid var(--rule); padding: 36px 0 44px; font-size: .9375rem; }
.footer-row { display: flex; align-items: center; gap: 16px 36px; flex-wrap: wrap; }
.footer-logo { height: 22px; width: auto; }
.footer-row > :first-child { margin-right: auto; }
.footer nav { display: flex; gap: 28px; }
.footer nav a { color: var(--ink); text-decoration: none; }
.footer nav a:hover { color: var(--green); }
.copy { color: var(--muted); }

/* Legal pages */
.legal { padding: 48px 0 120px; }
.legal .wrap { max-width: 860px; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); max-width: none; }
.legal h2 { font-size: 1.5rem; margin: 2.2em 0 .6em; font-stretch: 106%; }
.legal p, .legal ul, .legal dl { margin: 0 0 1em; }
.legal p, .legal li, .legal dd { color: #2b3832; }
.legal .effective { color: var(--muted); margin: 16px 0 40px; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .5em; }
.legal .callout { border-left: 3px solid var(--green); padding: 4px 0 4px 22px; margin: 1.4em 0; }
.legal .callout p { margin: 0; color: var(--ink); }
.legal dl { display: grid; grid-template-columns: 190px 1fr; gap: 14px 24px; }
.legal dt { font-weight: 650; color: var(--ink); }
.legal dd { margin: 0; }

.notfound { padding: 120px 0 160px; }
.notfound p { color: var(--muted); margin: 20px 0 36px; }

/* Responsive */
@media (max-width: 1040px) {
  .hero-row { grid-template-columns: 1fr; gap: 56px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .nav { display: none; }
  .demo { max-width: 640px; }
}
@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .wrap { padding: 0 20px; }
  .bar { height: 72px; gap: 16px; }
  .logo img { height: 24px; }
  .bar .button-sm { display: none; }
  .br-wide { display: none; }
  .email { font-size: 1.2rem; }
  .hero { padding: 32px 0 80px; }
  .hero-row { margin-top: 36px; gap: 44px; }
  .lede { font-size: 1.1875rem; }
  .actions .button { width: 100%; text-align: center; }
  .demo { padding: 24px 18px 20px; margin: 0 -20px; border-radius: 0; }
  .thread { min-height: 0; }
  .msg { max-width: 86%; font-size: .9375rem; }
  .statement, .block { padding-bottom: 80px; }
  .audit { padding: 72px 0; margin-bottom: 80px; }
  .steps li { grid-template-columns: 44px 1fr; gap: 0 16px; }
  .num { font-size: 2.25rem; }
  .days li { grid-template-columns: 1fr; gap: 6px; }
  .points { grid-template-columns: 1fr; gap: 28px; }
  .footer-logo { height: 18px; }
  .legal dl { grid-template-columns: 1fr; gap: 2px; }
  .legal dd { margin-bottom: 14px; }
}
