@import url("https://fonts.googleapis.com/css2?family=Finlandica:ital,wght@0,400;0,500;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500;600&display=swap");
:root {
  --teal: #1f5f6b;
  --cream: #fbf6e8;
  --lime: #f1f799;
  --orange: #e8702a;
  --ink: #2a241a;
  --muted: #5a4e3e;
  --line: #c9bfa6;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--teal);
  font-family: "Finlandica", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }

.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  width: min(1380px, calc(100% - 64px));
  height: 94px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border-bottom: none;
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.5px;
}

.nav-link {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid;
  padding-bottom: 3px;
}

.hero {
  position: relative;
  min-height: 760px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 32px 100px;
  text-align: center;
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 22px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.eyebrow span { color: var(--orange); font-size: 16px; margin-right: 7px; }

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 30px;
  color: #fff;
  font-size: clamp(50px, 6.7vw, 80px);
  font-weight: 600;
  letter-spacing: -.075em;
  line-height: .91;
}

h1 em {
  color: var(--orange);
  font-family: Georgia, serif;
  font-weight: 400;
}

.hero-title .char {
  display: inline-block;
}

.js:not(.reveal-ready) .hero-title-anim {
  visibility: hidden;
}

.js .hero-title .char {
  opacity: 0;
  transform: translateY(.45em);
  will-change: opacity, transform;
}

.js.reveal-ready .hero-title .char {
  animation: char-reveal .42s cubic-bezier(.22, 1, .36, 1) forwards;
  animation-delay: calc(var(--i) * 28ms);
}

.hero-title .char.space {
  width: .28em;
}

@keyframes char-reveal {
  from {
    opacity: 0;
    transform: translateY(.45em);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-lede {
  max-width: 560px;
  margin: 0 auto 32px;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.5;
}

.js .hero-lede,
.js .hero-copy .text-link {
  opacity: 0;
  transform: translateY(12px);
}

.js.reveal-ready .hero-lede,
.js.reveal-ready .hero-copy .text-link {
  animation: hero-follow .7s cubic-bezier(.22, 1, .36, 1) forwards;
  animation-delay: var(--hero-follow-delay, 1.4s);
}

.js.reveal-ready .hero-copy .text-link {
  animation-delay: calc(var(--hero-follow-delay, 1.4s) + 120ms);
}

@keyframes hero-follow {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.text-link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 5px;
  color: #fff;
  border-bottom: 2px solid #fff;
  font-weight: 800;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.hero-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 0;
  background: #eadfc8;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 65% at 50% 40%, rgba(10,9,6,.18) 0%, rgba(10,9,6,.28) 55%, rgba(10,9,6,.42) 100%),
    linear-gradient(180deg, rgba(10,9,6,.35) 0%, rgba(10,9,6,.12) 38%, rgba(10,9,6,.48) 100%);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 30%;
}

.products {
  width: min(1180px, calc(100% - 64px));
  margin: auto;
  padding: 120px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 40px;
  margin-bottom: 68px;
}

.section-heading h2 {
  margin: 0;
  color: var(--teal);
  font-size: clamp(48px, 5vw, 72px);
  line-height: .98;
  letter-spacing: -.055em;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 28px;
  background: transparent;
  box-shadow: 0 12px 40px rgba(42, 36, 26, .08);
  transition: transform .2s, box-shadow .2s;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 0 rgba(42, 36, 26, .15);
}

.shuohua-card,
.pikabook-card,
.tingxie-card {
  color: inherit;
  background: transparent;
}

.card-visual {
  position: relative;
  height: 280px;
  flex: none;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
  background: #e8e0d0;
}

.card-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.tingxie-card .card-visual img {
  object-position: center top;
}

.shuohua-card .card-visual img {
  object-fit: cover;
}

.beta-pill {
  display: inline-block;
  margin-left: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--cream);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1;
  vertical-align: middle;
  position: relative;
  top: -4px;
}

.pikabook-card .card-visual img {
  object-fit: cover;
  object-position: center;
}

.product-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(26px, 2.6vw, 34px);
  border-radius: 0 0 28px 28px;
  color: var(--cream);
  background: var(--teal);
}

.tingxie-card .product-content { background: var(--teal); color: var(--cream); }
.shuohua-card .product-content { background: var(--lime); color: var(--ink); }
.pikabook-card .product-content { background: var(--orange); color: var(--cream); }

.product-content h3 {
  margin-bottom: 14px;
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: 1.1;
  overflow-wrap: break-word;
}

.product-content h3 strong { font-weight: 900; }
.product-content > p {
  margin-bottom: 26px;
  font-size: 16px;
  line-height: 1.55;
  opacity: .88;
}

.product-content .button {
  margin-top: auto;
  width: 100%;
  min-width: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: min(226px, 100%);
  max-width: 100%;
  padding: 15px 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  transition: transform .2s, box-shadow .2s;
}
.button:hover { transform: translateY(-3px); box-shadow: 0 8px 0 rgba(42,36,26,.15); }
.product-card .button:hover {
  transform: none;
  box-shadow: none;
}
.dark-button { color: var(--teal); background: var(--lime); border-color: var(--lime); }
.light-button { color: var(--cream); background: var(--teal); border-color: var(--teal); }
.cream-button { color: var(--orange); background: var(--cream); border-color: var(--cream); }

