/* Havalook Pro — shared stylesheet
   Edit colors in the :root block below to change the whole site. */

:root {
  --ink:        #16211B;
  --ink-soft:   #4B584F;
  --ink-faint:  #7C877F;
  --green:      #1E6F4B;
  --green-deep: #0F3D2A;
  --green-wash: #EAF1EC;
  --paper:      #F6F6F2;
  --white:      #FFFFFF;
  --rule:       #DCDDD6;
  --amber:      #B8701A;

  --max:  1120px;
  --gut:  24px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .wordmark, .stepnum, .price-figure {
  font-family: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.08;
  margin: 0;
}

h1 { font-size: clamp(2.6rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; line-height: 1.2; }

p { margin: 0 0 1.1em; max-width: 68ch; }

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gut);
}

/* ---------- header ---------- */

.site-head {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}

.head-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}

.wordmark {
  font-size: 1.5rem;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  margin-right: auto;
}

.wordmark span {
  color: var(--green);
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover { color: var(--green); }

/* .nav a is more specific than .btn, so restate button colors here */
.nav a.btn { color: var(--white); }
.nav a.btn:hover { color: var(--white); }
.nav a.btn-quiet { color: var(--green); }

.btn {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  padding: 11px 22px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid var(--green);
}

.btn:hover { background: var(--green-deep); border-color: var(--green-deep); color: var(--white); }

.btn-quiet {
  background: transparent;
  color: var(--green);
}

.btn-quiet:hover { background: var(--green-wash); color: var(--green-deep); }

/* ---------- sections ---------- */

.band { padding: 76px 0; border-top: 1px solid var(--rule); }
.band-plain { padding: 76px 0; }
.band-white { background: var(--white); }

.lede { font-size: 1.18rem; color: var(--ink-soft); }

.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-head p { margin-bottom: 0; margin-top: 14px; }

/* ---------- hero ---------- */

.hero { padding: 72px 0 0; }
.hero h1 { max-width: 15ch; margin-bottom: 22px; }
.hero .lede { max-width: 54ch; font-size: 1.28rem; }

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 26px;
}

.hero-note {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 22px 0 0;
  max-width: 46ch;
}

/* ---------- the demo artifact ---------- */

.demo {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin-top: 64px;
  padding-bottom: 76px;
}

.phone {
  background: #1B1B1D;
  border-radius: 34px;
  padding: 9px;
  box-shadow: 0 18px 40px rgba(15, 40, 28, 0.16);
}

.thread {
  background: var(--white);
  border-radius: 27px;
  padding: 0 0 18px;
  overflow: hidden;
}

.thread-head {
  background: #F4F4F6;
  border-bottom: 1px solid #E1E1E4;
  padding: 12px 16px 13px;
  text-align: center;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 5px;
}

.thread-head .who { font-size: 0.88rem; font-weight: 500; color: var(--ink); }

.thread-body { padding: 16px 14px 0; }

.daystamp {
  text-align: center;
  font-size: 0.72rem;
  color: #8E8E93;
  margin-bottom: 14px;
}

.daystamp strong { color: #6B6B70; font-weight: 600; }

.bub {
  max-width: 86%;
  padding: 9px 14px 10px;
  border-radius: 19px;
  font-size: 0.93rem;
  line-height: 1.4;
  margin-bottom: 8px;
  position: relative;
  clear: both;
}

.bub-out {
  background: #2E9E63;
  color: var(--white);
  margin-left: auto;
  border-bottom-right-radius: 6px;
}

.bub-in {
  background: #EDEDF0;
  color: #111;
  border-bottom-left-radius: 6px;
}

/* rich link card inside a bubble */
.linkcard {
  display: block;
  background: var(--white);
  border-radius: 13px;
  overflow: hidden;
  margin: 8px -6px 2px;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.06);
}

.linkcard-art {
  background: var(--green-deep);
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
}

.linkcard-art svg { flex: none; }

.linkcard-art span {
  color: #FFFFFF;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.1;
}

