:root {
  --ink: #19251d;
  --field: #edf2e9;
  --muted: #495b4e;
  --pad: clamp(22px, 5.55vw, 100px);
  font-family: "Helvetica Neue", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  color: var(--ink);
  background: var(--field);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
p,
h1,
h2 {
  margin: 0;
}
button,
a {
  font: inherit;
  color: inherit;
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  text-decoration: none;
}
.skip {
  position: absolute;
  left: 12px;
  top: 8px;
  padding: 9px 15px;
  background: #fff;
  transform: translateY(-160%);
  z-index: 4;
}
.skip:focus {
  transform: none;
}
:focus-visible {
  outline: 3px solid #296947;
  outline-offset: 4px;
}
header {
  height: 80px;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1800px;
  margin: auto;
}
.brand {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 26px;
  font-weight: 710;
  letter-spacing: -1.7px;
}
.brand img {
  width: 29px;
  height: 29px;
  object-fit: contain;
  filter: grayscale(1) brightness(0.56);
}
nav {
  display: flex;
  align-items: center;
  gap: 31px;
  font-size: 13px;
  font-weight: 550;
}
.cost:hover {
  text-decoration: underline;
}
.open {
  border-radius: 24px;
  background: var(--ink);
  color: #fff;
  padding: 11px 17px;
  display: inline-flex;
  gap: 12px;
  align-items: center;
}
.open:hover {
  background: #344b39;
}
.open .arrow {
  font-size: 18px;
  line-height: 1;
}
/* Header buttons by session (public/lp/auth.js sets <html data-auth>):
   guest sees "log in / try without signing up"; anonymous sees "create account /
   open app"; a registered member sees just "open app". */
.for-anon,
.for-member {
  display: none;
}
html[data-auth] .for-guest {
  display: none;
}
html[data-auth] .for-member {
  display: revert;
}
html[data-auth="registered"] .hide-registered {
  display: none;
}
@media (min-width: 761px) {
  html[data-auth="anonymous"] .for-anon {
    display: revert;
  }
}
.workspace {
  overflow: clip;
  position: relative;
  isolation: isolate;
  margin: 0 auto;
  max-width: 1660px;
  min-height: calc(100svh - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(22px, 3.1vh, 41px) var(--pad) 25px;
}
.intro {
  align-self: flex-start;
  margin-left: clamp(0px, 3.5vw, 60px);
  z-index: 2;
}
.intro h1 {
  font-size: clamp(28px, 3.15vw, 52px);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 1.35;
}
.intro p {
  font-size: clamp(13px, 1.04vw, 17px);
  letter-spacing: 0.01em;
  color: var(--muted);
  margin-top: 9px;
}
.stage {
  position: relative;
  width: 100%;
  max-width: 1290px;
  flex: 1;
  min-height: clamp(390px, 39vw, 605px);
  isolation: isolate;
}
.word-face {
  z-index: 2;
  position: absolute;
  left: 7.4%;
  top: 39%;
  transform: translateY(-35%);
}
.word-face h2 {
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 0.84;
  font-size: clamp(180px, 23vw, 368px);
  font-weight: 500;
  letter-spacing: -0.045em;
  margin-left: -0.065em;
}
.definition {
  position: relative;
  margin-top: clamp(54px, 5.8vw, 84px);
  display: flex;
  align-items: baseline;
  gap: 13px;
  font-size: 14px;
  color: var(--muted);
}
.definition span[lang] {
  font-size: 20px;
  letter-spacing: -0.035em;
}
.definition strong {
  font-weight: 600;
  font-size: clamp(18px, 1.48vw, 24px);
  color: var(--ink);
  letter-spacing: -0.045em;
}
.definition i {
  height: 13px;
  width: 1px;
  align-self: center;
  background: #9aa69a;
}
.apple {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  bottom: 5%;
  left: 54%;
  width: auto;
  height: 108%;
  max-height: 650px;
  object-fit: contain;
  transform: rotate(12deg);
  transform-origin: 52% 45%;
  transition:
    transform 0.5s cubic-bezier(0.24, 0.76, 0.22, 1),
    opacity 0.3s;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1700px) {
  .workspace {
    min-height: 820px;
  }
}
@media (max-width: 760px) {
  header {
    height: 65px;
  }
  .brand {
    font-size: 23px;
  }
  .brand img {
    width: 25px;
    height: 25px;
  }
  nav {
    gap: 18px;
  }
  .cost {
    display: none;
  }
  .open {
    font-size: 12px;
    padding: 9px 13px;
    min-height: 40px;
  }
  .workspace {
    min-height: calc(100svh - 65px);
    padding-top: clamp(24px, 4vh, 38px);
    padding-bottom: clamp(20px, 4vh, 38px);
  }
  .intro {
    margin: 0;
  }
  .intro h1 {
    font-size: clamp(24px, 6.4vw, 40px);
    letter-spacing: -0.07em;
  }
  .intro p {
    font-size: 12px;
    margin-top: 7px;
  }
  .stage {
    min-height: 365px;
    max-height: 660px;
  }
  .word-face {
    left: 1.3%;
    top: 50%;
    transform: translateY(-17%);
  }
  .word-face h2 {
    font-size: clamp(100px, 33vw, 238px);
    letter-spacing: -0.045em;
  }
  .definition {
    margin-top: 37px;
    font-size: 12px;
    gap: 9px;
  }
  .definition span[lang] {
    font-size: 16px;
  }
  .definition strong {
    font-size: 16px;
  }
  .apple {
    height: 64%;
    max-height: min(83vw, 390px);
    bottom: auto;
    top: 9%;
    left: 47%;
    transform: rotate(12deg);
  }
}
@media (max-width: 760px) and (max-height: 740px) {
  .stage {
    min-height: 370px;
  }
  .apple {
    height: 61%;
  }
  .workspace {
    padding-top: 14px;
    padding-bottom: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
.definition {
  align-items: center;
}
@media (min-width: 761px) and (max-width: 1050px) {
  .apple {
    max-height: 55vw;
    left: 55%;
    bottom: 10%;
  }
  .word-face h2 {
    font-size: 22vw;
  }
  .word-face {
    top: 45%;
  }
}
.context {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 550;
  letter-spacing: 0.015em;
  margin: 0 0 clamp(16px, 1.7vw, 26px);
}
.context b {
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -0.045em;
  font-size: 1.12em;
}
.slash {
  color: #738376;
}
.lang {
  font-size: 11px;
  font-weight: 650;
  border: 1px solid #99a697;
  border-radius: 4px;
  padding: 2px 4px;
}
.word-face {
  top: 38%;
}
#lemma {
  display: inline-block;
  transform-origin: 0 0;
}
@media (max-width: 760px) {
  .open {
    min-height: 44px;
  }
  .context {
    font-size: 12px;
    gap: 7px;
    margin: 0 0 16px;
  }
  .stage {
    min-height: 385px;
  }
  .word-face {
    left: 1%;
    top: auto;
    bottom: 10%;
    transform: none;
  }
  .apple {
    left: auto;
    right: 0;
    top: 7%;
    height: 61%;
    max-height: min(75vw, 380px);
  }
  .definition {
    min-height: 32px;
  }
}
