/* pensile.app — a gallery wall: warm paper, a line across the top, prints hanging from it. */
:root {
  --bg: #f6f2ea;
  --bg-deep: #efe8dc;
  --card: #fffdf9;
  --ink: #1f1c18;
  --soft: #6e675d;
  --faint: #a39a8c;
  --rule: #e2d9ca;
  --rope: #8a7b66;
  --accent: #c2412d;
  --accent-ink: #ffffff;
  --peg: linear-gradient(90deg, #c99a62, #e2bd8a 45%, #b9854d);
  --shadow: 0 1px 2px rgb(40 30 15 / 0.08), 0 8px 24px -6px rgb(40 30 15 / 0.22);
  --shadow-soft: 0 1px 2px rgb(40 30 15 / 0.06), 0 4px 14px -4px rgb(40 30 15 / 0.14);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15130f;
    --bg-deep: #1c1914;
    --card: #221f19;
    --ink: #f1ece3;
    --soft: #b3aa9b;
    --faint: #7d7466;
    --rule: #332e26;
    --rope: #9c8c74;
    --accent: #e36a52;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 10px 28px -6px rgb(0 0 0 / 0.6);
    --shadow-soft: 0 1px 2px rgb(0 0 0 / 0.3), 0 4px 14px -4px rgb(0 0 0 / 0.45);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 70%, transparent);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--soft); }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
}
@media (max-width: 720px) { .nav-links { display: none; } .nav-cta { margin-left: auto; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 0 0 40px; }
.hero-line { position: relative; height: 250px; margin-bottom: 8px; }
.rope {
  position: absolute; left: -2%; right: -2%; top: 34px; height: 60px;
  pointer-events: none;
}
.rope path { fill: none; stroke: var(--rope); stroke-width: 1.4; }
.pushpin {
  position: absolute; left: 3%; top: 26px; width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff9b86, var(--accent) 55%, #7d1f12);
  box-shadow: 0 2px 3px rgb(0 0 0 / 0.3);
}
.prints { position: absolute; inset: 0; }
.print {
  position: absolute; top: 40px;
  transform-origin: 50% -6px;
  animation: sway 7s ease-in-out infinite;
}
.print .frame {
  background: var(--card); padding: 7px 7px 9px; border-radius: 2px; box-shadow: var(--shadow);
}
.print .peg {
  position: absolute; left: 50%; top: -14px; width: 9px; height: 28px; margin-left: -4.5px;
  background: var(--peg); border-radius: 2px; box-shadow: 0 1px 2px rgb(0 0 0 / 0.25); z-index: 1;
}
.print .peg::after {
  content: ""; position: absolute; left: 1px; right: 1px; top: 11px; height: 3px; border-radius: 2px;
  background: rgb(120 120 125 / 0.8);
}
/* The prints are little windows, drawn: a title bar, a sidebar, a heading, lines. */
.shot { width: 150px; height: 96px; border-radius: 3px; background: #fbfbfb; overflow: hidden; position: relative; }
.shot::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 13px; background: #ececec;
  box-shadow: inset 7px 0 0 -5px #ff5f57, inset 13px 0 0 -9px #fbfbfb, inset 19px 0 0 -13px #febc2e, inset 25px 0 0 -17px #fbfbfb, inset 31px 0 0 -21px #28c840;
}
.shot::after {
  content: ""; position: absolute; left: 0; top: 13px; bottom: 0; width: 34px; background: #f1f1f1;
}
.shot i { position: absolute; display: block; border-radius: 1px; }
.shot .h { left: 44px; top: 22px; width: 56px; height: 7px; background: var(--c, #3b82f6); }
.shot .b { left: 44px; top: 38px; width: 34px; height: 30px; background: color-mix(in srgb, var(--c, #3b82f6) 25%, white); }
.shot .l1, .shot .l2, .shot .l3 { left: 86px; height: 3px; background: #c9c9c9; width: 52px; }
.shot .l1 { top: 40px; } .shot .l2 { top: 48px; width: 40px; } .shot .l3 { top: 56px; width: 48px; }
.shot.tall { width: 96px; height: 124px; }
.shot.tall .h { width: 40px; } .shot.tall .l1, .shot.tall .l2, .shot.tall .l3 { left: 44px; width: 42px; }
.shot.tall .l1 { top: 76px; } .shot.tall .l2 { top: 84px; width: 30px; } .shot.tall .l3 { top: 92px; width: 38px; }
.note {
  width: 112px; height: 112px; padding: 26px 12px 10px; border-radius: 2px;
  background: linear-gradient(#fff3a0, #fde68a); box-shadow: var(--shadow);
  font: 15px/1.35 "Noteworthy", "Bradley Hand", "Segoe Print", cursive; color: #3d3320;
  position: relative;
}
.note::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 18px; background: rgb(245 215 100 / 0.55); }
.note.pink { background: linear-gradient(#ffd8e1, #fcbccb); color: #4b1c28; }
.note.pink::before { background: rgb(240 160 185 / 0.5); }
.file {
  width: 106px; height: 96px; display: grid; place-items: center; gap: 4px; padding: 10px 8px 8px;
  background: #fbfaf7; border-radius: 3px; text-align: center; font-size: 10.5px; font-weight: 600; color: #333;
}
.file .doc { width: 34px; height: 42px; border-radius: 3px; background: linear-gradient(#fff, #eef0f3); box-shadow: 0 0 0 1px #d4d7dc; position: relative; }
.file .doc::after { content: "PDF"; position: absolute; left: -4px; right: -4px; bottom: 7px; background: #e5484d; color: white; font-size: 8px; font-weight: 800; letter-spacing: 0.05em; border-radius: 2px; padding: 1px 0; }

/* On a narrow screen, four prints and smaller: seven would pile up on each other. */
@media (max-width: 760px) {
  .hero-line { height: 200px; }
  .print { scale: 0.72; }
  .print:nth-child(even) { display: none; }
}

@keyframes sway {
  0%, 100% { transform: rotate(var(--r, 1.2deg)); }
  50% { transform: rotate(calc(var(--r, 1.2deg) * -1)); }
}

.hero-copy { text-align: center; max-width: 820px; margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--soft); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
h1 {
  text-wrap: balance;
  font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 7.4vw, 88px); line-height: 1.02;
  letter-spacing: -0.015em; margin: 0 0 22px;
}
h1 em { font-style: italic; color: var(--accent); }
.lede { text-wrap: pretty; font-size: clamp(18px, 2.1vw, 21px); color: var(--soft); max-width: 640px; margin: 0 auto 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: center; }
.badge { display: inline-block; line-height: 0; }
.badge img { height: 54px; width: auto; }
/* Apple's badge comes from Apple's servers; if it cannot be had, a plain link says the same. */
.badge .fallback { display: none; }
.badge.badge-failed picture { display: none; }
.badge.badge-failed .fallback {
  display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 18px; border-radius: 12px;
  background: #000; color: #fff; text-decoration: none; font-size: 15px; line-height: 1.1; font-weight: 600;
}
.cta-note { font-size: 14px; color: var(--faint); }

.hero-shot {
  margin: 64px auto 0; max-width: 900px; border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 80px -30px rgb(40 30 15 / 0.45), 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent);
}

/* ---------- Sections ---------- */
section { padding: 110px 0; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
h2 { text-wrap: balance; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.06; letter-spacing: -0.01em; margin: 0 0 16px; }
h3 { font-size: 19px; margin: 0 0 8px; letter-spacing: -0.005em; }
.section-head p { color: var(--soft); font-size: 19px; margin: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { position: relative; padding-top: 58px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--serif); font-size: 24px;
  background: var(--card); box-shadow: var(--shadow-soft);
}
.step p { color: var(--soft); margin: 0; }
kbd {
  font: 600 13px var(--sans); padding: 2px 7px; border-radius: 6px; background: var(--card);
  box-shadow: 0 0 0 1px var(--rule), 0 1px 0 1px var(--rule); color: var(--ink); white-space: nowrap;
}
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Gallery: the screenshots hang on a line too, as prints of their own shape. */
.gallery { background: var(--bg-deep); overflow: hidden; }
.rail { display: grid; gap: 64px; }
.hung { position: relative; transform-origin: 50% -12px; transition: transform 0.7s cubic-bezier(0.2, 1.4, 0.4, 1); }
.hung.wide { transform: rotate(-0.35deg); }
.hung.tall { transform: rotate(0.9deg); }
.hung:hover { transform: rotate(0deg) translateY(3px); }
.hung::before {
  /* The line the print hangs from, running on past it. */
  content: ""; position: absolute; left: -60vw; right: -60vw; top: -8px; height: 1.4px; background: var(--rope); z-index: 0;
}
.exhibits .hung::before, .stack .hung::before { left: -12px; right: -12px; }
.hung .peg {
  position: absolute; left: 50%; top: -22px; width: 10px; height: 30px; margin-left: -5px; z-index: 2;
  background: var(--peg); border-radius: 2px; box-shadow: 0 1px 2px rgb(0 0 0 / 0.25);
}
.hung figure { position: relative; z-index: 1; margin: 0; background: var(--card); padding: 10px 10px 14px; border-radius: 3px; box-shadow: var(--shadow); }
.hung img { border-radius: 2px; width: 100%; height: auto; }
.hung figcaption { font-size: 15px; color: var(--soft); padding: 12px 4px 0; line-height: 1.45; }
.hung figcaption b { color: var(--ink); margin-right: 6px; }
.exhibits { display: grid; grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr); gap: 40px; align-items: start; }
.stack { display: grid; gap: 64px; padding-top: 40px; }
@media (max-width: 820px) {
  .exhibits { grid-template-columns: 1fr; gap: 64px; }
  .exhibits .hung.tall { max-width: 360px; margin: 0 auto; }
  .stack { padding-top: 0; }
}

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--card); border-radius: 18px; padding: 28px 26px 26px; box-shadow: var(--shadow-soft);
  border: 1px solid color-mix(in srgb, var(--rule) 60%, transparent);
}
.feature .icon {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 18px;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent);
}
.feature .icon svg { width: 21px; height: 21px; }
.feature p { color: var(--soft); margin: 0; font-size: 16px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* Pricing */
.pricing { background: var(--bg-deep); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 24px; justify-content: center; }
.plan {
  position: relative; background: var(--card); border-radius: 22px; padding: 36px 32px 32px;
  box-shadow: var(--shadow-soft); border: 1px solid color-mix(in srgb, var(--rule) 60%, transparent);
  display: flex; flex-direction: column;
}
.plan.best { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.plan .tag {
  position: absolute; top: -13px; left: 32px; background: var(--accent); color: var(--accent-ink);
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px;
}
.plan h3 { font-size: 15px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); margin-bottom: 18px; }
.price { font-family: var(--serif); font-size: 64px; line-height: 1; letter-spacing: -0.02em; }
.price small { font-family: var(--sans); font-size: 16px; color: var(--soft); letter-spacing: 0; margin-left: 6px; }
.plan .sub { color: var(--soft); margin: 10px 0 24px; min-height: 52px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 11px; font-size: 16px; }
.plan li { display: flex; gap: 10px; align-items: baseline; }
.plan li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.plan .button {
  margin-top: auto; text-align: center; text-decoration: none; font-weight: 600; padding: 14px 18px; border-radius: 12px;
  background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink);
}
.plan.best .button { background: var(--accent); color: var(--accent-ink); }
.plans-note { text-align: center; color: var(--faint); font-size: 14px; margin-top: 30px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--rule); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--faint); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--soft); margin: 12px 0 0; }

/* Closing call */
.closing { text-align: center; padding: 120px 0 130px; }
.closing h2 { max-width: 760px; margin: 0 auto 30px; }

/* Footer */
footer { border-top: 1px solid var(--rule); padding: 36px 0 48px; color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer nav { display: flex; gap: 22px; margin-left: auto; }
footer a { color: var(--soft); text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Plain pages: privacy, support, not found. */
.page { max-width: 720px; margin: 0 auto; padding: 72px 24px 100px; }
.page h1 { font-size: clamp(40px, 6vw, 60px); }
.page .lede { margin: 0 0 36px; text-align: left; }
.page h2 { font-size: 30px; margin-top: 44px; }
.page p, .page li { color: var(--ink); }
.page a { color: var(--accent); }
.page ul { padding-left: 22px; }
.page li { margin-bottom: 8px; }

@media (prefers-reduced-motion: reduce) {
  .print { animation: none; }
  .hung, .hung:hover { transition: none; transform: none; }
  html { scroll-behavior: auto; }
}
