:root {
  --bg: #f9f7ee;
  --fg: #000;
  --muted: #808084;
  --card: #fff;
  --border: rgba(0,0,0,0.13);
  --shadow: 0 0 0 1px var(--border);
  --radius-xl: 56px;
  --radius-lg: 46px;
  --radius-md: 18px;
  --link-underline: #d5d5d3;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); font: 20px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; border-bottom: 2px solid var(--link-underline); }
a:hover { border-bottom-color: var(--fg); }

/* Header */
header { max-width: 578px; width: 100%; margin: 60px auto; padding: 0 16px; text-align: center; }
header .logo { width: 100px; height: 100px; margin: 0 auto; border-radius: 23px; border: .5px solid #c4c4c4; box-shadow: 0 4px 10px rgba(0,0,0,.04); background: #f1eef9; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 36px; text-decoration: none; border-bottom: .5px solid #c4c4c4 !important; }
header .logo:hover { border-bottom: .5px solid #c4c4c4 !important; }
header .logo img { width: 50px; height: 50px; object-fit: contain; }
header h1 { font-weight: 800; font-size: 32px; color: #1a1c1f; margin: 26px auto 18px; }
header h2 { font-weight: 400; font-size: 20px; color: #1a1c1f; margin: 26px auto 30px; }

.apple-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.store-btn { display: inline-flex; align-items: center; height: 60px; padding: 0 16px; border-radius: 12px; background: #000; color: #fff; border-bottom: none; transition: opacity .2s ease; }
.store-btn:hover { opacity: .8; }
.store-badge { width: 28px; height: 28px; margin-right: 10px; background: #fff; border-radius: 6px; display: inline-block; }

/* Cards */
.card { max-width: 976px; width: calc(100% - 32px); margin: 0 auto 40px; background: var(--card); border-radius: var(--radius-xl) ; box-shadow: var(--shadow); overflow: visible; border-bottom: 1px solid var(--border); }
.row { display: flex; gap: 80px; padding: 52px 80px 0; align-items: center; }
/* Desktop alternating layout: image left for standard rows, image right for .reverse rows */
.row .shot { order: 1; }
.row .paragraph { order: 2; }
.row.reverse { padding: 52px 80px 0; }
.row.reverse .paragraph { order: 1; }
.row.reverse .shot { order: 2; }

.paragraph { flex: 1; }
.paragraph p { font-size: 22px; color: var(--muted); }
.paragraph strong { color: #000; font-weight: 800; }

.shot { flex: 0 0 318px; align-self: flex-end; filter: drop-shadow(0 4px 30px rgba(0,0,0,.08)); margin-bottom: -0px; }
.shot .frame { position: relative; width: 100%; padding-bottom: 122.012578%; border-radius: 26px 26px 0 0; overflow: hidden; }
.frame img, .frame svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Wide card */
.wide { padding: 52px 60px 0; }
.wide p { margin-bottom: 20px; }
.wide .apple-buttons { margin-bottom: 40px; }
.wide .wide-shot { width: 100%; filter: drop-shadow(0 4px 30px rgba(0,0,0,.08)); }
.wide .wide-shot .frame { padding-bottom: 42.4757%; border-radius: 26px; overflow: hidden; }
.wide .wide-shot .frame img { object-fit: contain; position: absolute; top: 3px; left: -8px; width: calc(100% + 0px); height: calc(100% + 16px); }

/* FAQ */
.faq { max-width: 743px; width: calc(100% - 40px); margin: 60px auto 0; }
.faq .item { margin-bottom: 40px; }
.faq .item .q { font-weight: 800; font-size: 21px; line-height: 1.4; margin-bottom: 4px; }
.faq .item p { margin: 0; color: #1a1c1f; }

/* Footer */
footer { max-width: 743px; width: calc(100% - 40px); margin: 70px auto 40px; display: flex; flex-wrap: wrap; gap: 20px; font-weight: 500; font-size: 17px; }

/* Responsive */
@media (max-width: 760px) {
  header { margin: 32px auto 50px; }
  header h1 { font-size: 24px; }

  .card { border-radius: var(--radius-lg) ; border-bottom: 1px solid var(--border); }
  .row, .row.reverse, .wide { flex-direction: column; gap: 32px; padding: 32px 32px 0; }
  /* Always show text above image on mobile */
  .row > .paragraph { order: 1 !important; }
  .row > .shot { order: 2 !important; }
  .row.reverse > .paragraph { order: 1 !important; }
  .row.reverse > .shot { order: 2 !important; }
  .shot { align-self: center; max-width: 280px; }
  .paragraph p { font-size: 19px; }
  
  /* Ensure images are visible on mobile */
  .shot .frame { position: static; width: 100%; padding-bottom: 0; border-radius: 26px 26px 0 0; overflow: hidden; }
  .shot .frame img { position: static; width: 100%; height: auto; object-fit: cover; display: block; }
  
  /* Reset iPad image positioning for mobile */
  .wide .wide-shot .frame { position: static; padding-bottom: 0; border-radius: 26px 26px 0 0;  }
  .wide .wide-shot .frame img { position: static; width: 90%; height: auto; object-fit: contain; margin: 0 auto; }
}
