/* Horoof Flash website. Values mirror lib/core/theme/ and docs/New Theme/. */

@font-face {
  font-family: "Cairo";
  src: url("/assets/fonts/cairo.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  color-scheme: light;

  --surface: #F7F9FB;
  --card: #FFFFFF;
  --outline: #E6E8EA;
  --ink: #191C1E;
  --ink-muted: #434655;
  --ink-faint: #82848F;
  --brand: #0049C3;
  --brand-bright: #2461E6;
  --cta-face: #8BC34A;
  --cta-bevel: #6FA02F;
  --cta-ink: #1B5E20;
  --map-top: #6FD3FA;
  --map-bottom: #3A86F6;

  --pink: #EC4899;     --pink-bevel: #DB2777;
  --emerald: #10B981;  --emerald-bevel: #059669;
  --blue: #3B82F6;     --blue-bevel: #2563EB;
  --orange: #F97316;   --orange-bevel: #EA580C;
  --amber: #EAB308;    --amber-bevel: #CA8A04;
  --violet: #8B5CF6;   --violet-bevel: #7C3AED;

  --radius-tile: 12px;
  --radius-card: 16px;
  --radius-button: 14px;
  --bevel-tile: 5px;
  --bevel-button: 4px;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 56px;

  --shadow-card: 0 1px 0 var(--outline), 0 10px 30px rgb(25 28 30 / 0.06);
  --motion-tap: 90ms;
  --motion-drop: 520ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --page: 64rem;
  --reading: 46rem;
}

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

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: "Cairo", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.8;
}

a {
  color: var(--brand-bright);
  text-underline-offset: 3px;
}

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

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

.skip {
  position: absolute;
  inset-inline-start: var(--space-md);
  top: -100px;
  z-index: 10;
  padding: var(--space-sm) var(--space-md);
  background: var(--card);
  border-radius: var(--radius-button);
}

.skip:focus {
  top: var(--space-md);
}

/* Header */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm) var(--space-lg);
  max-width: var(--page);
  margin: 0 auto;
  padding: var(--space-md);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--brand);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--space-md);
  font-weight: 600;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  color: var(--ink-muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--brand);
}

.site-nav a[aria-current="page"] {
  color: var(--brand);
  box-shadow: inset 0 -3px 0 var(--cta-face);
}

.site-nav a.lang {
  padding: 0 14px;
  border: 1px solid var(--outline);
  border-radius: 999px;
  background: var(--card);
}

.hero-page .site-header {
  position: relative;
  z-index: 2;
}

.hero-page .brand,
.hero-page .site-nav a {
  color: #FFFFFF;
}

.hero-page .site-nav a[aria-current="page"] {
  box-shadow: inset 0 -3px 0 #FFFFFF;
}

.hero-page .site-nav a.lang {
  border-color: rgb(255 255 255 / 0.5);
  background: rgb(255 255 255 / 0.15);
}

/* Hero (the map's sky) */

.hero-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--map-top), var(--map-bottom));
  clip-path: ellipse(140% 100% at 50% 0);
  color: #FFFFFF;
}

.hero-wrap::before,
.hero-wrap::after {
  content: "";
  position: absolute;
  pointer-events: none;
  background: #FFFFFF;
  border-radius: 999px;
  opacity: 0.35;
}

.hero-wrap::before {
  width: 220px;
  height: 56px;
  top: 120px;
  inset-inline-start: -40px;
  box-shadow: 60px -24px 0 -6px #FFFFFF;
}

.hero-wrap::after {
  width: 180px;
  height: 46px;
  bottom: 120px;
  inset-inline-end: -30px;
  box-shadow: -50px -20px 0 -4px #FFFFFF;
}

.hero {
  position: relative;
  z-index: 1;
  max-width: var(--page);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md) calc(var(--space-2xl) + var(--space-xl));
  text-align: center;
}

.tiles {
  display: flex;
  justify-content: center;
  gap: clamp(6px, 2vw, 12px);
  margin: 0 0 var(--space-lg);
  padding: 0;
  list-style: none;
}

.tile {
  --face: var(--card);
  --bevel: var(--outline);
  --glyph: #FFFFFF;
  display: grid;
  place-items: center;
  width: clamp(54px, 15vw, 84px);
  aspect-ratio: 1;
  border-radius: var(--radius-tile);
  background: var(--face);
  box-shadow: 0 var(--bevel-tile) 0 var(--bevel), 0 14px 24px rgb(0 40 120 / 0.22);
  color: var(--glyph);
  font-size: clamp(30px, 9vw, 50px);
  font-weight: 800;
  line-height: 1;
  transform: rotate(var(--tilt, 0deg));
  animation: drop var(--motion-drop) var(--ease-out) both;
  animation-delay: var(--delay, 0ms);
}

.tile.pink    { --face: var(--pink);    --bevel: var(--pink-bevel);    --tilt: 3deg;  --delay: 0ms; }
.tile.emerald { --face: var(--emerald); --bevel: var(--emerald-bevel); --tilt: -2deg; --delay: 90ms; }
.tile.blue    { --face: var(--blue);    --bevel: var(--blue-bevel);    --tilt: 2deg;  --delay: 180ms; }
.tile.orange  { --face: var(--orange);  --bevel: var(--orange-bevel);  --tilt: -3deg; --delay: 270ms; }
.tile.amber   { --face: var(--amber);   --bevel: var(--amber-bevel);   --glyph: var(--ink); }
.tile.violet  { --face: var(--violet);  --bevel: var(--violet-bevel); }

