/* Eysto website. One stylesheet, no build step. */

/* Inter, served from this site (SIL Open Font License, see
   assets/fonts/inter/LICENSE). One variable file covers every weight; the
   latin-ext file adds letters such as ğ, ş, ı and İ only when a page needs them. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter/inter-latin-wght-normal.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;
}

:root {
  --bg: #000;
  --bg-raised: #0a0a0a;
  --surface: #111;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5f5;
  --muted: #8a8a8a;
  --dim: #5c5c5c;
  --accent: #fff;
  --danger: #ff6b6b;
  --radius: 18px;
  --max: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
select {
  font: inherit;
  color: inherit;
}

::selection {
  background: #fff;
  color: #000;
}

.container {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

/* ----- Buttons ---------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background: #d9d9d9;
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.04);
}

.btn-small {
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}

.btn:hover svg {
  transform: translateX(2px);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: wait;
}

/* ----- Navigation ------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.nav.is-scrolled {
  background: rgba(0, 0, 0, 0.72);
  border-color: var(--line);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 24px;
  height: 24px;
  color: #fff;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--muted);
}

.nav-links a {
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.nav-login {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-login:hover {
  color: var(--text);
}

/* ----- Hero ------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 168px 0 0;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% 0 auto;
  height: 900px;
  background: radial-gradient(ellipse 50% 40% at 50% 30%, rgba(255, 255, 255, 0.09), transparent 70%);
  pointer-events: none;
}

.hero-title {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(44px, 7.4vw, 88px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.045em;
  /* The gradient only paints inside the box, so leave room for g, p and y. */
  padding-bottom: 0.12em;
  background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, 0.55));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  max-width: 580px;
  margin: 14px auto 0;
  font-size: clamp(17px, 2vw, 19px);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.hero-visual {
  margin-top: 72px;
  perspective: 1600px;
}

/* Tilted at first, flattened by site.js as the page scrolls. */
.hero-frame {
  --tilt: 1;
  transform: rotateX(calc(var(--tilt) * 22deg)) scale(calc(1 - var(--tilt) * 0.06));
  transform-origin: 50% 0;
  will-change: transform;
}

/* ----- Browser frame around screenshots --------------------------------- */

.frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #1a1a1a;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 40px 120px -20px rgba(255, 255, 255, 0.08),
    0 30px 80px rgba(0, 0, 0, 0.8);
}

.frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
}

.hero-fade {
  position: relative;
  height: 160px;
  margin-top: -160px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}

/* ----- Sections --------------------------------------------------------- */

.section {
  padding: 140px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 72px;
  text-align: center;
}

.section-title {
  font-size: clamp(34px, 4.6vw, 52px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.section-text {
  margin-top: 18px;
  font-size: 18px;
  color: var(--muted);
}

/* ----- Product tour: steps scroll, the screen stays ---------------------- */

.tour {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 72px;
  align-items: start;
}

.tour-step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 82vh;
  opacity: 0.2;
  transition: opacity 0.6s var(--ease);
}

.tour-step.is-active {
  opacity: 1;
}

.tour-index {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--dim);
}

.tour-step h3 {
  margin-top: 12px;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.tour-step p {
  margin-top: 14px;
  max-width: 420px;
  font-size: 17px;
  color: var(--muted);
}

.tour-step .frame {
  display: none;
}

.tour-stage {
  position: sticky;
  top: calc(50vh - min(26vw, 300px));
}

.tour-screens {
  position: relative;
  aspect-ratio: 16 / 10;
}

.tour-screens img {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
}

.tour-screens img.is-active {
  opacity: 1;
  transform: none;
}

.tour-progress {
  display: flex;
  gap: 6px;
  margin-top: 20px;
}

.tour-progress span {
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: var(--line-strong);
  transition: background 0.5s var(--ease);
}

.tour-progress span.is-active {
  background: #fff;
}

/* ----- Features --------------------------------------------------------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature {
  padding: 36px 32px 40px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}

.feature:hover {
  background: rgba(255, 255, 255, 0.02);
}

.feature svg {
  width: 22px;
  height: 22px;
  color: #fff;
}

.feature h3 {
  margin-top: 22px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.feature p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--muted);
}

/* ----- Statement -------------------------------------------------------- */

.statement {
  max-width: 900px;
  margin-inline: auto;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.035em;
  text-align: center;
}

.statement .word {
  color: #2a2a2a;
  transition: color 0.45s var(--ease);
}

.statement .word.is-lit {
  color: #fff;
}

/* ----- Pricing ---------------------------------------------------------- */

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

.plans-note {
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.plan.is-featured {
  border-color: rgba(255, 255, 255, 0.35);
  background: linear-gradient(180deg, #151515, var(--bg-raised));
}

.plan-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}

.plan-badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 12px;
  font-weight: 600;
}

.plan-price {
  margin-top: 20px;
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.plan-price small {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}

.plan-desc {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

.plan ul {
  flex: 1;
  display: grid;
  gap: 12px;
  align-content: start;
  margin: 28px 0 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 14px;
}

.plan li {
  display: flex;
  gap: 10px;
  color: #cfcfcf;
}

.plan li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    no-repeat center / contain;
}

.plan .btn {
  width: 100%;
}

/* ----- FAQ -------------------------------------------------------------- */

.faq {
  max-width: 760px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  background:
    linear-gradient(#8a8a8a, #8a8a8a) center / 100% 1.5px no-repeat,
    linear-gradient(#8a8a8a, #8a8a8a) center / 1.5px 100% no-repeat;
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}

.faq details[open] .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer p {
  overflow: hidden;
  max-width: 640px;
  color: var(--muted);
}

.faq details[open] .faq-answer p {
  padding-bottom: 24px;
}

/* ----- Closing call to action ------------------------------------------- */

.cta {
  position: relative;
  padding: 160px 0 180px;
  text-align: center;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: auto 0 -40%;
  height: 120%;
  background: radial-gradient(ellipse 45% 45% at 50% 100%, rgba(255, 255, 255, 0.1), transparent 70%);
  pointer-events: none;
}

.cta .section-title {
  position: relative;
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: -0.045em;
}

.cta .hero-actions {
  position: relative;
}

/* ----- Footer ----------------------------------------------------------- */

.footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--dim);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: grid;
  gap: 10px;
}

.footer-brand .brand {
  color: var(--text);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-links a {
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

/* Language: a quiet globe and the language name, the native list opens on click. */
.lang-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s;
}

.lang-picker:hover {
  color: var(--text);
}

.lang-picker svg {
  width: 15px;
  height: 15px;
}

.lang-picker select {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  color: inherit;
  appearance: none;
  cursor: pointer;
  outline: none;
}

.lang-picker select option {
  background: #111;
  color: #fff;
}

.lang-picker:focus-within {
  color: var(--text);
}

/* ----- Reveal on scroll ------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ----- Back to top ------------------------------------------------------ */

.to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), background 0.25s, color 0.25s;
}

.to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover {
  background: #fff;
  color: #000;
}

.to-top:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.to-top-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease);
}

