/* tiplingapp.com */

:root {
  --bg: #FFFFFF;
  --bg-alt: #FAF6F0;
  --ink: #2B211B;
  --text: #5C5047;
  --soft: #8F8378;
  --line: #ECE5DC;
  --accent: #D9773A;
  --accent-dark: #B5612A;
  --green: #3E9A6E;
  --wrap: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0; text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; }
h1 { font-size: clamp(32px, 4vw, 46px); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.2vw, 36px); font-weight: 800; letter-spacing: -0.015em; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 16px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.94); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 19px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--text); font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 10px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; }
.btn:hover { background: var(--accent-dark); }
.btn-line { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-line:hover { background: var(--bg-alt); }
@media (max-width: 760px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* Store badges */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.badges a, .badges span { line-height: 0; }
.badge-apple { height: 48px; width: auto; }
.badge-google { height: 70px; width: auto; margin: -11px -9px; } /* Google's artwork carries its own padding */
.badge-soon { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; line-height: 1 !important; }
.badge-soon img { opacity: 0.45; }
.badge-soon small { font-size: 12px; color: var(--soft); }

/* Hero */
.hero { padding: 56px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1fr 440px; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero h1 { max-width: 15em; }
.hero .intro { font-size: 19px; max-width: 30em; margin-bottom: 28px; }
.hero .note { margin-top: 18px; font-size: 14px; color: var(--soft); }
.shot.hero-shot { justify-self: center; width: 230px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* Three real screens, one in front of two */
.hero-stack { position: relative; width: 440px; height: 520px; justify-self: center; }
.hero-stack .shot { position: absolute; }
.hero-stack .front { width: 220px; left: 110px; top: 0; z-index: 3; box-shadow: 0 30px 60px rgba(43, 33, 27, 0.22); }
.hero-stack .back { width: 180px; top: 70px; z-index: 1; filter: saturate(0.92); }
.hero-stack .left { left: 0; }
.hero-stack .right { right: 0; }
@media (max-width: 480px) {
  .hero-stack { width: 330px; height: 400px; }
  .hero-stack .front { width: 170px; left: 80px; }
  .hero-stack .back { width: 136px; top: 54px; }
}

/* A real app screen */
.shot { border-radius: 26px; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(43, 33, 27, 0.12); background: var(--bg-alt); width: 100%; height: auto; aspect-ratio: 780 / 1694; }

/* Sections */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); }
.section > .wrap > h2 { margin-bottom: 12px; }
.section .sub { max-width: 40em; margin-bottom: 36px; }
.section h2 + .sub { margin-top: 0; }
@media (max-width: 760px) { .section { padding: 60px 0; } }

/* Screenshot row */
.gallery { display: grid; grid-template-columns: repeat(5, 160px); justify-content: space-between; gap: 20px; }
/* Bigger in the middle, smaller and lower towards the edges */
.stage { display: flex; align-items: flex-end; justify-content: center; gap: 32px; }
.stage .center { width: 180px; }
.stage .near { width: 156px; }
.stage .far { width: 136px; }
.stage figcaption { white-space: nowrap; }
.stage .far .shot { opacity: 0.92; }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 14px; font-size: 15px; color: var(--ink); font-weight: 600; text-align: center; }
@media (max-width: 900px) {
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .gallery figure, .stage figure { flex: 0 0 160px; width: 160px; scroll-snap-align: start; }
  .stage { align-items: start; justify-content: flex-start; }
}

/* Feature cards with a piece of the real app */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 22px; padding: 14px 14px 26px; }
.card-img { background: #FFF6EA; border-radius: 14px; height: 190px; padding: 22px 40px; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 20px; }
.card-img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.card h3 { padding: 0 12px; margin-bottom: 6px; font-size: 20px; }
.card p { padding: 0 12px; margin: 0; font-size: 16px; }
.card-wide { margin-top: 28px; display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: center; padding: 40px 40px 0; overflow: hidden; background: #FFF6EA; border-color: transparent; }
.card-wide h3 { padding: 0; font-size: 24px; margin-bottom: 10px; }
.card-wide p { padding: 0 0 40px; }
.paper { align-self: end; }
.paper img { width: 100%; height: auto; border-radius: 6px 6px 0 0; box-shadow: 0 -2px 30px rgba(43, 33, 27, 0.12); }
.also { margin: 64px 0 24px; font-size: 22px; }
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .card-img { height: 170px; padding: 16px 20px; }
  .card-wide { grid-template-columns: 1fr; padding: 28px 24px 0; gap: 8px; }
  .card-wide p { padding-bottom: 16px; }
}

/* Feature list */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; }
.features div { border-top: 1px solid var(--line); padding-top: 20px; }
.features h3 { margin-bottom: 6px; }
.features p { font-size: 15.5px; margin: 0; }
.tag { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; vertical-align: 2px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; gap: 24px; } }

