/* founder360 landing — sibling of the ecom-agent dashboard.
   Ink #181816 on white, Manrope, mono micro-labels, hairline borders,
   #D97757 as a quiet halo. WhatsApp palette lives ONLY inside the phone. */

:root {
  --ink: #181816;
  --text: rgba(24, 24, 22, .92);
  --text-soft: rgba(24, 24, 22, .70);   /* 6.56:1 on white */
  --text-faint: rgba(24, 24, 22, .62);  /* 4.97:1 on white — AA at small sizes */
  --hairline: rgba(24, 24, 22, .07);
  --hairline-strong: rgba(24, 24, 22, .14);
  --accent: #D97757;
  --r-btn: 8px;
  --r-card: 10px;
  --r-surface: 14px;
  --mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --page-x: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: #fff;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  font-optical-sizing: auto;
}

main { flex: 1; }

::selection { background: rgba(217, 119, 87, .22); }

a { color: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- shared micro-label ---------- */

.micro-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .48px;
  text-transform: uppercase;
  color: var(--text-soft);
}

/* ---------- header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--page-x);
  border-bottom: 1px solid var(--hairline);
}

.wordmark {
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: .48px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.login-link {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .48px;
  color: var(--text-soft);
  text-decoration: none;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  transition: color .15s ease, border-color .15s ease;
}

.login-link:hover {
  color: var(--ink);
  border-color: var(--hairline-strong);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(48px, 7vh, 96px) var(--page-x) clamp(56px, 8vh, 110px);
  max-width: 1220px;
  margin: 0 auto;
}

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

.hero-label {
  color: var(--accent);
  margin-bottom: 26px;
}

.hero-title {
  font-size: clamp(2.15rem, 1.05rem + 3.3vw, 3.3rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero-title-accent { color: var(--accent); display: block; }

/* desktop: keep "Pracownik AI Twojego" one deliberate line (no orphan) */
@media (min-width: 901px) {
  .hero-title-nw { white-space: nowrap; }
}

.hero-sub {
  margin-top: 22px;
  font-size: clamp(1.02rem, .95rem + .35vw, 1.19rem);
  line-height: 1.6;
  font-weight: 500;
  color: var(--text-soft);
  max-width: 30em;
}

/* ---------- form ---------- */

.waitlist-form {
  margin-top: 34px;
  display: flex;
  gap: 10px;
  max-width: 460px;
}

.email-input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  padding: 13px 16px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-btn);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.email-input::placeholder { color: var(--text-faint); }

.email-input:focus {
  outline: none;
  border-color: rgba(24, 24, 22, .4);
  box-shadow: 0 0 0 3px rgba(217, 119, 87, .14);
}

.submit-btn {
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .01em;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--r-btn);
  padding: 13px 22px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, transform .15s ease, box-shadow .2s ease;
}

.submit-btn:hover {
  background: #2c2c29;
  box-shadow: 0 6px 18px -8px rgba(24, 24, 22, .45);
  transform: translateY(-1px);
}

.submit-btn:active { transform: translateY(0); box-shadow: none; }

.submit-btn:disabled {
  opacity: .55;
  cursor: default;
  transform: none;
  box-shadow: none;
}

/* honeypot — visually removed, still in the DOM for bots */
.hp-field {
  position: absolute !important;
  width: 1px; height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  border: 0; padding: 0;
}

.form-error {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #B3401F;
}

.form-note {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-faint);
  max-width: 34em;
}