@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-28px) rotate(0deg);
  }
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 9vw, 72px);
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 4px 0 rgb(0 73 195 / 0.35);
}

.lead {
  max-width: 34rem;
  margin: var(--space-sm) auto var(--space-lg);
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 600;
  line-height: 1.7;
}

/* Candy button: a face resting on a darker block. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  min-height: 52px;
  padding: 10px 28px;
  border-radius: var(--radius-button);
  background: var(--cta-face);
  box-shadow: 0 var(--bevel-button) 0 var(--cta-bevel);
  color: var(--cta-ink);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  transition: transform var(--motion-tap) ease-out, box-shadow var(--motion-tap) ease-out;
}

a.btn:hover {
  color: var(--cta-ink);
  transform: translateY(-1px);
}

a.btn:active {
  transform: translateY(var(--bevel-button));
  box-shadow: 0 0 0 var(--cta-bevel);
}

.btn.soon {
  background: var(--card);
  box-shadow: 0 var(--bevel-button) 0 rgb(0 40 120 / 0.25);
  color: var(--brand);
}

.small-print {
  margin: var(--space-md) 0 0;
  font-size: 15px;
  opacity: 0.92;
}

/* Feature bento */

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  max-width: var(--page);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md) var(--space-2xl);
}

/* Two and three columns. The first and last cards stretch so no row ends in a gap. */
@media (min-width: 600px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .card.span-2 {
    grid-column: span 2;
  }
}

@media (min-width: 960px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  padding: var(--space-lg);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.card.wide {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md) var(--space-lg);
}

.card.wide > div {
  flex: 1 1 18rem;
}

.card h2,
.card h3 {
  margin: var(--space-sm) 0 var(--space-xs);
  color: var(--brand);
  font-size: 21px;
  line-height: 1.4;
}

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

.mini {
  width: 44px;
  font-size: 24px;
  transform: none;
  animation: none;
  box-shadow: 0 4px 0 var(--bevel);
}

.trail {
  display: flex;
  gap: var(--space-sm);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Reading pages */

.doc {
  max-width: var(--reading);
  margin: 0 auto;
  padding: var(--space-md) var(--space-md) var(--space-2xl);
}

.doc-head {
  padding: var(--space-lg) 0 var(--space-md);
}

.doc-head h1 {
  margin: 0;
  color: var(--brand);
  font-size: clamp(30px, 6vw, 42px);
  line-height: 1.3;
}

.meta {
  margin: var(--space-xs) 0 0;
  color: var(--ink-faint);
  font-size: 15px;
}

.doc section {
  margin-block: var(--space-md);
  padding: var(--space-lg);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.doc section.summary {
  background: #F1F9E6;
  box-shadow: inset 0 0 0 2px var(--cta-face);
}

.doc h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 var(--space-sm);
  font-size: 21px;
  line-height: 1.4;
}

.doc h2::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--mark, var(--cta-face));
  box-shadow: 0 2px 0 var(--mark-bevel, var(--cta-bevel));
}

.doc section:nth-of-type(6n + 1) { --mark: var(--pink);    --mark-bevel: var(--pink-bevel); }
.doc section:nth-of-type(6n + 2) { --mark: var(--emerald); --mark-bevel: var(--emerald-bevel); }
.doc section:nth-of-type(6n + 3) { --mark: var(--blue);    --mark-bevel: var(--blue-bevel); }
.doc section:nth-of-type(6n + 4) { --mark: var(--orange);  --mark-bevel: var(--orange-bevel); }
.doc section:nth-of-type(6n + 5) { --mark: var(--amber);   --mark-bevel: var(--amber-bevel); }
.doc section:nth-of-type(6n + 6) { --mark: var(--violet);  --mark-bevel: var(--violet-bevel); }
.doc section.summary { --mark: var(--cta-face); --mark-bevel: var(--cta-bevel); }

.doc h3 {
  margin: var(--space-md) 0 var(--space-xs);
  font-size: 18px;
}

.doc p,
.doc li {
  color: var(--ink-muted);
}

.doc p {
  margin: 0 0 var(--space-sm);
}

.doc p:last-child {
  margin-bottom: 0;
}

.doc ul,
.doc ol {
  margin: 0 0 var(--space-sm);
  padding-inline-start: 1.4em;
}

.doc li + li {
  margin-top: var(--space-xs);
}

.doc strong {
  color: var(--ink);
}

.toc ol {
  columns: 2 14rem;
  column-gap: var(--space-lg);
}

.steps {
  counter-reset: step;
  list-style: none;
  padding-inline-start: 0 !important;
}

.steps li {
  position: relative;
  padding-inline-start: 44px;
  min-height: 32px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: 2px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--blue);
  box-shadow: 0 3px 0 var(--blue-bevel);
  color: #FFFFFF;
  font-weight: 800;
  line-height: 1;
}

.ui {
  padding: 1px 8px;
  border: 1px solid var(--outline);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

.email {
  font-weight: 700;
  overflow-wrap: anywhere;
}

details {
  border-top: 1px solid var(--outline);
  padding: var(--space-sm) 0;
}

details:first-of-type {
  border-top: 0;
}

summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--ink);
  font-weight: 700;
}

details p {
  margin-top: var(--space-xs);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--outline);
  padding: var(--space-xl) var(--space-md);
  color: var(--ink-faint);
  font-size: 15px;
  text-align: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 var(--space-lg);
  margin-bottom: var(--space-sm);
}

.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-muted);
}

.site-footer p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .tile {
    animation: none;
  }

  .btn {
    transition: none;
  }
}
