/* CoMaison Owners Portal — locked page + feature gallery (static) */

:root {
  --color-canvas: #f4f1eb;
  --color-surface: #ffffff;
  --color-surface-2: #fbf9f5;
  --color-ink: #211d18;
  --color-muted: #8a8077;
  --color-line: #e7e0d5;
  --color-line-3: #f2ede3;
  --color-accent: #9a6a3c;
  --color-pill: #f1eee7;
  --font-serif: "Newsreader", Georgia, serif;
  --font-sans: "Hanken Grotesk", system-ui, sans-serif;
  --radius-panel: 18px;
  --radius-tile: 16px;
  --shadow-soft: 0 1px 2px rgba(33, 29, 24, 0.04), 0 10px 24px rgba(33, 29, 24, 0.05);
  --shadow-card: 0 1px 2px rgba(33, 29, 24, 0.05), 0 16px 34px rgba(33, 29, 24, 0.08);
}

/* Page-scoped so site nav/footer from styles.css are unaffected */
body.portal-body {
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: radial-gradient(
    150% 100% at 50% -10%,
    #f9f6f0 0%,
    #f3efe7 52%,
    #eee9df 100%
  );
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.portal-page a {
  color: inherit;
  text-decoration: none;
}

.portal-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 60px 32px 96px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.portal-hero {
  animation: portalRise 0.65s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.portal-hero h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 52px;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: var(--color-ink);
}

.portal-hero p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--color-muted);
}

/* Locked mock panel */
.mock {
  width: 100%;
  background: var(--color-surface);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.mock__header {
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-line-3);
  background: var(--color-surface);
  color: var(--color-ink);
}

@media (min-width: 768px) {
  .mock__header {
    flex-direction: row;
    align-items: center;
  }
}

.mock__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--color-ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mock__title svg {
  width: 1.375rem;
  height: 1.375rem;
  color: var(--color-accent);
  flex-shrink: 0;
}

.mock__subtitle {
  margin: 0.25rem 0 0;
  max-width: 36rem;
  font-size: 0.75rem;
  color: var(--color-muted);
  white-space: pre-line;
}

.portal-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--color-accent);
  color: #fffff4;
  border: none;
  border-radius: 11px;
  padding: 14px 22px;
  font-size: 14.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: filter 0.15s ease;
  align-self: center;
}

@media (min-width: 768px) {
  .portal-page .btn--header {
    align-self: auto;
  }
}

.portal-page .btn:hover {
  filter: brightness(1.08);
}

.portal-page .btn svg {
  width: 0.875rem;
  height: 0.875rem;
  color: #fffff4;
  flex-shrink: 0;
}

.mock__locked {
  padding: 4rem 1.5rem;
  text-align: center;
  background: var(--color-surface-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.mock__lock-icon {
  padding: 1rem;
  background: var(--color-pill);
  border-radius: 999px;
  border: 1px solid var(--color-line-3);
  color: var(--color-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock__lock-icon svg {
  width: 2rem;
  height: 2rem;
  color: var(--color-accent);
}

.mock__locked-copy {
  max-width: 28rem;
}

.mock__locked-copy h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--color-ink);
}

.mock__locked-copy p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.625;
  font-weight: 500;
  color: var(--color-muted);
  white-space: pre-line;
}

/* Feature gallery */
.portal-page .features {
  background: var(--color-surface);
  border-radius: var(--radius-panel);
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
}

@media (min-width: 768px) {
  .portal-page .features {
    padding: 1.5rem;
  }
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-tile);
  border: 1px solid var(--color-line);
  background: var(--color-canvas);
  box-shadow: var(--shadow-soft);
}

.feature-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-line);
}

.feature-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card__label {
  display: flex;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
}

.feature-card__label h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink);
  text-align: center;
  line-height: 1.35;
}

.features__blur-wrap {
  position: relative;
  margin-top: 1rem;
}

.features__blur-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: var(--radius-tile);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.features__tagline {
  margin: 1.5rem 0 0;
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--color-ink);
}

@keyframes portalRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .portal-page {
    padding: 40px 20px 72px;
  }

  .portal-hero h1 {
    font-size: 36px;
  }
}
