@import url("https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700;800&display=swap");

.sitePage {
  --site-primary: #381fe8;
  --site-primary-container: #5345ff;
  --site-ink: #172033;
  --site-muted: #4e5a6f;
  --site-bg: #f9f9fd;
  --site-low: #f1f3f7;
  --site-border: #dfe4ec;
  --site-white: #fff;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--site-ink);
  background: var(--site-bg);
  font-family: "Hanken Grotesk", Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

.sitePage *, .sitePage *::before, .sitePage *::after { box-sizing: border-box; }
.sitePage a:focus-visible, .sitePage button:focus-visible, .sitePage input:focus-visible, .sitePage textarea:focus-visible {
  outline: 3px solid rgba(56, 31, 232, .25);
  outline-offset: 3px;
}

.sitePage > #nav {
  position: sticky !important;
  top: 0;
  z-index: 50;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between;
  width: 100% !important;
  min-height: 64px;
  height: auto !important;
  padding: 8px clamp(24px, 5vw, 64px) !important;
  color: var(--site-ink);
  background: rgba(255,255,255,.96) !important;
  border-bottom: 1px solid var(--site-border);
  box-shadow: none !important;
  backdrop-filter: blur(12px);
}

.sitePage #nav .logo { display: flex; align-items: center; gap: 10px; margin: 0; }
.sitePage #nav .logo a { display: flex; }
.sitePage #nav .logo_Img { width: 44px !important; height: 44px; object-fit: contain; }
.sitePage #nav h1, .sitePage #nav h2, .sitePage #nav .logo h1 {
  margin: 0;
  color: var(--site-primary);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  text-align: left;
}
.sitePage #nav > h1, .sitePage #nav > h2 { margin-right: auto; margin-left: 10px; }
.sitePage #nav .navlinks ul { display: flex; align-items: center; gap: 24px; margin: 0; padding: 0 !important; list-style: none; }
.sitePage #nav .navlinks li:first-child { color: var(--site-muted); }

.sitePage .getRyuButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 136px;
  min-height: 46px;
  padding: 0 20px;
  color: white;
  background: var(--site-primary-container);
  border: 0;
  border-radius: 8px;
  font: 700 15px/1 "Hanken Grotesk", sans-serif;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.sitePage .getRyuButton:hover { background: var(--site-primary); box-shadow: 0 10px 24px rgba(56,31,232,.2); transform: translateY(-1px); }

