/* AITYL editorial palette — matched to source-colors_and_fonts.html */
:root {
  --red: #C8102E;
  --red-dark: #A50B24;
  --red-deep: #82071B;
  --gold: #8C5230;
  --cream: #FAF8F5;
  --ink: #181615;
  --muted: #5C554E;
  --white: #FFFFFF;
  --line: #E6DFD5;
  --shadow: 0 20px 50px -15px rgba(24, 22, 21, .12);
  --alabaster: #FAF8F5;
  --subtle: #F2EDE6;
  --chestnut: #8C5230;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 12% 6%, rgba(217, 170, 69, .13), transparent 27%),
    radial-gradient(circle at 90% 12%, rgba(180, 7, 18, .10), transparent 27%),
    linear-gradient(180deg, #FAF8F5, #F2EDE6 60%, #FAF8F5);
}

a {
  color: inherit;
  text-decoration: none
}

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

button {
  font: inherit
}

.shell {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 249, .9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(124, 6, 16, .07)
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 900
}

.brand img {
  width: 50px;
  height: 50px;
  object-fit: contain
}

.brand strong {
  display: block;
  letter-spacing: .08em;
  color: var(--red-dark)
}

.brand span {
  display: block;
  font-size: .72rem;
  color: var(--muted);
  margin-top: 5px
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end
}

.nav-links a,
.nav-links button {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px 13px;
  border-radius: 999px;
  font-weight: 750;
  color: #5C554E
}

.nav-links a:hover,
.nav-links button:hover {
  background: #FDECEF;
  color: var(--red)
}

.nav-links .cta {
  background: var(--red);
  color: #fff
}

.nav-links .cta:hover {
  background: var(--red-dark);
  color: #fff
}

.hero {
  min-height: 670px;
  padding: 86px 0 64px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 62px;
  align-items: center
}

.eyebrow {
  display: inline-flex;
  padding: 9px 13px;
  border-radius: 999px;
  background: #FDECEF;
  color: var(--red-dark);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase
}

.hero h1 {
  font-size: clamp(3.7rem, 8vw, 7rem);
  line-height: .86;
  letter-spacing: -.075em;
  color: var(--red-dark);
  margin: 22px 0
}

.hero h1 small {
  display: block;
  margin-top: 19px;
  font-size: clamp(1.05rem, 2.1vw, 1.7rem);
  letter-spacing: .01em;
  line-height: 1.2;
  color: #5C554E
}

.hero p {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.07rem
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 15px;
  font-weight: 850;
  border: 1px solid transparent;
  transition: .2s
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 15px 32px rgba(180, 7, 18, .18)
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--red-dark)
}

.btn-secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--red-dark)
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(80, 0, 0, .07)
}

.hero-art {
  min-height: 510px;
  display: grid;
  place-items: center;
  position: relative
}

.halo {
  width: min(460px, 90vw);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  background: radial-gradient(circle at 32% 26%, #fff, #FAF8F5 48%, #E6DFD5);
  box-shadow: 0 42px 100px rgba(124, 6, 16, .17), inset 0 0 0 1px rgba(180, 7, 18, .07)
}

.halo::before,
.halo::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(180, 7, 18, .13)
}

.halo::before {
  inset: -18px
}

.halo::after {
  inset: 26px;
  border-color: rgba(217, 170, 69, .28)
}

.halo img {
  width: 82%;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 26px 25px rgba(83, 5, 12, .12))
}

section {
  padding: 76px 0
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 38px
}

.kicker {
  color: var(--red);
  font-size: .77rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -.04em;
  color: var(--red-dark);
  margin: 10px 0 12px
}

.section-head p {
  color: var(--muted);
  line-height: 1.75;
  margin: 0
}

.platforms {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px
}

.card {
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 25px 20px;
  min-height: 205px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 50px rgba(90, 7, 15, .06);
  transition: .22s
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(180, 7, 18, .2)
}

.icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #FDECEF, #F2EDE6);
  font-size: 1.4rem;
  margin-bottom: 18px
}

.card h3 {
  margin: 0 0 7px;
  color: #181615
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: .91rem
}

.go {
  margin-top: auto;
  padding-top: 18px;
  color: var(--red);
  font-weight: 850;
  font-size: .88rem
}

.service {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 34px;
  align-items: center;
  background: linear-gradient(135deg, var(--red-dark), #b50b18);
  border-radius: 34px;
  padding: 52px;
  color: #fff;
  box-shadow: 0 26px 70px rgba(116, 4, 13, .2)
}

.service h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  letter-spacing: -.04em;
  margin: 0 0 16px
}

.service p {
  color: #fff5f5;
  line-height: 1.8
}

.service-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

.service-item {
  padding: 16px;
  border-radius: 17px;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .13);
  font-weight: 750
}

.contact-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  align-items: center;
  box-shadow: 0 18px 60px rgba(95, 7, 16, .08)
}

.contact-panel h2 {
  margin: 0 0 8px;
  color: var(--red-dark);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem)
}

.contact-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7
}

