/* DuoFramer site. One stylesheet for every page; light and dark follow the system. */

:root {
  --canvas: #f3efea;
  --surface: #fdfbf9;
  --ink: #1d1a17;
  --muted: #6e665e;
  --line: rgba(0, 0, 0, 0.08);
  --grid: rgba(0, 0, 0, 0.05);
  --accent: #e8612e;
  --accent-ink: #ffffff;
  --glow: rgba(232, 97, 46, 0.2);
  --shadow: 0 18px 40px rgba(40, 20, 10, 0.18), 0 4px 10px rgba(40, 20, 10, 0.1);
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --radius: 18px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #000000;
    --surface: #1b1820;
    --ink: #f4efe9;
    --muted: #a59c93;
    --line: rgba(255, 255, 255, 0.1);
    --grid: rgba(255, 255, 255, 0.07);
    --accent: #ff9461;
    --accent-ink: #1d1a17;
    --glow: rgba(255, 148, 97, 0.2);
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.6), 0 4px 10px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--canvas);
  /* The app's canvas: a sunset glow from the top-right corner over a very faint 96 pt grid. */
  background-image:
    radial-gradient(ellipse 80% 60% at 100% 0%, var(--glow), transparent 70%),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 100% 100%, 96px 96px, 96px 96px;
  background-attachment: fixed, scroll, scroll;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-underline-offset: 3px; }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.3rem; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.9em;
}

.lede { font-size: 1.2rem; color: var(--muted); max-width: 34em; }

/* Navigation */

header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  background: color-mix(in srgb, var(--canvas) 72%, transparent);
  border-bottom: 1px solid var(--line);
}

.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 12px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration: none;
}
.brand img { border-radius: 8px; }

.nav ul { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0; padding: 0; }
.nav ul a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--ink); }

@media (max-width: 760px) {
  .nav { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Sections */

section { padding-block: 88px; }
section + section { border-top: 1px solid var(--line); }

.section-head { max-width: 40em; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* Hero */

.hero { padding-top: 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 28px; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}
.button.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }

.requires { color: var(--muted); font-size: 0.9rem; }

/* Apple's "Download on the App Store" badge, used unaltered at its required minimum size or larger. */
.app-store-badge { display: inline-block; line-height: 0; }
.app-store-badge img { height: 60px; width: auto; }
.app-store-badge:hover { filter: brightness(1.15); }
.cta.center { justify-content: center; }

/* Prints: frames laid on the table at slight angles. */

.prints { position: relative; min-height: 520px; }
.prints img {
  position: absolute;
  width: 54%;
  border-radius: 4px;
  box-shadow: var(--shadow);
}
.prints img:nth-child(1) { left: 2%; top: 9%; transform: rotate(-7deg); }
.prints img:nth-child(2) { left: 44%; top: 0; transform: rotate(5deg); }
.prints img:nth-child(3) { left: 22%; top: 26%; transform: rotate(-1.5deg); z-index: 2; }
@media (max-width: 900px) { .prints { min-height: 0; aspect-ratio: 1 / 0.95; } }

.print { border-radius: 4px; box-shadow: var(--shadow); }

/* Feature list */

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 { margin-bottom: 0.35em; }
.card p { margin: 0; color: var(--muted); }
.card .icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
}
.card .icon svg { width: 24px; height: 24px; }

/* Template gallery */

.categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }

.category {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 30px;
}
.category p { color: var(--muted); margin: 0 0 22px; }
.category .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.category .pair img:first-child { transform: rotate(-2deg); }
.category .pair img:last-child { transform: rotate(2deg); margin-top: 14px; }

/* Split rows: text beside an image */

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
}

.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.duo-pair { display: grid; gap: 18px; }
.duo-pair img:last-child { width: 78%; justify-self: end; transform: rotate(2deg); margin-top: -40px; }

.carousel-shot { border-radius: 10px; box-shadow: var(--shadow); }
.slide-note { color: var(--muted); font-size: 0.9rem; margin-top: 12px; text-align: center; }

/* Free band */

.free {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 64px 28px;
}
.free p { color: var(--muted); max-width: 36em; margin: 0 auto; font-size: 1.1rem; }

/* Text pages: privacy and support */

.page { padding-block: 64px 96px; }
.page .wrap { max-width: 760px; }
.page h2 { font-size: 1.6rem; margin-top: 2em; }
.page p, .page li { color: var(--ink); }
.page .meta { color: var(--muted); margin-top: -0.4em; }
.page .summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 18px 22px;
}

table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 0.97rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { font-weight: 600; }

details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 12px;
}
summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 8px; }

/* Cross links to the other iPhone Duo apps */

.more-apps { border-top: 1px solid var(--line); padding-block: 64px; }
.more-apps h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 24px; }
.more-apps ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.more-apps a {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.more-apps a:hover { border-color: var(--accent); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .more-apps a:hover { transform: none; } }
.more-apps img { flex: none; width: 72px; height: 72px; border-radius: 16px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18); }
.more-apps .app-text { display: flex; flex-direction: column; gap: 4px; }
.more-apps strong { font-family: var(--serif); font-size: 1.35rem; }
.more-apps .app-text span { color: var(--muted); font-size: 0.98rem; }

/* Footer */

footer { border-top: 1px solid var(--line); padding-block: 36px 56px; color: var(--muted); font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer a { color: var(--muted); }
footer ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
