:root {
  --trial-blue: #629b53;
  --trial-blue-strong: #4f7d43;
  --trial-navy: #182615;
  --trial-green: #07995d;
  --trial-green-strong: #047a4b;
  --trial-sky: #35d4ff;
  --trial-text: #273d21;
  --trial-muted: #6c8a64;
  --trial-line: #e2ebdc;
  --trial-panel: #ffffff;
  --trial-shadow: 0 28px 70px rgba(27, 43, 23, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

body.trial-body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--trial-text);
  background: #f8f6f1;
  overflow: hidden;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.trial-page {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 28px;
  overflow: hidden;
}

.trial-background {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(252, 252, 250, 0.96) 0%, rgba(249, 248, 243, 0.88) 48%, rgba(255, 255, 255, 0.96) 100%),
    url("/ui/assets/fundo-planos.png") center / cover no-repeat,
    #f8f6f1;
}

.trial-background::before,
.trial-background::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.trial-background::before {
  background:
    radial-gradient(circle at 12% 18%, rgba(53, 212, 255, 0.18), transparent 24%),
    radial-gradient(circle at 80% 12%, rgba(98, 155, 83, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(247, 245, 240, 0.3));
}

.trial-background::after {
  opacity: 0.11;
  background: url("/ui/assets/trial-medica-plataforma.png") right center / auto 108% no-repeat;
  filter: saturate(0.95);
}

.trial-app-shell {
  position: absolute;
  inset: 34px 48px;
  min-width: 980px;
  border: 1px solid rgba(208, 223, 198, 0.58);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 32px 90px rgba(64, 102, 55, 0.12);
  overflow: hidden;
  filter: blur(6px);
  transform: scale(1.02);
  opacity: 0.22;
}

.trial-app-topbar {
  height: 78px;
  display: grid;
  grid-template-columns: 220px 1fr 52px;
  align-items: center;
  gap: 30px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(206, 222, 196, 0.64);
  background: rgba(255, 255, 255, 0.9);
}

.trial-app-topbar img {
  width: 160px;
  height: auto;
}

.trial-app-topbar nav {
  display: flex;
  gap: 22px;
}

.trial-app-topbar nav span {
  width: 110px;
  height: 16px;
  border-radius: 999px;
  background: #e7eee2;
}

.trial-app-topbar nav span.active {
  background: linear-gradient(90deg, var(--trial-blue), var(--trial-sky));
}

.trial-app-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dae5d2, #ffffff);
  border: 1px solid #e0ead9;
}

.trial-app-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: calc(100% - 78px);
}

.trial-app-sidebar {
  display: grid;
  align-content: start;
  gap: 22px;
  padding: 34px 30px;
  border-right: 1px solid rgba(206, 222, 196, 0.64);
  background: rgba(252, 252, 250, 0.86);
}

.trial-app-sidebar span {
  height: 54px;
  border-radius: 14px;
  background: #ebf1e7;
}

.trial-app-content {
  padding: 42px;
}

.trial-app-heading {
  display: grid;
  gap: 16px;
  width: 420px;
}

.trial-app-heading span {
  width: 190px;
  height: 18px;
  border-radius: 999px;
  background: #e6eee1;
}

.trial-app-heading strong {
  width: 100%;
  height: 46px;
  border-radius: 18px;
  background: linear-gradient(90deg, #e1eadb, #f6f4ed);
}

.trial-app-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.trial-app-metrics article {
  min-height: 112px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e7eee2;
}

.trial-app-board {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 16px;
  margin-top: 28px;
  min-height: 420px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #e7eee2;
  padding: 24px;
}

.trial-app-hours,
.trial-app-calendar {
  display: grid;
  gap: 14px;
}

.trial-app-hours span {
  height: 42px;
  border-radius: 12px;
  background: #f8f6f1;
}

.trial-app-calendar {
  grid-template-columns: repeat(5, 1fr);
}

.trial-app-calendar span {
  min-height: 72px;
  border-radius: 14px;
  background: #faf9f6;
  border: 1px solid #f3f0e8;
}

.trial-app-calendar span.is-blue {
  background: rgba(98, 155, 83, 0.2);
}

.trial-app-calendar span.is-green {
  background: rgba(7, 153, 93, 0.16);
}

.trial-app-calendar span.is-orange {
  background: rgba(255, 155, 22, 0.2);
}

.trial-layout {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  min-height: min(690px, calc(100dvh - 56px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 0.72fr);
  align-items: stretch;
  border: 1px solid rgba(208, 223, 198, 0.86);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--trial-shadow);
  overflow: hidden;
}

.trial-value-panel {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 18px;
  padding: 34px;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(18, 29, 15, 0.18) 0%, rgba(16, 25, 13, 0.86) 76%),
    url("/ui/assets/trial-medica-plataforma.png") center / cover no-repeat,
    #182615;
}