footer {
  padding: 36px 0 42px;
  border-top: 1px solid rgba(100, 0, 8, .08);
  margin-top: 30px
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap
}

.footer-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap
}

.footer-links a,
.footer-links button {
  border: 0;
  background: none;
  cursor: pointer;
  padding: 8px 10px;
  color: #5C554E
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--red)
}

.copyright {
  color: #5C554E;
  font-size: .88rem
}

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  max-width: 980px;
  margin: auto;
  display: none;
  background: rgba(41, 25, 25, .98);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 22px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .28);
  padding: 20px
}

.cookie-banner.show {
  display: block
}

.cookie-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center
}

.cookie-banner h3 {
  margin: 0 0 6px
}

.cookie-banner p {
  margin: 0;
  color: rgba(255, 255, 255, .76);
  font-size: .88rem;
  line-height: 1.6
}

.cookie-banner a {
  text-decoration: underline
}

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

.cookie-btn {
  border: 0;
  border-radius: 12px;
  padding: 11px 15px;
  font-weight: 850;
  cursor: pointer
}

.cookie-accept {
  background: #fff;
  color: var(--red-dark)
}

.cookie-reject {
  background: rgba(255, 255, 255, .10);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .15)
}

.legal-main {
  max-width: 860px;
  margin: auto;
  padding: 54px 22px 80px
}

.legal-card {
  margin-top: 26px;
  background: #fff;
  border: 1px solid #E6DFD5;
  border-radius: 24px;
  padding: clamp(24px, 5vw, 46px);
  box-shadow: 0 18px 60px rgba(100, 0, 10, .06)
}

.legal-card h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 0 0 8px;
  color: var(--red-dark)
}

.legal-card h2 {
  margin-top: 30px;
  color: var(--red-dark)
}

.legal-card p,
.legal-card li {
  line-height: 1.75;
  color: #5C554E
}

.legal-card a {
  color: var(--red-dark);
  text-decoration: underline
}

.page-hero {
  padding: 72px 0 30px;
  text-align: center
}

.page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  letter-spacing: -.055em;
  color: var(--red-dark);
  margin: 12px 0
}

.page-hero p {
  max-width: 700px;
  margin: auto;
  color: var(--muted);
  line-height: 1.75
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px
}

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 16px 45px rgba(95, 7, 16, .06)
}

.contact-card h2 {
  color: var(--red-dark);
  margin-top: 0
}

.contact-card p {
  color: var(--muted);
  line-height: 1.7
}

.mail-big {
  font-size: clamp(1rem, 3vw, 1.35rem);
  font-weight: 900;
  color: var(--red-dark);
  word-break: break-word
}

@media(max-width:980px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px
  }

  .hero p {
    margin-inline: auto
  }

  .actions {
    justify-content: center
  }

  .platforms {
    grid-template-columns: repeat(2, 1fr)
  }

  .platforms .card:last-child {
    grid-column: 1/-1
  }

  .service {
    grid-template-columns: 1fr
  }

  .contact-panel {
    grid-template-columns: 1fr
  }

  .contact-grid {
    grid-template-columns: 1fr
  }
}

@media(max-width:700px) {
  .shell {
    width: min(100% - 24px, 1180px)
  }

  header {
    position: relative
  }

  .nav {
    padding: 10px 0;
    align-items: flex-start
  }

  .brand img {
    width: 44px;
    height: 44px
  }

  .brand span {
    display: none
  }

  .nav-links a {
    padding: 9px 9px;
    font-size: .82rem
  }

  .nav-links a:nth-child(2),
  .nav-links a:nth-child(3) {
    display: none
  }

  .hero {
    min-height: auto;
    padding: 58px 0 35px
  }

  .hero h1 {
    font-size: clamp(3.2rem, 18vw, 5.2rem)
  }

  .hero-art {
    min-height: 350px
  }

  .halo {
    width: min(330px, 84vw)
  }

  section {
    padding: 54px 0
  }

  .platforms {
    grid-template-columns: 1fr
  }

  .platforms .card:last-child {
    grid-column: auto
  }

  .service {
    padding: 32px 22px;
    border-radius: 26px
  }

  .service-list {
    grid-template-columns: 1fr
  }

  .contact-panel {
    padding: 30px 22px;
    text-align: center
  }

  .cookie-grid {
    grid-template-columns: 1fr
  }

  .cookie-actions {
    justify-content: stretch
  }

  .cookie-btn {
    flex: 1
  }
}

/* Refined typography and component finish, shared by all pages. */
body {
  background: radial-gradient(circle at 85% 6%, rgba(200, 16, 46, .045), transparent 32%),
    radial-gradient(circle at 10% 27%, rgba(140, 82, 48, .045), transparent 30%),
    var(--alabaster);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.brand strong {
  font-family: var(--font-heading);
  font-weight: 700
}

.brand strong {
  font-size: 1.58rem;
  letter-spacing: -.025em;
  color: var(--ink)
}

.brand span {
  font-family: var(--font-body);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--chestnut);
  font-size: .62rem
}

