/* The Pivvy website. Same look as the app (mobile/src/lib/theme.ts): warm cream, dark espresso,
   soft rounded cards, the Playfair Display serif for titles, small letter-spaced capital labels. */

:root {
  --bg: #FAF7F2;
  --card: #F3EEE7;
  --text: #2B2421;
  --muted: #81776F;
  --border: #E3DCD2;
  --accent: #2E2623;
  --error: #A23B3B;
  --serif: "Playfair Display", Georgia, serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; }

/* Header: the logo and wordmark on the left, the pages on the right. */
header { border-bottom: 1px solid var(--border); }
header .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; display: block; }
nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
nav a { font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; color: var(--muted); padding: 4px 0; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); }
nav a[aria-current="page"] { border-bottom: 2px solid var(--text); }

/* The wordmark, like the app's (components/Wordmark.tsx): the dot on the last i is a small open circle. */
.wordmark { font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1; margin: 0; }
.wordmark .i { position: relative; }
.wordmark .ring { position: absolute; left: calc(0.257em - 0.085em); top: calc(0.372em - 0.085em);
                  width: 0.17em; height: 0.17em; border: 0.04em solid currentColor; border-radius: 50%; }

h1, h2.serif { font-family: var(--serif); font-weight: 400; }
h1 { font-size: 40px; line-height: 1.15; margin: 0 0 12px; }
.label { font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.lede { font-size: 19px; color: var(--muted); margin: 0 0 24px; }

main { padding: 48px 0 64px; }

/* Cards and pill buttons. */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 18px 20px; margin: 0 0 16px; }
.card h2 { font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin: 2px 0 8px; }
.card p { margin: 0 0 10px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card ul { margin: 0 0 10px; padding-left: 20px; }

.button { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 999px;
          padding: 13px 26px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.button:disabled { opacity: 0.6; cursor: default; }

/* Home: the big intro. */
.hero { text-align: center; padding-top: 16px; }
.hero h1 { font-size: 48px; max-width: 720px; margin-left: auto; margin-right: auto; }
.hero .lede { max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-logo { width: 120px; height: 120px; border-radius: 28px; display: block; margin: 0 auto 24px; }

/* Home: three phone screenshots side by side (stacked on small screens). */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 48px 0; }
.shot { margin: 0; text-align: center; }
.shot img, .shot .placeholder { width: 100%; aspect-ratio: 9 / 19.5; border-radius: 28px; border: 1px solid var(--border); display: block; object-fit: cover; background: var(--card); }
.shot .placeholder { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; padding: 16px; }
.shot figcaption { font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-top: 12px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps .card { margin: 0; }

/* Home: Join the beta. */
.beta { text-align: center; margin-top: 48px; }
.beta h2 { font-size: 32px; margin: 0 0 8px; }
.beta form { display: flex; gap: 8px; max-width: 460px; margin: 16px auto 0; }
.beta input { flex: 1; min-width: 0; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border);
              border-radius: 999px; padding: 12px 18px; }
.beta input:focus { outline: 2px solid var(--text); outline-offset: 1px; }
.beta .note { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.beta .message { min-height: 1.6em; margin: 12px 0 0; font-weight: 600; }
.beta .message.error { color: var(--error); }

.draft { background: #FFF4D6; border: 1px solid #E8D39A; border-radius: 18px; padding: 14px 20px; margin: 0 0 24px; font-size: 15px; }

/* Footer. */
footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; padding-bottom: 32px; }
footer a { color: var(--muted); }
footer .links { display: flex; flex-wrap: wrap; gap: 6px 18px; }

@media (max-width: 700px) {
  h1 { font-size: 34px; }
  .hero h1 { font-size: 38px; }
  .shots { grid-template-columns: 1fr; max-width: 300px; margin-left: auto; margin-right: auto; }
  .steps { grid-template-columns: 1fr; }
  .beta form { flex-direction: column; }
  main { padding: 32px 0 48px; }
}