.sitePage > footer, .sitePage .signupFooter {
  position: relative;
  bottom: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  padding: 48px clamp(24px, 5vw, 64px);
  color: #edf0ff;
  background: #273044;
}
.sitePage > footer h3 { margin: 0 0 14px; color: white; }
.sitePage > footer ul { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0; padding: 0; list-style: none; }
.sitePage > footer li { padding: 0; color: #d9e2fc; }
.sitePage > footer a, .sitePage > footer a:visited { color: #edf0ff; text-decoration: none; }
.sitePage > footer a:hover { color: #c3c0ff; text-decoration: none; }

/* Transactional pages */
.siteTransactional { display: flex; flex-direction: column; }
.siteTransactional > section {
  width: min(calc(100% - 32px), 720px);
  margin: clamp(50px, 8vw, 100px) auto;
  padding: clamp(28px, 5vw, 48px) !important;
  background: var(--site-white);
  border: 1px solid var(--site-border);
  border-radius: 12px;
  box-shadow: 0 20px 54px rgba(32,36,62,.1);
  text-align: center;
}
.siteTransactional > section h2 { margin: 0 0 12px; color: var(--site-ink); font-size: clamp(30px, 5vw, 42px); letter-spacing: -.03em; line-height: 1.12; }
.siteTransactional > section > p { color: var(--site-muted); }
.siteTransactional > footer { margin-top: auto; }
.siteTransactional form { display: grid; gap: 18px; max-width: 560px; margin: 30px auto 0; }
.siteTransactional .inputField { width: 100% !important; text-align: left !important; }
.siteTransactional .inputField input, .siteTransactional .inputField textarea, .siteCancel textarea {
  width: 100% !important;
  min-height: 50px;
  margin: 0 !important;
  padding: 14px !important;
  color: var(--site-ink);
  background: white;
  border: 1px solid #cbd3df !important;
  border-radius: 8px;
  font: inherit;
  resize: vertical;
}
.siteTransactional .inputField input:focus, .siteTransactional .inputField textarea:focus, .siteCancel textarea:focus {
  border-color: var(--site-primary) !important;
  box-shadow: 0 0 0 3px rgba(56,31,232,.14);
  outline: 0;
}
.siteContact #authForm { align-items: stretch; }
.siteContact .signUpForm { max-width: 760px; }
.siteCancel .buttons { display: flex; flex-wrap: wrap-reverse; justify-content: center; gap: 12px; margin-top: 24px; }
.siteCancel .buttons br { display: none; }
.siteCancel .cancelButton {
  min-height: 46px;
  padding: 0 20px;
  color: #b42318;
  background: white;
  border: 1px solid #e8b4ae;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}
.siteCancel .message { padding: 16px; color: #b42318; background: #fff1f0; border-radius: 8px; }
.siteDownload .download::before, .siteVerify .download::before, .siteSuccess .welcome::before {
  display: block;
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  content: "";
  background: url("../images/mascot.png") center/contain no-repeat;
}
.siteReset .resetForm, .siteReset .verifyEmail { display: none; }
.siteReset .signUpForm, .siteReset .resetForm, .siteReset .verifyEmail { max-width: 680px; }
.siteReset .inputField .inputField { width: 100% !important; }
.siteReset .signUpForm > p { max-width: 560px; margin-right: auto; margin-left: auto; }
.siteSuccess .welcome { min-height: 360px; }

/* Legal pages */
.siteLegal > section {
  width: min(calc(100% - 32px), 920px);
  margin: 56px auto 80px;
  padding: clamp(28px, 5vw, 56px) !important;
  background: white;
  border: 1px solid var(--site-border);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(32,36,62,.07);
}
.siteLegal > section > h1:first-child { margin-top: 0; font-size: clamp(38px, 6vw, 58px); letter-spacing: -.04em; }
.siteLegal section h1 { margin: 46px 0 12px; color: var(--site-ink); font-size: 30px; line-height: 1.2; }
.siteLegal section h2 { margin: 32px 0 10px; color: var(--site-ink); font-size: 22px; text-align: left; }
.siteLegal section h3, .siteLegal section h4 { color: var(--site-ink); }
.siteLegal section p, .siteLegal section li { color: var(--site-muted); line-height: 1.75; }
.siteLegal section a { color: var(--site-primary); }

/* Welcome/pricing */
.siteWelcome .plansSection { padding: 76px 24px 28px; text-align: center; }
.siteWelcome .plansSection h2 { margin: 0 auto 10px; color: var(--site-ink); font-size: clamp(34px, 5vw, 52px); letter-spacing: -.04em; line-height: 1.08; }
.siteWelcome .plansSection > p { color: var(--site-muted); font-size: 18px; }
.siteWelcome .plansSection_switcher, .siteHome .plansSection_switcher { justify-content: center; }
.siteWelcome .pricingCards, .siteHome .pricingCards {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
  width: min(calc(100% - 48px), 1280px);
  margin: 0 auto 90px;
  padding: 20px 0 !important;
}
.siteWelcome .pricingCards .card, .siteHome .pricingCards .card {
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 26px 22px;
  color: var(--site-ink);
  background: white;
  border: 1px solid var(--site-border);
  border-radius: 12px;
  box-shadow: none;
}
.siteWelcome .pricingCards .card:hover, .siteHome .pricingCards .card:hover { border-color: var(--site-primary); box-shadow: 0 16px 38px rgba(32,36,62,.08); }
.siteWelcome .card h1, .siteHome .card h1 { margin-top: 0; font-size: 25px; }
.siteWelcome .card h2, .siteHome .card h2 { font-size: 23px; }
.siteWelcome .card_feature, .siteHome .card_feature { color: var(--site-muted); }
.siteWelcome #invoiceCard { width: min(calc(100% - 32px), 760px); margin: 50px auto; }

/* Production home */
.siteHome .jumbotron {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(36px, 6vw, 80px);
  min-height: 620px;
  padding: 80px clamp(24px, 6vw, 88px) !important;
  background: var(--site-bg);
}
.siteHome .jumbotron_content { width: auto; }
.siteHome .jumbotron_content h1 { margin: 0 0 20px; color: var(--site-ink); font-size: clamp(44px, 6vw, 72px); letter-spacing: -.045em; line-height: 1.02; }
.siteHome .jumbotron_content h3 { color: var(--site-muted); font-size: 22px; }
.siteHome .jumbotron_content p { color: var(--site-muted); font-size: 18px; }
.siteHome .jumbotron_image img { width: 100%; border: 1px solid var(--site-border); border-radius: 12px; box-shadow: 0 24px 60px rgba(32,36,62,.14); }
.siteHome .languageShow { padding: 52px 24px !important; color: var(--site-ink); background: white; border-block: 1px solid var(--site-border); }
.siteHome .languageShow h2 { font-size: clamp(28px, 4vw, 40px); }
.siteHome .showTranslation, .siteHome .showToolTip, .siteHome .translateFaster {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(36px, 6vw, 80px);
  max-width: 1280px;
  margin: 0 auto;
  padding: 90px clamp(24px, 5vw, 64px) !important;
}
.siteHome .showTranslation img, .siteHome .showToolTip img, .siteHome .translateFaster img { width: 100%; border-radius: 12px; box-shadow: 0 18px 48px rgba(32,36,62,.1); }
.siteHome .showTranslate_content, .siteHome .showToolTip_content, .siteHome .translateFaster_content { width: auto; }
.siteHome .showTranslation h2, .siteHome .showToolTip h2, .siteHome .translateFaster h2 { color: var(--site-ink); font-size: clamp(32px, 4vw, 46px); line-height: 1.12; text-align: left; }
.siteHome .showTranslation p, .siteHome .showToolTip p, .siteHome .translateFaster p { color: var(--site-muted); font-size: 17px; }
.siteHome .showRYUShine { padding: 84px 24px !important; color: white; background: var(--site-primary); }
.siteHome .showRYUShine aside { width: min(100%, 900px); margin: auto; }
.siteHome .showRYUShine h2, .siteHome .showRYUShine h3, .siteHome .showRYUShine p { color: white; text-align: center; }
.siteHome .plansSection { padding: 88px 24px 30px !important; background: var(--site-bg); text-align: center; }
.siteHome .plansSection h2 { margin: 0 auto 8px; color: var(--site-ink); font-size: clamp(34px, 5vw, 48px); letter-spacing: -.03em; }
.siteHome .plansSection > p { color: var(--site-muted); font-size: 18px; }

@media (max-width: 980px) {
  .siteWelcome .pricingCards, .siteHome .pricingCards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .siteHome .jumbotron { grid-template-columns: 1fr; text-align: center; }
  .siteHome .showTranslation, .siteHome .showToolTip, .siteHome .translateFaster { grid-template-columns: 1fr; }
  .siteHome .showToolTip > aside:last-child { grid-row: 1; }
}

@media (max-width: 680px) {
  .sitePage > #nav { padding: 8px 18px !important; }
  .sitePage #nav .navlinks li:first-child { display: none; }
  .sitePage #nav .navlinks ul { gap: 8px; }
  .sitePage #nav .getRyuButton { min-width: 0; padding: 0 12px; font-size: 13px; }
  .sitePage #nav h1, .sitePage #nav h2, .sitePage #nav .logo h1 { font-size: 18px; }
  .sitePage > footer { flex-direction: column; }
  .siteWelcome .pricingCards, .siteHome .pricingCards { grid-template-columns: 1fr; width: min(calc(100% - 32px),520px); }
  .siteHome .jumbotron { min-height: auto; padding: 60px 20px !important; }
  .siteHome .jumbotron_content h1 { font-size: 42px; }
  .siteHome .showTranslation, .siteHome .showToolTip, .siteHome .translateFaster { padding: 64px 20px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .sitePage *, .sitePage *::before, .sitePage *::after { transition-duration: .01ms !important; }
}