.trial-value-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(24, 38, 21, 0.72), rgba(24, 38, 21, 0.22)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.1));
  pointer-events: none;
}

.trial-value-panel > * {
  position: relative;
  z-index: 1;
}

.trial-home-logo {
  width: 212px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.trial-home-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.trial-value-copy {
  align-self: center;
  max-width: 560px;
}

.trial-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(94, 224, 196, 0.32);
  border-radius: 999px;
  background: rgba(94, 224, 196, 0.12);
  color: #9af3dc;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.trial-value-copy h2 {
  max-width: 12ch;
  margin: 16px 0 0;
  color: #ffffff;
  font-size: clamp(2.18rem, 4vw, 3.55rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.trial-value-copy p {
  max-width: 54ch;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1rem;
  line-height: 1.48;
}

.trial-preview-card {
  width: min(470px, 100%);
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.trial-preview-card img {
  width: 92px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.18);
}

.trial-preview-card div {
  display: grid;
  gap: 3px;
}

.trial-preview-card span,
.trial-preview-card em {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 750;
}

.trial-preview-card strong {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.18;
}

.trial-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.trial-benefit-grid span {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 850;
}

.trial-benefit-grid span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #5ee0c4;
  box-shadow: 0 0 0 4px rgba(94, 224, 196, 0.15);
  flex: 0 0 auto;
}

.trial-card {
  position: relative;
  min-height: 0;
  display: grid;
  align-content: center;
  padding: 30px 34px 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 253, 255, 0.98) 100%);
  border-left: 1px solid rgba(226, 235, 220, 0.9);
}

.trial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #6ba75c 0%, #35d4ff 48%, #07995d 100%);
}

.trial-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.trial-logo {
  display: inline-flex;
  align-items: center;
  width: 188px;
  min-height: 38px;
}

.trial-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.trial-free-badge {
  width: clamp(128px, 13vw, 164px);
  height: auto;
  margin-top: -8px;
  margin-right: -8px;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
  transform: rotate(-1.5deg);
  filter:
    drop-shadow(0 12px 18px rgba(22, 114, 42, 0.26))
    drop-shadow(0 0 12px rgba(80, 255, 94, 0.24));
}

.trial-copy {
  margin-top: 10px;
}

