/* unflipped.app: one stylesheet for every page. System fonts only, light and dark from the system setting. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --text: #1d1d1f;
  --text-2: #56565b;
  --line: #d2d2d7;
  --link: #8a5600;
  --gold: #f0a92a;
  --on-gold: #1d1d1f;
  --shot-shadow: 0 24px 48px -20px rgba(80, 48, 0, 0.45);
  --icon-shadow: 0 10px 28px -8px rgba(80, 48, 0, 0.45);
  --gutter: clamp(16px, 5vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-2: #161617;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --line: #38383c;
    --link: #ffd60a;
    --shot-shadow: 0 24px 48px -24px rgba(240, 169, 42, 0.28);
    --icon-shadow: 0 10px 32px -10px rgba(240, 169, 42, 0.45);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

/* Landing: the top of the page */

.hero {
  padding-top: clamp(56px, 11vw, 120px);
  text-align: center;
}

.hero .icon {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  border-radius: 27px;
  box-shadow: var(--icon-shadow);
}

.hero .name {
  margin: 22px 0 0;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero h1 {
  margin: 6px auto 0;
  max-width: 12em;
  font-size: clamp(40px, 8.4vw, 76px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero .lede {
  margin: 20px auto 0;
  max-width: 30em;
  color: var(--text-2);
  font-size: clamp(19px, 2.4vw, 23px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.soon {
  display: inline-block;
  margin: 32px 0 0;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--on-gold);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero .devices {
  margin: 12px 0 0;
  color: var(--text-2);
  font-size: 15px;
}

/* Landing: the screenshots and what the app does */

.showcase {
  display: grid;
  gap: clamp(48px, 8vw, 72px);
  margin-top: clamp(64px, 11vw, 120px);
}

.shots {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 3.5vw, 28px);
  margin: 0;
}

.shots figure {
  flex: 0 1 260px;
  min-width: 0;
  margin: 0;
}

.shots img {
  width: 100%;
  border-radius: 8% / 3.7%;
  box-shadow: var(--shot-shadow);
}

.features {
  margin: 0;
  padding: 0;
  list-style: none;
}

.features li {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.features li:last-child {
  border-bottom: 1px solid var(--line);
}

.features h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.features p {
  margin: 6px 0 0;
  color: var(--text-2);
}

@media (min-width: 860px) {
  .showcase {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: center;
  }

  .shots {
    justify-content: flex-start;
  }
}

/* Landing: price and privacy */

.terms {
  display: grid;
  gap: 16px;
  margin-top: clamp(56px, 9vw, 96px);
}

.terms section {
  padding: 28px;
  border-radius: 20px;
  background: var(--bg-2);
}

.terms h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.terms p {
  margin: 8px 0 0;
  color: var(--text-2);
}

@media (min-width: 700px) {
  .terms {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

/* Privacy and Support: one reading column, the bar at the top and the text */

.page .wrap {
  max-width: 800px;
}

.bar {
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.doc {
  padding-top: clamp(24px, 6vw, 56px);
}

.doc h1 {
  margin: 0;
  font-size: clamp(36px, 6.5vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.doc .meta {
  margin: 12px 0 0;
  color: var(--text-2);
  font-size: 15px;
}

.doc .intro {
  margin: 20px 0 0;
  font-size: 19px;
  line-height: 1.45;
}

.doc h2 {
  margin: 44px 0 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.doc h3 {
  margin: 28px 0 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.doc p,
.doc ul,
.doc ol {
  margin: 10px 0 0;
}

.doc ul,
.doc ol {
  padding-left: 1.3em;
}

.doc li + li {
  margin-top: 8px;
}

.doc li::marker {
  color: var(--text-2);
}

.contact {
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: 18px;
  background: var(--bg-2);
}

.contact p {
  margin: 0;
}

.contact p + p {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 15px;
}

.contact a {
  font-weight: 600;
}

/* Every page: the foot */

.foot {
  margin-top: clamp(64px, 10vw, 112px);
  padding-top: 12px;
  padding-bottom: max(40px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 14px;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.foot a {
  display: inline-block;
  padding: 10px 0;
  color: var(--text-2);
  text-decoration: none;
}

.foot a:hover {
  color: var(--text);
  text-decoration: underline;
}

.foot a[aria-current="page"] {
  color: var(--text);
}
