/*
Theme Name: Foundrii Site Theme
Theme URI: https://foundrii.ai
Author: Foundrii
Author URI: https://foundrii.ai
Description: A minimal Gutenberg-compatible theme for the Foundrii placeholder website.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
Text Domain: foundrii-site-theme
*/

:root {
  --foundrii-bg: #f7f5f2;
  --foundrii-surface: #ffffff;
  --foundrii-surface-soft: #fbfaf8;
  --foundrii-text: #131a2a;
  --foundrii-muted: #667085;
  --foundrii-border: rgba(19, 26, 42, 0.08);
  --foundrii-accent: #ffca14;
  --foundrii-accent-dark: #111827;
  --foundrii-blue: #4f86f7;
  --foundrii-green: #22c55e;
  --foundrii-shadow: 0 24px 70px rgba(17, 24, 39, 0.12);
  --foundrii-max-width: 1360px;
}

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

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: linear-gradient(180deg, #faf8f5 0%, #f6f4f1 100%);
  color: var(--foundrii-text);
  font-family: "Roboto", Arial, sans-serif;
  line-height: 1.6;
}

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

button,
input {
  font: inherit;
}

.page-shell,
.legal-shell {
  width: min(100%, var(--foundrii-max-width));
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.legal-shell {
  max-width: 920px;
}

.waitlist-home {
  min-height: 100vh;
}

.waitlist-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(28px, 4vw, 48px) 0;
}

.waitlist-shell {
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(320px, 372px);
  gap: clamp(34px, 5vw, 88px);
  justify-content: space-between;
  align-items: center;
  min-height: calc(100vh - 56px);
}

.waitlist-copy-column {
  max-width: 620px;
  padding: clamp(28px, 5vh, 48px) 0;
}

.waitlist-brand {
  margin: 0 0 8px;
  color: #0f2240;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.waitlist-kicker {
  margin: 0 0 14px;
  color: #4f6385;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.waitlist-title {
  margin: 0;
  max-width: 620px;
  color: var(--foundrii-accent-dark);
  font-size: clamp(2.75rem, 2.15rem + 1.95vw, 3.85rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 700;
}

.waitlist-copy {
  max-width: 620px;
  margin: clamp(20px, 2.4vw, 24px) 0 0;
  color: #42526b;
  font-size: clamp(1rem, 0.96rem + 0.24vw, 1.06rem);
  line-height: 1.68;
}

.waitlist-notice {
  max-width: 600px;
  margin: 20px 0 0;
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 0.95rem;
}

.waitlist-notice-success {
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
}

.waitlist-notice-error {
  background: rgba(239, 68, 68, 0.1);
  color: #991b1b;
}

.waitlist-form-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(12px, 1.5vw, 16px);
  align-items: center;
  max-width: 600px;
  margin-top: clamp(28px, 3vw, 34px);
}

.waitlist-form-inline input {
  min-height: clamp(58px, 5vw, 64px);
  padding: 0 20px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--foundrii-text);
  font-size: 1rem;
}

.waitlist-form-inline input::placeholder {
  color: #98a2b3;
}

.waitlist-form-inline input:focus {
  outline: 2px solid rgba(79, 134, 247, 0.18);
  outline-offset: 2px;
}

.waitlist-submit {
  min-width: clamp(216px, 18vw, 244px);
  min-height: clamp(58px, 5vw, 64px);
  padding: 0 clamp(24px, 2vw, 28px);
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffd02f, #ffc300);
  color: #111827;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(255, 195, 0, 0.22);
}

.waitlist-form-note {
  margin: 12px 0 0;
  color: #667085;
  font-size: 0.9rem;
  line-height: 1.5;
}

.waitlist-meta {
  display: grid;
  gap: 10px;
  margin-top: clamp(32px, 5vw, 56px);
}

.waitlist-copyright {
  margin: 0;
  color: #667085;
  font-size: 0.9rem;
}

