/* Gulpo — iOS 27 update page */

:root {
  --bg: #06090f;
  --bg-elev: #0d1320;
  --title: #ffffff;
  --text: #a9b1bf;
  --muted: rgba(255, 255, 255, 0.48);
  --accent: #5fb3ff;
  --accent-soft: rgba(95, 179, 255, 0.16);
  --btn-text: #06090f;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--title);
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-align: center;
}

img, video { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }

/* ---- Layout ---- */

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

header { padding-bottom: 40px; }

.topBar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 0;
}

.topBar .pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.011em;
  color: var(--accent);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.topBar .pill:hover { background: var(--accent-soft); }

/* ---- Hero ---- */

.hero { padding-top: 90px; }

.hero .appIcon {
  width: 128px;
  height: 128px;
  margin: 0 auto 32px;
  border-radius: 30px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.hero .wordmark {
  width: 320px;
  max-width: 85%;
  margin: 0 auto 18px;
}

.hero .availability {
  margin: 0 0 64px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text);
}

.hero .eyebrow {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 {
  margin: 4px 0 0;
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--accent);
}

.hero .tagline {
  margin: 72px auto 0;
  max-width: 560px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---- Feature sections ---- */

section .row {
  position: relative;
  padding: 70px 0 30px;
}

.label {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--accent);
}

h3 {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--title);
}

.featureSubtext {
  max-width: 640px;
  margin: 20px auto 48px;
  font-size: 19px;
  line-height: 1.45;
  letter-spacing: 0.011em;
  color: var(--text);
}

.featureSubtext em {
  font-style: normal;
  color: var(--title);
}

.featureSubtext code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.85em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
}

.quote {
  display: block;
  margin: 0 auto 18px;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--title);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.in { opacity: 1; transform: none; }

/* ---- iPhone device frame ----
   Frame PNG is 1350x2760 with a transparent screen cut-out.
   Screen rect: x 72–1277, y 69–2690 (measured). */

.device {
  position: relative;
  width: 100%;
  max-width: 290px;
  margin: 0 auto;
  aspect-ratio: 1350 / 2760;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55));
}

.device .screen {
  position: absolute;
  left: 5.333%;
  top: 2.5%;
  width: 89.76%;
  height: 94.96%;
  overflow: hidden;
  border-radius: 10.8% / 4.96%;
  background: #000;
}

.device .screen video,
.device .screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.device .frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Mac / wide window */
.window {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.window video { width: 100%; height: auto; }

/* Play button */
.mediaButton {
  margin-top: 28px;
  padding: 8px 22px;
  min-width: 110px;
  font: inherit;
  font-size: 14px;
  line-height: 1.6;
  color: var(--accent);
  background: none;
  border: 1px solid var(--accent);
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.mediaButton:hover,
.mediaButton:focus-visible {
  color: var(--btn-text);
  background: var(--accent);
  outline: none;
}

/* Two-up */
.twoUp {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}

/* Also-new list */
.alsoNew {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}

.alsoNew .card {
  padding: 18px 24px;
  text-align: center;
}

.alsoNew .card:only-child {
  grid-column: 1 / -1;
  max-width: 560px;
  margin: 0 auto;
}

.alsoNew .card h5 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  color: var(--title);
}

.alsoNew .card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

.quote.closing {
  display: block;
  margin: 0 auto;
  padding-top: 96px;
  max-width: 640px;
  color: var(--title);
}

.gridGap { height: 72px; }

/* caption above the device inside grids */
.threeUp > div, .twoUp > div { display: flex; flex-direction: column; align-items: center; }
.threeUp > div > .caption, .twoUp > div > .caption { order: -1; margin: 0 auto 22px; }
.threeUp > div > .mediaButton, .twoUp > div > .mediaButton { order: 2; }

/* ---- Footer ---- */

footer { padding: 90px 0 80px; }

.appstore_badge a {
  display: inline-block;
  transition: transform 0.25s ease;
}

.appstore_badge a:hover { transform: scale(1.06); }

footer .fine {
  margin-top: 40px;
  font-size: 13px;
  color: var(--muted);
}

footer .fine a { color: var(--muted); }
footer .fine a:hover { color: var(--accent); }

/* ---- Entrance animations (hero) ---- */

.slide-in-bottom {
  animation: slide-in-bottom 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
.slide-in-bottom.d1 { animation-delay: 0.1s; }
.slide-in-bottom.d2 { animation-delay: 0.2s; }
.slide-in-bottom.d3 { animation-delay: 0.35s; }

@keyframes slide-in-bottom {
  from { transform: translateY(14px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.fadeIn { animation: fadeIn 1.2s 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .slide-in-bottom, .fadeIn { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Breakpoints ---- */

@media only screen and (min-width: 60em) {
  .container { width: 85%; }

  .hero { padding-top: 120px; }
  .hero .appIcon { width: 168px; height: 168px; border-radius: 40px; }
  .hero .wordmark { width: 420px; }
  .hero .availability { font-size: 21px; }
  .hero h1 { font-size: 110px; }
  .hero .tagline { font-size: 22px; }

  section .row { padding: 120px 0 60px; }

  .label { font-size: 18px; }
  h3 { font-size: 46px; }
  .featureSubtext { font-size: 24px; margin: 28px auto 70px; }
  .quote { font-size: 28px; }

  .device { max-width: 360px; }

  .twoUp { grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

  .alsoNew { grid-template-columns: 1fr 1fr; }

  .mediaButton { font-size: 16px; margin-top: 36px; }
}

/* ---- Site nav + design page additions ---- */

.nav { display: inline-flex; gap: 4px; }
.nav .pill.current { background: var(--accent-soft); }

.device.auto { cursor: default; }

.window.square {
  max-width: 480px;
  border-radius: 24px;
}

.threeUp {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.still {
  width: 100%;
  max-width: 290px;
  margin: 0 auto;
  border-radius: 10.8% / 4.96%;
  overflow: hidden;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.5));
}
.still img { width: 100%; height: auto; }

.caption {
  margin: 18px auto 0;
  max-width: 320px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--text);
}

.principle {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 28px;
  border-radius: 22px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
}
.principle p { margin: 0; font-size: 18px; line-height: 1.5; color: var(--text); }
.principle p + p { margin-top: 12px; }
.principle strong { color: var(--title); font-weight: 600; }

@media only screen and (min-width: 60em) {
  .threeUp { grid-template-columns: 1fr 1fr 1fr; gap: 32px; align-items: start; }
  .gridGap { height: 110px; }
  .still { max-width: 300px; }
  .caption { font-size: 16px; }
  .principle p { font-size: 21px; }
}
