/* Public home page. Its own look: the rent book (ruled paper, ballpoint blue, red margin)
   set against the clean app. Only this page uses these styles. */
@font-face { font-family: "Bricolage"; src: url("/fonts/bricolage-grotesque-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("/fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("/fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("/fonts/caveat-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #ffffff;
  --ink: #142033;        /* blue-black, like a good pen */
  --soft: #55627a;
  --pen: #1f3fa6;        /* ballpoint blue, for the handwriting */
  --margin: #c8352e;     /* the red margin line of a counter book */
  --rule: #d5e1ef;       /* faint blue ruling */
  --green: #0f766e;      /* the app */
  --green-soft: #e6f4f2;
  --line: #e3e8ef;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 "Bricolage", ui-sans-serif, system-ui, sans-serif; }
a { color: var(--green); }
a:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 3px solid var(--pen); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.02em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); max-width: 11ch; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); max-width: 22ch; }
h3 { font-size: 1.2rem; line-height: 1.25; letter-spacing: -.01em; font-weight: 600; }
p { margin: 0; }
.small { font-size: .9rem; color: var(--soft); }

.bar { display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(16px, 5vw, 56px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.brand img { border-radius: 7px; }
.bar nav { display: flex; align-items: center; gap: 18px; }
.bar a.quiet { color: var(--soft); text-decoration: none; font-size: .95rem; }
.bar a.quiet:hover { color: var(--ink); }
.bar a.login { color: var(--ink); font-weight: 600; text-decoration: none; border: 1.5px solid var(--ink); border-radius: 999px; padding: 6px 16px; }
.bar a.login:hover { background: var(--ink); color: #fff; }

main { padding: 0 clamp(16px, 5vw, 56px); }
section { max-width: 1120px; margin: 0 auto; }

.btn { display: inline-block; background: var(--green); color: #fff; text-decoration: none; font-weight: 600; padding: 14px 22px; border-radius: 12px; border: 2px solid var(--green); }
.btn:hover { background: #115e59; border-color: #115e59; }
.btn.plain { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.plain:hover { border-color: var(--ink); background: transparent; }

/* ---------- Hero: words on the left, the book and the app on the right ---------- */
.hero { display: grid; gap: 48px; padding: 28px 0 72px; align-items: center; }
@media (min-width: 900px) { .hero { grid-template-columns: 1fr 1.05fr; padding-top: 48px; } }
.lede { font-size: 1.15rem; color: var(--soft); margin-top: 22px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }

.compare { position: relative; min-height: 580px; }
.ledger {
  position: relative; width: min(100%, 440px); padding: 26px 22px 30px 64px; transform: rotate(-2.2deg);
  font-family: "Caveat", cursive; font-size: 1.55rem; line-height: 40px; color: var(--pen);
  background:
    linear-gradient(to right, transparent 46px, var(--margin) 46px, var(--margin) 48px, transparent 48px),
    repeating-linear-gradient(to bottom, #fbfcfe 0 39px, var(--rule) 39px 40px);
  border-radius: 4px 4px 10px 4px;
  box-shadow: 0 1px 0 #e9eef5, 0 18px 40px -18px rgba(20, 32, 51, .35);
}
.ledger::before { /* the stitched spine of a counter book */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 14px; border-radius: 4px 0 0 10px;
  background: repeating-linear-gradient(to bottom, #3b1d1d 0 10px, #5a2b2b 10px 12px);
}
.l-head { font-size: 1.75rem; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.l-row { display: grid; grid-template-columns: 52px 92px 1fr; white-space: nowrap; }
.l-row span:first-child { margin-left: -14px; color: #5f6f8f; }
.l-row s { text-decoration-color: var(--pen); }
.l-note { color: var(--margin); transform: rotate(-3deg); margin-top: 4px; margin-left: 40px; }

.app {
  position: absolute; right: 0; bottom: 0; width: min(78%, 330px);
  background: #fff; border-radius: 22px; padding: 16px 14px 8px;
  border: 1px solid var(--line); box-shadow: 0 24px 50px -20px rgba(20, 32, 51, .45);
  font-size: .86rem; line-height: 1.3;
}
.app-top { background: linear-gradient(160deg, #0f1b2d, #0f766e); color: #fff; border-radius: 14px; padding: 12px 14px; margin-bottom: 6px; }
.app-top span { display: block; font-size: .75rem; opacity: .8; }
.app-top b { font-size: 1.6rem; letter-spacing: -.02em; }
.app-row { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-top: 1px solid #eef2f6; }
.app-row:nth-child(2) { border-top: 0; }
.app-row i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-size: .7rem; font-weight: 700; flex-shrink: 0; }
.app-row span { flex: 1; font-weight: 600; }
.app-row small { display: block; font-weight: 400; color: var(--soft); font-size: .74rem; }
.app-row em { font-style: normal; font-size: .72rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.app-row em.late { background: #fef3f2; color: #b42318; }
.app-row em.wait { background: #fffaeb; color: #b54708; }
.app-row em.ok { background: #ecfdf3; color: #067647; }

@media (max-width: 899px) {
  .compare { min-height: 0; display: grid; gap: 0; padding: 0 6px; }
  .ledger {
    width: 100%; max-width: 440px; font-size: 1.28rem; line-height: 34px; padding: 18px 12px 22px 54px; overflow: hidden;
    background:
      linear-gradient(to right, transparent 40px, var(--margin) 40px, var(--margin) 42px, transparent 42px),
      repeating-linear-gradient(to bottom, #fbfcfe 0 33px, var(--rule) 33px 34px);
  }
  .l-head { font-size: 1.45rem; }
  .l-row { grid-template-columns: 42px 76px 1fr; }
  .app { position: relative; justify-self: end; margin-top: -60px; width: 82%; }
}

/* ---------- Plain talk ---------- */
.plain-talk { padding: 72px 0; border-top: 1px solid var(--line); }
.points { display: grid; gap: 36px; margin-top: 36px; }
@media (min-width: 820px) { .points { grid-template-columns: repeat(3, 1fr); gap: 44px; } }
.points p { color: var(--soft); margin-top: 10px; }

/* ---------- WhatsApp ---------- */
.whatsapp { display: grid; gap: 40px; align-items: center; padding: 72px 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .whatsapp { grid-template-columns: 1fr 1fr; } }
.wa-text p { color: var(--soft); margin-top: 14px; max-width: 32em; }
.phone-chat {
  background: #efeae2; border-radius: 24px; padding: 0 14px 18px; max-width: 400px; justify-self: center; width: 100%;
  box-shadow: 0 24px 50px -24px rgba(20, 32, 51, .35); overflow: hidden; font-family: ui-sans-serif, system-ui, sans-serif; font-size: .9rem; line-height: 1.4;
}
.chat-head { display: flex; gap: 10px; align-items: center; background: #075e54; color: #fff; margin: 0 -14px 14px; padding: 12px 16px; }
.chat-head .dp { width: 34px; height: 34px; border-radius: 50%; background: #128c7e; display: grid; place-items: center; font-weight: 700; font-size: .75rem; }
.chat-head small { display: block; opacity: .8; font-size: .72rem; }
.bubble { position: relative; background: #d9fdd3; color: #111b21; border-radius: 10px 0 10px 10px; padding: 8px 10px 18px; margin: 0 0 10px 34px; }
.bubble.them { background: #fff; border-radius: 0 10px 10px 10px; margin: 0 34px 0 0; }
.bubble .t { position: absolute; right: 8px; bottom: 3px; font-size: .66rem; color: #667781; }

/* ---------- Steps ---------- */
.start { padding: 72px 0; border-top: 1px solid var(--line); }
.start ol { margin: 30px 0 32px; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 18px; max-width: 46em; }
.start li { counter-increment: s; position: relative; padding-left: 56px; color: var(--soft); }
.start li b { color: var(--ink); }
.start li::before { content: counter(s); position: absolute; left: 0; top: -4px; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 800; color: var(--ink); }

/* ---------- Tenants & FAQ ---------- */
.tenants { padding: 56px clamp(20px, 4vw, 40px); background: #f2f6fb; border-radius: 22px; }
.tenants p { color: var(--soft); margin-top: 14px; max-width: 40em; }
.faq { padding: 72px 0 40px; }
.faq h2 { margin-bottom: 18px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; max-width: 52em; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--soft); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--soft); margin-top: 10px; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding: 36px clamp(16px, 5vw, 56px) 48px; border-top: 1px solid var(--line); margin-top: 40px; }
.foot p { color: var(--soft); font-size: .9rem; margin-top: 8px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; font-size: .95rem; }
.foot-links a { color: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  .ledger { animation: settle .7s ease-out both; }
  .app { animation: lift .7s .35s ease-out both; }
  @keyframes settle { from { transform: rotate(-5deg) translateY(10px); opacity: 0; } to { transform: rotate(-2.2deg); opacity: 1; } }
  @keyframes lift { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
}
