/*
 * assisto.com.au — the interim "coming soon" page. One file, no build step, no web font.
 * The reds are the product's own (assisto-ui/src/styles/themes/_tokens.scss): #c10016 primary,
 * #e22b2b hover, #7a0011 active, #ff4d3b accent. The font stack names Inter first because the product uses
 * it — a visitor who has it installed gets it, everyone else gets their system's UI font, and nobody
 * downloads anything.
 */

:root {
  --brand: #c10016;
  --brand-bright: #e22b2b;
  --brand-deep: #7a0011;
  --accent: #ff4d3b;

  --bg: #fbf8f7;
  --bg-tint: #f6eeec;
  --surface: rgba(255, 255, 255, 0.72);
  --border: rgba(193, 0, 22, 0.14);
  --text: #1d1517;
  --text-soft: #5b4d50;
  --plate: transparent;
  --plate-ring: transparent;
  --glow-a: rgba(193, 0, 22, 0.16);
  --glow-b: rgba(255, 77, 59, 0.14);
  --shadow: 0 1px 2px rgba(122, 0, 17, 0.06), 0 12px 32px rgba(122, 0, 17, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #120c0d;
    --bg-tint: #1b1113;
    --surface: rgba(255, 255, 255, 0.045);
    --border: rgba(255, 120, 110, 0.18);
    --text: #f6eeee;
    --text-soft: #c4b3b5;
    /* The logo's darkest reds disappear on a dark page. It sits on a soft light plate instead of being
       recoloured: it is the same file the product shows on its sign-in screen. */
    --plate: radial-gradient(circle at 50% 40%, #fffaf9 0%, #f7e9e7 70%, #efd9d6 100%);
    --plate-ring: rgba(255, 140, 130, 0.22);
    --glow-a: rgba(193, 0, 22, 0.34);
    --glow-b: rgba(255, 77, 59, 0.16);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px rgba(0, 0, 0, 0.35);
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-tint) 100%);
  -webkit-font-smoothing: antialiased;
}

/* Two soft pools of the brand red behind everything. Decorative only. */
.glow {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.glow-one {
  width: 42rem;
  height: 42rem;
  top: -18rem;
  left: 50%;
  margin-left: -34rem;
  background: var(--glow-a);
  animation: drift 22s ease-in-out infinite alternate;
}

.glow-two {
  width: 34rem;
  height: 34rem;
  bottom: -16rem;
  right: -10rem;
  background: var(--glow-b);
  animation: drift 28s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(4rem, 2.5rem, 0) scale(1.08);
  }
}

.page {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo-plate {
  display: grid;
  place-items: center;
  padding: 1.25rem 1.75rem;
  border-radius: 2rem;
  background: var(--plate);
  box-shadow: 0 0 0 1px var(--plate-ring);
}

.logo {
  display: block;
  width: clamp(9.5rem, 32vw, 13.75rem);
  height: auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: clamp(1.5rem, 4vw, 2.25rem) 0 0;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--brand-bright);
  box-shadow: 0 0 0 0 rgba(226, 43, 43, 0.55);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(226, 43, 43, 0.55);
  }
  70%,
  100% {
    box-shadow: 0 0 0 0.6rem rgba(226, 43, 43, 0);
  }
}

h1 {
  margin: 1.25rem 0 0;
  font-size: clamp(2.25rem, 7vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  /* background-clip: text paints only inside the box, and at this line-height the "g" hangs below it. */
  padding-bottom: 0.16em;
  background: linear-gradient(120deg, var(--brand-deep) 0%, var(--brand) 45%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--brand);
  -webkit-text-fill-color: transparent;
}

.lead {
  max-width: 40rem;
  margin: 0.75rem 0 0;
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  color: var(--text-soft);
}

.lead abbr {
  text-decoration: none;
}

.pillars {
  list-style: none;
  width: 100%;
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  text-align: left;
}

.pillars li {
  padding: 1.25rem 1.375rem 1.375rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.pillars li::before {
  content: "";
  display: block;
  width: 2rem;
  height: 0.1875rem;
  margin-bottom: 0.875rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.pillars h2 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.pillars p {
  margin: 0.375rem 0 0;
  font-size: 0.9375rem;
  color: var(--text-soft);
}

.closing {
  margin: clamp(2rem, 5vw, 2.75rem) 0 0;
  font-weight: 500;
}

.footer {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding: 1.5rem 1.25rem 2rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-soft);
}

.footer p {
  margin: 0;
}

@media (prefers-color-scheme: dark) {
  .badge {
    color: #ff8a80;
  }

  h1 {
    background-image: linear-gradient(120deg, #ff6b5e 0%, #ff4d3b 40%, #ffb3a8 100%);
    color: #ff6b5e;
  }
}

@media (prefers-reduced-motion: reduce) {
  .glow,
  .badge-dot {
    animation: none;
  }
}
