/* The iPhone & iPad page (app.html), on top of legal.css and guides.css. */
main.wide { max-width: 1120px; padding-top: 0; }
.wide h2 { border: 0; padding: 0; margin: 0 0 10px; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.15; letter-spacing: -.02em; }
.wide section { margin: 0; padding: 64px 0 0; }
.wide .sub { color: var(--muted); font-size: 16.5px; max-width: 640px; margin: 0 0 28px; }
img { max-width: 100%; height: auto; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; gap: 40px; padding: 56px 0 8px; }
.hero h1 { font-size: clamp(36px, 5.6vw, 60px); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 16px; }
.hero h1 em, .wide h2 em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: 18px; color: #c9ccd2; margin: 0 0 22px; max-width: 470px; }
/* App Store badge: Apple's artwork unchanged, at least 40px tall, clear space of a quarter of its height. */
.get { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; }
.badge { display: inline-block; line-height: 0; border-radius: 9px; }
.badge img { display: block; width: 162px; height: 54px; }
/* Until launch (see the LAUNCH comment at the top of app.html): a quiet label where the App Store badge goes. */
.soon { display: inline-flex; align-items: center; height: 54px; padding: 0 18px; margin: 0; border-radius: 12px; border: 1px solid var(--line, rgba(255,255,255,.14)); color: var(--muted, #a9adb5); font-weight: 650; font-size: 15px; letter-spacing: .01em; }
.meta { margin: 12px 0 0; color: var(--muted); font-size: 13.5px; }
.devices { position: relative; padding: 0 0 6% 14%; }
.devices .ipad { display: block; width: 100%; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .55)); }
.devices .iphone { position: absolute; left: 0; bottom: 0; width: 29%; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .7)); }
.glow { position: relative; }
.glow::before { content: ""; position: absolute; inset: -14% 0; z-index: -1; background: radial-gradient(closest-side, rgba(245, 179, 1, .14), transparent); pointer-events: none; }

/* Features */
.features { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: center; }
.features .shot { width: 100%; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .6)); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.card { padding: 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.card h3 { margin: 10px 0 4px; font-size: 16px; }
.card p { margin: 0; font-size: 14.5px; color: #c4c7ce; }
.card svg { width: 26px; height: 26px; color: var(--accent); }
.tag { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 6px; font-size: 11.5px; font-weight: 650; vertical-align: 2px; color: #111; background: var(--accent); }
.tag.pro { background: #e9eaec; }

/* Screens */
.screens { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px 24px; align-items: end; }
.screens figure { margin: 0; text-align: center; }
.screens img { filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .55)); }
.screens figcaption { margin-top: 12px; color: var(--muted); font-size: 14px; }
.screens figcaption b { display: block; color: var(--text); font-size: 15px; }
.s-ipad { grid-column: span 8; }
.s-iphone { grid-column: span 4; }
.s-iphone img { width: 62%; }
.s-duo-open { grid-column: span 8; }
.s-duo-closed { grid-column: span 4; }
.s-duo-closed img { width: 78%; }

/* Overlook Cache */
.cache { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 26px; border-radius: 18px; background: linear-gradient(135deg, #1a1b20, var(--panel)); border: 1px solid var(--line); }
.cache svg { width: 54px; height: 54px; color: var(--accent); }
.cache h2 { font-size: 24px; }
.cache p { margin: 0; }

/* Plans and FAQ */
.wide .plans { margin: 0 0 12px; }
.wide .plan h2 { font-size: 20px; margin: 0; }
.plan .price { font-size: 26px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; }
.end { text-align: center; padding: 64px 0 24px !important; }
.end .get { justify-content: center; }
footer { max-width: 1120px; }
footer p a { white-space: nowrap; }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 36px; gap: 28px; }
  .devices { max-width: 560px; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .features .shot { width: 44%; max-width: 220px; margin: 0 auto; display: block; }
  .s-ipad, .s-iphone, .s-duo-open, .s-duo-closed { grid-column: span 12; }
  .s-iphone img { width: 46%; max-width: 230px; }
  .s-duo-closed img { width: 56%; max-width: 280px; }
  .cache { grid-template-columns: minmax(0, 1fr); }
  .wide section { padding-top: 48px; }
}

/* iOS Safari zooms into a field whose text is under 16px when it's tapped. On touch screens (and narrow
   windows) every text field, select and text box is at least 16px; the sign-in code boxes stay bigger. */
@media (pointer: coarse), (max-width: 860px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not(.acct-code):not(.code-input), select, textarea { font-size: 16px !important; }
}
