/* Profile Bud — profilebud.com
   Palette from the app itself: screenshot sky, icon cornflower, iOS action blue. */

:root {
  --wash: #eaf5fd;
  --sky: #a9dbf8;
  --sky-deep: #7cc3ef;
  --ink: #0e2438;
  --ink-soft: #47637a;
  --blue: #4a84ee;   /* app icon cornflower */
  --action: #0a7cff; /* iOS copy-pill blue */
  --green: #1fae68;
  --card: #ffffff;
  --line: rgba(14, 36, 56, 0.1);
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 10px 30px -12px rgba(14, 36, 56, 0.18);
  --font-display: "Bricolage Grotesque", -apple-system, "SF Pro Display", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--wash);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--action); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.3rem, 5.5vw, 3.7rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
/* chevron pulled from the app icon — the swipe-right mark */
.eyebrow::before {
  content: "";
  width: 11px;
  height: 11px;
  background: var(--blue);
  clip-path: polygon(0 0, 55% 0, 100% 50%, 55% 100%, 0 100%, 45% 50%);
}

.lede { font-size: 1.16rem; color: var(--ink-soft); max-width: 58ch; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(234, 245, 253, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--ink-soft); font-weight: 600; font-size: 0.95rem; }
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav .btn { color: #fff; }
@media (max-width: 720px) {
  .site-nav a:not(.btn) { display: none; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--action);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 24px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 18px -6px rgba(10, 124, 255, 0.55);
}
.btn:hover { transform: translateY(-1px); text-decoration: none; box-shadow: 0 10px 22px -6px rgba(10, 124, 255, 0.6); }
.btn.dark {
  background: #101418;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.45);
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line);
}
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--ink); }

.appstore-badge { display: inline-block; }
.appstore-badge img { height: 54px; width: auto; }

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

.hero { padding: 72px 0 40px; overflow: hidden; }
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 26px; }
.hero-note { margin-top: 14px; font-size: 0.9rem; color: var(--ink-soft); }

/* the demo card — the page's signature */
.demo-card {
  background: var(--sky);
  border-radius: 34px;
  padding: 26px 22px 22px;
  box-shadow: var(--shadow);
  position: relative;
}
.demo-card::after {
  content: "Try it — swipe the row";
  position: absolute;
  top: -13px;
  right: 22px;
  background: var(--ink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 999px;
}
.demo-phone {
  background: #fff;
  border-radius: 26px;
  padding: 18px 14px;
  box-shadow: 0 4px 14px rgba(14, 36, 56, 0.08);
}
.demo-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  margin: 2px 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.demo-title small { font-size: 0.7rem; color: var(--ink-soft); font-weight: 600; }

.swipe-row {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 10px;
  background: #eef6fd;
  border: 1px solid var(--line);
}
.swipe-action {
  position: absolute;
  inset: 0 auto 0 0;
  width: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: var(--action);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}
.swipe-action svg { width: 22px; height: 22px; }
.swipe-face {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  background: #fff;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: grab;
  touch-action: pan-y;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.swipe-face:active { cursor: grabbing; }
.swipe-face.dragging { transition: none; }
.swipe-face .dot {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  background: var(--ink);
}
.swipe-face .meta b { display: block; font-size: 0.98rem; }
.swipe-face .meta span { color: var(--ink-soft); font-size: 0.88rem; font-style: italic; }
.swipe-row.static .swipe-face { cursor: default; }

.swipe-row.copied { border-color: var(--green); }
.swipe-row.copied .swipe-action { background: var(--green); }

/* idle nudge so visitors notice it's draggable */
@keyframes nudge {
  0%, 78%, 100% { transform: translateX(0); }
  84% { transform: translateX(30px); }
  92% { transform: translateX(0); }
}
.swipe-row.hint .swipe-face { animation: nudge 5.2s ease-in-out 1.2s 2; }

.demo-toast {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  min-height: 28px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--green);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.demo-toast.show { opacity: 1; }

/* ---------- platform strip ---------- */

.platforms { padding: 26px 0 8px; }
.platforms .container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  justify-content: center;
}
.platforms span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line);
  padding: 7px 15px;
  border-radius: 999px;
}

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