.waitlist-email {
  margin: 0;
  color: #667085;
  font-size: 0.88rem;
}

.waitlist-email a {
  text-decoration: none;
}

.waitlist-address {
  margin: 0;
  color: #7b8799;
  font-size: 0.88rem;
  line-height: 1.8;
}

.waitlist-device-column {
  position: relative;
  min-height: clamp(560px, 55vw, 680px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 0;
}

.waitlist-dot-field {
  position: absolute;
  inset: clamp(40px, 6vw, 68px) clamp(-120px, -7vw, -48px) clamp(24px, 4vw, 34px) clamp(0px, 2vw, 24px);
  background-image: radial-gradient(rgba(17, 24, 39, 0.12) 1.6px, transparent 1.6px);
  background-size: 22px 22px;
  opacity: 0.72;
}

.phone-frame {
  position: relative;
  width: clamp(320px, 28vw, 372px);
  max-width: 100%;
  aspect-ratio: 372 / 700;
  height: auto;
  padding: clamp(14px, 1.4vw, 16px);
  border-radius: clamp(44px, 4vw, 52px);
  background: #000;
  box-shadow: var(--foundrii-shadow);
  z-index: 2;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: clamp(32px, 3vw, 38px);
  background: #fff;
}

.phone-status {
  padding: 18px 28px 10px;
  color: #111827;
  font-size: 1.1rem;
  font-weight: 600;
}

.phone-card {
  margin: 0 18px 18px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.06);
}

.phone-card-profile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 6px;
  padding: 18px 22px 16px;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  border-top: 1px solid rgba(17, 24, 39, 0.04);
  border-bottom: 1px solid rgba(17, 24, 39, 0.04);
}

.profile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #4f86f7;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.phone-card-profile h2,
.phone-card h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 700;
}

.phone-card-profile p,
.quick-action p,
.update-row p,
.update-row span {
  margin: 4px 0 0;
  color: #667085;
  font-size: 0.92rem;
  line-height: 1.45;
}

.phone-card-actions,
.phone-card-updates {
  padding: 16px;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.quick-action {
  position: relative;
  padding: 18px 10px 10px;
  border-radius: 20px;
  background: #fafafa;
  text-align: center;
}

.quick-action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto;
  border-radius: 16px;
  font-size: 1.05rem;
  line-height: 1;
}

.quick-action-alert .quick-action-icon {
  background: rgba(239, 68, 68, 0.12);
}

.quick-action-chat .quick-action-icon {
  background: rgba(79, 134, 247, 0.12);
}

.quick-action-news .quick-action-icon {
  background: rgba(34, 197, 94, 0.12);
}

.quick-action-count,
.quick-action-live {
  position: absolute;
  top: -6px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.quick-action-count {
  background: #ef4444;
}

.quick-action-chat .quick-action-count {
  background: #4f86f7;
}

.quick-action-live {
  min-width: 12px;
  height: 12px;
  padding: 0;
  background: #22c55e;
}

.quick-action-count-success {
  background: #22c55e;
}

.update-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.update-row + .update-row {
  margin-top: 16px;
}

.update-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #dbeafe;
  font-size: 0.92rem;
  line-height: 1;
}

.update-dot-amber {
  background: rgba(251, 191, 36, 0.28);
}

.update-dot-blue {
  background: rgba(96, 165, 250, 0.24);
}

.update-dot-green {
  background: rgba(74, 222, 128, 0.24);
}

.update-dot > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  line-height: 1;
  transform: translateY(-1px);
}

.phone-card-updates strong {
  display: inline-block;
  margin-bottom: 2px;
}

.phone-card-updates p {
  margin-top: 2px;
}

.legal-page,
.content-page {
  padding: 60px 0 80px;
}

.legal-hero,
.content-page-shell {
  margin-bottom: 28px;
}

