/* Homeber website. Colors match the app (claude/Homeber_Design_System.md):
   orange only for the main action or something that needs attention,
   everyday controls in ink. */
:root {
  --ink: #1a1a1a;
  --muted: #474747;
  --faint: #6e6e6e;
  --accent: #BD5B2E;
  --on-accent: #ffffff;
  --approve: #2E9E5B;
  --deny: #D93025;
  --bg: #ffffff;
  --raised: #f4f2ef;
  --line: #e3e0dc;
  --button: #1a1a1a;
  --on-button: #ffffff;
  --radius: 16px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f2f2;
    --muted: #cfcfcf;
    --faint: #a6a6a6;
    --accent: #E07A4A;
    --on-accent: #161616;
    --bg: #121212;
    --raised: #1e1e1e;
    --line: #333333;
    --button: #f2f2f2;
    --on-button: #121212;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* Header */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.brand svg { height: 30px; width: auto; display: block; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 0; }
.nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav a[aria-current="page"] { font-weight: 650; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* Home hero */
.hero { padding: 64px 0 48px; text-align: center; }
.app-icon { width: 104px; height: 104px; border-radius: 24px; background: #ffffff; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; }
.app-icon svg { height: 66px; width: auto; display: block; }
h1 { font-size: clamp(38px, 6.4vw, 60px); line-height: 1.06; letter-spacing: -0.025em; margin: 26px 0 16px; font-weight: 800; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 620px; margin: 0 auto 32px; }
.note { color: var(--faint); font-size: 15px; margin: 18px 0 0; }

/* Store buttons */
.stores { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.stores.left { justify-content: flex-start; }
.store { display: inline-flex; flex-direction: column; justify-content: center; min-width: 184px; height: 58px; padding: 0 22px; border-radius: 12px; background: var(--button); color: var(--on-button); text-decoration: none; line-height: 1.15; text-align: left; }
.store small { font-size: 12px; opacity: 0.85; }
.store strong { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.store:hover { opacity: 0.88; }
.store.soon { background: transparent; color: var(--faint); border: 1.5px solid var(--line); cursor: default; }
.store.soon:hover { opacity: 1; }
.badge { display: inline-block; }
.badge img { height: 58px; width: auto; display: block; }
.badge.soon { opacity: 0.4; }

/* Screenshots */
.screens { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 20px 40px; margin: 0 auto; max-width: 1640px; }
.screens::before, .screens::after { content: ""; flex: 1 0 0; }
.phone { flex: 0 0 auto; width: 240px; border-radius: 42px; border: 9px solid #111111; background: #111111; overflow: hidden; scroll-snap-align: center; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12); }
.phone img { display: block; width: 100%; height: auto; border-radius: 33px; }

/* Wide screens: all five side by side, as big as fits, up to 300px. */
@media (min-width: 1200px) {
  .phone { width: clamp(200px, calc((min(100vw, 1640px) - 190px) / 5), 300px); }
}

/* Sections */
.section { padding: 64px 0; border-top: 1px solid var(--line); }
h2 { font-size: clamp(27px, 3.6vw, 36px); line-height: 1.14; letter-spacing: -0.018em; margin: 0 0 12px; font-weight: 750; }
.section-lede { color: var(--muted); margin: 0 0 32px; max-width: 640px; font-size: 18px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: var(--raised); border-radius: var(--radius); padding: 22px; }
.card h3 { font-size: 18px; line-height: 1.3; margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.pair { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.audience { background: var(--raised); border-radius: var(--radius); padding: 28px; }
.eyebrow { font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.07em; color: var(--faint); margin: 0; }
.audience h3 { font-size: 25px; line-height: 1.2; letter-spacing: -0.01em; margin: 6px 0 14px; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 30px; margin: 11px 0; }
.checks li::before { content: ""; position: absolute; left: 3px; top: 0.42em; width: 13px; height: 7px; border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(-45deg); }
.center { text-align: center; }
.center .section-lede { margin-left: auto; margin-right: auto; }

/* Long text: About and the legal pages */
.prose { padding: 48px 0 24px; }
.prose h1 { font-size: clamp(34px, 5vw, 46px); margin: 0 0 18px; }
.prose h1 + p { font-size: 21px; line-height: 1.5; }
.prose h2 { font-size: 22px; letter-spacing: -0.01em; margin: 40px 0 8px; }
.prose h3 { font-size: 18px; margin: 28px 0 6px; }
.prose ul { padding-left: 22px; }
.prose li { margin: 8px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 14px 0; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--raised); }
/* The quotes on the About page read as a message thread */
.prose blockquote { margin: 26px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.prose blockquote p { margin: 0; max-width: 88%; padding: 10px 16px; border-radius: 20px 20px 20px 6px; background: var(--raised); }
.prose blockquote p:nth-child(even) { align-self: flex-end; border-radius: 20px 20px 6px 20px; background: var(--ink); color: var(--bg); }

/* Contact */
.contact { display: grid; gap: 40px; grid-template-columns: 1fr; padding: 48px 0 24px; }
@media (min-width: 880px) { .contact { grid-template-columns: 5fr 7fr; gap: 56px; } }
.contact h1 { font-size: clamp(34px, 5vw, 46px); margin: 0 0 14px; }
.email-card { background: var(--raised); border-radius: var(--radius); padding: 20px 22px; margin: 22px 0 36px; }
.email-card a { font-size: 20px; font-weight: 650; color: var(--ink); text-decoration: none; word-break: break-all; }
.email-card a:hover { text-decoration: underline; }
.email-card p { margin: 4px 0 0; color: var(--faint); font-size: 15px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--faint); font-weight: 400; font-size: 22px; line-height: 1.1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 8px 0 0; color: var(--muted); }

.form-card { background: var(--raised); border-radius: var(--radius); padding: 26px; }
.form-card h2 { font-size: 26px; }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; font-size: 15px; margin: 0 0 7px; padding: 0; }
.optional { font-weight: 400; color: var(--faint); }
.row { display: grid; gap: 0 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--faint) 50%), linear-gradient(135deg, var(--faint) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); }
textarea { min-height: 170px; resize: vertical; }
.count { font-size: 13px; color: var(--faint); text-align: right; margin-top: 4px; min-height: 1.4em; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); font-size: 15px; cursor: pointer; }
.chip input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.button { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 26px; border: 0; border-radius: 12px; background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 650; cursor: pointer; }
.button:hover { filter: brightness(1.05); }
.button:disabled { opacity: 0.5; cursor: default; }
.fineprint { font-size: 14px; color: var(--faint); margin: 14px 0 0; }
.status { margin: 14px 0 0; font-size: 15px; font-weight: 600; min-height: 1.5em; }
.status.ok { color: var(--approve); }
.status.err { color: var(--deny); }
.landed { display: none; margin: 0 0 18px; font-weight: 600; }
.landed:target { display: block; }
#sent { color: var(--approve); }
#not-sent { color: var(--deny); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 72px; padding: 28px 0 44px; color: var(--faint); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .nav { gap: 18px; }
  .hero { padding: 44px 0 36px; }
  .store { min-width: 0; flex: 1 1 150px; }
  .section { padding: 48px 0; }
  .form-card { padding: 20px; }
}

/* Screenshot sections on the home page */
.shots { padding-bottom: 24px; }
.shots .section-lede { margin-bottom: 20px; }
