:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #2b201b;
  background: #c2a28b;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 8% 5%, rgba(255, 250, 245, 0.88), transparent 32rem),
    radial-gradient(circle at 90% 92%, rgba(91, 59, 46, 0.2), transparent 38rem),
    linear-gradient(145deg, #f4ece4 0%, #e1cdbc 52%, #c29f87 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(75, 52, 42, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75, 52, 42, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.page-shell {
  display: flex;
  width: min(var(--pic-content-width), calc(100% - 40px));
  min-height: calc(100vh - 66px);
  margin: 0 auto;
  padding: 48px 0 30px;
  flex-direction: column;
}

.portal-header {
  max-width: 760px;
}

.eyebrow,
.card-kicker {
  margin: 0 0 7px;
  color: #765846;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #2b201b;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.intro {
  margin: 14px 0 0;
  color: #70594a;
  font-size: 1.05rem;
  line-height: 1.6;
}

main {
  display: grid;
  flex: 1;
  align-items: center;
  padding: 54px 0;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.app-card {
  position: relative;
  display: grid;
  min-height: 330px;
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgba(91, 59, 46, 0.26);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 250, 245, 0.97), rgba(238, 225, 213, 0.95));
  box-shadow: 0 22px 54px rgba(52, 37, 31, 0.13);
  backdrop-filter: blur(16px);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.app-card::after {
  position: absolute;
  top: -85px;
  right: -80px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: var(--accent-soft);
  content: "";
  filter: blur(2px);
}

.app-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-border);
  box-shadow: 0 28px 70px rgba(52, 37, 31, 0.18);
}

.app-card-seap {
  --accent: #a86f4f;
  --accent-deep: #694839;
  --accent-soft: rgba(168, 111, 79, 0.17);
  --accent-border: rgba(168, 111, 79, 0.52);
}

.app-card-agenda {
  --accent: #8a5a45;
  --accent-deep: #34251f;
  --accent-soft: rgba(105, 72, 57, 0.16);
  --accent-border: rgba(105, 72, 57, 0.5);
}

.app-card-comparare {
  --accent: #7a6248;
  --accent-deep: #3b2d22;
  --accent-soft: rgba(122, 98, 72, 0.16);
  --accent-border: rgba(122, 98, 72, 0.5);
}

.card-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 19px;
  color: var(--accent);
  background: var(--accent-soft);
}

.card-icon svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: 28px 0;
}

.card-copy h2 {
  margin: 0 0 12px;
  color: #2b201b;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  letter-spacing: -0.035em;
}

.card-copy p:last-child {
  margin: 0;
  color: #70594a;
  font-size: 1rem;
  line-height: 1.55;
}

.open-button {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-radius: var(--pic-control-radius);
  color: #fff;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  box-shadow: 0 11px 24px color-mix(in srgb, var(--accent) 24%, transparent);
  font-weight: 750;
  text-decoration: none;
  transition: filter 160ms ease, transform 160ms ease;
}

.open-button:hover {
  filter: brightness(1.06);
}

.open-button:active {
  transform: translateY(1px);
}

.open-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 38%, transparent);
  outline-offset: 3px;
}

.open-button span:last-child {
  font-size: 1.35rem;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid rgba(91, 59, 46, 0.22);
  color: #70594a;
  font-size: 0.84rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7b8450;
  box-shadow: 0 0 0 4px rgba(123, 132, 80, 0.16);
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 28px, 620px);
    padding-top: 38px;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }

  .app-card {
    min-height: 280px;
    padding: 27px;
  }

  main {
    padding: 40px 0;
  }
}

@media (max-width: 460px) {
  footer {
    align-items: flex-start;
    gap: 10px;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