.to-top:hover .to-top-arrow {
  transform: translateY(-2px);
}

/* A thin ring that fills as you read down the page. */
.to-top-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}

.to-top-ring circle {
  fill: none;
  stroke-width: 1.5;
}

.to-top-track {
  stroke: rgba(255, 255, 255, 0.14);
}

.to-top-progress {
  stroke: #fff;
  stroke-linecap: round;
  transition: stroke 0.25s;
}

.to-top:hover .to-top-progress {
  stroke: transparent;
}

/* ----- Auth pages ------------------------------------------------------- */

.auth {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 140px);
  padding: 112px 24px 64px;
}

.auth::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 40% 35% at 50% 20%, rgba(255, 255, 255, 0.07), transparent 70%);
  pointer-events: none;
}

.auth-card {
  position: relative;
  width: min(100%, 420px);
}

.auth-card h1 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-align: center;
}

.auth-card > p {
  margin-top: 8px;
  color: var(--muted);
  text-align: center;
}

.form {
  display: grid;
  gap: 16px;
  margin-top: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 13px;
  font-weight: 500;
  color: #bdbdbd;
}

.input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg-raised);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input::placeholder {
  color: var(--dim);
}

.input:focus {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06);
}

select.input {
  appearance: none;
  background: var(--bg-raised)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%238a8a8a' stroke-width='1.5'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E")
    no-repeat right 14px center;
}

.form .btn {
  width: 100%;
  height: 48px;
  margin-top: 8px;
}

.form-message {
  min-height: 22px;
  font-size: 14px;
  color: var(--danger);
  text-align: center;
}

.auth-switch {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.auth-switch a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-card[hidden],
.auth-notice [hidden],
.auth-notice[hidden] {
  display: none;
}

/* Headings get focus when a step changes, for screen readers; no ring needed. */
.auth-card h1:focus {
  outline: none;
}

.auth-forgot {
  justify-self: end;
  font-size: 13px;
  color: var(--muted);
  text-underline-offset: 3px;
}

.auth-forgot:hover,
.auth-forgot:focus-visible {
  color: var(--text);
  text-decoration: underline;
}

.auth-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--dim);
  text-align: center;
}

.auth-action {
  display: flex;
  width: 100%;
  height: 48px;
  margin-top: 32px;
}

.auth-legal {
  margin-top: 20px;
  font-size: 12px;
  color: var(--dim);
  text-align: center;
}

.auth-legal a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-notice {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  font-size: 14px;
  color: var(--muted);
}

.auth-notice .form {
  margin-top: 16px;
}

/* ----- Legal pages ------------------------------------------------------ */

.legal {
  max-width: 720px;
  padding: 140px 0 120px;
}

.legal h1 {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.legal .updated {
  margin-top: 8px;
  color: var(--dim);
  font-size: 14px;
}

.legal h2 {
  margin-top: 44px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.legal p {
  margin-top: 12px;
  color: var(--muted);
}

.notice {
  margin-top: 28px;
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  font-size: 14px;
  color: #cfcfcf;
}

/* ----- Responsive ------------------------------------------------------- */

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .tour {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .tour-stage {
    display: none;
  }

  .tour-step {
    min-height: auto;
    padding: 40px 0;
    opacity: 1;
  }

  .tour-step .frame {
    display: block;
    margin-top: 28px;
  }

  .features,
  .plans {
    grid-template-columns: 1fr;
  }

  .plans {
    max-width: 440px;
    margin-inline: auto;
  }

  .section {
    padding: 100px 0;
  }
}

@media (max-width: 600px) {
  .nav-actions {
    gap: 16px;
  }

  .hero {
    padding-top: 128px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin-inline: auto;
  }

  .hero-visual {
    margin-top: 48px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 28px;
  }

  .to-top {
    right: 18px;
    bottom: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-frame {
    transform: none;
  }
}
