/* Same Day Reply site: Shoreline design.
   Palette: sand #F6EBD3 to deep ocean #08394A (a smooth page gradient), ink #0B2F3A, coral accent #E2573A.
   Type: Shippori Mincho for headings, Schibsted Grotesk for text, Caveat only for the handwritten owner alerts in the demos. */
:root {
  --ink: #0B2F3A;
  --muted: #25505C;
  --paper: #F6EBD3;
  --white: #FFFFFF;
  --line: #CFE0DE;
  --teal: #0B4A5A;
  --teal-dark: #083A47;
  --mid: #2C7C8C;
  --coral: #E2573A;
  --link: #B8381F;
  --slip: #FFE79A;
  --slip-line: #E7C95E;
  --pen: #1B3A8A;
  --font-head: "Shippori Mincho", "Hiragino Mincho ProN", Georgia, serif;
  --font-body: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-hand: "Caveat", "Segoe Script", "Bradley Hand", cursive;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #F6EBD3 0, #DCEBE2 420px, #F1F6F3 900px, #F1F6F3 100%);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.shore { background: linear-gradient(180deg, #F6EBD3 0%, #DCEBE2 18%, #A9D3D0 38%, #5FA6B0 58%, #2C7C8C 76%, #0B4A5A 92%, #08394A 100%); }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--teal); }
:focus-visible { outline: 3px solid var(--pen); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* Header */
.site-header { padding-top: 22px; padding-bottom: 22px; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.wordmark { font-family: var(--font-head); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 1rem; font-weight: 500; padding: 4px 0; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--mid); color: var(--ink); }
.nav a[aria-current] { border-bottom-color: var(--coral); }

/* Hero */
.hero { position: relative; overflow: hidden; padding-top: 24px; padding-bottom: 130px; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 150px; pointer-events: none;
  background-image: radial-gradient(circle at 50% 100%, transparent 0, transparent 28px, rgba(255,255,255,0.75) 29px, rgba(255,255,255,0.75) 31px, transparent 32px, transparent 52px, rgba(255,255,255,0.75) 53px, rgba(255,255,255,0.75) 55px, transparent 56px, transparent 76px, rgba(255,255,255,0.75) 77px, rgba(255,255,255,0.75) 79px, transparent 80px);
  background-size: 110px 70px;
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.clock-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 16px; margin: 0 0 20px; }
.clock { font-family: var(--font-head); font-weight: 800; font-size: clamp(4.2rem, 9vw, 7rem); line-height: 0.9; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.dot { width: 26px; height: 26px; border-radius: 50%; background: var(--coral); flex: none; animation: blink 1s steps(1, end) infinite; }
.clock-note { font-weight: 500; font-size: 1.15rem; color: var(--muted); max-width: 9.5em; line-height: 1.25; margin: 0; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
h1 { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.1rem, 4.4vw, 3.1rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 22px; text-wrap: balance; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 32em; margin: 0 0 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; text-decoration: none; padding: 15px 26px; border-radius: 12px; border: 2px solid var(--teal); background: var(--teal); color: var(--white); }
.btn:hover { filter: brightness(1.12); color: var(--white); }
.btn.quiet { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn.quiet:hover { color: var(--ink); }

/* Phone mockup */
.phone-wrap { position: relative; display: flex; justify-content: center; padding-bottom: 8px; }
.phone { width: 310px; max-width: 100%; background: #0B2F3A; border-radius: 44px; padding: 13px; box-shadow: 0 30px 60px rgba(11, 47, 58, 0.3); }
.phone-screen { background: #fff; border-radius: 32px; overflow: hidden; display: flex; flex-direction: column; min-height: 560px; }
.phone-top { background: linear-gradient(135deg, var(--mid), var(--teal)); color: #fff; padding: 22px 20px 16px; }
.phone-top .sm { font-size: 0.82rem; opacity: 0.9; }
.phone-top .nm { font-size: 1.2rem; font-weight: 700; margin-top: 2px; }
.thread { flex: 1; padding: 18px 14px; display: flex; flex-direction: column; gap: 12px; background: #EEF5F4; }
.bub { max-width: 84%; padding: 12px 14px; border-radius: 16px; font-size: 0.93rem; line-height: 1.4; }
.bub.in { align-self: flex-start; background: #fff; border: 1px solid var(--line); }
.bub.out { align-self: flex-end; background: var(--mid); color: #fff; }
.getcard { position: absolute; right: -6px; bottom: 34px; width: 216px; background: var(--paper); padding: 14px 16px; transform: rotate(3deg); box-shadow: 0 12px 28px rgba(11, 47, 58, 0.3); font-size: 0.93rem; line-height: 1.4; border-left: 6px solid var(--coral); }
.getcard b { display: block; font-size: 0.85rem; margin-bottom: 4px; }
.caption { margin: 20px 0 0; font-size: 0.9rem; color: var(--muted); text-align: center; }

/* Sections */
section { padding-top: 28px; padding-bottom: 28px; }
.panel { background: rgba(255, 255, 255, 0.9); border-radius: 28px; padding: 44px; }
h2.section-title { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 14px; }
.intro { color: var(--muted); max-width: 36em; margin: 0 0 36px; }

.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.two > div { background: #EEF5F4; border-radius: 22px; padding: 30px; }
.two h3 { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.01em; margin: 0 0 10px; }
.two p { margin: 0 0 14px; max-width: 30em; }
.example { background: #fff; border-left: 5px solid var(--coral); padding: 12px 16px; font-size: 0.97rem; color: var(--ink); max-width: 30em; border-radius: 4px; }
.example b { font-weight: 700; }
.note { font-size: 0.92rem; color: var(--muted); margin-top: 14px; max-width: 30em; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 52px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--mid); }
.steps li::after { content: ""; position: absolute; top: 20px; left: 36px; right: 12px; height: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; margin: 0 0 6px; }
.steps p { margin: 0; color: var(--muted); max-width: 22em; }

.try { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.try .picks { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.try .picks li { background: #EEF5F4; border-radius: 16px; padding: 16px 18px; }
.hint { margin: 16px 0 0; font-weight: 600; }

.contact { color: #fff; padding-top: 56px; padding-bottom: 36px; }
.contact .intro { color: #D6ECEC; }
.contact a.big { font-family: var(--font-head); font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 800; color: #fff; border-bottom: 4px solid var(--coral); text-decoration: none; word-break: break-word; }
.contact a.big:hover { color: #fff; }

/* Ask us tab (chat-style page) */
.view-chat { padding: 8px 0 56px; }
.thread-page { max-width: 720px; margin: 0 auto; padding: 0 16px; display: flex; flex-direction: column; gap: 14px; font-size: 1.1rem; line-height: 1.5; }
.thread-page .stamp { align-self: center; font-size: 0.88rem; color: var(--muted); margin-bottom: 4px; }
.tb { max-width: 86%; border-radius: 24px; padding: 16px 22px; }
.tb.me { align-self: flex-end; max-width: 78%; background: linear-gradient(135deg, var(--mid), var(--teal)); color: #fff; border-radius: 24px 24px 6px 24px; padding: 14px 20px; }
.tb.us { align-self: flex-start; background: #fff; border-radius: 24px 24px 24px 6px; box-shadow: 0 2px 10px rgba(11, 47, 58, 0.12); }
.tb.us h2 { font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; line-height: 1.12; margin: 0 0 10px; letter-spacing: -0.01em; }
.tb.us p { margin: 0 0 8px; }
.tb.us p:last-child { margin-bottom: 0; }
.tb.hi { align-self: flex-start; background: var(--paper); border-left: 6px solid var(--coral); border-radius: 24px 24px 24px 6px; }
.tb .small { font-size: 0.92rem; color: var(--muted); margin-top: 6px; }
html.js .view-chat { display: none; }
html.js body.is-chat .view-home { display: none; }
html.js body.is-chat .view-chat { display: block; }

/* Footer */
.site-footer { padding-top: 28px; padding-bottom: 44px; font-size: 0.92rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.site-footer nav { display: flex; gap: 20px; }
body.shore .site-footer { color: #CFE6E6; }
body.shore .site-footer a { color: #fff; }

/* Legal pages */
.legal { padding-top: 24px; padding-bottom: 72px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); margin-bottom: 8px; }
.legal .updated { color: var(--muted); margin: 0 0 32px; }
.legal h2 { font-family: var(--font-head); font-size: 1.3rem; letter-spacing: -0.01em; margin: 34px 0 8px; }
.legal p, .legal li { max-width: 40em; }
.legal ul { padding-left: 1.2em; }
.legal .todo { background: var(--slip); padding: 2px 6px; border-radius: 3px; font-weight: 600; }

@media (max-width: 820px) {
  .hero .wrap, .try { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero { padding-bottom: 110px; }
  .two { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .steps li::after { display: none; }
  .panel { padding: 28px 22px; border-radius: 22px; }
  .getcard { right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot { animation: none; }
}

/* Demo pages */
.demo-page { padding-top: 12px; padding-bottom: 72px; }
.crumb { display: inline-block; margin-bottom: 18px; font-size: 0.95rem; }
.demo-page h1 { font-size: clamp(2rem, 4.6vw, 3rem); margin-bottom: 14px; }
.demo-note { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--teal); padding: 12px 16px; font-size: 0.95rem; color: var(--muted); max-width: 46em; margin: 0 0 32px; }
.demo { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: 32px; align-items: start; }
.frame { --brand: #2B2B2B; --brand-ink: #FFFFFF; background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 14px 28px -18px rgba(18, 32, 43, 0.45); }
.frame.hvac { --brand: #1B5E9B; }
.frame.phone { --brand: #0D6B6E; }
.frame-bar { background: var(--brand); color: var(--brand-ink); padding: 18px 22px; }
.frame-bar .biz { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.01em; }
.frame-bar .tag { font-size: 0.9rem; opacity: 0.85; }
.frame-body { padding: 18px 22px 22px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 20px; margin: 0 0 18px; font-size: 0.93rem; color: var(--muted); }
.facts b { display: block; color: var(--ink); font-weight: 600; }
.chat { border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; background: #FBFCFC; }
.chat-head { padding: 10px 14px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 0.95rem; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.chat-head button { all: unset; cursor: pointer; font-size: 0.85rem; color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; }
.log { height: 340px; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 84%; padding: 9px 13px; border-radius: 14px; font-size: 0.96rem; line-height: 1.4; white-space: pre-wrap; }
.msg.in { background: #E9EEF1; align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.out { background: var(--brand); color: var(--brand-ink); align-self: flex-end; border-bottom-right-radius: 4px; }
.msg.typing { opacity: 0.6; }
.msg.sys { align-self: center; background: transparent; color: var(--muted); font-size: 0.85rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 12px; min-height: 8px; }
.chip { all: unset; cursor: pointer; font-size: 0.88rem; font-weight: 500; padding: 6px 12px; border: 1.5px solid var(--brand); color: var(--brand); border-radius: 999px; background: var(--white); }
.chip:hover { background: var(--brand); color: var(--brand-ink); }
.chip:focus-visible { outline: 3px solid var(--pen); outline-offset: 2px; }
.send { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.send input { flex: 1; min-width: 0; font: inherit; font-size: 0.95rem; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 8px; }
.send button { font: inherit; font-weight: 600; font-size: 0.95rem; padding: 9px 16px; border: 0; border-radius: 8px; background: var(--brand); color: var(--brand-ink); cursor: pointer; }
.callbtn { font: inherit; font-weight: 600; padding: 12px 20px; border: 0; border-radius: 8px; background: var(--brand); color: var(--brand-ink); cursor: pointer; margin: 0 0 16px; }
.callbtn[disabled] { opacity: 0.5; cursor: default; }
.owner h2 { font-family: var(--font-head); font-size: 1.15rem; margin: 0 0 4px; }
.owner .sub { margin: 0 0 14px; font-size: 0.92rem; color: var(--muted); }
.owner-list { display: flex; flex-direction: column; gap: 12px; }
.owner-empty { border: 2px dashed var(--line); border-radius: 10px; padding: 16px; color: var(--muted); font-size: 0.93rem; }
.alert { position: relative; background: var(--slip); border-radius: 2px; padding: 12px 14px 12px; font-family: var(--font-hand); font-size: 1.35rem; line-height: 1.2; color: var(--pen); box-shadow: 0 8px 18px -12px rgba(18, 32, 43, 0.5); transform: rotate(-0.8deg); }
.alert strong { display: block; font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.alert.urgent { background: #FFC9C0; }
.demo-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.demo-card { display: flex; flex-direction: column; gap: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 22px; text-decoration: none; color: var(--ink); }
.demo-card:hover { border-color: var(--teal); }
.demo-card h3 { font-family: var(--font-head); font-size: 1.3rem; margin: 0; }
.demo-card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.demo-card .go { margin-top: auto; font-weight: 600; color: var(--teal-dark); }
@media (max-width: 820px) {
  .demo { grid-template-columns: minmax(0, 1fr); }
  .demo-cards { grid-template-columns: minmax(0, 1fr); }
  .log { height: 300px; }
}

/* Consulting tab */
.view-consult { padding: 8px 0 56px; }
html.js .view-consult { display: none; }
html.js body.is-consult .view-home { display: none; }
html.js body.is-consult .view-consult { display: block; }
.view-consult .contact { padding: 56px 0; }

.tmap-key { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 18px; font-weight: 700; }
.tmap-key i { display: inline-block; width: 28px; height: 8px; border-radius: 4px; margin-right: 8px; vertical-align: middle; }
.tmap { display: block; width: 100%; height: auto; }
.tmap-tall { display: none; max-width: 420px; margin: 0 auto; }
.tmap-note { color: var(--muted); font-size: 0.95rem; margin: 18px 0 0; }
@media (max-width: 760px) { .tmap-wide { display: none; } .tmap-tall { display: block; } }
