/*
 * Autonautics Lite's public website. Lite's theme (docs/design/README.md): brand red #C22D22, ink #111111,
 * page grey #F2F2F2, 4 px corners on cards and 3 px on buttons. Lato is served from this site, never from
 * Google Fonts; its licence, SIL OFL 1.1 (approved on #35), sits beside the files as fonts/OFL.txt.
 * Two weights only, 400 and 700, to keep the pages light. The accented-letter part downloads only when a
 * page needs it.
 */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('/assets/fonts/lato-latin-ext-400-normal.8b9fc973.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('/assets/fonts/lato-latin-400-normal.918b7dc3.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('/assets/fonts/lato-latin-ext-700-normal.3a5797f4.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('/assets/fonts/lato-latin-700-normal.c447dd76.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --brand: #c22d22;
  --brand-dark: #a3241b;
  --ink: #111111;
  --muted: #595959;
  --line: #d9d9d9;
  --page: #f2f2f2;
  --white: #ffffff;
  --wrap: 1120px;
}

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

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

body {
  margin: 0;
  font-family: 'Lato', Calibri, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.125rem);
}

h3,
.h3 {
  font-size: 1.1875rem;
}

p {
  margin: 0 0 1em;
}

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

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

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--white);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 10;
}

.skip:focus {
  left: 8px;
  top: 8px;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid var(--brand);
  border-radius: 3px;
  background: var(--brand);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.button:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: var(--white);
}

.button-outline {
  background: transparent;
  border-color: var(--white);
}

.button-outline:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

.button-small {
  min-height: 40px;
  padding: 0 16px;
}

/* Header */

