/* Birdable website: the app's look (cream grid paper, teal and sunflower, bold black outlines) */

:root {
  --teal: #3E7384;
  --teal-dark: #2F5F6E;
  --yellow: #F7C942;
  --mint: #BAE1BD;
  --cream: #F6F3EA;
  --grid: #E9E4D6;
  --ink: #141414;
  --muted: #3A3A3A;
  --card: #FFFFFF;
  --line: #111111;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Rubik", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background-color: var(--cream);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal-dark); }
a:hover { color: #1F4652; }
h1, h2, .wordmark { font-family: "Poppins", "Rubik", sans-serif; letter-spacing: -0.03em; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: #fff; padding: 8px 12px; border: 2px solid var(--line); border-radius: 10px; }

/* Header */
.site-header { background: var(--teal); border-bottom: 4px solid var(--line); }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; margin-right: auto; }
.brand:hover { color: #fff; }
.brand-icon { height: 44px; width: auto; display: block; }
/* The app's title: Poppins Bold at normal spacing (HomeView.homeTitle) */
.wordmark { font-weight: 700; font-size: 26px; letter-spacing: normal; }
.site-header nav a.link { color: #fff; font-weight: 700; text-decoration: none; }
.site-header nav a.link:hover { text-decoration: underline; }

/* Buttons and chips */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; background: var(--yellow); color: var(--ink); border: 2.5px solid var(--line); border-radius: 14px; box-shadow: 3px 4px 0 var(--line); font-weight: 900; text-decoration: none; }
.button:hover { color: var(--ink); transform: translate(1px, 1px); box-shadow: 2px 3px 0 var(--line); }
.app-store { display: inline-flex; align-items: center; gap: 12px; background: #000; color: #fff; border-radius: 14px; padding: 10px 22px; min-height: 52px; text-decoration: none; }
.app-store:hover { color: #fff; }
.app-store small { display: block; font-size: 12px; line-height: 1.1; }
.app-store strong { display: block; font-size: 22px; font-weight: 600; line-height: 1.1; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--mint); border: 2px solid var(--line); border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: 14px; }
.chip.white { background: #fff; }

/* Cards and phones */
.card { background: var(--card); border: 2.5px solid var(--line); border-radius: 22px; box-shadow: 4px 5px 0 var(--line); }
.phone { border: 4px solid var(--line); border-radius: 38px; overflow: hidden; background: var(--line); box-shadow: 8px 10px 0 var(--line); }
.phone img { display: block; width: 100%; height: auto; }
.icon { width: 52px; height: 52px; border-radius: 50%; background: var(--yellow); border: 2.5px solid var(--line); display: flex; align-items: center; justify-content: center; }
.kicker { font-size: 14px; font-weight: 900; letter-spacing: 0.1em; color: #2F6B7C; text-transform: uppercase; }

/* Home: hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 72px; padding-bottom: 56px; }
.hero-text { flex: 1 1 440px; min-width: 0; }
.hero h1 { font-weight: 800; font-size: clamp(40px, 6vw, 68px); line-height: 1.02; margin: 20px 0 18px; }
.hero h1 span { color: var(--teal); }
.hero p { font-size: 21px; font-weight: 500; color: #333; margin: 0 0 30px; max-width: 34ch; }
.hero-art { flex: 1 1 440px; min-width: 0; position: relative; display: flex; justify-content: center; gap: 22px; padding: 10px 0 48px; }
/* The hero shots come framed in an iPhone, so no drawn phone outline around them */
.hero-art .device { width: 47%; max-width: 270px; filter: drop-shadow(0 14px 22px rgba(20, 20, 20, 0.28)); }
.hero-art .device:first-child { transform: rotate(-4deg) translateY(24px); }
.hero-art .device:nth-child(2) { transform: rotate(3deg); }
.hero-art .popup { position: absolute; left: 50%; bottom: 4px; width: min(58%, 290px); transform: translateX(-50%) rotate(-2deg); }

/* Home: features */
.section { padding-top: 72px; padding-bottom: 72px; }
.section h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; margin: 10px 0 16px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.features .card { padding: 22px; }
.features h3 { font-size: 21px; font-weight: 900; margin: 16px 0 8px; }
.features p { margin: 0; font-size: 16px; color: #333; }
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.split.reverse { flex-wrap: wrap-reverse; }
.split .text { flex: 1.3 1 420px; min-width: 0; }
.split .text p { font-size: 19px; color: #333; margin: 0 0 18px; }
.split .shot { flex: 1 1 300px; display: flex; justify-content: center; }
.split .shot .phone { width: 100%; max-width: 280px; }
.band { background: var(--teal); border-top: 4px solid var(--line); border-bottom: 4px solid var(--line); color: #fff; }
.band .kicker { color: var(--yellow); }
.band .split .text p { color: #EAF2F4; }
.band .phone { box-shadow: 8px 10px 0 #0E2E38; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.promise { background: var(--yellow); border-top: 4px solid var(--line); border-bottom: 4px solid var(--line); }
.promise .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; align-items: start; padding-top: 56px; padding-bottom: 56px; }
.promise h2 { grid-column: 1 / -1; margin: 0; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; }
.promise strong { font-size: 20px; }
.promise p { margin: 6px 0 0; font-size: 17px; }

/* FAQ */
.faq { max-width: 860px; }
.faq details { padding: 18px 22px; margin-bottom: 14px; }
.faq summary { font-size: 19px; font-weight: 900; cursor: pointer; }
.faq details p { margin: 10px 0 0; font-size: 17px; color: #333; }

/* Text pages (privacy, terms, support, credits) */
.page { max-width: 820px; padding-top: 56px; padding-bottom: 72px; }
.page .card { padding: clamp(22px, 4vw, 44px); }
.page h1 { font-size: clamp(32px, 5vw, 48px); margin: 0 0 6px; line-height: 1.1; }
.page h2 { font-size: 24px; margin: 32px 0 8px; letter-spacing: -0.01em; }
.page p, .page li { font-size: 17px; color: #2A2A2A; }
.page .effective { color: #555; font-weight: 600; margin-top: 0; }

/* Shared-link pages */
.link-page { max-width: 560px; padding-top: 72px; padding-bottom: 96px; text-align: center; }
.link-page .card { padding: 40px 28px; }
.link-page h1 { font-size: clamp(28px, 6vw, 40px); margin: 18px 0 8px; line-height: 1.1; }
.link-page p { font-size: 18px; color: #333; }
.link-page .actions { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 24px; }

/* Footer */
.site-footer { background: var(--ink); color: #EDEDED; }
.site-footer .top { display: flex; flex-wrap: wrap; gap: 32px 56px; justify-content: space-between; padding-top: 48px; padding-bottom: 28px; }
.site-footer .wordmark { color: #fff; }
.site-footer p { color: #C9C9C9; margin: 8px 0 0; }
.site-footer a { color: #fff; font-weight: 700; }
.site-footer a.mail { color: var(--yellow); font-weight: 600; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: flex-start; }
.site-footer .fine { font-size: 13px; color: #A8A8A8; padding-bottom: 32px; }
