/* Mycel website. Same palette and typefaces as the app: galley paper, proof ink, blue for actions, red for change notes. */
:root {
  color-scheme: light;
  --bg: #f1f0ec;
  --surface: #fbfaf7;
  --surface-2: #e9e8e2;
  --line: #d9d8d1;
  --line-strong: #b5b4ad;
  --ink: #1d2230;
  --ink-2: #3c4252;
  --muted: #5b6172;
  --primary: #2f5ea8;
  --primary-dark: #254c8a;
  --on-primary: #ffffff;
  --red: #b8322a;
  --serif: "Literata", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1200px;
  --gutter: 32px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 18px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
p {
  margin: 0 0 1em;
}
::selection {
  background: #cddcf2;
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  transition: top 150ms ease-out;
}
.skip-link:focus {
  top: 12px;
}
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header */
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 80px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font: 600 23px var(--serif);
  text-decoration: none;
}
.nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.nav a,
.footer-nav a {
  color: var(--ink-2);
  font-size: 16px;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 3px;
  transition: background-size 250ms ease-out, color 150ms ease-out;
}
.nav a:hover,
.footer-nav a:hover {
  color: var(--ink);
  background-size: 100% 1px;
}

/* Buttons and links */
.button {
  display: inline-block;
  padding: 13px 24px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  background: var(--primary);
  color: var(--on-primary);
  font: 600 17px var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease-out, transform 150ms ease-out;
}
.button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}
.button:active {
  transform: translateY(1px);
}
.button-small {
  padding: 8px 16px;
  font-size: 15px;
}
.link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  background:
    linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px;
  transition: background-size 250ms ease-out;
}
.link:hover {
  background-size: 100% 3px;
}

