/* SG Residence — palette taken from HDB estate colours: pale block wall,
   corridor-railing green, block-number yellow. One family: Archivo. */
:root {
  --wall: #eef2ef;
  --paper: #ffffff;
  --ink: #1d2a2a;
  --muted: #566563;
  --green: #2c6a5c;
  --green-deep: #1f4f45;
  --plate: #f2c14e;
  --line: #d3dcd8;
  --bubble-in: #ffffff;
  --bubble-out: #dcefe7;
  --focus: #b8860b;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --wall: #142120; --paper: #1b2a29; --ink: #e6eeeb; --muted: #a3b3b0;
    --green: #6fbfa9; --green-deep: #8fd3c0; --plate: #e9b949; --line: #2e4140;
    --bubble-in: #223433; --bubble-out: #24483f; --focus: #f2c14e; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --wall: #142120; --paper: #1b2a29; --ink: #e6eeeb; --muted: #a3b3b0;
  --green: #6fbfa9; --green-deep: #8fd3c0; --plate: #e9b949; --line: #2e4140;
  --bubble-in: #223433; --bubble-out: #24483f; --focus: #f2c14e; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
}
a { color: var(--green-deep); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-head { padding: 20px 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-stretch: 112%; font-size: 1.15rem; color: var(--ink); text-decoration: none;
}
.brand-plate {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 6px;
  background: var(--plate); color: #1d2a2a; font-weight: 800; font-size: .95rem;
}
.site-nav { display: flex; gap: 20px; font-size: .95rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 0;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { color: #0f1d1b; } }
:root[data-theme="dark"] .btn-primary { color: #0f1d1b; }
.btn-google-mark { width: 20px; height: 20px; border-radius: 50%; background: #fff; display: inline-grid; place-items: center; }

/* Hero */
.hero { padding: 40px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 {
  font-weight: 800; font-stretch: 118%;
  font-size: clamp(2.3rem, 5.2vw, 3.9rem); line-height: 1.02; letter-spacing: -0.02em;
  margin: 0 0 22px; max-width: 13ch;
}
.hero p.lede { font-size: 1.2rem; color: var(--muted); max-width: 46ch; margin: 0 0 28px; }
.hero .fine { font-size: .9rem; color: var(--muted); margin-top: 14px; }

/* Phone + chat: the one memorable element */
.phone {
  background: var(--paper); border: 1px solid var(--line); border-radius: 28px;
  padding: 14px; max-width: 390px; margin-left: auto; width: 100%;
  box-shadow: 0 30px 60px -30px rgba(31, 79, 69, .45);
}
.chat-head { display: flex; align-items: center; gap: 10px; padding: 6px 8px 12px; border-bottom: 1px solid var(--line); }
.chat-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 700; }
.chat-head strong { display: block; font-size: .98rem; }
.chat-head span { font-size: .8rem; color: var(--muted); }
.chat { padding: 14px 4px 6px; display: flex; flex-direction: column; gap: 8px; font-size: .93rem; line-height: 1.4; }
.msg { max-width: 86%; padding: 9px 12px 18px; border-radius: 14px; position: relative; }
.msg time { position: absolute; right: 10px; bottom: 4px; font-size: .68rem; color: var(--muted); }
.msg.in { background: var(--wall); align-self: flex-start; border-top-left-radius: 4px; }
.msg.out { background: var(--bubble-out); align-self: flex-end; border-top-right-radius: 4px; }
.msg .who { display: block; font-size: .75rem; font-weight: 700; color: var(--green-deep); margin-bottom: 2px; }
.slots { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.slots span { border: 1px solid var(--green); color: var(--green-deep); border-radius: 999px; padding: 3px 10px; font-size: .8rem; font-weight: 600; }
.chat-note { text-align: center; font-size: .75rem; color: var(--muted); margin: 4px 0; }

@media (prefers-reduced-motion: no-preference) {
  .chat .msg { opacity: 0; transform: translateY(6px); animation: pop .35s ease forwards; }
  .chat .msg:nth-child(2) { animation-delay: .5s; }
  .chat .msg:nth-child(3) { animation-delay: 1.4s; }
  .chat .msg:nth-child(4) { animation-delay: 2.3s; }
  .chat .msg:nth-child(5) { animation-delay: 3.2s; }
  @keyframes pop { to { opacity: 1; transform: none; } }
}

/* Sections */
section.band { padding: 72px 0; border-top: 1px solid var(--line); }
section.band.alt { background: var(--paper); }
h2 { font-weight: 800; font-stretch: 112%; font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.1; margin: 0 0 14px; letter-spacing: -0.01em; }
.band .intro { color: var(--muted); max-width: 60ch; margin: 0 0 36px; }

.who-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.who-grid h3 { font-size: 1.1rem; margin: 0 0 6px; }
.who-grid p { margin: 0; color: var(--muted); font-size: .97rem; }
.who-grid div { border-top: 3px solid var(--green); padding-top: 14px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; max-width: 760px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 6px;
  background: var(--plate); color: #1d2a2a; font-weight: 800; font-stretch: 115%; font-size: 1.15rem;
}
.steps h3 { margin: 0 0 2px; font-size: 1.08rem; }
.steps p { margin: 0; color: var(--muted); font-size: .97rem; }

.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.rules ul { margin: 0; padding-left: 1.1em; }
.rules li { margin: 6px 0; }
.rules h3 { margin: 0 0 8px; font-size: 1.1rem; }

.price { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.price-box { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
section.band.alt .price-box { background: var(--wall); }
.price-amount { font-size: 2.6rem; font-weight: 800; font-stretch: 115%; margin: 0; line-height: 1; }
.price-box ul { padding-left: 1.1em; margin: 18px 0 24px; }

.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; max-width: 760px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { color: var(--muted); margin: 10px 0 0; max-width: 65ch; }

/* Footer */
.site-foot { padding: 40px 0 56px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.site-foot nav { display: flex; gap: 18px; }

/* Legal pages */
.legal { padding: 24px 0 72px; }
.legal article { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 4vw, 48px); max-width: 820px; }
.legal h1 { font-weight: 800; font-stretch: 112%; font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 6px; line-height: 1.1; }
.legal .updated { color: var(--muted); margin: 0 0 28px; }
.legal h2 { font-size: 1.3rem; margin: 34px 0 8px; }
.legal p, .legal li { max-width: 70ch; }
.legal .draft { background: #fff4d6; color: #5a4300; border-radius: 10px; padding: 12px 16px; font-size: .95rem; }
.ph { background: #fff4d6; color: #5a4300; padding: 0 4px; border-radius: 4px; }

@media (max-width: 860px) {
  .hero .wrap, .price, .rules { grid-template-columns: 1fr; gap: 36px; }
  .phone { margin: 0 auto; }
  .who-grid { grid-template-columns: 1fr 1fr; }
  .site-nav { display: none; }
}
@media (max-width: 520px) {
  .who-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 16px; }
}
