/* ==========================================================================
   askrever.com — chalkboard campaign stylesheet
   Single-file, no frameworks. Implements spec sections 1 (tokens) and
   2 (class contract). All classes prefixed `ak-`.
   ========================================================================== */

/* === FONTS === */

@font-face {
  font-family: "Moderat";
  src: url("/assets/fonts/Moderat-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Moderat";
  src: url("/assets/fonts/Moderat-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Moderat";
  src: url("/assets/fonts/Moderat-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Moderat";
  src: url("/assets/fonts/Moderat-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Caveat";
  src: url("/assets/fonts/Caveat-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* === TOKENS === */

:root {
  --board: #2C3A41;
  --board-deep: #253239;
  --board-lift: #33424A;
  --chalk: #F2F5F6;
  --mist: #A7B6BD;
  --faint: #7C8B92;
  --sky: #7FC4F0;
  --rever: #3882F0;
  --rever-hov: #2E6FDB;
  --coral: #E2857E;
  --sun: #E3C25C;
  --line: rgba(242, 245, 246, .14);
  --chalk-line: rgba(242, 245, 246, .38);

  --container: 1160px;
  --section-pad: clamp(72px, 10vw, 128px);
  --radius-panel: 14px;
  --radius-button: 10px;
}

/* === RESET / BASE === */

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

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: var(--board);
  color: var(--chalk);
  font-family: "Moderat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: var(--sky);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

::selection {
  background: var(--sky);
  color: var(--board);
}

/* Global focus ring — never removed */
:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
}

h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.005em;
}

h3 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 500;
}

/* === LAYOUT / CHROME === */

.ak-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--rever);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 10px 0;
}

.ak-skip:focus {
  left: 0;
}

.ak-container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.ak-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(37, 50, 57, .92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.ak-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.ak-header__logo {
  display: inline-flex;
  align-items: center;
  height: 26px;
  color: var(--chalk);
  text-decoration: none;
}

.ak-header__logo:hover {
  text-decoration: none;
}

.ak-header__logo svg {
  height: 26px;
  width: auto;
  display: block;
}

.ak-header__cta {
  padding: 10px 20px;
  font-size: 14px;
}

.ak-header__ghost {
  padding: 10px 16px;
  font-size: 14px;
  margin-left: auto;
  margin-right: 12px;
}

.ak-footer {
  background: var(--board-deep);
  border-top: 1px solid var(--line);
  padding: 48px 0;
}

.ak-footer__grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.ak-footer__tagline {
  font-weight: 500;
  font-size: 20px;
  color: var(--chalk);
}

.ak-footer__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.ak-footer__logo svg {
  height: 24px;
  width: auto;
  display: block;
}

.ak-footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.ak-footer__links a {
  color: var(--mist);
  font-size: 15px;
  text-decoration: none;
}

.ak-footer__links a:hover {
  color: var(--sky);
}

.ak-footer__caption {
  margin-top: 32px;
  color: var(--mist);
  font-size: 14px;
}

/* === SHARED / UTILITIES === */

.ak-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--rever);
  color: #FFFFFF;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  border: none;
  border-radius: var(--radius-button);
  padding: 16px 32px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.ak-button:hover {
  background: var(--rever-hov);
  transform: translateY(-1px);
  text-decoration: none;
}

.ak-button:active {
  transform: translateY(0);
}

.ak-button--ghost {
  background: transparent;
  color: var(--chalk);
  border: 1.5px solid var(--chalk-line);
}

.ak-button--ghost:hover {
  background: transparent;
  border-color: var(--sky);
  color: var(--sky);
}

.ak-eyebrow {
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sky);
}

.ak-lead {
  font-size: 20px;
  line-height: 1.65;
  color: var(--mist);
  max-width: 640px;
}

.ak-num {
  font-weight: 700;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1.05;
  color: var(--chalk);
}

/* === HERO === */

