/*
 * SumWize: public "Coming soon" page (sumwize.com). Static, no scripts.
 * Colours, type and motion follow the SumWize brand: Manrope, the brand navy grounds, periwinkle accents and the mint pulse.
 * The file is published as assets/site.<hash>.css. Rename it whenever it changes, because /assets/* is cached for a year.
 */

@font-face {
  font-family: "Manrope";
  src: url("manrope-variable.4e37cd84.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #0b1f4b;
  --night: #0a1a3f;
  --dusk-top: #10285c;
  --dusk: #0b1f4b;
  --dusk-deep: #0a1a3f;
  --brand: #0a66e4;
  --periwinkle: #6aa6ff;
  --mint: #7fe0b4;
  --muted-on-dark: #a9b8da;
  --line-on-dark: rgb(255 255 255 / 0.12);
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 1.25rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 640px) {
  :root { --gutter: 2rem; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--night);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: #fff;
  background: var(--night);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

::selection {
  background: rgb(106 166 255 / 0.35);
}

.skip {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 0.5rem;
}

/* The page: one navy ground, as the landing page opens. */
.page {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(60rem 36rem at 80% -12%, rgb(80 120 245 / 0.42), transparent 62%),
    radial-gradient(36rem 26rem at -5% 30%, rgb(60 140 220 / 0.14), transparent 60%),
    linear-gradient(180deg, var(--dusk-top) 0%, var(--dusk) 55%, var(--dusk-deep) 100%);
}

.grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 60% 10%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 75% 70% at 60% 10%, #000 30%, transparent 80%);
}

.glow {
  position: absolute;
  z-index: -1;
  top: 8%;
  right: -12%;
  width: 46rem;
  height: 30rem;
  border-radius: 9999px;
  background: radial-gradient(closest-side, rgb(120 150 255 / 0.22), transparent);
  filter: blur(10px);
  animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-6rem, 3rem, 0); }
}

.wrap {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header: the brand kit's reversed artwork. */
.top {
  padding-block: 1.5rem;
}

.logo {
  width: auto;
  height: 30px;
}

@media (min-width: 640px) {
  .top { padding-block: 2rem; }
  .logo { height: 34px; }
}

/* The opening. */
main {
  flex: 1;
  display: flex;
  align-items: center;
}

.hero {
  display: grid;
  align-items: center;
  gap: 3.5rem;
  padding-block: 2.5rem 4rem;
}

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 13fr) minmax(0, 9fr);
    gap: 4rem;
    padding-block: 3rem 6rem;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0.4rem 0.9rem 0.4rem 0.8rem;
  border-radius: 9999px;
  background: rgb(255 255 255 / 0.07);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.15);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgb(255 255 255 / 0.9);
}

.dot {
  width: 0.4rem;
  height: 0.4rem;
  flex: none;
  border-radius: 9999px;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgb(127 224 180 / 0.6);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 7px rgb(127 224 180 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(127 224 180 / 0); }
}

h1 {
  margin: 1.75rem 0 0;
  font-size: clamp(2.5rem, 1.6rem + 4.2vw, 4.5rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.line {
  display: block;
}

/* One word underlined by a hand-drawn pen stroke, drawn in once. */
.mark {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.stroke {
  position: absolute;
  left: -3%;
  bottom: -0.2em;
  width: 106%;
  height: 0.3em;
  overflow: visible;
  pointer-events: none;
  color: var(--periwinkle);
}

.stroke path {
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
  stroke-linecap: round;
}

.lead {
  max-width: 36rem;
  margin: 1.75rem 0 0;
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgb(255 255 255 / 0.76);
  text-wrap: pretty;
}

@media (min-width: 640px) {
  .lead { font-size: 1.25rem; }
}

.soon {
  max-width: 36rem;
  margin: 1.25rem 0 0;
  font-size: 1rem;
  line-height: 1.7;
  color: rgb(255 255 255 / 0.62);
  text-wrap: pretty;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  box-shadow: inset 0 0 0 1px var(--line-on-dark);
  background: rgb(255 255 255 / 0.03);
  font-size: 0.875rem;
  font-weight: 570;
  color: rgb(255 255 255 / 0.82);
}

.el {
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-on-dark);
  max-width: 36rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--muted-on-dark);
}

.el strong {
  font-weight: 700;
  color: #fff;
}

/* The brand mark, large and quiet, in a frame of light. Decoration only. */
.emblem {
  position: relative;
  justify-self: center;
  width: min(100%, 22rem);
  aspect-ratio: 1;
}

.emblem::before,
.emblem::after {
  content: "";
  position: absolute;
  border-radius: 9999px;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08);
}

.emblem::before {
  inset: 0;
}

.emblem::after {
  inset: 14%;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
}

.tile {
  position: absolute;
  inset: 27%;
  display: grid;
  place-items: center;
  border-radius: 28%;
  background: linear-gradient(160deg, rgb(255 255 255 / 0.1), rgb(255 255 255 / 0.02));
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.14),
    0 30px 60px -20px rgb(4 10 30 / 0.6),
    0 0 80px -10px rgb(106 166 255 / 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.tile img {
  width: 58%;
  height: auto;
}

.orbit {
  position: absolute;
  top: 0;
  left: 50%;
  width: 0.55rem;
  height: 0.55rem;
  margin: -0.275rem 0 0 -0.275rem;
  border-radius: 9999px;
  background: var(--periwinkle);
  box-shadow: 0 0 14px 2px rgb(106 166 255 / 0.6);
}

.spin {
  position: absolute;
  inset: 0;
  animation: spin 28s linear infinite;
}

.spin.slow {
  inset: 14%;
  animation-duration: 40s;
  animation-direction: reverse;
}

.spin.slow .orbit {
  background: var(--mint);
  box-shadow: 0 0 12px 2px rgb(127 224 180 / 0.5);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Phones and tablets: the words alone. */
@media (max-width: 1023.98px) {
  .emblem { display: none; }
}

/* Footer. */
.foot {
  border-top: 1px solid var(--line-on-dark);
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.5rem 1.75rem;
  font-size: 0.875rem;
  color: rgb(255 255 255 / 0.6);
}

.foot p {
  margin: 0;
}

/* Entrances: positions and opacity only, never text contrast once settled. */
@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise 900ms var(--ease) backwards;
  }

  .d1 { animation-delay: 60ms; }
  .d2 { animation-delay: 160ms; }
  .d3 { animation-delay: 260ms; }
  .d4 { animation-delay: 380ms; }
  .d5 { animation-delay: 500ms; }
  .d6 { animation-delay: 620ms; }

  .stroke path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: pen 0.8s cubic-bezier(0.65, 0, 0.35, 1) 0.9s forwards;
  }
}

@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to { opacity: 1; transform: none; }
}

@keyframes pen {
  to { stroke-dashoffset: 0; }
}

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

/* The 404 page. */
.nf h1 {
  font-size: clamp(2.25rem, 1.6rem + 3vw, 3.5rem);
}

.nf a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgb(255 255 255 / 0.35);
  text-underline-offset: 0.25em;
}

.nf a:hover,
.nf a:focus-visible {
  text-decoration-color: #fff;
}

:focus-visible {
  outline: 2px solid var(--periwinkle);
  outline-offset: 3px;
  border-radius: 0.375rem;
}

@media print {
  .page { background: #fff; color: var(--ink); }
  .grid, .glow, .emblem { display: none; }
}