/* Hero */
.hero {
  padding: 24px 0 72px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 80px - 96px);
}
.hero h1 {
  font-size: clamp(40px, 4.6vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.025em;
}
.lead {
  margin: 24px 0 32px;
  color: var(--ink-2);
  font-size: 21px;
  line-height: 1.55;
}
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
}
.facts {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 16px;
}
[data-enter] .hero-copy > *,
[data-enter] .hero-visual {
  animation: rise 800ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
[data-enter] .hero-copy > :nth-child(2) {
  animation-delay: 80ms;
}
[data-enter] .hero-copy > :nth-child(3) {
  animation-delay: 160ms;
}
[data-enter] .hero-copy > :nth-child(4) {
  animation-delay: 240ms;
}
[data-enter] .hero-visual {
  animation-delay: 200ms;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

/* Screenshots */
.frame {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 28px 56px -32px rgba(29, 34, 48, 0.45);
}
.frame > img {
  width: 100%;
}
.crop {
  position: relative;
}
/* --zoom: image width as a multiple of the box; --x / --y: left and top edge of the visible part, in % of the image */
.crop > img {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(var(--zoom) * 100%);
  max-width: none;
  transform: translate(calc(var(--x) * -1%), calc(var(--y) * -1%));
}
.crop.small {
  margin-top: 36px;
}
.crop.gallery {
  margin-block: clamp(40px, 5vw, 64px);
}

/* Sections */
.section {
  padding: clamp(72px, 9vw, 120px) 0;
}
.paper {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.section h2 {
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.12;
}
.section h3 {
  margin-bottom: 8px;
  font-size: 23px;
  line-height: 1.25;
}
.section-head {
  max-width: 780px;
  margin-bottom: 56px;
}
.section-head h2 {
  margin-bottom: 20px;
}
.section p {
  color: var(--ink-2);
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.split-copy h2 {
  margin-bottom: 24px;
}
.split-copy h3:not(:first-child) {
  margin-top: 32px;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 80px;
}
.section-head + .pair {
  margin-top: 0;
}
.pair h3 + p {
  margin-bottom: 20px;
}
@media (min-width: 961px) {
  .pair h3 + p {
    min-height: 3.2em; /* two lines, so both frames start at the same height */
  }
}

/* Margin notes demo */
.margin-demo {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 56px;
  align-items: start;
  max-width: 1060px;
}
.page {
  padding: 28px 32px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  font: 19px/1.8 var(--serif);
  box-shadow: 0 28px 56px -36px rgba(29, 34, 48, 0.4);
}
.page p {
  margin-bottom: 1.1em;
  color: var(--ink);
}
mark.n {
  background: none;
  color: inherit;
}
mark.n-change {
  box-shadow: inset 0 -2px var(--red);
}
mark.n-question {
  box-shadow: inset 0 -2px var(--primary);
}
.notes-col {
  position: relative;
}
.note {
  margin: 0 0 12px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  font-size: 15px;
  line-height: 1.45;
}
.note p {
  margin: 0;
  color: var(--ink);
}
.note b {
  font-weight: 700;
}
.note-quote {
  margin-bottom: 4px !important;
  color: var(--ink-2) !important;
  font: italic 16px/1.4 var(--serif);
}
.note-change {
  border-color: color-mix(in srgb, var(--red) 50%, var(--line));
}
.note-change b {
  color: var(--red);
}
.note-question {
  border-color: color-mix(in srgb, var(--primary) 50%, var(--line));
}
.note-question b {
  color: var(--primary);
}
.is-aligned .note {
  position: absolute;
  right: 0;
  left: 0;
  margin: 0;
}
.leaders {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.is-aligned .leaders {
  display: block;
}
.leaders path {
  fill: none;
  stroke-width: 1;
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  transition: stroke-dashoffset 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.leaders circle {
  opacity: 0;
  transition: opacity 400ms ease-out;
}
.leaders .leader-change {
  stroke: var(--red);
}
.leaders .leader-question {
  stroke: var(--primary);
}
.leaders circle.leader-change {
  fill: var(--red);
}
.leaders circle.leader-question {
  fill: var(--primary);
}
.leaders.drawn path {
  stroke-dashoffset: 0;
}
.leaders.drawn circle {
  opacity: 1;
}

/* Files */
.ink {
  background: var(--ink);
  color: #f1f0ec;
}
.ink h2,
.ink p {
  color: #f1f0ec;
}
.ink p {
  color: #d2d4dc;
}
.files {
  display: grid;
  gap: 20px;
}
.files pre {
  margin: 0;
  padding: 20px 24px;
  overflow-x: auto;
  border: 1px solid rgba(241, 240, 236, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #eceae2;
  font: 14.5px/1.65 var(--mono);
}

/* Price */
.price-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.price-copy h2 {
  margin-bottom: 20px;
}
.checks {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.checks li {
  position: relative;
  padding: 7px 0 7px 34px;
  color: var(--ink);
}
.checks li::before {
  position: absolute;
  top: 15px;
  left: 4px;
  width: 14px;
  height: 7px;
  border-bottom: 2px solid var(--primary);
  border-left: 2px solid var(--primary);
  content: "";
  transform: rotate(-45deg);
}
.price-card {
  padding: 40px 32px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  text-align: center;
  box-shadow: 0 28px 56px -36px rgba(29, 34, 48, 0.4);
}
.amount {
  margin: 0;
  color: var(--ink) !important;
  font: 600 68px/1 var(--serif);
  letter-spacing: -0.03em;
}
.amount-note {
  margin: 8px 0 28px;
  color: var(--muted) !important;
}
.price-card .small {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
}

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.faq-list details {
  border-bottom: 1px solid var(--line-strong);
}
.faq-list details:first-child {
  border-top: 1px solid var(--line-strong);
}
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  font: 600 20px/1.35 var(--serif);
  list-style: none;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--ink-2);
  border-bottom: 2px solid var(--ink-2);
  content: "";
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 150ms ease-out;
}
.faq-list details[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}
.faq-list details p {
  margin: -4px 0 22px;
  max-width: 40em;
}

/* Footer */
.site-footer {
  padding: 56px 0 64px;
}
.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
.footer-grid p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
}
.footer-nav {
  display: flex;
  gap: 28px;
}

/* Simple text pages (privacy, imprint) */
.doc {
  max-width: 760px;
  padding: 48px var(--gutter) 96px;
  margin: 0 auto;
}
.doc h1 {
  margin-bottom: 24px;
  font-size: 40px;
}
.doc h2 {
  margin: 36px 0 8px;
  font-size: 24px;
}

/* Feature grid, map band, split with the picture on the left */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px 48px;
}
.feature .frame {
  margin-bottom: 24px;
}
.notes-page,
.section .split + .split {
  margin-top: clamp(56px, 7vw, 96px);
}
.split-image-left > .frame {
  order: -1;
}
.map-pair {
  margin-top: 0;
}
.map-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
  margin-top: 48px;
}
.ink h3 {
  color: #f1f0ec;
}
.ink .checks li {
  color: #eceae2;
}
.ink .checks li::before {
  border-color: #86a9e6;
}
@media (max-width: 960px) {
  .feature-grid,
  .map-points {
    grid-template-columns: 1fr;
  }
  .split-image-left > .frame {
    order: 0;
  }
}

@media (max-width: 960px) {
  .nav {
    display: none;
  }
  .hero-grid,
  .split,
  .pair,
  .price-grid,
  .faq,
  .margin-demo {
    grid-template-columns: 1fr;
  }
  .hero-grid {
    min-height: 0;
    gap: 40px;
  }
  .split > .split-copy {
    order: -1;
  }
  .pair {
    gap: 40px;
  }
  .margin-demo {
    gap: 20px;
  }
  .site-header .bar {
    height: 68px;
  }
  .site-header .button {
    margin-left: auto;
  }
}
@media (max-width: 560px) {
  :root {
    --gutter: 18px;
  }
  body {
    font-size: 17px;
  }
  .lead {
    font-size: 19px;
  }
  .page {
    padding: 20px 20px 4px;
    font-size: 17px;
  }
  .amount {
    font-size: 56px;
  }
  .footer-grid {
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  [data-enter] .hero-copy > *,
  [data-enter] .hero-visual {
    animation: none;
  }
  .leaders path,
  .leaders circle,
  .button,
  .link,
  .nav a {
    transition: none;
  }
}