.trial-copy h1 {
  max-width: 13ch;
  margin: 0;
  color: #20331c;
  font-size: clamp(1.74rem, 2.35vw, 2.08rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
}

.trial-copy p {
  margin: 8px 0 0;
  color: #698762;
  max-width: 46ch;
  font-size: 0.88rem;
  line-height: 1.4;
}

.trial-google {
  margin-top: 16px;
  width: 100%;
}

.trial-google-render {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trial-google-render > div,
.trial-google-render iframe {
  width: min(100%, 420px) !important;
  max-width: 420px !important;
  margin: 0 auto !important;
}

.trial-google-button,
.trial-submit {
  width: 100%;
  min-height: 46px;
  border-radius: 8px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 850;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.trial-google-button {
  background: #ffffff;
  color: #2b4525;
  border: 1px solid #dbe7d3;
  box-shadow: 0 8px 20px rgba(55, 87, 47, 0.05);
}

.trial-google-button:hover {
  border-color: #b4d3ac;
  box-shadow: 0 10px 22px rgba(98, 155, 83, 0.08);
  transform: translateY(-1px);
}

.trial-google-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.trial-google-icon,
.trial-google-icon svg {
  width: 21px;
  height: 21px;
}

.trial-helper,
.trial-feedback,
.trial-login {
  color: var(--trial-muted);
  line-height: 1.4;
}

.trial-helper {
  min-height: 16px;
  margin: 6px 0 0;
  font-size: 0.76rem;
}

.trial-helper[data-tone="success"],
.trial-feedback[data-tone="success"] {
  color: var(--trial-green);
  font-weight: 750;
}

.trial-helper[data-tone="error"],
.trial-feedback[data-tone="error"] {
  color: #b42318;
  font-weight: 750;
}

.trial-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0;
  color: #8fa58a;
  font-size: 0.78rem;
  font-weight: 800;
}

.trial-divider::before,
.trial-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e7efe2;
}

.trial-form {
  display: grid;
  gap: 10px;
}

.trial-form label {
  display: grid;
  gap: 5px;
  color: #3e5f36;
  font-size: 0.8rem;
  font-weight: 800;
}

.trial-form input {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid #d6e3ce;
  border-radius: 8px;
  background: #ffffff;
  color: #20331c;
  font-size: 0.96rem;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(46, 72, 39, 0.04);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.trial-form input:focus {
  border-color: var(--trial-blue);
  box-shadow: 0 0 0 4px rgba(98, 155, 83, 0.12);
}

.trial-password-field {
  position: relative;
  display: block;
}

.trial-password-field input {
  padding-right: 50px;
}

.trial-password-field button {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: #758e6f;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
}

.trial-password-field button:hover {
  background: #f9f8f4;
  color: var(--trial-blue);
}

.trial-password-field svg {
  width: 19px;
  height: 19px;
}

.trial-password-hide,
.trial-password-field button.is-visible .trial-password-show {
  display: none;
}

.trial-password-field button.is-visible .trial-password-hide {
  display: block;
}

.trial-form .trial-consent {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 9px;
  color: #4b6b43;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.35;
}

.trial-form .trial-consent input {
  width: 17px;
  min-height: 17px;
  margin-top: 1px;
  accent-color: var(--trial-blue);
}

.trial-consent a,
.trial-login a {
  color: var(--trial-blue);
  font-weight: 850;
}

.trial-submit {
  margin-top: 4px;
  background: linear-gradient(135deg, #0bbd71 0%, var(--trial-green) 100%);
  color: #ffffff;
  box-shadow: 0 16px 32px rgba(7, 153, 93, 0.24);
}

.trial-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 38px rgba(7, 153, 93, 0.3);
}

.trial-feedback {
  min-height: 18px;
  margin: 8px 0 0;
  font-size: 0.8rem;
}

.trial-login {
  margin: 8px 0 0;
  color: #688661;
  font-size: 0.8rem;
  text-align: center;
}

@media (max-width: 940px) {
  html {
    overflow: auto;
  }

  body.trial-body {
    height: auto;
    overflow: auto;
  }

  .trial-page {
    align-items: start;
    padding: 14px 12px;
    overflow: visible;
  }

  .trial-layout {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .trial-value-panel {
    min-height: 410px;
    padding: 24px;
  }

  .trial-value-copy h2 {
    max-width: 15ch;
  }

  .trial-benefit-grid {
    grid-template-columns: 1fr;
  }

  .trial-card {
    padding: 24px 20px 26px;
    border-left: 0;
    border-top: 1px solid rgba(226, 235, 220, 0.9);
  }
}

@media (max-width: 560px) {
  .trial-card-header {
    align-items: center;
  }

  .trial-logo {
    width: min(180px, 55vw);
  }

  .trial-free-badge {
    width: clamp(118px, 34vw, 146px);
    margin-top: -4px;
    margin-right: -4px;
  }

  .trial-value-panel {
    min-height: 430px;
  }

  .trial-preview-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .trial-preview-card img {
    width: 72px;
    height: 58px;
  }
}
