/* Gravbreak Labs — shared stylesheet.
   Palette and typography mirror the Sonalo app: warm paper, matcha green,
   editorial serif headings, generous whitespace, rounded cards. */

:root {
  --paper: #f5ece3;
  --surface: #fffcf7;
  --ink: #362b21;
  --muted: #8a7767;
  --matcha: #5c8a3c;
  --matcha-soft: #ddebcb;
  --amber: #e1912f;
  --amber-soft: #fbe6c6;
  --blue: #4a78d0;
  --blue-soft: #d6e4f7;
  --outline: #e6dacd;
  --radius: 24px;
  --shadow: 0 1px 2px rgba(54, 43, 33, .04), 0 12px 32px rgba(54, 43, 33, .06);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.wrap { width: 100%; max-width: 1020px; margin: 0 auto; padding: 0 20px; }

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

header.site {
  border-bottom: 1px solid var(--outline);
  background: rgba(245, 236, 227, .92);
  backdrop-filter: saturate(150%) blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

header.site .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 62px;
  flex-wrap: wrap;
}

.wordmark {
  font-family: Georgia, "Songti SC", "Times New Roman", serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .2px;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wordmark img { width: 30px; height: 30px; border-radius: 9px; }

nav.site { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }

nav.site a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}

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

/* ---------- typography ---------- */

h1, h2, h3 {
  font-family: Georgia, "Songti SC", "Times New Roman", serif;
  line-height: 1.22;
  margin: 0 0 14px;
}

h1 { font-size: clamp(30px, 5vw, 44px); }
h2 { font-size: clamp(23px, 3.2vw, 30px); margin-top: 0; }
h3 { font-size: 18px; margin-bottom: 8px; }

p { margin: 0 0 14px; }

.lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); }

.kicker {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 10px;
}

a { color: var(--matcha); }

/* ---------- layout ---------- */

section { padding: 46px 0; }

section.tight { padding: 26px 0; }

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

.card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 22px;
}

.card.soft { background: var(--matcha-soft); border-color: transparent; }

.card p:last-child { margin-bottom: 0; }

.pull {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--matcha);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
}

.btn:hover { filter: brightness(1.05); }

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--outline);
}

.btn[aria-disabled="true"] { opacity: .55; cursor: default; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---------- phones ---------- */

.phones {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 6px 2px 18px;
  scroll-snap-type: x mandatory;
}

.phone {
  flex: 0 0 auto;
  width: 226px;
  scroll-snap-align: start;
}

.phone img {
  display: block;
  width: 100%;
  border-radius: 26px;
  border: 1px solid var(--outline);
  box-shadow: var(--shadow);
}

.phone figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

figure { margin: 0; }

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

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

ul.checks li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
}

ul.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--matcha);
  font-weight: 700;
}

/* ---------- tables ---------- */

.table-scroll { overflow-x: auto; }

table.plan {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  overflow: hidden;
}

table.plan th, table.plan td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--outline);
  font-size: 15px;
  white-space: nowrap;
}

table.plan th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

table.plan tr:last-child td { border-bottom: 0; }

table.plan td:nth-child(2), table.plan td:nth-child(3) { text-align: center; }
table.plan th:nth-child(2), table.plan th:nth-child(3) { text-align: center; }

/* ---------- policy / prose ---------- */

.prose { max-width: 760px; }

.prose h2 { margin-top: 34px; font-size: 22px; }

.prose ol { padding-left: 22px; }

.prose li { margin-bottom: 12px; }

.meta { color: var(--muted); font-size: 14px; }

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

footer.site {
  border-top: 1px solid var(--outline);
  margin-top: 30px;
  padding: 26px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

footer.site .wrap { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--matcha); }

.footer-links { display: flex; gap: 16px; flex-wrap: wrap; margin-left: auto; }

@media (max-width: 560px) {
  section { padding: 34px 0; }
  .phone { width: 190px; }
}
