/* wopwop.app, the public website (design frame 2026-10-03 "wopwop website: Home and Pricing", spec 5.39) */

:root {
  --ink: #17181c;
  --ink-2: #2a2b30;
  --body: #4a4b50;
  --muted: #6b6c70;
  --border: #e6e5e0;
  --border-strong: #deddd7;
  --chip: #f1f0ec;
  --page: #ffffff;
  --brand: #2f6f5e;
  --brand-dark: #1f4f42;
  --brand-tint: #e7f0ec;
  --deep: #1f3b33;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Onest, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

button {
  font-family: inherit;
}

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

.header {
  height: 76px;
  padding: 0 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.logo:hover {
  color: var(--ink);
  text-decoration: none;
}

.logoMark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.logoName {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;
}

.nav a {
  color: var(--ink-2);
}

.nav a[aria-current='page'] {
  color: var(--brand);
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.signIn,
.getStarted {
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
}

.signIn {
  padding: 0 16px;
  color: var(--ink);
}

.getStarted {
  padding: 0 18px;
  background: var(--ink);
  color: #fff;
}

.getStarted:hover {
  background: var(--ink-2);
  color: #fff;
  text-decoration: none;
}

/* ---------- buttons ---------- */

.button {
  height: 52px;
  padding: 0 22px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
}

.button:hover {
  text-decoration: none;
}

.buttonBrand {
  background: var(--brand);
  color: #fff;
}

.buttonBrand:hover {
  background: var(--brand-dark);
  color: #fff;
}

.buttonWhite {
  background: #fff;
  color: var(--ink);
  font-weight: 500;
}

.buttonWhite:hover {
  background: var(--chip);
  color: var(--ink);
}

.buttonOutline {
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--ink);
}

.buttonOutline:hover {
  border-color: #9a9b9e;
  color: var(--ink);
}

/* ---------- home: hero ---------- */

.hero {
  position: relative;
  height: 620px;
  margin: 0 0 40px;
  overflow: hidden;
}

.heroPhoto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.heroShade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(15, 24, 21, 0.78) 0%, rgba(15, 24, 21, 0.55) 34%, rgba(15, 24, 21, 0) 62%);
}

.heroText {
  position: relative;
  height: 100%;
  max-width: min(640px, 50%);
  padding: 0 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

.heroBadge {
  align-self: flex-start;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 4.7vw, 68px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: #fff;
  text-wrap: balance;
}

.hero p {
  margin: 0;
  max-width: 520px;
  font-size: 19px;
  line-height: 1.5;
  color: #fff;
  text-wrap: pretty;
}

.heroButtons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* the demo conversation over the photo */
.chat {
  position: absolute;
  bottom: 44px;
  left: min(calc(50% + 20px), calc(100% - 384px));
  width: 360px;
  padding: 0 2px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  font-size: 14px;
}

.bubble {
  max-width: 82%;
  padding: 0.78em 1em;
  font-size: 1em;
  line-height: 1.45;
  box-shadow: 0 8px 24px rgba(23, 24, 28, 0.22);
  animation: msgIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  text-wrap: pretty;
}

.bubbleCustomer {
  align-self: flex-start;
  border-radius: 14px 14px 14px 4px;
  background: #fff;
  color: var(--ink);
  border: 1px solid #dde5e1;
}

.bubbleWop {
  align-self: flex-end;
  border-radius: 14px 14px 4px 14px;
  background: var(--brand);
  color: #fff;
  border: 1px solid var(--brand);
}

.typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 14px 16px;
}

.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9a9b9e;
  animation: dot 1s infinite ease-in-out;
}

.bubbleWop.typing span {
  background: #fff;
}

.typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing span:nth-child(3) {
  animation-delay: 0.3s;
}

.chatLabel {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(23, 24, 28, 0.15);
  color: var(--deep);
  font-family: var(--mono);
  font-size: 0.79em;
  display: flex;
  align-items: center;
  gap: 5px;
  animation: msgIn 0.8s ease both;
}

.chatLabel svg {
  display: block;
  flex: none;
}

.labelCustomer {
  align-self: flex-start;
}

.labelWop {
  align-self: flex-end;
}