.beta-note {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto 120px;
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: start;
  gap: 36px;
  padding: 52px;
  border: 1px solid var(--line);
  border-radius: 28px;
}
.beta-star { color: var(--orange); font-size: 72px; line-height: 1; }
.beta-note .beta-hook {
  margin: 0 0 14px;
  color: var(--orange);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.45;
}
.beta-note h2 {
  margin: 0;
  color: var(--teal);
  font-size: clamp(28px, 3.4vw, 48px);
  letter-spacing: -.055em;
  line-height: 1.08;
  overflow-wrap: break-word;
}
.beta-note p:not(.beta-hook) {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}
.beta-note .orange-button {
  align-self: center;
  white-space: nowrap;
}
.orange-button { color: var(--cream); background: var(--orange); border-color: var(--orange); }

footer {
  min-height: 290px;
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  grid-template-rows: 1fr auto;
  align-items: start;
  gap: 40px;
  padding: 70px max(32px, calc((100vw - 1180px) / 2)) 34px;
  color: var(--cream);
  background: var(--ink);
}
.footer-brand { color: var(--cream); }
footer > p { margin: 4px 0; color: var(--lime); font-family: Georgia, serif; font-size: 23px; font-style: italic; }
.footer-links { display: flex; gap: 26px; font-family: "JetBrains Mono", monospace; font-size: 11px; text-transform: uppercase; }
.footer-links a { border-bottom: 1px solid transparent; }
.footer-links a:hover { border-color: currentColor; }
footer small { grid-column: 1 / -1; color: #9c8d78; font-family: "JetBrains Mono", monospace; font-size: 10px; }

@media (max-width: 900px) {
  .nav { width: min(1380px, calc(100% - 40px)); }
  .hero { padding: 88px 24px 80px; min-height: 640px; }
  .products, .beta-note { width: min(1180px, calc(100% - 40px)); }
  .section-heading { grid-template-columns: 1fr; gap: 16px; }
  .section-heading h2 { font-size: clamp(36px, 7vw, 56px); }
  .product-grid { grid-template-columns: 1fr; }
  .beta-note {
    grid-template-columns: 56px 1fr;
    gap: 20px 24px;
    padding: 36px 28px;
  }
  .beta-star { font-size: 48px; }
  .beta-note .orange-button {
    grid-column: 2;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    white-space: normal;
  }
  footer {
    grid-template-columns: 1fr 1fr;
    padding: 60px 24px 30px;
  }
  .footer-links { grid-column: 1 / -1; flex-wrap: wrap; }
}

@media (max-width: 600px) {
  .nav {
    width: calc(100% - 32px);
    height: 72px;
  }
  .brand { font-size: 18px; }
  .nav-link { display: none; }
  .hero {
    width: 100%;
    min-height: min(100svh, 560px);
    padding: 88px 20px 64px;
  }
  h1 {
    font-size: clamp(36px, 10vw, 48px);
    margin-bottom: 20px;
  }
  h1 br { display: none; }
  .hero-lede { font-size: 17px; margin-bottom: 24px; }
  .products {
    width: calc(100% - 32px);
    padding: 72px 0;
  }
  .section-heading { margin-bottom: 36px; }
  .section-heading h2 {
    font-size: clamp(32px, 9vw, 42px);
  }
  .section-heading h2 br { display: none; }
  .product-card { border-radius: 20px; }
  .card-visual {
    height: min(52vw, 220px);
    border-radius: 20px 20px 0 0;
  }
  .product-content {
    padding: 22px 20px 24px;
    border-radius: 0 0 20px 20px;
  }
  .product-content > p { margin-bottom: 20px; font-size: 15px; }
  .beta-note {
    width: calc(100% - 32px);
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 28px 20px;
    margin-bottom: 72px;
  }
  .beta-star { font-size: 40px; }
  .beta-note .beta-hook { font-size: 12px; }
  .beta-note h2 { font-size: clamp(26px, 7.5vw, 34px); }
  .beta-note p:not(.beta-hook) { font-size: 15px; }
  .beta-note .orange-button {
    grid-column: 1;
    justify-content: center;
    gap: 12px;
  }
  footer {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 52px 20px 28px;
  }
  footer > p {
    font-size: 20px;
    grid-column: 1;
  }
  .footer-links, footer small { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button,
  .product-card { transition: none; }
  .product-card:hover { transform: none; }
  .hero-title .char,
  .js .hero-title .char,
  .js.reveal-ready .hero-title .char,
  .js .hero-lede,
  .js .hero-copy .text-link,
  .js.reveal-ready .hero-lede,
  .js.reveal-ready .hero-copy .text-link {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Beta landing page */
.page-beta .nav {
  position: relative;
  color: var(--teal);
}

.page-beta .nav-link {
  color: var(--teal);
}

.beta-hero {
  width: min(860px, calc(100% - 64px));
  margin: 0 auto;
  padding: 72px 0 80px;
  text-align: center;
}

.beta-hero h1 {
  color: var(--teal);
  font-size: clamp(48px, 6vw, 76px);
}

.beta-lede {
  color: var(--muted);
  max-width: 640px;
}

.beta-detail {
  max-width: 560px;
  margin: 0 auto 36px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.beta-points {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto 120px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.beta-points article {
  padding: 36px 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
}

.beta-points .product-kicker {
  color: var(--orange);
}

.beta-points h2 {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
}

.beta-points p:not(.product-kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .beta-points { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .beta-hero, .beta-points { width: calc(100% - 32px); }
  .beta-hero { padding: 40px 0 56px; }
  .beta-hero h1 {
    font-size: clamp(36px, 10vw, 48px);
  }
  .beta-detail { font-size: 16px; }
  .beta-points { margin-bottom: 72px; }
  .page-beta .nav-link { display: none; }
  .beta-hero .button {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }
}
