/* aiala.ai styles. Brand library: sage-mist pages, sage-light accents, sage buttons, sage-deep main headers,
   black sub-headers, square corners.
   Headings: Rokkitt (free stand-in for the logo's Rockwell). Text: Roboto. */

@font-face {
  font-family: "Rokkitt";
  src: url("fonts/rokkitt-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("fonts/roboto-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --sage: #5b6f61;        /* buttons, hover accents, the a's */
  --sage-dark: #47574c;   /* links, button hover */
  --sage-deep: #29322c;   /* main headers, footer */
  --sage-light: #e1e7e3;  /* accent components */
  --sage-mist: #f2f5f3;   /* page background */
  --black: #000000;       /* sub-headers */
  --white: #ffffff;
  --ink: #1a1d1b;         /* body text */
  --ink-soft: #4f5752;    /* secondary text */
  --line: #d6dbd8;        /* hairlines */
  --on-deep-soft: #c8d0ca;/* quiet text on sage-deep (7.4:1) */
  --max: 1080px;
  --display: "Rokkitt", Rockwell, Georgia, serif;
  --text: "Roboto", Arial, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--sage-mist);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--sage-dark); text-underline-offset: 3px; }
a:hover { color: var(--sage); }

:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 2px; }
.sage :focus-visible, .deep :focus-visible { outline-color: var(--white); }

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

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

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -0.01em; color: var(--sage-deep); }
h3 { color: var(--black); }
h2 { font-size: clamp(32px, 3.8vw, 44px); }
h3 { font-size: 23px; line-height: 1.2; }
p { margin: 0; }

/* Buttons: square corners */
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-family: var(--text);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  padding: 12px 22px;
  border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--sage); color: var(--white); }
.btn-primary:hover { background: var(--sage-dark); color: var(--white); }
.btn-ghost { border-color: var(--sage-deep); color: var(--sage-deep); }
.btn-ghost:hover { background: var(--sage); border-color: var(--sage); color: var(--white); }
.btn-small { min-height: 42px; padding: 9px 16px; font-size: 15px; }

/* Icon buttons for email and social media: a 36 px sage tile with a white 24 px icon, like the buttons above.
   The tile sits in a 44 px tap area (4 px of clear padding), so it stays easy to tap on phones.
   Icons live in assets/icons/ in white. Brand logos (WhatsApp, and any added later) are the owner's
   official white files, used unchanged: never recolour or redraw them, only size them here. */
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 4px; background-color: var(--sage); background-clip: content-box; transition: background-color .15s ease; }
.icon-btn:hover { background-color: var(--sage-dark); }
.icon-btn:focus-visible { outline-offset: -2px; }
.icon-btn img { display: block; width: 24px; height: 24px; }
.icon-row { display: flex; flex-wrap: wrap; }

/* Sage fill and deep areas: every word white */
.sage { background: var(--sage); color: var(--white); }
.sage h1, .sage h2, .sage h3 { color: var(--white); }
.sage a:not(.btn) { color: var(--white); }
.sage .btn-primary { background: var(--white); color: var(--sage); }
.sage .btn-primary:hover { background: var(--sage-light); color: var(--sage-dark); }
.sage .btn-ghost { border-color: var(--white); color: var(--white); }
.sage .btn-ghost:hover { background: var(--white); color: var(--sage); }
.deep { background: var(--sage-deep); color: var(--on-deep-soft); }
.deep a { color: var(--white); }
.deep a:hover { color: var(--sage-light); }

/* Header */
.site-header { background: var(--sage-mist); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; }
.site-header .brand img { height: 36px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; font-size: 15px; color: var(--ink-soft); }
.nav a:not(.btn):hover { color: var(--sage); }

/* Hero */
.hero { padding: 88px 0 96px; }
.eyebrow { font-size: 16px; color: var(--ink-soft); margin-bottom: 20px; }
.hero h1 { font-size: clamp(44px, 7vw, 84px); line-height: 1.02; }
.morse { display: block; width: 390px; max-width: 100%; height: auto; margin: 32px 0 30px; }
.morse .ma { fill: var(--sage); }
.morse .mx { fill: var(--sage-deep); }
.lead { font-size: clamp(18px, 1.9vw, 21px); color: var(--ink-soft); max-width: 36em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 36px; }
.actions .alt { color: var(--ink-soft); font-size: 16px; }
.trust { margin-top: 28px; font-size: 15px; color: var(--ink-soft); display: flex; flex-wrap: wrap; row-gap: 4px; }
.trust span + span::before { content: "\00B7"; margin: 0 10px; color: var(--sage); }
.trust span { white-space: nowrap; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--sage-light); }
.section-head { margin-bottom: 44px; max-width: 40em; }

/* Three ways: square cards, offers marked with one a in Morse */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card {
  display: flex; flex-direction: column; gap: 16px;
  background: var(--white); border: 1px solid var(--line); padding: 30px 28px;
}
.card p { color: var(--ink-soft); }
.offers { list-style: none; margin: 0; padding: 0; font-size: 15px; color: var(--ink); font-weight: 500; }
.offers li { position: relative; padding-left: 36px; }
.offers li + li { margin-top: 6px; }
.offers li::before {
  content: ""; position: absolute; left: 0; top: 0.62em; width: 24px; height: 5px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46.4 10'%3E%3Ccircle cx='5' cy='5' r='5' fill='%235b6f61'/%3E%3Crect x='18.2' width='28.2' height='10' fill='%235b6f61'/%3E%3C/svg%3E") no-repeat left center / contain;
}
.card .more { margin-top: auto; font-weight: 500; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block; font-family: var(--display); font-weight: 600; font-size: 52px; line-height: 1; color: var(--sage); margin-bottom: 12px;
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--ink-soft); }
.vendor-line { margin-top: 48px; padding-top: 28px; border-top: 1px solid #c1c8c3; font-size: 22px; line-height: 1.35; font-family: var(--display); font-weight: 500; color: var(--black); max-width: 34em; }

/* Closing band: sage-light accent */
.closing { padding: 104px 0; background: var(--sage-light); }
.closing h2 { max-width: 20ch; }
.closing p { margin-top: 18px; font-size: 19px; max-width: 34em; }
.closing .morse { width: 300px; margin: 0 0 28px; }

/* Footer: sage-deep */
.site-footer { padding: 56px 0 44px; font-size: 14px; }
.site-footer .top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.site-footer .brand img { width: 240px; height: auto; }
.legal { margin-top: 32px; max-width: 60em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; }

/* Simple text pages */
.page { padding: 72px 0 96px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(36px, 4.8vw, 50px); margin-bottom: 10px; }
.page .updated { color: var(--ink-soft); font-size: 15px; margin-bottom: 36px; }
.page h2 { font-size: 26px; margin: 36px 0 10px; }
.page p + p { margin-top: 12px; }

/* Small screens */
@media (max-width: 880px) {
  .cards, .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .nav a:not(.btn) { display: none; }
  .site-header .brand img { height: 32px; }
  .hero { padding: 60px 0 72px; }
  .section { padding: 72px 0; }
  .closing { padding: 80px 0; }
  .wrap { padding: 0 20px; }
}