.site-header {
  background: var(--ink);
  color: var(--white);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo:hover {
  color: var(--white);
}

.logo-wordmark {
  display: block;
  width: 220px;
  height: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.header-nav a {
  color: var(--white);
  text-decoration: none;
  padding: 10px 10px;
  border-radius: 3px;
  white-space: nowrap;
}

.header-nav a:hover,
.header-nav a[aria-current='page'] {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Narrow screens: the logo, Sign in and Get started on the first row; the page links on a second row. */
@media (max-width: 860px) {
  .header-row {
    flex-wrap: wrap;
    gap: 0 12px;
    padding-top: 10px;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    margin: 0 0 4px -8px;
  }

  .header-nav a {
    padding: 8px;
  }
}

/* A phone: the wordmark has the first row to itself, so it stays readable beside nothing. */
@media (max-width: 480px) {
  .logo {
    flex-basis: 100%;
    padding: 6px 0 10px;
  }

  .logo-wordmark {
    width: 180px;
  }
}

/* Hero: the poster at once, the video over it later on wide screens (hero.js), under a dark shade so the
   white text passes 4.5:1 on every frame. */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  min-height: min(78vh, 640px);
  display: flex;
  align-items: center;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-video.is-playing {
  opacity: 1;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.8) 0%, rgba(17, 17, 17, 0.6) 55%, rgba(17, 17, 17, 0.45) 100%);
}

.hero-text {
  position: relative;
  padding-top: 72px;
  padding-bottom: 72px;
  width: 100%;
}

.hero-text > * {
  max-width: 640px;
}

.eyebrow {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.875rem;
  color: #f0b4ae;
}

.pitch {
  font-size: clamp(1.125rem, 2.6vw, 1.375rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-pause {
  position: absolute;
  z-index: 1; /* above the shade, which comes later in the page */
  right: 16px;
  bottom: 16px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 3px;
  background: rgba(17, 17, 17, 0.6);
  color: var(--white);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .hero-video,
  .hero-pause {
    display: none;
  }
}

/* Sections */

.section {
  padding: 64px 0;
}

.section-grey {
  background: var(--page);
}

.lead {
  font-size: 1.1875rem;
  color: var(--muted);
  max-width: 720px;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
  border-radius: 4px;
  padding: 24px;
}

.tile p {
  margin: 0;
  color: var(--muted);
}

.more {
  font-weight: 700;
  margin: 28px 0 0;
}

.split {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

.price-line {
  font-size: clamp(1.375rem, 3.4vw, 1.75rem);
  font-weight: 700;
  margin: 0 0 8px;
}

.price-line .amount {
  color: var(--brand);
}

.checks {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checks li {
  position: relative;
  padding: 6px 0 6px 30px;
}

.checks li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 14px;
  width: 12px;
  height: 7px;
  border-left: 3px solid var(--brand);
  border-bottom: 3px solid var(--brand);
  transform: rotate(-45deg);
}

/* Features page */

.page-head {
  background: var(--ink);
  color: var(--white);
  padding: 56px 0 48px;
}

.page-head .lead {
  color: #d9d9d9;
  margin: 0;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.later {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 3px;
  background: var(--page);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
  vertical-align: middle;
  white-space: nowrap;
}

.later-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px 20px;
}

.later-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

/* Pricing page */

.plan {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 6px solid var(--brand);
  border-radius: 4px;
  padding: 32px 24px;
  max-width: 760px;
}

.plan .price {
  font-size: clamp(2.25rem, 7vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}

.plan .per {
  font-size: 1.1875rem;
  font-weight: 700;
  margin: 4px 0 4px;
}

.plan .included {
  font-size: 1.1875rem;
  margin: 0 0 12px;
}

.plan .addons {
  color: var(--muted);
  margin: 0 0 24px;
}

.plan h3 {
  font-size: 1.25rem;
  margin: 24px 0 8px;
}

.plan-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 8px;
}

.small-print {
  color: var(--muted);
  max-width: 760px;
  margin-top: 24px;
}

/* Closing band: one line and a button */

.band {
  border-top: 1px solid var(--line);
}

.band-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.band-row h2 {
  margin: 0;
}

/* Contact page */

.notice {
  max-width: 760px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 4px;
  background: var(--page);
}

.demo-form fieldset {
  border: 0;
  padding: 0;
  margin: 24px 0 0;
  max-width: 760px;
  display: grid;
  gap: 18px 20px;
}

@media (min-width: 700px) {
  .demo-form fieldset {
    grid-template-columns: 1fr 1fr;
  }

  .field-wide {
    grid-column: 1 / -1;
  }
}

.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #8c8c8c;
  border-radius: 3px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.field textarea {
  resize: vertical;
}

.hint {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* The honeypot: out of sight and out of the tab order; people never fill it, some robots do. */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cf-turnstile {
  min-height: 65px;
}

.form-note {
  color: var(--muted);
  margin: 0;
}

.demo-form button {
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.demo-form button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.form-status {
  margin: 0;
  padding: 12px 16px;
  border-radius: 4px;
  border-left: 4px solid var(--brand);
  background: var(--page);
  font-weight: 700;
}

.form-status.is-sent {
  border-left-color: #2e7d32;
}

.field-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.field-check input {
  width: 20px;
  min-height: 20px;
  margin-top: 4px;
  flex: none;
}

.field-check label {
  font-weight: 400;
  margin: 0;
}

.demo-form fieldset:disabled .button {
  cursor: not-allowed;
  opacity: 0.75;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Privacy policy and terms */

.legal .wrap > * {
  max-width: 760px;
}

/* Long addresses, such as yourcompany.lite.autonautics.in, wrap on a phone. */
.legal code {
  overflow-wrap: anywhere;
}

.legal h2 {
  font-size: 1.375rem;
  margin-top: 36px;
}

.updated {
  color: var(--muted);
}

.legal ul,
.legal ol {
  padding-left: 1.5em;
}

.legal li + li {
  margin-top: 6px;
}

/* Wide tables scroll inside their box on a phone, never the page. */
.table-wrap {
  overflow-x: auto;
  margin-bottom: 16px;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.legal th,
.legal td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal thead th,
.legal tbody th {
  background: var(--page);
}

.placeholder {
  background: #fff4cc;
  color: #5c4500;
  font-weight: 700;
}

/* 404 */

.not-found {
  padding: 96px 0;
}

/* Footer: Lite's links first; the Core sign-in apart, smaller and muted, so a Lite user never takes it for
   Lite's own Sign in. */

.site-footer {
  background: var(--ink);
  color: #d9d9d9;
  padding: 40px 0 28px;
  font-size: 0.9375rem;
}

.site-footer a {
  color: var(--white);
}

.site-footer p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-brand {
  font-weight: 700;
}

.site-footer .footer-core {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid #3a3a3a;
  font-size: 0.8125rem;
  color: #a6a6a6;
  gap: 6px;
}

.site-footer .footer-core a {
  color: #d9d9d9;
}

.leaves {
  color: #a6a6a6;
}