@keyframes msgIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes dot {
  0%,
  60%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

/* ---------- home: features ---------- */

.features {
  padding: 0 56px 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature {
  padding: 28px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.iconTile {
  align-self: flex-start;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--brand-tint);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature .iconTile {
  margin-bottom: 6px;
}

.iconTile svg {
  display: block;
}

.featureTitle {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.featureText {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- home: faq ---------- */

.faq {
  padding: 80px 56px;
  background: #fff;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 64px;
  scroll-margin-top: 0;
}

.faqIntro {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faqIntro h2 {
  margin: 0;
  font-size: 44px;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.faqIntro p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}

.faqList {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.faqItem {
  border-bottom: 1px solid var(--border);
}

.faqQuestion {
  width: 100%;
  min-height: 72px;
  padding: 18px 0;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.faqToggle {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.faqToggle svg {
  display: block;
  transition: transform 0.2s;
}

.faqQuestion[aria-expanded='true'] .faqToggle {
  background: var(--brand);
  color: #fff;
}

.faqQuestion[aria-expanded='true'] .faqToggle svg {
  transform: rotate(45deg);
}

.faqAnswer {
  margin: 0;
  padding: 0 72px 24px 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  text-wrap: pretty;
}

/* ---------- home: contact ---------- */

.contact {
  margin: 0 56px 56px;
  padding: 44px 48px;
  border-radius: 24px;
  background: var(--deep);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.contactText {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact h2 {
  margin: 0;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.contact p {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  color: #d3e2db;
}

.handle {
  font-family: var(--mono);
  color: #fff;
}

.contactButton {
  background: #fff;
  color: var(--deep);
}

.contactButton:hover {
  background: var(--brand-tint);
  color: var(--deep);
}

.contactButton svg {
  display: block;
}

/* ---------- pricing ---------- */

.pricingHead {
  padding: 72px 56px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.pricingHead h1 {
  margin: 0;
  font-size: 60px;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.pricingHead p {
  margin: 0;
  max-width: 560px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--body);
  text-wrap: pretty;
}

.plans {
  padding: 16px 56px 64px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 440px));
  justify-content: center;
  gap: 24px;
}

.plan {
  position: relative;
  padding: 32px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.planFeatured {
  border: 2px solid var(--brand);
}

.popular {
  position: absolute;
  top: -15px;
  left: 30px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
}

.planTop {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.planName {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.planTitle {
  font-size: 20px;
  font-weight: 600;
}

.planSub {
  font-size: 15px;
  color: var(--muted);
}

.periods {
  flex: none;
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--chip);
}

.period {
  height: 32px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.period[aria-checked='true'] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(23, 24, 28, 0.12);
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-height: 62px;
  flex-wrap: wrap;
}

.amount {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.unit {
  font-size: 16px;
  color: var(--muted);
}

.save {
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  align-self: center;
}

.save[hidden] {
  display: none;
}

.planFeatures {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  color: var(--ink-2);
}

.planFeatures li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.planFeatures svg {
  flex: none;
  display: block;
  margin-top: 1px;
}

.plan .button {
  margin-top: auto;
}

.pricingNote {
  margin: 0 auto 72px;
  max-width: 904px;
  padding: 0 56px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- privacy and terms ---------- */

.legal {
  padding: 48px 56px 72px;
  display: flex;
  justify-content: center;
}

.doc {
  width: 100%;
  max-width: 720px;
  color: var(--body);
  font-size: 15px;
  line-height: 1.65;
}

.doc h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.doc h2 {
  margin: 32px 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.doc h3 {
  margin: 20px 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.doc .updated {
  margin: 6px 0 24px;
  color: var(--muted);
  font-size: 13px;
}

.doc ul {
  padding-left: 20px;
}

.doc li {
  margin-bottom: 6px;
}

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

.footer {
  padding: 28px 56px 36px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 14px;
  color: var(--muted);
}

.footer a {
  color: var(--body);
}

.footerLeft {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footerRight {
  display: flex;
  gap: 24px;
}

/* ---------- smaller screens (the frame is 1440 wide) ---------- */

@media (max-width: 1100px) {
  .chat {
    display: none;
  }
}

@media (max-width: 900px) {
  .faq {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .plans {
    grid-template-columns: minmax(0, 520px);
  }

  .features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .header,
  .heroText,
  .features,
  .faq,
  .pricingHead,
  .plans,
  .pricingNote,
  .legal,
  .footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header {
    height: 64px;
  }

  .nav {
    display: none;
  }

  .signIn {
    padding: 0 10px;
  }

  .hero {
    height: auto;
    min-height: 560px;
  }

  .heroText {
    max-width: none;
    min-height: 560px;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .heroShade {
    background: linear-gradient(180deg, rgba(15, 24, 21, 0.72) 0%, rgba(15, 24, 21, 0.6) 100%);
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero p {
    font-size: 17px;
  }

  .faq {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .faqIntro h2,
  .pricingHead h1 {
    font-size: 38px;
  }

  .faqQuestion {
    font-size: 17px;
  }

  .faqAnswer {
    padding-right: 0;
  }

  .contact {
    margin: 0 16px 40px;
    padding: 32px 24px;
  }

  .contact h2 {
    font-size: 28px;
  }

  .plan {
    padding: 28px 22px;
  }

  .planTop {
    flex-direction: column;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