.noscript-note { color: #B3401F; font-weight: 600; }

.form-success {
  margin-top: 34px;
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  padding: 14px 20px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  background: linear-gradient(0deg, rgba(217, 119, 87, .06), rgba(217, 119, 87, .06)), #fff;
}

/* ---------- phone ---------- */

.hero-phone {
  position: relative;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.phone-halo {
  position: absolute;
  inset: 50% auto auto 50%;
  translate: -50% -46%;
  width: min(620px, 90vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(217, 119, 87, .34), rgba(217, 119, 87, .16) 55%, rgba(217, 119, 87, 0) 76%);
  pointer-events: none;
  z-index: 0;
}

.phone {
  position: relative;
  z-index: 1;
  width: min(340px, 84vw);
  border-radius: 46px;
  padding: 11px;
  background: linear-gradient(165deg, #24241f, #121210 60%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .09),
    0 2px 6px rgba(24, 24, 22, .18),
    0 32px 64px -24px rgba(24, 24, 22, .42),
    0 60px 120px -40px rgba(217, 119, 87, .25);
}

/* side buttons — thin slivers flush with the frame */
.phone::before, .phone::after {
  content: "";
  position: absolute;
  right: -1.5px;
  width: 1.5px;
  border-radius: 0 1px 1px 0;
  background: rgba(255, 255, 255, .14);
}
.phone::before { top: 128px; height: 52px; }
.phone::after { top: 194px; height: 30px; }

.phone-screen {
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: clamp(560px, 66dvh, 660px);
  background: #EFEAE2;
}

/* ----- WhatsApp top (status bar + header) ----- */

.wa-top { background: #F0F2F5; }

.wa-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px 2px;
  font-size: 12px;
  font-weight: 700;
  color: #111B21;
}

.wa-status-icons { display: inline-flex; align-items: center; gap: 5px; }

.si { display: inline-block; background: #111B21; }
.si-signal {
  width: 15px; height: 10px;
  background:
    linear-gradient(#111B21, #111B21) 0 100% / 2.6px 4px no-repeat,
    linear-gradient(#111B21, #111B21) 4.1px 100% / 2.6px 6px no-repeat,
    linear-gradient(#111B21, #111B21) 8.2px 100% / 2.6px 8px no-repeat,
    linear-gradient(#111B21, #111B21) 12.3px 100% / 2.6px 10px no-repeat;
}
.si-wifi {
  width: 13px; height: 10px;
  background: #111B21;
  clip-path: polygon(50% 100%, 0 35%, 14% 20%, 50% 62%, 86% 20%, 100% 35%);
}
.si-batt {
  width: 20px; height: 10px;
  background: transparent;
  border: 1.4px solid rgba(17, 27, 33, .55);
  border-radius: 3px;
  position: relative;
}
.si-batt::before {
  content: "";
  position: absolute;
  inset: 1.2px 5px 1.2px 1.2px;
  background: #111B21;
  border-radius: 1px;
}
.si-batt::after {
  content: "";
  position: absolute;
  right: -3.6px; top: 2.4px;
  width: 1.8px; height: 3.6px;
  background: rgba(17, 27, 33, .55);
  border-radius: 0 1px 1px 0;
}

.wa-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px 10px 10px;
  border-bottom: 1px solid rgba(17, 27, 33, .08);
}

.wa-back {
  width: 9px; height: 9px;
  border-left: 2px solid #00A884;
  border-bottom: 2px solid #00A884;
  transform: rotate(45deg);
  margin-left: 4px;
  flex: none;
}

.wa-avatar {
  flex: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(150deg, #25D366, #00A884);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  display: grid;
  place-items: center;
}

.wa-peer { display: flex; flex-direction: column; min-width: 0; flex: 1; }

.wa-peer-name {
  font-size: 15px;
  font-weight: 700;
  color: #111B21;
  line-height: 1.2;
}

.wa-peer-status {
  font-size: 11.5px;
  color: #667781;
  line-height: 1.2;
}

.wa-header-icons {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #54656F;
}

/* ----- chat ----- */

.wa-chat {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(rgba(24, 24, 22, .045) 1px, transparent 1.1px) 0 0 / 16px 16px,
    #EFEAE2;
  padding: 10px 10px 6px;
  overflow: hidden;
}

.wa-day {
  display: flex;
  justify-content: center;
  padding: 2px 0 10px;
  flex: none;
}

.wa-day span {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: #54656F;
  background: #FFFFFF;
  border-radius: 7px;
  padding: 4px 10px;
  box-shadow: 0 1px 1px rgba(17, 27, 33, .08);
}

.wa-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-bottom: 4px;
}
.wa-messages::-webkit-scrollbar { display: none; }

.msg {
  position: relative;
  max-width: 82%;
  padding: 6px 9px 7px;
  border-radius: 9px;
  font-size: 13.6px;
  line-height: 1.42;
  color: #111B21;
  box-shadow: 0 1px 1px rgba(17, 27, 33, .10);
  word-wrap: break-word;
}

.msg-text { display: inline; }

.msg-meta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  color: #667781;
  margin-left: 8px;
  vertical-align: bottom;
  position: relative;
  top: 3px;
  white-space: nowrap;
  float: right;
  margin-top: 6px;
}

.msg-agent {
  align-self: flex-start;
  background: #FFFFFF;
  border-top-left-radius: 2px;
}
.msg-agent::before {
  content: "";
  position: absolute;
  top: 0; left: -7px;
  border: 7px solid transparent;
  border-top-color: #FFFFFF;
  border-right-color: #FFFFFF;
  border-width: 5px 7px;
}

.msg-client {
  align-self: flex-end;
  background: #D9FDD3;
  border-top-right-radius: 2px;
}
.msg-client::before {
  content: "";
  position: absolute;
  top: 0; right: -7px;
  border: 7px solid transparent;
  border-top-color: #D9FDD3;
  border-left-color: #D9FDD3;
  border-width: 5px 7px;
}

.ticks { flex: none; display: inline-block; }

/* entrance */
.msg-enter { animation: msg-in .28s cubic-bezier(.21, .8, .35, 1) both; }

@keyframes msg-in {
  from { opacity: 0; transform: translateY(9px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

/* typing indicator */
.typing {
  align-self: flex-start;
  background: #FFFFFF;
  border-radius: 9px;
  border-top-left-radius: 2px;
  box-shadow: 0 1px 1px rgba(17, 27, 33, .10);
  padding: 11px 13px;
  display: inline-flex;
  gap: 4.5px;
  position: relative;
}
.typing::before {
  content: "";
  position: absolute;
  top: 0; left: -7px;
  border: 7px solid transparent;
  border-top-color: #FFFFFF;
  border-right-color: #FFFFFF;
  border-width: 5px 7px;
}

.typing i {
  width: 6.5px; height: 6.5px;
  border-radius: 50%;
  background: #9DA7AE;
  animation: typing-bounce 1.15s ease-in-out infinite;
}
.typing i:nth-child(2) { animation-delay: .16s; }
.typing i:nth-child(3) { animation-delay: .32s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .55; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* ----- input bar ----- */

.wa-inputbar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px 14px;
  background: #F0F2F5;
}

.wa-input-pill {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border-radius: 21px;
  padding: 9px 12px;
  color: #54656F;
}

.wa-input-placeholder {
  flex: 1;
  font-size: 13.5px;
  color: #8696A0;
  white-space: nowrap;
  overflow: hidden;
}

.wa-emoji, .wa-clip { flex: none; opacity: .9; }

.wa-mic {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #00A884;
  color: #fff;
  display: grid;
  place-items: center;
}

/* ---------- values ---------- */

.values {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 var(--page-x) clamp(64px, 9vh, 110px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.4vw, 48px);
}

.value {
  border-top: 1px solid var(--hairline);
  padding-top: 22px;
}

.value-index {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .48px;
  color: var(--accent);
  margin-bottom: 14px;
}

.value-label {
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 10px;
}

.value-text {
  font-size: 14.5px;
  line-height: 1.62;
  font-weight: 500;
  color: var(--text-soft);
  max-width: 30em;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 22px var(--page-x);
}

.footer-line { color: var(--text-faint); text-transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: clamp(36px, 6vh, 56px);
    gap: 56px;
  }

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

  .hero-phone { padding-top: 8px; }

  .phone { width: min(302px, 86vw); }

  .phone-screen { height: clamp(520px, 60dvh, 600px); }

  .values {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .value { padding: 22px 0 26px; }
}

@media (max-width: 460px) {
  .waitlist-form { flex-direction: column; }
  .submit-btn { padding: 13px 22px; }
  .phone { border-radius: 42px; }
  .phone-screen { border-radius: 32px; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