.section { padding: 74px 0; }
.section.alt { background: #fff; }
.section-head { max-width: 640px; margin-bottom: 44px; }

/* download */
.download-band .container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 44px 48px;
}
.download-band h2 { color: #fff; }
.download-band p { color: rgba(255, 255, 255, 0.75); margin: 0; }
@media (max-width: 720px) {
  .download-band .container { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

/* screenshots */
.shots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .shots { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .shots { grid-template-columns: 1fr; } }
.shot { text-align: center; }
.shot img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.shot figcaption { margin-top: 12px; font-size: 0.92rem; color: var(--ink-soft); font-weight: 600; }

/* how it works — a real sequence, so numbered */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  counter-increment: step;
}
.section.alt .step { background: var(--wash); border: 0; }
.step::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--sky);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.step p { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }
.step code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--wash);
  padding: 2px 6px;
  border-radius: 6px;
}

/* guides */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.guide-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 24px;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.guide-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); }
.guide-card .tag {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}
.guide-card h3 { margin: 8px 0 6px; font-size: 1.08rem; }
.guide-card p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.guide-card .more { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 0.9rem; color: var(--action); }

/* FAQ */
.faq { max-width: 760px; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 22px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.04rem;
  padding: 18px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  background: var(--blue);
  clip-path: polygon(0 0, 55% 0, 100% 50%, 55% 100%, 0 100%, 45% 50%);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(90deg); }
.faq details > div { padding: 0 0 20px; color: var(--ink-soft); }
.faq details p { margin-top: 0; }

/* CTA */
.cta-final { text-align: center; padding: 90px 0; }
.cta-final .icon { width: 88px; height: 88px; border-radius: 22px; box-shadow: var(--shadow); margin-bottom: 26px; }
.cta-final .hero-ctas { justify-content: center; }

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

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 56px 0 40px;
  font-size: 0.92rem;
}
.site-footer .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
@media (max-width: 720px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin: 0 0 12px;
}
.site-footer a { color: rgba(255, 255, 255, 0.72); display: inline-block; margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer .legal {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 22px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- guide article pages ---------- */

.breadcrumb { font-size: 0.88rem; color: var(--ink-soft); padding: 26px 0 0; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb span[aria-hidden] { margin: 0 6px; }

.article { padding: 28px 0 70px; }
.article .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) { .article .container { grid-template-columns: 1fr; } }

.article-body h2 { font-size: 1.55rem; margin-top: 2em; }
.article-body h3 { margin-top: 1.6em; }
.article-body ol, .article-body ul { padding-left: 1.3em; }
.article-body li { margin-bottom: 8px; }
.article-body li::marker { color: var(--blue); font-weight: 700; }
.article-body code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: #fff;
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 7px;
}
.article-body .answer-box {
  background: #fff;
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  margin: 26px 0;
  box-shadow: var(--shadow);
}
.article-body .answer-box p { margin: 0; }

.article-cta {
  background: var(--sky);
  border-radius: var(--radius);
  padding: 30px;
  margin: 40px 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
}
@media (max-width: 560px) { .article-cta { grid-template-columns: 1fr; } }
.article-cta img.appicon { width: 72px; height: 72px; border-radius: 18px; box-shadow: var(--shadow); }
.article-cta h3 { margin: 0 0 6px; }
.article-cta p { margin: 0 0 14px; font-size: 0.95rem; }

.article-aside { position: sticky; top: 88px; }
.aside-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
}
.aside-card img.appicon { width: 76px; height: 76px; border-radius: 18px; box-shadow: var(--shadow); }
.aside-card h3 { margin: 14px 0 6px; }
.aside-card p { font-size: 0.9rem; color: var(--ink-soft); margin: 0 0 16px; }
.aside-card figure.shot { margin: 22px 0 0; }
.aside-card figure.shot img { border-radius: var(--radius-sm); }

.related { padding: 0 0 80px; }
.related h2 { font-size: 1.4rem; }

/* ---------- legal pages (terms / privacy) ---------- */

.legal-article { padding: 28px 0 80px; }
.legal-article .container { max-width: 760px; }
.legal-article .updated {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: -6px 0 34px;
}
.legal-article h2 {
  font-size: 1.45rem;
  margin-top: 2.2em;
  padding-top: 1.2em;
  border-top: 1px solid var(--line);
}
.legal-article h1 + .updated + h2,
.legal-article h2:first-of-type { border-top: 0; padding-top: 0; }
.legal-article p, .legal-article li { color: var(--ink-soft); }
.legal-article li { margin-bottom: 8px; }
.legal-article li::marker { color: var(--blue); }
.legal-article strong { color: var(--ink); }