header {
  background: rgba(250, 248, 245, .92);
  border-bottom: 1px solid var(--line)
}

.nav-links a,
.nav-links button {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--muted);
  border-radius: 12px
}

.nav-links .cta {
  color: #fff
}

.hero {
  min-height: 620px
}

.hero h1 {
  font-size: clamp(3.6rem, 7.3vw, 6.4rem);
  line-height: 1.05;
  letter-spacing: -.05em;
  color: var(--ink)
}

.hero h1 small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1rem, 2vw, 1.38rem);
  letter-spacing: 0;
  color: var(--chestnut);
  line-height: 1.5
}

.eyebrow,
.kicker {
  font-family: var(--font-body);
  color: var(--red);
  font-weight: 700
}

.eyebrow {
  background: var(--subtle);
  letter-spacing: .075em
}

.section-head h2,
.page-hero h1,
.contact-panel h2,
.contact-card h2,
.legal-card h1,
.legal-card h2 {
  color: var(--ink);
  letter-spacing: -.025em
}

.section-head h2 {
  font-size: clamp(2.2rem, 4vw, 3.3rem)
}

.btn {
  font-family: var(--font-body);
  font-weight: 650;
  border-radius: 13px
}

.btn-primary {
  box-shadow: 0 10px 30px -8px rgba(200, 16, 46, .35)
}

.btn-secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink)
}

.btn-secondary:hover {
  border-color: var(--red);
  color: var(--red)
}

.halo {
  background: radial-gradient(circle at 40% 30%, #fff 0%, #FAF8F5 62%, #F2EDE6 100%);
  box-shadow: 0 20px 50px -15px rgba(24, 22, 21, .14), inset 0 0 0 1px var(--line)
}

.halo::before {
  border-color: rgba(140, 82, 48, .14)
}

.halo::after {
  border-color: rgba(200, 16, 46, .12)
}

.card,
.contact-card,
.contact-panel,
.legal-card {
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 20px 50px -15px rgba(24, 22, 21, .06)
}

.card:hover {
  border-color: rgba(200, 16, 46, .45)
}

.card h3 {
  color: var(--ink);
  font-size: 1.3rem
}

.icon {
  background: var(--subtle);
  color: var(--red)
}

.service {
  background: linear-gradient(125deg, #82071B 0%, #A50B24 55%, #C8102E 100%);
  box-shadow: 0 20px 45px -15px rgba(130, 7, 27, .26)
}

.service h2 {
  color: #fff
}

.service .kicker {
  color: #fff
}

.service-item {
  font-weight: 600
}

.cookie-banner {
  background: rgba(23, 23, 27, .98);
  border: 1px solid #2C2C34
}

.cookie-accept {
  background: var(--red);
  color: #fff
}

.cookie-accept:hover {
  background: var(--red-dark)
}

.cookie-reject:hover {
  background: rgba(255, 255, 255, .2)
}

footer {
  border-color: var(--line)
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(200, 16, 46, .65);
  outline-offset: 3px
}

@media(max-width:700px) {
  .hero h1 {
    font-size: clamp(3.05rem, 15vw, 4.8rem)
  }

  .brand strong {
    font-size: 1.4rem
  }
}

/* AITYL signature headline: Playfair Display italic, crimson, as in the source reference. */
.hero h1 .hero-tagline {
  display: block;
  margin-top: clamp(16px, 2.4vw, 28px);
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  color: #C8102E;
  font-size: clamp(2.1rem, 2.7vw, 2.75rem);
  line-height: 1.22;
  letter-spacing: -.035em;
  text-transform: none;
  overflow-wrap: normal;
  white-space: nowrap;
  /* Keep the full tagline on one line */
}

/* Source-inspired warm Alabaster/Chestnut legal pages: no plain white panel. */
body.legal-page {
  background-color: #FAF8F5;
  background-image: radial-gradient(rgba(140, 82, 48, .11) .8px, transparent .8px),
    linear-gradient(165deg, #FAF8F5 0%, #F2EDE6 60%, #FAF8F5 100%);
  background-size: 24px 24px, 100% 100%;
  min-height: 100vh;
}

.legal-page .legal-card {
  background: linear-gradient(145deg, rgba(242, 237, 230, .98), rgba(250, 248, 245, .96));
  border: 1px solid #DCD1C4;
  box-shadow: 0 20px 50px -15px rgba(24, 22, 21, .07);
}

.legal-page .legal-card h1 {
  color: #C8102E
}

.legal-page .legal-card h2 {
  color: #8C5230
}

.legal-page .legal-card p,
.legal-page .legal-card li {
  color: #5C554E
}

.legal-page .legal-card a {
  color: #A50B24
}

@media(max-width:700px) {
  .hero h1 .hero-tagline {
    font-size: clamp(1.05rem, 5.2vw, 1.9rem);
    line-height: 1.25;
    letter-spacing: -.04em;
    white-space: nowrap
  }

  .legal-main {
    padding: 32px 16px 60px
  }
}