.section-eyebrow {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(79, 134, 247, 0.1);
  color: #315ea8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-title,
.content-page-card h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.legal-lead,
.legal-card p,
.content-page-card p {
  color: #667085;
  font-size: 1rem;
  line-height: 1.7;
}

.legal-content {
  display: grid;
  gap: 18px;
}

.legal-card,
.content-page-card {
  padding: 28px;
  border: 1px solid var(--foundrii-border);
  border-radius: 24px;
  background: var(--foundrii-surface);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.06);
}

.legal-card h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.1rem;
}

.text-link {
  color: #315ea8;
}

.simple-footer {
  padding: 24px 0 36px;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.7);
}

.simple-footer-shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.simple-footer-brand,
.simple-footer-nav {
  margin: 0;
  color: #475467;
  font-size: 0.94rem;
}

.simple-footer-nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 18px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1200px) {
  .waitlist-hero {
    padding: 36px 0;
  }

  .waitlist-shell {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: clamp(28px, 4vw, 44px);
  }

  .waitlist-copy-column {
    max-width: 580px;
  }

  .waitlist-title,
  .waitlist-copy,
  .waitlist-form-inline,
  .waitlist-notice {
    max-width: 100%;
  }

  .waitlist-title {
    max-width: 540px;
    font-size: clamp(2.7rem, 1.95rem + 2vw, 3.45rem);
  }

  .waitlist-copy {
    max-width: 560px;
  }

  .waitlist-device-column {
    min-height: clamp(520px, 58vw, 620px);
  }

  .waitlist-dot-field {
    inset: 36px -20px 28px 0;
  }

  .waitlist-submit {
    min-width: 208px;
  }
}

@media (max-width: 880px) {
  .waitlist-hero {
    min-height: auto;
    align-items: flex-start;
    padding: 34px 0 42px;
  }

  .waitlist-shell {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: auto;
  }

  .waitlist-copy-column {
    max-width: 720px;
    padding: 0;
  }

  .waitlist-title {
    max-width: 100%;
    font-size: clamp(2.55rem, 4.9vw, 3.15rem);
    line-height: 1.05;
  }

  .waitlist-copy,
  .waitlist-form-inline,
  .waitlist-notice {
    max-width: 100%;
  }

  .waitlist-device-column {
    min-height: clamp(320px, 44vw, 390px);
    justify-content: center;
    align-items: flex-start;
  }

  .waitlist-dot-field {
    inset: 18px 20px 0;
  }

  .phone-frame {
    width: clamp(250px, 38vw, 300px);
  }

  .waitlist-meta {
    margin-top: 24px;
    gap: 8px;
  }
}

@media (max-width: 767px) {
  .waitlist-hero {
    padding: 28px 0 40px;
  }

  .waitlist-shell {
    gap: 28px;
  }

  .waitlist-title {
    font-size: clamp(2.2rem, 9vw, 3rem);
    line-height: 1.08;
  }

  .waitlist-copy {
    font-size: 1rem;
    line-height: 1.66;
  }

  .waitlist-form-inline {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .waitlist-form-inline input,
  .waitlist-submit {
    min-height: 58px;
  }

  .waitlist-submit {
    width: 100%;
    min-width: 0;
  }

  .waitlist-meta {
    margin-top: 28px;
  }

  .waitlist-device-column {
    display: none;
  }

  .simple-footer-shell {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .page-shell,
  .legal-shell {
    padding: 0 18px;
  }

  .waitlist-kicker {
    margin-bottom: 12px;
    font-size: 0.84rem;
  }

  .waitlist-title {
    font-size: clamp(2rem, 11vw, 2.45rem);
  }

  .waitlist-copy {
    margin-top: 20px;
    font-size: 0.98rem;
  }

  .waitlist-notice {
    padding: 12px 16px;
    font-size: 0.92rem;
  }

  .waitlist-form-inline input {
    padding: 0 18px;
  }
}
