/* Zyncochat website: landing, sign-up, legal pages. Same greens as the app. */
:root {
  --forest: #0E5A4A;
  --forest-deep: #0A4236;
  --mint: #DCEBE5;
  --paper: #F3F5F2;
  --ink: #14201D;
  --muted: #4F5B57;
  --line: #D5DCD9;
  --amber: #B4570A;
  --danger: #B42318;
  --chat: #EDF1EE;
  --display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--forest); }
:focus-visible { outline: 3px solid var(--forest); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
code { font: 600 .92em var(--body); background: var(--mint); color: var(--forest-deep); padding: 1px 6px; border-radius: 6px; }

/* ---------------------------------------------------------------- top + footer */
.topbar { max-width: 1160px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 21px var(--display); letter-spacing: -.01em; }
.logo-mark { color: var(--forest); display: inline-flex; }
.topnav { display: flex; align-items: center; gap: 18px; }
.topnav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.topnav a:hover { color: var(--forest); }
.footer { border-top: 1px solid var(--line); margin-top: 40px; }
.footer-inner { max-width: 1160px; margin: 0 auto; padding: 22px 24px 30px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--muted); font-size: 15px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer a { color: var(--muted); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 14px;
  background: var(--forest); color: #fff; font: 700 16px var(--body); text-decoration: none; border: 0; cursor: pointer;
}
.btn:hover { background: var(--forest-deep); }
.btn-small { min-height: 40px; padding: 0 16px; border-radius: 11px; font-size: 15px; }
.topnav .btn-small { color: #fff; }
.btn-quiet { background: transparent; color: var(--forest); box-shadow: inset 0 0 0 2px var(--forest); }
.btn-quiet:hover { background: var(--mint); }
.btn-light { background: #fff; color: var(--forest-deep); }
.btn-light:hover { background: var(--mint); }
.btn-block { width: 100%; margin-top: 22px; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }

/* ---------------------------------------------------------------- hero */
.hero { max-width: 1160px; margin: 0 auto; padding: 40px 24px 72px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.hero h1 { font: 800 clamp(44px, 6.4vw, 80px)/.98 var(--display); letter-spacing: -.035em; margin: 0 0 24px; max-width: 13ch; }
.lead { font-size: 20px; color: var(--muted); max-width: 34em; margin: 0 0 30px; }
.lead.small { font-size: 17px; margin-bottom: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { margin: 18px 0 0; color: var(--muted); font-size: 15px; }

/* the phone: the app as agents see it */
.phone { justify-self: center; width: min(340px, 100%); border-radius: 44px; padding: 12px; background: var(--ink); box-shadow: 0 30px 60px -20px rgba(10, 66, 54, .45); }
.phone-screen { border-radius: 33px; overflow: hidden; background: var(--chat); display: flex; flex-direction: column; height: 640px; }
.phone-head { display: flex; align-items: center; gap: 10px; padding: 34px 14px 12px; background: #fff; border-bottom: 1px solid #E3E8E5; }
.stack { display: flex; }
.stack i { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; margin-left: -10px; display: grid; place-items: center; font: 700 12px var(--body); font-style: normal; color: #fff; background: var(--c); }
.stack i:first-child { margin-left: 0; }
.phone-title { display: flex; flex-direction: column; line-height: 1.25; font-size: 14px; }
.phone-title small { color: #1A7A53; font-size: 12px; font-weight: 500; }
.thread { flex: 1; padding: 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; font-size: 14px; overflow: hidden; }
.day { align-self: center; margin: 0 0 4px; font-size: 11px; background: #fff; color: var(--muted); padding: 2px 9px; border-radius: 9px; }
.b { margin: 0; max-width: 78%; padding: 8px 11px 5px; border-radius: 16px; line-height: 1.35; animation: pop .45s cubic-bezier(.2, .8, .3, 1.2) both; animation-delay: calc(var(--d) * .55s); }
.b s { display: block; text-decoration: none; text-align: right; font-size: 10px; opacity: .75; margin-top: 2px; }
.b.me { align-self: flex-end; background: var(--forest); color: #fff; border-bottom-right-radius: 5px; }
.b.op { align-self: flex-start; background: #fff; border-bottom-left-radius: 5px; }
.who { margin: 6px 0 -2px 4px; font-size: 11px; font-weight: 700; color: var(--forest); animation: pop .45s both; animation-delay: calc(var(--d) * .55s); }
.b.photo { padding: 4px; }
.slip { display: block; width: 150px; height: 110px; border-radius: 12px; background:
  linear-gradient(#fff 0 0) 14px 18px / 90px 7px no-repeat,
  linear-gradient(#E3E8E5 0 0) 14px 36px / 120px 6px no-repeat,
  linear-gradient(#E3E8E5 0 0) 14px 50px / 100px 6px no-repeat,
  linear-gradient(#E3E8E5 0 0) 14px 64px / 110px 6px no-repeat,
  linear-gradient(var(--amber) 0 0) 14px 84px / 54px 10px no-repeat,
  #F7F9F8; }
.b.photo s { padding: 0 6px 2px; }
.b.voice { display: flex; align-items: center; gap: 8px; padding: 8px 11px; }
.b.voice s { margin: 0; }
.play { width: 0; height: 0; border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.wave { width: 120px; height: 18px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.85) 0 3px, transparent 3px 6px); clip-path: polygon(0 40%,8% 20%,16% 55%,24% 10%,32% 45%,40% 0,48% 35%,56% 15%,64% 50%,72% 25%,80% 40%,88% 30%,100% 45%,100% 60%,88% 70%,80% 60%,72% 75%,64% 50%,56% 85%,48% 65%,40% 100%,32% 55%,24% 90%,16% 45%,8% 80%,0 60%); }
.typing { margin: 4px 0 0; align-self: flex-start; display: flex; align-items: center; gap: 3px; color: var(--muted); font-size: 12px; animation: pop .45s both; animation-delay: calc(var(--d) * .55s); }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: #9AA6A1; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; margin-right: 6px; }
.composer { display: flex; align-items: center; gap: 8px; padding: 10px 12px 18px; background: #fff; border-top: 1px solid #E3E8E5; }
.composer span { flex: 1; background: #F6F8F7; border: 1px solid var(--line); border-radius: 20px; padding: 8px 14px; font-size: 13px; color: #6B7672; }
.composer i { width: 36px; height: 36px; border-radius: 50%; background: var(--forest); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .b, .who, .typing, .typing span { animation: none; } }

/* ---------------------------------------------------------------- how it works (a real sequence) */
.steps, .features { max-width: 1160px; margin: 0 auto; padding: 56px 24px; }
.steps h2, .features h2, .closing h2 { font: 800 clamp(30px, 3.6vw, 44px)/1.05 var(--display); letter-spacing: -.025em; margin: 0 0 32px; }
.steps ol { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { counter-increment: step; border-top: 3px solid var(--forest); padding-top: 18px; }
.steps li::before { content: counter(step); display: block; font: 800 56px/1 var(--display); color: var(--forest); margin-bottom: 12px; }
.steps h3 { font: 700 21px var(--display); margin: 0 0 8px; }
.steps p { margin: 0; color: var(--muted); }

.features dl { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.features dl div { padding: 20px 0; border-top: 1px solid var(--line); }
.features dt { font-weight: 700; margin-bottom: 4px; }
.features dd { margin: 0; color: var(--muted); }

.closing { margin: 40px auto 0; max-width: 1112px; background: var(--forest); color: #fff; border-radius: 28px; padding: 56px 48px; }
.closing h2 { max-width: 16ch; margin-bottom: 12px; }
.closing p { color: var(--mint); margin: 0 0 26px; max-width: 36em; }

/* ---------------------------------------------------------------- forms */
.split { max-width: 1060px; margin: 0 auto; padding: 24px 24px 40px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: start; }
.form-card { background: #fff; border: 1px solid #E3E8E5; border-radius: 22px; padding: 32px; }
.form-card h1 { font: 800 34px/1.1 var(--display); letter-spacing: -.02em; margin: 0 0 8px; }
.form-card label { display: block; font-weight: 500; margin: 16px 0 6px; }
.form-card input[type=text], .form-card input:not([type]), .form-card input[type=email], .form-card input[type=tel], .form-card input[type=password] {
  width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; font: inherit; background: #FBFCFB;
}
.form-card input:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px var(--mint); }
.opt { color: var(--muted); font-weight: 400; }
.hint { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; margin-top: 20px !important; }
.check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--forest); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { background: var(--mint); color: var(--forest-deep); padding: 12px 14px; border-radius: 12px; margin: 10px 0; }
.notice.error { background: #FDECEA; color: var(--danger); }
.switch { margin: 18px 0 0; color: var(--muted); text-align: center; }

.next { padding-top: 12px; }
.next h2 { font: 700 22px var(--display); margin: 0 0 18px; }
.track { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.track li { counter-increment: t; position: relative; padding: 0 0 22px 46px; }
.track li::before {
  content: counter(t); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 14px; background: #fff; border: 2px solid var(--line); color: var(--muted);
}
.track li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 34px; bottom: 4px; width: 2px; background: var(--line); }
.track b { display: block; }
.track span { color: var(--muted); font-size: 15px; display: block; }
.track li.done::before { content: "✓"; background: var(--forest); border-color: var(--forest); color: #fff; }
.track li.now::before { border-color: var(--forest); color: var(--forest); }
.track form { margin-top: 10px; }
.track.big { margin: 8px 0 24px; }
.status-wrap { max-width: 620px; margin: 0 auto; padding: 24px 24px 40px; }
.logout { margin-top: 22px; text-align: center; }

/* ---------------------------------------------------------------- legal */
.legal { max-width: 720px; margin: 0 auto; padding: 24px 24px 40px; }
.legal h1 { font: 800 44px/1.05 var(--display); letter-spacing: -.025em; margin: 0 0 6px; }
.legal .updated { color: var(--muted); margin: 0 0 28px; }
.legal h2 { font: 700 23px var(--display); margin: 34px 0 8px; }
.legal li { margin-bottom: 6px; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 16px; }
  .steps ol { grid-template-columns: 1fr; gap: 26px; }
  .features dl { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .closing { margin: 24px 16px 0; padding: 40px 24px; border-radius: 22px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .topbar, .hero, .steps, .features, .split, .status-wrap, .legal { padding-left: 16px; padding-right: 16px; }
  .topnav { gap: 12px; }
  .lead { font-size: 18px; }
  .form-card { padding: 22px 18px; border-radius: 18px; }
  .two { grid-template-columns: 1fr; gap: 0; }
  .phone-screen { height: 540px; }
}

/* Very small phones: keep the top bar inside the screen. */
@media (max-width: 360px) {
  .topnav { gap: 10px; }
  .topnav .btn-small { padding: 0 12px; }
}