.linkcard-meta { display: block; padding: 9px 12px 10px; background: #F7F7F8; }
.linkcard-meta b { display: block; font-size: 0.83rem; color: #111; font-weight: 600; }
.linkcard-meta small { display: block; font-size: 0.74rem; color: #8E8E93; margin-top: 1px; }

.receipt {
  text-align: right;
  font-size: 0.68rem;
  color: #8E8E93;
  margin: -2px 4px 14px 0;
}

/* trades strip */
.trades {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trades li {
  border: 1px solid var(--rule);
  background: var(--white);
  border-radius: 100px;
  padding: 6px 15px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.sheet {
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--green);
  border-radius: 4px;
  padding: 30px 32px 34px;
}

.sheet-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 14px;
  margin-bottom: 22px;
}

.sheet-top h3 { font-size: 1.5rem; }

.stamp {
  color: var(--amber);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.sheet dl { margin: 0; }

.sheet dt {
  font-size: 0.88rem;
  color: var(--ink-faint);
  font-weight: 500;
  margin-bottom: 3px;
}

.sheet dd {
  margin: 0 0 18px;
  font-size: 1rem;
}

.sheet dd:last-child { margin-bottom: 0; }

.sheet ul { margin: 0; padding-left: 20px; }
.sheet li { margin-bottom: 5px; }

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}

.step { border-top: 2px solid var(--green); padding-top: 18px; }

.stepnum {
  font-size: 1rem;
  color: var(--green);
  display: block;
  margin-bottom: 8px;
}

.step h3 { margin-bottom: 8px; }
.step p { margin-bottom: 0; color: var(--ink-soft); }

/* ---------- lists ---------- */

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px 44px;
}

.ticks { list-style: none; margin: 0; padding: 0; }

.ticks li {
  padding: 13px 0 13px 26px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 22px;
  width: 9px;
  height: 9px;
  background: var(--green);
  border-radius: 50%;
}

/* ---------- pricing ---------- */

.price-box {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 38px 36px;
  max-width: 460px;
}

.price-figure { font-size: 3.4rem; color: var(--ink); }
.price-figure small {
  display: block;
  font-family: "Barlow", sans-serif;
  font-size: 1rem;
  color: var(--ink-faint);
  font-weight: 500;
  letter-spacing: 0;
  margin-top: 6px;
}

.price-box ul { margin: 22px 0 26px; padding-left: 20px; color: var(--ink-soft); }
.price-box li { margin-bottom: 7px; }

/* ---------- other product ---------- */

.other {
  background: var(--white);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--ink-faint);
  border-radius: 4px;
  padding: 32px 34px;
  max-width: 720px;
}

.other h3 { margin-bottom: 10px; }
.other p { color: var(--ink-soft); }
.other p:last-of-type { margin-bottom: 0; }

/* ---------- legal pages ---------- */

.legal { padding: 60px 0 90px; }
.legal .wrap { max-width: 760px; }
.legal h1 { margin-bottom: 10px; }
.legal h2 { font-size: 1.5rem; margin: 42px 0 12px; }
.legal h3 { font-size: 1.12rem; margin: 26px 0 8px; }
.legal p, .legal li { font-size: 1rem; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 7px; }

.updated { color: var(--ink-faint); font-size: 0.95rem; margin-bottom: 34px; }

.callout {
  background: var(--green-wash);
  border-left: 4px solid var(--green);
  padding: 18px 22px;
  margin: 26px 0;
  border-radius: 0 4px 4px 0;
}

.callout p { margin-bottom: 0; font-size: 0.97rem; }

.editme {
  background: #FFF6E2;
  border: 1px dashed var(--amber);
  padding: 18px 22px;
  margin: 22px 0;
  border-radius: 4px;
  color: #6B4308;
}

.editme p { margin-bottom: 0; font-size: 0.95rem; }
.editme strong { color: #4A2E05; }

/* ---------- footer ---------- */

.site-foot {
  background: var(--green-deep);
  color: #C6D8CD;
  padding: 54px 0 40px;
  font-size: 0.95rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,0.16);
}

.site-foot h4 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.05rem;
  color: var(--white);
  margin: 0 0 12px;
  font-weight: 600;
}

.site-foot a { color: #C6D8CD; text-decoration: none; }
.site-foot a:hover { color: var(--white); text-decoration: underline; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 8px; }
.site-foot p { margin: 0 0 8px; max-width: 40ch; }

.legalline {
  padding-top: 26px;
  color: #9BB3A6;
  font-size: 0.88rem;
}

.legalline p { margin: 0; max-width: none; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .demo { grid-template-columns: 1fr; gap: 32px; margin-top: 48px; }
  .phone { max-width: 330px; }
  .sheet { padding: 26px 22px 28px; }
  .band, .band-plain { padding: 58px 0; }
  .hero { padding-top: 52px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .head-inner { min-height: 0; }
  .nav { gap: 16px; width: 100%; }
  .wordmark { margin-right: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