.ak-hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: radial-gradient(120% 90% at 50% 0%, #35444C 0%, var(--board) 60%);
  padding-block: 96px;
}

.ak-hero__inner {
  width: 100%;
}

.ak-hero__eyebrow {
  margin-bottom: 24px;
}

.ak-hero__title {
  max-width: 820px;
}

.ak-hero__sub {
  margin-top: 24px;
}

.ak-hero__form {
  margin-top: 40px;
}

.ak-hero__input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 720px;
  padding: 8px 8px 8px 24px;
  border: 1.5px dashed var(--chalk-line);
  border-radius: var(--radius-panel);
  background: rgba(37, 50, 57, .55);
}

.ak-hero__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  padding: 12px 0;
  font-weight: 300;
  font-size: 20px;
  color: var(--chalk);
}

.ak-hero__input::placeholder {
  color: var(--faint);
}

.ak-hero__input:focus {
  outline: none;
}

/* Focus ring lands on the wrap when the inner input is focused */
.ak-hero__input-wrap:focus-within {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
}

.ak-hero__submit {
  flex-shrink: 0;
  white-space: nowrap;
}

.ak-hero__hint {
  font-family: "Caveat", cursive;
  font-size: 22px;
  color: var(--sky);
  margin-top: 16px;
  transform: rotate(-1deg);
  display: inline-block;
}

.ak-hero__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: 1.5px dashed var(--chalk-line);
  border-radius: 10px;
  background: transparent;
  color: var(--chalk);
  font-family: "Moderat", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  margin-top: 24px;
}

.ak-hero__secondary:hover {
  border-color: var(--sky);
  color: var(--sky);
  text-decoration: none;
}

.ak-trust {
  color: var(--mist);
  font-size: 15px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 64px;
}

/* Decorative chalk underline — SVG path inside <svg class="ak-underline"> */
.ak-underline {
  display: block;
  width: 100%;
  max-width: 420px;
  height: 14px;
  margin-top: 4px;
  overflow: visible;
}

.ak-underline path {
  fill: none;
  stroke: var(--sky);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 900ms ease-out 400ms;
}

.ak-underline.is-drawn path,
.ak-underline.is-drawn {
  stroke-dashoffset: 0;
}

.ak-underline.is-drawn path {
  stroke-dashoffset: 0;
}

/* === SECTIONS === */

.ak-section {
  padding-block: var(--section-pad);
}

.ak-section--deep {
  background: var(--board-deep);
}

.ak-section__head {
  max-width: 720px;
  margin-bottom: 48px;
}

.ak-section__head h2 + .ak-lead,
.ak-section__head .ak-lead {
  margin-top: 20px;
}

/* === PROBLEM (#problem) === */

.ak-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.ak-compare__panel {
  border: 1.5px dashed var(--chalk-line);
  border-radius: var(--radius-panel);
  background: rgba(37, 50, 57, .55);
  padding: 28px;
}

.ak-compare__title {
  font-weight: 500;
  font-size: 18px;
  margin-bottom: 16px;
}

.ak-compare__panel--before .ak-compare__title {
  color: var(--coral);
}

.ak-compare__panel--after .ak-compare__title {
  color: var(--sky);
}

.ak-compare ul {
  list-style: none;
}

.ak-compare li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--mist);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  padding-left: 26px;
}

.ak-compare li:last-child {
  border-bottom: none;
}

.ak-compare li::before {
  position: absolute;
  left: 0;
  top: 10px;
  font-weight: 500;
}

.ak-compare__panel--before li::before {
  content: "✕";
  color: var(--coral);
}

.ak-compare__panel--after li::before {
  content: "✓";
  color: var(--sky);
}

.ak-pullquote {
  font-family: "Caveat", cursive;
  font-size: 30px;
  line-height: 1.35;
  color: var(--sun);
  margin-top: 48px;
  max-width: 560px;
  transform: rotate(-0.5deg);
}

/* === ASK (#ask) === */

