/* The Tandem iOS theme on the web: deep purple, gold-to-coral accent, soft glows and curved bands
   behind frosted Liquid Glass cards with a bright rim. */
:root {
  --bg: #231F3D; --ink900: #312C51; --ink700: #48426D;
  --sand: #F0C38E; --coral: #F1AA9B;
  --text: #F7F3FF; --muted: rgba(247, 243, 255, 0.8);
  --glass: rgba(72, 66, 109, 0.35); --rim: rgba(255, 255, 255, 0.22);
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
/* The backdrop: fixed, drawn once, like the app's. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vmax 60vmax at 8% -10%, rgba(240, 195, 142, 0.28), transparent 60%),
    radial-gradient(50vmax 50vmax at 110% 30%, rgba(241, 170, 155, 0.25), transparent 60%),
    radial-gradient(70vmax 70vmax at 50% 120%, rgba(72, 66, 109, 0.9), transparent 70%),
    var(--bg);
}
body::after {
  content: ""; position: fixed; inset: -20% -20%; z-index: -1; pointer-events: none; filter: blur(24px);
  background:
    radial-gradient(120% 22% at 40% 30%, rgba(241, 170, 155, 0.16), transparent 70%),
    radial-gradient(110% 18% at 60% 64%, rgba(241, 170, 155, 0.14), transparent 70%),
    radial-gradient(90% 4% at 50% 48%, rgba(240, 195, 142, 0.12), transparent 70%);
  transform: rotate(-6deg);
}
main { max-width: 760px; margin: 0 auto; padding: 28px 16px 64px; }
header { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
header img { width: 72px; height: 72px; border-radius: 50%; box-shadow: 0 8px 30px rgba(240, 195, 142, 0.35); }
h1 { font-family: ui-rounded, "SF Pro Rounded", -apple-system, sans-serif; font-size: 40px; line-height: 1.1; margin: 0; letter-spacing: -0.5px; }
header p { margin: 6px 0 0; color: var(--muted); }
h2 { font-family: ui-rounded, "SF Pro Rounded", -apple-system, sans-serif; font-size: 22px; margin: 28px 0 8px; }
h3 { font-size: 17px; margin: 20px 0 4px; }
p, li { color: var(--muted); }
strong { color: var(--text); }
a { color: var(--sand); }
.card {
  position: relative; margin: 20px 0; padding: 26px; border-radius: 28px;
  background: var(--glass);
  backdrop-filter: blur(28px) saturate(170%); -webkit-backdrop-filter: blur(28px) saturate(170%);
}
/* The bright rim, strongest at the top-left, like the app's cards. */
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.55), rgba(255,255,255,0.08) 40%, rgba(255,255,255,0.04) 70%, rgba(255,255,255,0.22));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.card > h2:first-child { margin-top: 0; }
.button {
  display: inline-block; padding: 12px 22px; border-radius: 999px; text-decoration: none; font-weight: 600;
  color: var(--ink900); background: linear-gradient(135deg, var(--sand), var(--coral));
  box-shadow: 0 8px 24px rgba(241, 170, 155, 0.35);
}
ul { padding-left: 20px; }
footer { margin-top: 40px; font-size: 14px; line-height: 1.7; color: var(--muted); text-align: center; }
@media (max-width: 520px) { h1 { font-size: 32px; } header img { width: 56px; height: 56px; } .card { padding: 20px; border-radius: 24px; } }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px 20px; }
.grid h3 { margin-top: 12px; }
.grid p { margin: 4px 0 0; font-size: 15px; }
.product { display: flex; gap: 24px; align-items: center; }
.product img { width: 150px; border-radius: 22px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); flex: none; }
.shots { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x mandatory; }
.shots img { width: 210px; flex: none; border-radius: 26px; scroll-snap-align: start; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); }
@media (max-width: 520px) { .product { flex-direction: column; align-items: flex-start; } .product img { width: 60%; } .shots img { width: 70%; } }

/* Top bar: a glass pill with the links on wide screens; logo and a menu button on phones and tablets. */
.topbar {
  position: relative; z-index: 50; display: flex; align-items: center; gap: 6px; margin-bottom: 40px;
  padding: 6px; border-radius: 999px; width: fit-content;
  background: var(--glass); border: 1px solid var(--rim);
  backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%);
}
.topbar a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 600; padding: 8px 14px; border-radius: 999px; }
.topbar .links { display: flex; gap: 6px; }
.topbar .links a:hover, .topbar .links a[aria-current="page"] { background: rgba(255, 255, 255, 0.12); }
.brand { display: none; align-items: center; gap: 8px; }
.brand img { width: 26px; height: 26px; border-radius: 50%; }
.menu-button { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,0.1); cursor: pointer; padding: 0; position: relative; }
.menu-button span { position: absolute; left: 13px; width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform 0.25s, opacity 0.2s; }
.menu-button span:nth-child(1) { top: 15px; } .menu-button span:nth-child(2) { top: 21px; } .menu-button span:nth-child(3) { top: 27px; }
.topbar.open .menu-button span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.topbar.open .menu-button span:nth-child(2) { opacity: 0; }
.topbar.open .menu-button span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 720px) {
  .topbar { width: 100%; justify-content: space-between; padding: 6px 6px 6px 8px; }
  .brand { display: flex; }
  .menu-button { display: block; }
  .topbar .links {
    display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 10;
    flex-direction: column; gap: 2px; padding: 8px; border-radius: 22px;
    background: rgb(41, 36, 70); border: 1px solid var(--rim);
    backdrop-filter: blur(28px) saturate(170%); -webkit-backdrop-filter: blur(28px) saturate(170%);
    box-shadow: 0 18px 50px rgba(0,0,0,0.35);
  }
  .topbar.open .links { display: flex; }
  .topbar .links a { padding: 12px 14px; border-radius: 14px; font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .menu-button span { transition: none; } }
