/*
 * The website of Euclase AI Ltd, in the same look as Halo: a pale sky from
 * pearl through blush to powder blue, plum-grey text, a soft serif for titles
 * and a rounded sans for everything else. The colours are copied from
 * mobile/src/theme/index.ts. The typefaces are served from this site, so a
 * visit asks nothing of any other company.
 */

@font-face {
  font-family: 'Fraunces';
  font-weight: 200;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/Fraunces_200ExtraLight.ttf') format('truetype');
}
@font-face {
  font-family: 'Fraunces';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/Fraunces_400Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Fraunces';
  font-weight: 300;
  font-style: italic;
  font-display: swap;
  src: url('/fonts/Fraunces_300Light_Italic.ttf') format('truetype');
}
@font-face {
  font-family: 'Nunito';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/Nunito_500Medium.ttf') format('truetype');
}
@font-face {
  font-family: 'Nunito';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/Nunito_600SemiBold.ttf') format('truetype');
}
@font-face {
  font-family: 'Nunito';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/Nunito_700Bold.ttf') format('truetype');
}

:root {
  --sky-top: #fffcf9;
  --sky-mid: #fdf0f3;
  --sky-low: #e9f2fc;
  --glow-rose: #f9d3df;
  --glow-blue: #c9e1f8;
  --glow-lilac: #e3d9f8;
  --glow-warm: #ffddb0;
  --rose: #f2b8cb;
  --rose-deep: #e79ab4;
  --gold: #edd6a4;
  --ink: #5e4f60;
  --ink-soft: #7f7082;
  --ink-faint: #b1a6b4;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-edge: rgba(255, 255, 255, 0.95);
  --hairline: rgba(127, 112, 130, 0.14);
  --shadow: 0 10px 30px rgba(190, 168, 210, 0.22);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
  background: var(--sky-mid);
}

/* The sky stays put behind the page as it scrolls. It is a layer of its own, because a
   background fixed in place is not reliable on iPhone. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 38rem at 0% 8%, var(--glow-rose) 0%, transparent 62%),
    radial-gradient(50rem 34rem at 100% 42%, var(--glow-lilac) 0%, transparent 60%),
    radial-gradient(64rem 40rem at 22% 100%, var(--glow-blue) 0%, transparent 62%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 46%, var(--sky-low) 100%);
}

a {
  color: var(--ink);
  text-decoration-color: var(--rose-deep);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-color: var(--ink);
}

.page {
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* The bar at the top: the company's name, and where to go. */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 1rem;
}
.name {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 1.3rem;
  text-decoration: none;
  white-space: nowrap;
}
.top nav {
  display: flex;
  gap: 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.top nav a {
  text-decoration: none;
  color: var(--ink-soft);
}
.top nav a:hover,
.top nav a[aria-current='page'] {
  color: var(--ink);
}

h1,
h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
}
h1 {
  font-size: clamp(2.4rem, 7vw, 3.4rem);
  font-weight: 300;
  font-style: italic;
}
h2 {
  font-size: 1.55rem;
  margin-top: 2.6rem;
}
h3 {
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin: 1.6rem 0 0.2rem;
}
p,
ul {
  margin: 0.7rem 0 0;
}
ul {
  padding-left: 1.2rem;
}
li + li {
  margin-top: 0.35rem;
}
.lead {
  font-size: 1.2rem;
  color: var(--ink);
}
.quiet {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* The home page's opening: words on one side, the app on the other. */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0 1rem;
}
.hero .icon {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: block;
  margin-bottom: 1.2rem;
}
/* The picture is the phone alone, cut out along its rim, so the shadow follows its shape. */
.hero .phone {
  width: min(100%, 300px);
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 28px 50px rgba(140, 118, 168, 0.28));
}
@media (min-width: 44rem) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    padding-top: 3rem;
  }
}

.soon {
  display: inline-block;
  margin-top: 1.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f9cfdc, #efa9c0);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 6px 18px rgba(231, 154, 180, 0.38);
}

/* Frosted cards, as in the app. */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin-top: 1.2rem;
}
@media (min-width: 44rem) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
.card {
  padding: 1.1rem 1.2rem 1.2rem;
  border-radius: 24px;
  background: var(--glass);
  border: 2px solid var(--glass-edge);
  box-shadow: var(--shadow);
}
.card h3 {
  margin-top: 0;
}
.card p {
  margin-top: 0.3rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Long pages of words: the privacy policy and support. */
.sheet {
  margin: 1.5rem 0 0;
  padding: 1.8rem 1.4rem 2.2rem;
  border-radius: 32px;
  background: rgba(255, 252, 250, 0.86);
  border: 2px solid var(--glass-edge);
  box-shadow: var(--shadow);
}
@media (min-width: 44rem) {
  .sheet {
    padding: 2.6rem 3rem 3rem;
  }
}
.sheet h1 {
  font-size: clamp(2rem, 6vw, 2.6rem);
}
.sheet h2 {
  font-size: 1.35rem;
  margin-top: 2.2rem;
}
.sheet .updated {
  margin-top: 0.5rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 2.6rem 0 0;
}

/* The foot of every page carries what a company's website has to say about the company. */
.foot {
  padding: 1.6rem 0 3rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.foot p {
  margin-top: 0.4rem;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  font-weight: 600;
}
.foot a {
  color: var(--ink-soft);
}