.ak-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.ak-tab {
  font-weight: 500;
  font-size: 15px;
  color: var(--mist);
  padding: 12px 20px;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 160ms ease;
}

.ak-tab:hover {
  color: var(--chalk);
}

.ak-tab[aria-selected="true"] {
  color: var(--chalk);
  box-shadow: inset 0 -2px 0 var(--sky);
}

.ak-askgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ak-askcard {
  padding: 0;
  border: 1.5px dashed var(--chalk-line);
  border-radius: var(--radius-panel);
  overflow: hidden;
  background: var(--board-lift);
  cursor: pointer;
  text-align: left;
  transition: border-color 200ms ease, transform 200ms ease;
}

.ak-askcard:hover {
  border-color: var(--sky);
  transform: translateY(-3px);
}

.ak-askcard img {
  width: 100%;
  height: auto;
  display: block;
}

.ak-askcard__label {
  padding: 14px 16px;
  font-size: 13px;
  color: var(--mist);
}

.ak-askfoot {
  font-family: "Caveat", cursive;
  font-size: 24px;
  color: var(--sky);
  margin-top: 40px;
}

.ak-askfoot a {
  color: var(--sky);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ak-askfoot a:hover {
  color: var(--chalk);
}

/* === ANSWER (#answer) === */

.ak-chatwrap {
  max-width: 760px;
  margin: 0 auto;
}

.ak-chat {
  background: var(--board-deep);
  border: 1.5px dashed var(--chalk-line);
  border-radius: var(--radius-panel);
  padding: 32px;
}

/* Panels keep their definition on deep sections too */
.ak-section--deep .ak-compare__panel,
.ak-section--deep .ak-chat {
  background: rgba(51, 66, 74, .45);
}

.ak-chat__badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--mist);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 16px;
}

.ak-chat__line {
  margin-bottom: 20px;
}

.ak-chat__who {
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 4px;
}

.ak-chat__line--you .ak-chat__who {
  color: var(--sky);
}

.ak-chat__line--rever .ak-chat__who {
  color: var(--chalk);
}

.ak-chat__text {
  font-size: 17px;
  line-height: 1.65;
}

.ak-chat__line--you .ak-chat__text {
  color: var(--mist);
}

.ak-chat__line--rever .ak-chat__text {
  color: var(--chalk);
}

.ak-chat__next {
  border-left: 3px solid var(--sun);
  padding-left: 16px;
  color: var(--sun);
}

.ak-includes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 56px;
}

/* The "Types of answers" heading follows the icon row */
.ak-includes + h3 {
  margin-top: 64px;
}

.ak-include {
  text-align: center;
}

.ak-include__icon {
  width: 28px;
  height: 28px;
  stroke: var(--sky);
  margin-bottom: 12px;
}

.ak-include__title {
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 6px;
}

.ak-include__text {
  font-size: 14px;
  color: var(--mist);
  line-height: 1.55;
}

.ak-answer-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
}

