/* Aran AI home page. Values follow the design reference in design/Main.dc.html. */

:root {
  --green: #01472F;
  --ink: #161616;
  --ink-2: #393939;
  --muted: #525252;
  --line: #E0E0E0;
  --line-2: #C6C6C6;
  --surface: #F4F4F4;
  --mint: #8FD9B8;
  --white: #FFFFFF;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  color-scheme: light;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--green); }
a:hover { color: #000000; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.section--dark :focus-visible { outline-color: var(--mint); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  background: var(--green);
  color: var(--white);
  padding: 10px 16px;
  z-index: 10;
}
.skip-link:focus { top: 8px; }
.skip-link:hover { color: var(--white); }

/* Layout */

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 88px 32px;
}
.wrap--96 { padding-top: 96px; padding-bottom: 96px; }
.wrap--72 { padding-top: 72px; padding-bottom: 72px; }

.stack { display: flex; flex-direction: column; }
.stack--48 { gap: 48px; }
.stack--56 { gap: 56px; }

.split { display: flex; flex-wrap: wrap; gap: 24px 64px; }
.split--contact { gap: 40px 64px; }
.split__body {
  flex: 4 1 600px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.split__body--20 { gap: 20px; }
.split__body--32 { gap: 32px; }
.split__body--16 { gap: 16px; }

.section--ruled { border-top: 1px solid var(--line); }
.section--grey { background: var(--surface); }
.section--dark { background: var(--ink); color: var(--white); }

/* Type */

.h2 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.h2--small {
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.eyebrow { margin: 0; flex: 1 1 200px; font-size: 15px; color: var(--muted); }
.eyebrow-group { flex: 1 1 200px; display: flex; flex-direction: column; gap: 8px; }
.eyebrow-group > * { flex: none; }
.section--dark .eyebrow { color: var(--line-2); }

.mono { margin: 0; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.mono--green { color: var(--green); }
.mono--mint { color: var(--mint); }

.text-2 { margin: 0; color: var(--ink-2); }
.section--dark .text-2 { color: var(--line-2); }
.measure { max-width: 720px; }

.tamil { font-family: 'Noto Sans Tamil', sans-serif; }

/* Buttons */

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

.btn {
  display: inline-block;
  padding: 14px 24px;
  font-weight: 500;
  text-decoration: none;
}
.btn--primary, .btn--primary:hover { background: var(--green); color: var(--white); }
.btn--outline, .btn--outline:hover { color: var(--ink); padding: 13px 23px; border: 1px solid var(--ink); }
.btn--light, .btn--light:hover { background: var(--white); color: var(--ink); }

/* Header */

.site-header { border-bottom: 1px solid var(--line); }
.site-header__inner {
  padding: 14px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand__name { font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; }
.nav a:not(.btn), .nav a:not(.btn):hover {
  color: var(--ink);
  text-decoration: none;
  padding: 10px 12px;
  font-size: 15px;
}
.nav__cta { padding: 10px 18px; font-size: 15px; margin-left: 12px; }

/* Hero */

.hero {
  padding: 96px 32px 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.hero__title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 980px;
}
.hero__row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 64px;
  align-items: flex-end;
  justify-content: space-between;
}
.hero__lede {
  margin: 0;
  flex: 1 1 480px;
  max-width: 640px;
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-2);
}
.hero__note { margin: 0; font-size: 14px; color: var(--muted); }

.steps {
  container: steps / inline-size;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}
.step {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.step:first-child { padding-left: 0; }
.step:last-child { padding-right: 0; }
.step--shield { background: var(--surface); }
.step__text { font-size: 18px; font-weight: 500; }

/* Below three columns the steps no longer sit side by side, so drop the outer-edge offsets. */
@container steps (max-width: 719px) {
  .step, .step:first-child, .step:last-child { padding: 20px 0; }
  .step--shield { padding: 20px 16px; }
}

/* The problem */

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 24px 48px;
  color: var(--ink-2);
}
.cols p { margin: 0; }
.statement { margin: 0; font-size: 20px; font-weight: 500; }

/* Products */

.intro-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 64px;
  align-items: flex-end;
  justify-content: space-between;
}
.intro-row__title { flex: 1 1 480px; }
.intro-row__text { margin: 0; flex: 1 1 380px; max-width: 520px; color: var(--ink-2); }

.products {
  container: products / inline-size;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  border-top: 1px solid var(--ink);
}
.product {
  padding: 32px 40px 32px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.product + .product { padding: 32px 0 32px 40px; border-left: 1px solid var(--line-2); }
.product__title { margin: 0; font-weight: 500; font-size: 32px; letter-spacing: -0.015em; }

/* Stacked: the divider moves from the side to the top. */
@container products (max-width: 639px) {
  .product { padding: 32px 0; }
  .product + .product { padding: 32px 0; border-left: 0; border-top: 1px solid var(--line-2); }
}

.facts {
  margin: 0;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 8px 16px;
  font-size: 15px;
  border-top: 1px solid var(--line-2);
  padding-top: 16px;
}
.facts dt { padding-top: 2px; }
.facts dd { margin: 0; }

.more { font-weight: 500; min-height: 44px; display: flex; align-items: center; }

/* Aran Shield */

.flow { margin: 8px 0 0; font-family: var(--mono); font-size: 15px; color: var(--ink); }

.parts {
  container: parts / inline-size;
  display: block;
  border-top: 1px solid var(--ink);
}
.part {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 4px 32px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.part__title { margin: 0; font-weight: 500; font-size: 20px; }
.part__text { margin: 0; color: var(--ink-2); grid-column: span 2; }

/* One column: spanning two would add an implicit column and overflow. */
@container parts (max-width: 431px) {
  .part__text { grid-column: auto; }
}

.parts__note { margin: 0; padding: 20px 0 0; color: var(--ink-2); }
.parts__note strong { font-weight: 600; color: var(--ink); }

/* Aran Cloud */

.features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  border-top: 1px solid var(--muted);
}
.feature {
  padding: 28px 32px 28px 0;
  border-bottom: 1px solid var(--ink-2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature__title { margin: 0; font-weight: 500; font-size: 20px; }
.feature__text { margin: 0; font-size: 15px; color: var(--line-2); }

/* Principles */

.principles {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 0 48px;
}
.principle { border-top: 1px solid var(--line-2); padding: 20px 0; display: flex; gap: 20px; }
.principle__num { padding-top: 4px; }
.principle__title { margin: 0 0 2px; font-weight: 500; font-size: 19px; }
.principle__text { margin: 0; font-size: 15px; color: var(--ink-2); }

/* Contact */

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 40px 48px;
  align-items: start;
}
.contact__card { display: flex; flex-direction: column; gap: 20px; }

/* Footer */

.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner {
  padding: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand--footer { min-height: 0; }
.brand--footer .brand__name { font-size: 16px; letter-spacing: normal; }
.site-footer__legal { margin: 0; font-size: 14px; color: var(--muted); }

/* Small screens: tighter gutters and vertical rhythm. */
@media (max-width: 600px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  section > .wrap { padding-top: 64px; padding-bottom: 64px; }
  section > .hero { padding-top: 56px; padding-bottom: 56px; }
  .nav__cta { margin-left: 0; }
}

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