/* Two columns of text and a screen */
.split { display: grid; grid-template-columns: 1fr 230px; gap: 72px; align-items: center; }
.split h2 { margin-bottom: 12px; }
.split > div { max-width: 36em; }
.split ul { padding-left: 20px; margin: 0; }
.split li { margin-bottom: 10px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } .split .shot { max-width: 210px; margin: 0 auto; } }

/* Pricing table */
.compare { width: 100%; max-width: 760px; border-collapse: collapse; font-size: 16px; background: var(--bg); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.compare th, .compare td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; }
.compare th { color: var(--ink); background: var(--bg-alt); }
.compare td:nth-child(n+2), .compare th:nth-child(n+2) { text-align: center; width: 110px; }
.compare tr:last-child td { border-bottom: 0; }
.yes { color: var(--green); font-weight: 700; }
.no { color: var(--soft); }
.price-note { max-width: 760px; margin-top: 16px; font-size: 14px; color: var(--soft); }

/* Article lists */
.post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list a { display: block; padding: 22px 0; text-decoration: none; }
.post-list h3 { font-size: 20px; margin-bottom: 6px; }
.post-list a:hover h3 { color: var(--accent-dark); }
.post-list p { margin: 0; color: var(--text); font-size: 15.5px; }
.post-list time { display: block; font-size: 13px; color: var(--soft); margin-bottom: 6px; }
.list-empty { color: var(--soft); }
.more-link { display: inline-block; margin-top: 24px; font-weight: 600; }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; color: var(--ink); font-size: 17px; }
.faq details p { margin: 0 0 18px; }

/* Download */
.download { text-align: center; }
.download img.icon { width: 76px; height: 76px; border-radius: 18px; margin: 0 auto 18px; }
.download h2 { margin-bottom: 10px; }
.download .badges { justify-content: center; margin-top: 24px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { color: var(--text); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.legal { margin-top: 28px; color: var(--soft); font-size: 13px; }

/* Article */
.article { padding: 56px 0 24px; }
.crumbs { font-size: 14px; color: var(--soft); margin-bottom: 20px; }
.crumbs a { color: var(--text); text-decoration: none; }
.article h1 { font-size: clamp(30px, 4vw, 42px); max-width: 20em; }
.article .meta { margin: 14px 0 0; font-size: 14px; color: var(--soft); }
.prose { max-width: 680px; margin-top: 36px; font-size: 18px; line-height: 1.75; color: #463A31; }
.prose h2 { font-size: 26px; margin: 44px 0 14px; }
.prose h3 { margin: 30px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 20px; }
.prose li { margin-bottom: 6px; }
.prose blockquote { margin: 26px 0; padding: 16px 20px; border-left: 3px solid var(--accent); background: var(--bg-alt); border-radius: 0 10px 10px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--bg-alt); color: var(--ink); }
.article-app { max-width: 680px; margin: 48px 0 0; padding: 22px; border: 1px solid var(--line); border-radius: 14px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.article-app img { width: 56px; height: 56px; border-radius: 13px; }
.article-app div { flex: 1 1 240px; font-size: 15.5px; }
.article-app b { display: block; color: var(--ink); }

/* 404 */
.notfound { padding: 100px 0; text-align: center; }
.notfound img { width: 80px; border-radius: 18px; margin: 0 auto 24px; }

/* Legal pages */
.legal-text section { margin-bottom: 8px; }
.legal-text .effective-date { font-size: 14px; color: var(--soft); margin-bottom: 8px; }
.legal-text h2 { font-size: 23px; }
.legal-text .notice, .legal-text .highlight, .legal-text .contact-box, .legal-text .privacy-box {
  margin: 20px 0; padding: 16px 20px; border-radius: 12px; background: var(--bg-alt); border-left: 3px solid var(--accent);
}
.legal-text .highlight { border-left-color: #C0392B; }

/* Screenshot carousel: the screen in the middle is the largest; scrolls sideways on every screen size */
.carousel { position: relative; }
.track {
  display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 16px calc(50% - 105px) 20px; scrollbar-width: none; cursor: grab; outline: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.track::-webkit-scrollbar { display: none; }
.track.dragging { cursor: grabbing; scroll-snap-type: none; }
.track figure { flex: 0 0 210px; margin: 0; scroll-snap-align: center; user-select: none; transform-origin: 50% 100%; will-change: transform; }
.track img { pointer-events: none; }
.track figcaption { margin-top: 14px; font-size: 15px; color: var(--ink); font-weight: 600; text-align: center; white-space: nowrap; }
.nav-btn {
  position: absolute; top: 44%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer;
  box-shadow: 0 6px 16px rgba(43, 33, 27, 0.12); display: grid; place-items: center; padding-bottom: 3px;
}
.nav-btn:hover { background: var(--bg-alt); }
.nav-btn:disabled { opacity: 0; pointer-events: none; }
.nav-btn.prev { left: 0; }
.nav-btn.next { right: 0; }
@media (max-width: 600px) {
  .track { padding-inline: calc(50% - 85px); gap: 20px; }
  .track figure { flex-basis: 170px; }
  .nav-btn { display: none; }
}