.ak-answer-table th {
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--sky);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.ak-answer-table td {
  font-size: 15px;
  line-height: 1.6;
  color: var(--mist);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.ak-answer-table td:first-child {
  color: var(--chalk);
}

/* === ACT (#act) === */

.ak-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.ak-saydo {
  position: relative;
  background: var(--board-lift);
  border-radius: 12px;
  padding: 20px 24px 20px 48px;
  border: 1px solid var(--line);
}

.ak-saydo::before {
  content: "↳";
  position: absolute;
  left: 20px;
  top: 22px;
  color: var(--faint);
}

.ak-saydo__say {
  font-family: "Caveat", cursive;
  font-size: 22px;
  line-height: 1.3;
  color: var(--sky);
}

.ak-saydo__do {
  font-size: 15px;
  color: var(--mist);
  margin-top: 8px;
  line-height: 1.6;
}

/* Loop diagram — inline SVG, chalk strokes drawn in on scroll */
.ak-loop {
  display: block;
  width: 100%;
  max-width: 900px;
  margin: 56px auto 0;
  overflow: visible;
}

.ak-loop rect,
.ak-loop path {
  fill: none;
  stroke: var(--chalk-line);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ak-loop .ak-loop__arrow {
  stroke: var(--chalk-line);
}

.ak-loop .ak-loop__node--active {
  stroke: var(--sky);
}

.ak-loop .ak-loop__arrow--learn {
  stroke: var(--sun);
}

.ak-loop text {
  font-family: "Caveat", cursive;
  font-size: 28px;
  fill: var(--chalk);
  stroke: none;
}

.ak-loop .ak-loop__caption {
  fill: var(--sun);
  font-size: 22px;
}

.ak-loop.ak-anim path {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
}

.ak-loop.ak-anim.is-visible path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1400ms ease 200ms;
}

.ak-loop-note {
  text-align: center;
  font-size: 15px;
  color: var(--mist);
  margin-top: 24px;
}

/* === SUPERPOWERS (#superpowers) === */

.ak-powers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ak-power {
  border: 1.5px solid var(--chalk-line);
  border-radius: var(--radius-panel);
  padding: 28px;
  background: var(--board-lift);
}

.ak-power--soon {
  border-style: dashed;
  border-color: rgba(227, 194, 92, .5);
}

.ak-power__status {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--sky);
}

.ak-power--soon .ak-power__status {
  color: var(--sun);
}

.ak-power__title {
  font-weight: 700;
  font-size: 20px;
  margin: 12px 0 8px;
}

.ak-power__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--mist);
}

.ak-vision {
  background: var(--board-deep);
  border-radius: var(--radius-panel);
  padding: 40px;
  margin-top: 48px;
  text-align: center;
}

.ak-vision p,
.ak-vision {
  font-family: "Caveat", cursive;
  font-size: 26px;
  line-height: 1.4;
  color: var(--chalk);
}

/* === PROOF (#proof) === */

.ak-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.ak-stat {
  /* number + label stack */
}

.ak-stat .ak-num {
  display: block;
}

.ak-stat__label {
  font-size: 15px;
  color: var(--mist);
  margin-top: 8px;
}

/* Quiet quote slot — intentionally minimal; real quote TBD */
.ak-quote {
  border: 1.5px dashed var(--chalk-line);
  border-radius: var(--radius-panel);
  background: rgba(37, 50, 57, .55);
  padding: 32px;
  margin-top: 56px;
}

.ak-quote blockquote {
  font-family: "Caveat", cursive;
  font-size: 28px;
  line-height: 1.4;
  color: var(--chalk);
}

.ak-quote figcaption,
.ak-quote__attribution {
  font-size: 14px;
  color: var(--mist);
  margin-top: 12px;
  font-family: "Moderat", sans-serif;
}

.ak-integrations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 56px;
  align-items: start;
}

.ak-integrations p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--mist);
  max-width: 560px;
}

/* === FAQ (#faq) === */

.ak-faq {
  max-width: 760px;
}

/* Extra separation before the FAQ starts a new topic */
.ak-integrations + h2 {
  margin-top: 96px;
}

.ak-faq__item {
  border-bottom: 1px solid var(--line);
}

.ak-faq__item summary {
  font-weight: 500;
  font-size: 17px;
  color: var(--chalk);
  padding: 20px 40px 20px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: color 160ms ease;
}

.ak-faq__item summary::-webkit-details-marker {
  display: none;
}

.ak-faq__item summary::marker {
  content: none;
}

.ak-faq__item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 300;
  color: var(--sky);
  transition: transform 200ms ease;
}

.ak-faq__item[open] summary::after {
  content: "×";
  transform: translateY(-50%) rotate(180deg);
}

.ak-faq__item summary:hover {
  color: var(--sky);
}

.ak-faq__item p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--mist);
  padding-bottom: 20px;
}

/* === FINAL CTA / FORM (#ask-form) === */

