/* bond — design tokens
   Quiet, editorial, warm. Aesthetic anchors: handwritten letters, Kinfolk,
   linen, the room a dog sleeps in.
*/

:root {
  /* Color */
  --paper:   #FAFAF7;   /* page background, default */
  --cream:   #F1ECE2;   /* warm sectioning, illustration ground */
  --cream-2: #E8E1D2;   /* slightly deeper cream, divider/accents */
  --ink:     #1A1817;   /* primary text */
  --ink-2:   #3B3733;   /* secondary text */
  --ink-3:   #6E6862;   /* tertiary / captions */
  --rule:    #DDD6C8;   /* hairline rules on cream */
  --rule-2:  #ECE7DC;   /* hairlines on paper */
  --clay:    #B5512B;   /* single warm accent, very sparing */

  /* Type */
  --serif: "Newsreader", "GT Sectra", "Tiempos", Georgia, serif;
  --sans:  "Geist", "Söhne", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono:  "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Type scale — fluid, but quiet */
  --t-display:  clamp(40px, 6vw, 88px);
  --t-h1:       clamp(34px, 4.6vw, 64px);
  --t-h2:       clamp(26px, 2.6vw, 38px);
  --t-h3:       clamp(20px, 1.6vw, 24px);
  --t-body:     17px;
  --t-body-lg:  19px;
  --t-small:    14px;
  --t-micro:    12px;

  /* Shape */
  --r-sm: 6px;
  --r-md: 10px;
  --r-pill: 999px;

  /* Spacing rhythm */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 72px;
  --s-9: 112px;
  --s-10: 160px;

  /* Layout */
  --col-max: 1240px;
  --col-text: 64ch;
  --col-narrow: 52ch;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  text-rendering: optimizeLegibility;
}

/* Editorial details */
::selection { background: var(--cream-2); color: var(--ink); }

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color 180ms ease, border-color 180ms ease;
}
a:hover { color: var(--clay); border-color: var(--clay); }

img { display: block; max-width: 100%; }

.serif { font-family: var(--serif); }
.sans  { font-family: var(--sans); }

.eyebrow {
  font-family: var(--sans);
  font-size: var(--t-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

.display {
  font-family: var(--serif);
  font-weight: 350;
  line-height: 1.04;
  letter-spacing: -0.012em;
  font-size: var(--t-display);
  color: var(--ink);
}
.display em {
  font-style: italic;
  font-weight: 350;
}

.h1 {
  font-family: var(--serif);
  font-weight: 380;
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-size: var(--t-h1);
}
.h2 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.005em;
  font-size: var(--t-h2);
}
.h3 {
  font-family: var(--sans);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.005em;
  font-size: var(--t-h3);
}
.body-lg { font-size: var(--t-body-lg); line-height: 1.55; color: var(--ink-2); }
.body    { font-size: var(--t-body); line-height: 1.6; color: var(--ink-2); }
.caption { font-size: var(--t-small); color: var(--ink-3); }

/* Hairline */
.hairline { border: 0; border-top: 1px solid var(--rule-2); margin: 0; }
.hairline.on-cream { border-top-color: var(--rule); }

/* Buttons — quiet, no shadows */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 200ms ease;
  text-decoration: none;
}
.btn:hover { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* App store badge — official-style, rendered as inline SVG below */
.appstore {
  display: inline-flex;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  border: 0;
  padding: 0;
}
.appstore svg { display: block; height: 100%; width: auto; }

/* Lang toggle */
.lang {
  display: inline-flex; align-items: center;
  font-family: var(--sans);
  font-size: var(--t-small);
  letter-spacing: 0.06em;
  color: var(--ink-3);
  user-select: none;
}
.lang button {
  appearance: none; background: none; border: 0; padding: 4px 8px;
  font: inherit; color: inherit; cursor: pointer;
  border-bottom: 1px solid transparent;
}
.lang button.active { color: var(--ink); border-bottom-color: var(--ink); }

/* Reveal animation primitive */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 900ms cubic-bezier(0.2, 0.6, 0.2, 1),
              transform 900ms cubic-bezier(0.2, 0.6, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* Container */
.wrap { max-width: var(--col-max); margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 32px; }

/* Header — shared shell, content varies per direction */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  padding: 0 32px;
  max-width: var(--col-max);
  margin: 0 auto;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 380;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  border: 0;
  padding: 0;
}
.wordmark .dot { color: var(--clay); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule-2);
  padding: var(--s-8) 0 var(--s-7);
  color: var(--ink-3);
  font-size: var(--t-small);
}
.site-footer a { border-bottom-color: var(--rule); }
.site-footer .row {
  display: flex; flex-wrap: wrap; gap: 32px; align-items: baseline;
  justify-content: space-between;
}
.site-footer .links { display: flex; flex-wrap: wrap; gap: 28px; }
.site-footer .credit { font-style: italic; color: var(--ink-3); font-family: var(--serif); }

/* Section spacing rhythm */
section { padding: var(--s-9) 0; }
section.tight { padding: var(--s-8) 0; }
section.cream { background: var(--cream); }

/* Pricing pills */
.pricing-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}
.pill {
  text-align: center;
  padding: 28px 28px 32px;
  border-radius: 28px;
  border: 1px solid var(--rule-2);
  background: var(--paper);
}
.pill .tier {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.pill .price {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 350;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.pill .price { display: inline-flex; align-items: baseline; gap: 6px; }
.pill .price .per { font-family: var(--sans); font-size: 14px; color: var(--ink-3); margin-left: 0; letter-spacing: 0; }
.pill .desc { margin-top: 14px; color: var(--ink-2); font-size: 15px; }

/* Feature row layouts */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: center;
}
.feature-row.flip { direction: rtl; }
.feature-row.flip > * { direction: ltr; }

@media (max-width: 820px) {
  .feature-row, .feature-row.flip { grid-template-columns: 1fr; direction: ltr; }
}

/* Placeholder screen card — clearly labeled, drop-in replaceable */
.screen-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule-2);
  border-radius: 22px;
  padding: 18px;
  aspect-ratio: 9 / 16;
  max-width: 320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
.screen-card.on-cream { background: #FBF7EE; border-color: var(--rule); }
.screen-card .top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 8px 12px;
  border-bottom: 1px solid var(--rule-2);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.screen-card .label-pill {
  position: absolute;
  bottom: 12px; left: 12px;
  background: color-mix(in srgb, var(--ink) 86%, transparent);
  color: var(--paper);
  padding: 6px 10px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
