/* Latin subsets of the two landing typefaces, self-hosted so the page makes
   no third-party requests (the app self-hosts them through next/font). */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/dm-sans.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 600;
  font-display: fallback;
  src: url(/fonts/fraunces-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* The landing page's tokens: stone neutrals on #FAFAF9, brand violet. */
:root {
  --bg: #FAFAF9;
  --ink: #1C1917;      /* stone-900 */
  --body: #57534E;     /* stone-600, the landing's paragraph colour */
  --quiet: #44403C;    /* stone-700 */
  --rule: #E7E5E4;     /* stone-200 */
  --violet: #7C3AED;   /* primary */
  --violet-dark: #6D28D9;
  --gutter: clamp(1rem, 5vw, 3.5rem);
  color-scheme: light;
}

/* Same root as the app (globals.css): scales with the browser's own setting. */
html {
  font-size: 112.5%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.page {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wrap {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.top {
  padding-top: 1.75rem;
}

.logo {
  display: block;
  height: 1.5rem;
  width: auto;
  color: var(--violet); /* text-primary, as in the landing navbar */
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 3.5rem 4.5rem;
}

h1 {
  display: flex;
  flex-direction: column;
  margin: 0 0 1.75rem;
  font-weight: 700;
}

.h1-plain {
  margin-bottom: 0.5rem;
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.h1-accent {
  margin-left: -0.06em;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.6rem, 1rem + 6.6vw, 6.5rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--violet);
  text-wrap: balance;
}

.lede {
  max-width: 34rem;
  margin: 0;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--body);
}

.soon {
  max-width: 40rem;
  margin-top: 2.75rem;
}

.soon h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* The landing's door tiles: two side by side when they fit, stacked when not. */
.doors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.9rem;
}

.door {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border: 1px solid rgb(231 229 228 / 0.8);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 10px 30px -5px rgba(45, 35, 20, 0.05), 0 20px 40px -10px rgba(45, 35, 20, 0.08);
}

.door h3 {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--violet);
}

.door p {
  margin: 0.4rem 0 1.1rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--quiet);
}

.button {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  background: var(--violet);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.button:hover {
  background: var(--violet-dark);
}

.button-soft {
  background: #F5F3FF;   /* primary-50 */
  color: var(--violet);
}

.button-soft:hover {
  background: #EDE9FE;   /* primary-100 */
}

.or {
  margin: 1.25rem 0 0;
  font-size: 0.95rem;
  color: var(--quiet);
}

.or a {
  color: var(--ink);
  font-weight: 600;
  text-decoration-color: var(--violet);
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

.button:focus-visible {
  border-radius: 999px;
}

.foot {
  padding-block: 1.5rem 2rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--quiet);
}

.foot p {
  max-width: 44rem;
  margin: 0;
}

.foot p + p {
  margin-top: 0.25rem;
}

/* Decorative marks, after the landing hero's corner hearts. */
.heart {
  position: absolute;
  z-index: 0;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.heart-main {
  top: -3.5rem;
  right: -2.5rem;
  width: clamp(13rem, 34vw, 34rem);
  opacity: 0.13;
  transform: rotate(12deg);
}

.heart-small {
  bottom: 14%;
  right: 12%;
  width: clamp(5rem, 8vw, 9rem);
  opacity: 0.16;
  transform: rotate(-20deg);
}

/* On a narrow screen the small heart would sit under the text. */
@media (max-width: 48rem) {
  .heart-small {
    display: none;
  }
}