.ak-cta {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}

.ak-cta .ak-lead {
  margin: 20px auto 0;
}

.ak-form {
  border: 1.5px dashed var(--chalk-line);
  border-radius: var(--radius-panel);
  background: rgba(37, 50, 57, .55);
  padding: 32px;
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  text-align: left;
}

.ak-field {
  display: block;
}

.ak-field--full {
  grid-column: 1 / -1;
}

.ak-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--mist);
  margin-bottom: 8px;
}

.ak-field input,
.ak-field select,
.ak-field textarea {
  width: 100%;
  background: rgba(37, 50, 57, .7);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--chalk);
  font-weight: 300;
  font-size: 16px;
  font-family: "Moderat", sans-serif;
  transition: border-color 160ms ease;
}

.ak-field textarea {
  min-height: 120px;
  resize: vertical;
}

.ak-field input:focus,
.ak-field select:focus,
.ak-field textarea:focus {
  border-color: var(--rever);
}

.ak-field input:focus:not(:focus-visible),
.ak-field select:focus:not(:focus-visible),
.ak-field textarea:focus:not(:focus-visible) {
  outline: none;
}

/* Focus-visible ring still applies globally via :focus-visible */

.ak-form__submit {
  grid-column: 1 / -1;
  width: 100%;
}

.ak-form__note {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--mist);
  margin-top: 12px;
  text-align: center;
}

.ak-cta__alt {
  grid-column: 1 / -1;
  margin-top: 20px;
  font-size: 15px;
  color: var(--mist);
  text-align: center;
}

.ak-cta__alt a {
  color: var(--sky);
  text-decoration: underline;
}

.ak-form__success {
  display: none;
  grid-column: 1 / -1;
  text-align: center;
}

.ak-form.is-submitted .ak-form__success {
  display: block;
}

.ak-form__success p {
  font-size: 17px;
  color: var(--chalk);
  line-height: 1.65;
}

.ak-form__success-title {
  font-weight: 500;
  font-size: 24px;
  line-height: 1.4;
}

.ak-form__success-title::before {
  content: '✓';
  display: block;
  font-size: 34px;
  color: var(--sky);
  margin-bottom: 8px;
}

.ak-form__signoff {
  font-family: "Caveat", cursive;
  font-size: 24px;
  color: var(--sky);
  margin-top: 16px;
}

/* Honeypot — visually and programmatically hidden */
.ak-hp {
  display: none;
}

/* === RESPONSIVE === */

@media (max-width: 1024px) {
  .ak-askgrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ak-powers {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ak-container {
    padding-inline: 16px;
  }

  .ak-compare {
    grid-template-columns: 1fr;
  }

  .ak-actions {
    grid-template-columns: 1fr;
  }

  .ak-powers {
    grid-template-columns: 1fr;
  }

  .ak-stats {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ak-includes {
    grid-template-columns: repeat(2, 1fr);
  }

  .ak-integrations {
    grid-template-columns: 1fr;
  }

  .ak-form {
    grid-template-columns: 1fr;
  }

  .ak-footer__grid {
    flex-direction: column;
  }

  .ak-footer__right {
    align-items: flex-start;
  }

  .ak-hero {
    min-height: auto;
    padding-block: 96px;
  }
}

@media (max-width: 560px) {
  .ak-askgrid {
    grid-template-columns: 1fr;
  }

  .ak-hero__input-wrap {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 12px;
  }

  .ak-hero__input {
    width: 100%;
    padding: 8px 0;
  }

  .ak-hero__submit {
    width: 100%;
  }

  .ak-chat {
    padding: 24px 20px;
  }

  .ak-form {
    padding: 24px 20px;
  }
}

/* === REDUCED MOTION === */

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .ak-underline path {
    stroke-dashoffset: 0;
    transition: none;
  }

  .ak-loop rect,
  .ak-loop path {
    stroke-dashoffset: 0;
    transition: none;
  }
}
